SciCalc.net
IndiaFree tools

Quadratic formula calculator

Solve a quadratic equation ax² + bx + c = 0 with the quadratic formula: type a, b and c. The roots come out exact where possible, with the discriminant and the working.

Last updated

x1 = √574 + 34 ≈ 2.637458609

x2 = −√574 + 34 ≈ −1.137458609

Discriminant b² − 4ac = 57

Working

  1. 1D = b2 − 4ac = 57discriminant
  2. 2x = (−b ± √D) ÷ 2aD > 0, two real roots
Try:

How it works

The quadratic formula solves any equation ax² + bx + c = 0 with a ≠ 0:

x = (−b ± √(b² − 4ac)) ÷ 2a

The discriminant D = b² − 4ac tells you what to expect: D > 0 gives two real roots, D = 0 one repeated root, and D < 0 two complex roots.

Worked example

Solve x² − 5x + 6 = 0. D = 25 − 24 = 1, so x = (5 ± 1) ÷ 2, giving x = 3 or x = 2. Solve 2x² − 3x − 6 = 0. D = 9 + 48 = 57, so x = (3 ± √57) ÷ 4 ≈ 2.637 or −1.137.

Three ways to solve a quadratic

Factorising is quickest when it works: x² + x − 12 = (x + 4)(x − 3), so x = −4 or x = 3. Completing the square works every time: x² + 6x + 5 = 0 becomes (x + 3)² = 4, so x + 3 = ±2 and x = −1 or x = −5. The quadratic formula is completing the square done once, in general, which is why it always works.

The vertex and the graph

The graph of y = ax² + bx + c is a parabola. Its turning point (vertex) is at x = −b ÷ 2a, halfway between the roots. For x² − 5x + 6 the vertex is at x = 5/2 and y = 2.5² − 5 × 2.5 + 6 = −1/4, so the vertex is (2.5, −0.25). Because a is positive the parabola opens upwards and this is the lowest point.

Sum and product of the roots

For ax² + bx + c = 0 the two roots add to −b/a and multiply to c/a. For x² − 5x + 6 = 0: 2 + 3 = 5 and 2 × 3 = 6. This is a fast way to check an answer.

Common mistakes

  • Dropping the sign of b: in −b, a b of −5 becomes +5.
  • Typing −b² as (−b)²: b² is always positive or zero, so b² − 4ac with b = −5 starts from 25.
  • Dividing only the square root by 2a, instead of the whole numerator −b ± √D.

Tips

  • Move everything to one side first so the equation reads … = 0.
  • Watch the signs: in x² − 5x + 6, b is −5, not 5.
  • If the roots are whole numbers, check by factorising: x² − 5x + 6 = (x − 2)(x − 3).

Questions

What if a is 0?

Then it isn’t quadratic. bx + c = 0 has the single root x = −c/b.

What does a negative discriminant mean?

There are no real roots; the graph doesn’t cross the x-axis. The roots are complex, for example −1 ± 2i.

Why are my roots written with √?

Because √57 is irrational. The exact form avoids rounding; the decimal is shown underneath.

How do I find the vertex of a parabola?

The x-coordinate is −b ÷ 2a. Put it back into the equation for the y-coordinate. For x² − 5x + 6 the vertex is (2.5, −0.25).

What are the sum and product of the roots?

The roots of ax² + bx + c = 0 add up to −b/a and multiply to c/a.

Should I factorise or use the formula?

Try factorising when the numbers are small whole numbers; if no factors appear quickly, use the formula. Both give the same roots.

Sources

  1. NIST Digital Library of Mathematical Functions, §1.11 Zeros of Polynomials. §1.11(iii) Quadratic Equations, equation 1.11.11: roots of az² + bz + c = 0 are (−b ± √D)/2a with D = b² − 4ac; the next sentence: sum and product of the roots are −b/a and c/a. Checked 22 November 2026.
  2. NIST Digital Library of Mathematical Functions, §1.11 Zeros of Polynomials. §1.11(ii) Elementary Properties, equation 1.11.10: sum of the zeros −a(n−1)/a(n) and product (−1)ⁿa(0)/a(n) for any polynomial. Checked 22 November 2026.