Quadratic Formula Calculator

Solve ax² + bx + c = 0 with the quadratic formula: discriminant, both roots (real or complex) and the vertex of the parabola, step by step.

Result

Discriminant (Δ = b² - 4ac)

1

x₁ = (-b + √Δ) ÷ 2a
3
x₂ = (-b - √Δ) ÷ 2a
2
Number of distinct real roots
2
Vertex x (-b ÷ 2a)
2.5
Vertex y (-Δ ÷ 4a)
-0.25

Charts and breakdown below the calculator.

Understand the result

Graph of the parabola

  • f(x)
0123x = 0.5x = 1.5x = 2.5x = 3.5x = 4.5x1x2

The roots are where the curve crosses the x axis.

Enter the coefficients a, b and c of ax² + bx + c = 0 and this quadratic formula calculator returns the discriminant, both solutions x₁ and x₂ and the vertex of the parabola. Complex roots are shown in a + bi form when the discriminant is negative.

Formula

Δ = b² - 4ac. x = (-b ± √Δ) ÷ 2a. Vertex: (-b ÷ 2a, -Δ ÷ 4a). If Δ < 0 the roots are complex: x = -b ÷ 2a ± (√-Δ ÷ 2a)i.

How it works

Move every term to one side so the equation reads ax² + bx + c = 0, then type a, b and c with their signs (for x² - 5x + 6 = 0, a = 1, b = -5, c = 6). The calculator computes the discriminant first: positive gives two real roots, zero gives one repeated root and negative gives two complex conjugate roots, shown as p + qi. It also returns the vertex, the turning point of the parabola. The coefficient a cannot be zero, otherwise the equation is linear.

How to use the quadratic formula step by step

First rewrite the equation in standard form, with everything on one side and zero on the other. Read the coefficients with their signs: in x² - 5x + 6 = 0, a = 1, b = -5 and c = 6. If a term is missing, its coefficient is 0 (in x² - 9 = 0, b = 0).

Then compute the discriminant Δ = b² - 4ac and plug it into x = (-b ± √Δ) ÷ 2a. The plus sign gives x₁ and the minus sign gives x₂. The vertex of the parabola is at x = -b ÷ 2a, y = -Δ ÷ 4a, which is the minimum point when a > 0 and the maximum when a < 0.

Worked example: x² - 5x + 6 = 0

With a = 1, b = -5 and c = 6, the discriminant is (-5)² - 4 × 1 × 6 = 25 - 24 = 1. The square root of 1 is 1, so x₁ = (5 + 1) ÷ 2 = 3 and x₂ = (5 - 1) ÷ 2 = 2. You can check: 3² - 5 × 3 + 6 = 0 and 2² - 5 × 2 + 6 = 0.

The vertex is at x = 5 ÷ 2 = 2.5 and y = -1 ÷ 4 = -0.25, exactly halfway between the roots and slightly below the x axis. This is the example loaded by default in the calculator.

What the discriminant tells you

If Δ > 0 there are two different real roots and the parabola crosses the x axis twice. If Δ = 0 there is one repeated root, where the parabola just touches the axis: 2x² - 4x + 2 = 0 has Δ = 0 and the single root x = 1. If Δ < 0 there is no real root.

With a negative discriminant the roots are complex conjugates. For x² + 2x + 5 = 0, Δ = 4 - 20 = -16, √-16 = 4i, and the roots are -1 + 2i and -1 - 2i. If your class only works with real numbers, the answer is simply "no real solution".

Common mistakes and tips

Sign errors cause most wrong answers. Squaring a negative b gives a positive number, (-5)² = 25, and -b turns -5 into +5. Also remember that the whole numerator (-b ± √Δ) is divided by 2a, not just the square root.

If a = 0 the equation is linear, not quadratic, and the formula does not apply. When the numbers are large or decimal, divide the whole equation by a common factor first, or use the exponent and root calculator to check square roots. Right triangle problems often lead to quadratics too: see the Pythagorean theorem calculator.

Frequently Asked Questions

What does a negative discriminant mean?
The parabola never crosses the x axis, so there is no real solution. In the complex numbers there are two conjugate roots, such as -1 + 2i and -1 - 2i for x² + 2x + 5 = 0.
What is the quadratic formula?
x = (-b ± √(b² - 4ac)) ÷ 2a. It solves any equation of the form ax² + bx + c = 0 with a different from zero.
What if the discriminant is zero?
The equation has one repeated real root, x = -b ÷ 2a, and the vertex of the parabola sits on the x axis.
Can the quadratic formula give complex numbers?
Yes. When b² - 4ac is negative, its square root is imaginary and the two roots are complex conjugates of the form p + qi and p - qi.
Is factoring faster than the quadratic formula?
When the roots are small integers, factoring is quicker: x² - 5x + 6 = (x - 2)(x - 3). The formula always works, including for decimal and complex roots.