Everyday utilities

Quadratic Equation Solver

Quadratic Equation Solver

Solve ax² + bx + c = 0 with real or complex roots, exact radical form, vertex and steps.

About this tool

About Quadratic Equation Solver

Enter the coefficients a, b and c of ax² + bx + c = 0 and the solver returns the roots straight away, whether they are two distinct real numbers, one repeated root or a pair of complex conjugates such as −1 ± 2i. When the coefficients are whole numbers, it also gives the exact answer in simplified radical form, like x = 1 ± √2, or as reduced fractions, which is what most homework and exams ask for. Beyond the roots you get the discriminant, the vertex and whether it is a minimum or maximum, the axis of symmetry, the y-intercept, the sum and product of the roots, the factored form and the vertex form. A numbered table walks through the quadratic formula with your numbers so you can check each step. The roots are computed with a numerically stable method, and everything runs locally.

Built and maintained by Abhi JainUpdated

How to Solve a Quadratic Equation

  1. 1

    Write it in standard form

    Rearrange your equation to ax² + bx + c = 0.

  2. 2

    Enter the coefficients

    Fill in a (x² coefficient), b (x coefficient) and c (constant). Use negative signs where needed.

  3. 3

    Read the solution

    See the roots, exact form, discriminant, vertex and the Steps table.

Quadratic Equation Solver: questions and answers

What is the quadratic formula?

x = (−b ± √(b² − 4ac)) ÷ 2a. For 2x² − 4x − 6 = 0: x = (4 ± √64) ÷ 4, so x = 3 or x = −1.

What does the discriminant tell you?

D = b² − 4ac. If D > 0 there are two real roots, if D = 0 there is one repeated root, and if D < 0 the roots are complex.

How do you find the vertex of a parabola?

The vertex is at x = −b ÷ 2a; substitute it back to get y. For y = x² − 3x + 2 the vertex is (1.5, −0.25).

What are complex roots?

When D < 0 there is no real solution. The roots are p ± qi, where p = −b ÷ 2a, q = √(−D) ÷ 2|a| and i = √−1.

What if a is 0?

Then the equation is linear, bx + c = 0, with the single solution x = −c ÷ b. The solver asks for a non-zero a.