Quadratic Equation Solver

Solve ax² + bx + c = 0: real or complex roots, the discriminant, the vertex and the factored form, using the quadratic formula.

Runs in your browserNo sign-upWorks offline
Your result—
Formula used
Shown here after you calculate
Rounded to
2 decimal places

What the Quadratic Equation Solver does

The Quadratic Equation Solver finds both roots of any quadratic equation from its coefficients a, b and c. It shows the discriminant and what it means, the factored form when the roots are real, the sum and product of the roots and the vertex of the parabola. Complex roots are given in a ± bi form.

How to use it

  1. Write your equation as ax² + bx + c = 0.
  2. Enter a, b and c. Use negative numbers where the equation subtracts.
  3. Read the roots and the details below them.

Example

For x² − 3x − 10 = 0, enter a = 1, b = −3 and c = −10. The discriminant is 9 + 40 = 49, so there are two real roots: x = −2 and x = 5. The factored form is (x + 2)(x − 5), the roots add up to 3 and multiply to −10, and the vertex is at (1.5, −12.25), a minimum because a is positive.

The quadratic formula and the discriminant

x = (−b ± √(b² − 4ac)) ÷ 2a. The part under the square root, b² − 4ac, is the discriminant. Above zero, there are two real roots. At zero, there is one repeated root. Below zero, there are no real roots, only two complex ones.

The tool uses a version of the formula that stays accurate when b is much larger than a and c, where the textbook form can lose digits.

Worked example

Solve 2x² − 4x − 6 = 0. Here a = 2, b = −4 and c = −6. The discriminant is (−4)² − 4 × 2 × (−6) = 16 + 48 = 64, and its square root is 8. So x = (4 ± 8) ÷ 4, which gives x = 3 and x = −1. The factored form is 2(x − 3)(x + 1), and the vertex is at x = 1, where y = −8.

With x² + 2x + 5 = 0 the discriminant is 4 − 20 = −16, which is below zero, so there are no real roots. The complex roots are −1 + 2i and −1 − 2i.

Going further

For linear equations and other forms, use the Equation Solver. To work out a square root on its own, use the Square Root Calculator.

Questions people ask

What if a is zero?

Then the equation is linear, not quadratic. The tool asks you to use the Equation Solver instead.

What does the vertex tell me?

It is the turning point of the curve y = ax² + bx + c: the lowest point when a is positive, the highest when a is negative.

Can I enter decimals?

Yes. Coefficients such as 0.5 or −2.75 work.

How do I check the roots?

Put each root back into the equation. For x = 5 in x² − 3x − 10: 25 − 15 − 10 = 0, so it is correct.

Can it solve biquadratic equations like ax⁴ + bx² + c = 0?

Yes, in two steps. Put y = x², solve ay² + by + c = 0 here, then take the square roots of each positive y.

Related tools