Quadratic Formula Calculator

Solve any quadratic equation using the quadratic formula. Enter a, b and c from ax² + bx + c = 0 to get the real or complex roots, plus the discriminant, vertex, axis of symmetry and sum and product of roots.

ax² + bx + c = 0
x²
x

Enter the coefficients a, b and c. The calculator solves the equation with the quadratic formula and shows real or complex roots, plus the discriminant and vertex. (a can’t be 0.)

Roots (x)
—
Enter a, b and c
Discriminant
—
Nature of roots
—
Vertex
—
Axis of symmetry
—
Sum of roots
—
Product of roots
—

Uses the quadratic formula x = (−b ± √(b²−4ac)) / 2a. When the discriminant is negative, the two roots are complex conjugates.

How to Solve Quadratic Equations Using the Quadratic Formula

Write the equation as ax² + bx + c = 0, then put a, b and c into x = (−b ± √(b² − 4ac)) ÷ 2a. For x² − 5x + 6 = 0, the discriminant is 25 − 24 = 1, so x = (5 ± 1) ÷ 2, which gives x = 3 and x = 2.

  1. Read off the coefficients: a = 1, b = −5, c = 6.
  2. Find the discriminant: (−5)² − 4 × 1 × 6 = 1.
  3. Take the square root: √1 = 1.
  4. Work out both roots: (5 + 1) ÷ 2 = 3 and (5 − 1) ÷ 2 = 2.

Formula: x = (−b ± √(b² − 4ac)) ÷ 2a. The discriminant D = b² − 4ac determines the type of roots: D > 0 gives two distinct real roots, D = 0 gives one repeated real root at x = −b ÷ 2a, and D < 0 gives two complex conjugate roots x = (−b ÷ 2a) ± (√(−D) ÷ 2a)i. The vertex sits at (−b ÷ 2a, f(−b ÷ 2a)), which is also the axis of symmetry x = −b ÷ 2a. By Vieta’s formulas, the sum of the roots is −b ÷ a and the product of the roots is c ÷ a.

What Does the Discriminant Tell You About Roots?

It tells you how many roots there are and whether they are real, as set out in the formula above. A quadratic equation with complex roots, for example x² + 2x + 5 = 0, has D = −16 and roots −1 ± 2i.

abcRoots (x)
1−563, 2
10−42, −2
1−3−44, −1
242−1 (repeated)
3−631 (repeated)
125−1 + 2i, −1 − 2i

How to Find the Vertex of a Quadratic Function in Standard Form

Use x = −b ÷ 2a, then substitute that x back in to get y. For x² − 3x − 4, x = 3 ÷ 2 = 1.5 and y = 2.25 − 4.5 − 4 = −6.25, so the vertex is (1.5, −6.25). It is a minimum when a is positive and a maximum when a is negative.

Checking Your Work

Set up the coefficients correctly, since the tool solves exactly what you enter.

  • Rearrange first. The equation must equal zero, so x² = 3x + 10 becomes x² – 3x – 10 = 0, giving a = 1, b = -3 and c = -10.
  • Keep the signs: drop a minus on b or c and you will solve the wrong equation.
  • Enter missing terms as zero. For 2x² – 8 = 0, b is 0.

To verify roots, substitute them back: 5 and -2 both make x² – 3x – 10 equal zero. The sum and product of roots formula is a quicker check, since the roots should add to -b/a and multiply to c/a. For whole-number roots, factoring is often faster than the formula. The Wikipedia article on the quadratic formula shows its derivation.

Common questions about the quadratic formula

How do you solve a quadratic equation using the quadratic formula?Rearrange to ax² + bx + c = 0, then use x = (−b ± √(b² − 4ac)) ÷ 2a. For x² − 5x + 6 = 0, the discriminant is 25 − 24 = 1, so x = (5 ± 1) ÷ 2, giving 3 and 2.
What does the discriminant tell you about the roots?The discriminant (b² − 4ac) predicts the type of roots before you solve. Positive means two distinct real roots, zero means one repeated real root, and negative means a pair of complex conjugate roots.
What is an example of a quadratic equation with complex roots?x² + 2x + 5 = 0 has a discriminant of 4 − 20 = −16. The roots are −2 ÷ 2 ± √16 ÷ 2 i, which is −1 + 2i and −1 − 2i.
How do you find the vertex of a quadratic function in standard form?For y = ax² + bx + c, the vertex’s x-coordinate is −b ÷ 2a, and you plug that back in for y. For x² − 3x − 4, x = 1.5 and y = −6.25, so the vertex is (1.5, −6.25).
What is the formula for the sum and product of roots?By Vieta’s formulas, the roots add to −b ÷ a and multiply to c ÷ a, whether they are real or complex. For x² − 5x + 6 = 0 that gives a sum of 5 and a product of 6.
Why can’t a be zero?If a = 0, the x² term disappears and the equation becomes linear (bx + c = 0), so the formula’s division by 2a would be undefined. Solve it as a linear equation instead.

Related Calculators

Once you’ve found the roots, the slope calculator can help explore the line segments between key points on the parabola, and the exponent calculator is handy for checking any power terms by hand. For general number crunching alongside your algebra, try the scientific calculator.

Related Calculators