Quadratic Equation Solver

Enter a, b and c to get the roots in exact surd form and as decimals, the discriminant, factorisation, vertex and a live graph of the parabola.

Free, no sign-upRuns in your browserUpdated November 2026
—
Try:

Decimals and fractions such as 1/2 are allowed.

Roots
—
Discriminant D
—
Vertex (h, k)
—
Axis of symmetry
—
Sum · product of roots
—
Graph of y = ax² + bx + c
Step-by-step working

    How to use the Quadratic Equation Solver

    1. Write your equation in the standard form ax² + bx + c = 0, with everything moved to one side.
    2. Enter the coefficients a, b and c. Keep the signs: for x² − 5x + 6 = 0, b = −5. Decimals and fractions like 1/2 work.
    3. Read the roots in exact surd form and as decimals, with the discriminant and the nature of the roots. Everything updates as you type.
    4. Follow the steps, the factorisation (for rational roots), the vertex and the graph to check your own working.

    The quadratic formula

    A quadratic equation has the standard form ax² + bx + c = 0 with a ≠ 0. Its roots are given by the quadratic formula, which Indian textbooks often call Sridharacharya's formula after the mathematician who described the method of completing the square. It is the method used in the Quadratic Equations chapter of NCERT Class 10.

    x = (−b ± √(b² − 4ac)) / 2a Discriminant D = b² − 4ac

    The calculator works with exact fractions. Decimal or fractional coefficients are first turned into whole numbers by multiplying through, which does not change the roots. The surd is then simplified, so √68 becomes 2√17, and any common factor is cancelled. You get the answer in the form your teacher expects, such as (−3 ± √17)/4, along with decimals.

    Nature of the roots

    DiscriminantNature of rootsGraph
    D > 0 and a perfect squareTwo distinct real roots, both rationalCrosses the x-axis twice
    D > 0, not a perfect squareTwo distinct real irrational roots (conjugate surds)Crosses the x-axis twice
    D = 0Two equal real roots, x = −b/2aTouches the x-axis at the vertex
    D < 0No real roots; two complex conjugate rootsDoes not meet the x-axis

    The rational/irrational split assumes a, b and c are rational, which is always true for the numbers you type here. Class 10 answers for D < 0 say "no real roots". Class 11 introduces i = √−1 and writes the complex roots, as shown above.

    Worked example 1: irrational roots

    Solve 2x² + 3x − 1 = 0. Here a = 2, b = 3, c = −1.

    • D = 3² − 4(2)(−1) = 9 + 8 = 17. Since 17 > 0 and is not a perfect square, the roots are real, distinct and irrational.
    • x = (−3 ± √17) / 4, so x ≈ 0.2808 or x ≈ −1.7808.
    • Check: the sum of the roots is −b/a = −3/2 and the product is c/a = −1/2.

    Worked example 2: factorisation

    Solve 6x² − 5x − 6 = 0. D = 25 + 144 = 169 = 13², a perfect square, so the quadratic factorises. Split the middle term by finding two numbers with product 6 × (−6) = −36 and sum −5. They are −9 and 4.

    6x² − 9x + 4x − 6 = 3x(2x − 3) + 2(2x − 3) = (3x + 2)(2x − 3)

    So x = 3/2 or x = −2/3. The calculator shows these splitting numbers automatically whenever the roots are rational.

    Vertex, axis and the graph

    The graph of y = ax² + bx + c is a parabola. It opens upwards if a > 0 and downwards if a < 0. Its turning point, the vertex, is at

    h = −b / 2a, k = −D / 4a (vertex form: y = a(x − h)² + k)

    The vertical line x = h is the axis of symmetry, and the two real roots always sit the same distance either side of it. For 2x² + 3x − 1 the vertex is (−3/4, −17/8), which is the minimum value of the expression. To plot the graph alongside other curves, use the graphing calculator.

    Common mistakes

    • Dropping the sign of b or c. In x² − 5x + 6 = 0, b is −5, so −b is +5.
    • Dividing only √D by 2a. The whole numerator −b ± √D is divided by 2a.
    • Not writing the equation in standard form first. For x² = 4x − 3, move every term to one side: x² − 4x + 3 = 0.
    • Forgetting a ≠ 0. If a = 0 the equation is linear, bx + c = 0, with a single root −c/b. The calculator switches to this case automatically.

    Exam tips

    • "Find k for equal roots" means set D = 0 and solve for k. "Real roots" means D ≥ 0.
    • Use α + β = −b/a and αβ = c/a to form a new equation from given roots: x² − (α + β)x + αβ = 0.
    • For JEE, remember the roots of a quadratic with rational coefficients come in conjugate pairs: if 2 + √3 is a root, so is 2 − √3.
    • Pairs of linear equations need a different method. Try the system of equations solver.

    Frequently asked questions

    How do you solve a quadratic equation using the formula?
    Write the equation as ax² + bx + c = 0, work out D = b² − 4ac, then use x = (−b ± √D)/2a. The + sign gives one root and the − sign gives the other. For x² − 5x + 6 = 0, D = 1, so x = (5 ± 1)/2, giving 3 or 2.
    What does the discriminant tell you?
    D = b² − 4ac decides the nature of the roots. D > 0 gives two distinct real roots, rational if D is a perfect square. D = 0 gives two equal real roots. D < 0 gives no real roots, only a pair of complex conjugates.
    What if the discriminant is negative?
    The parabola does not cross the x-axis, so there are no real roots. In complex numbers the roots are (−b ± i√(−D))/2a. For x² + 2x + 5 = 0, D = −16 and x = −1 ± 2i.
    Why is the quadratic formula called Sridharacharya's formula?
    Indian textbooks credit the method of solving quadratics by completing the square to the mathematician Sridharacharya. The formula x = (−b ± √(b² − 4ac))/2a is what that method gives for the general equation.
    When can a quadratic be factorised?
    A quadratic with rational coefficients factorises into rational linear factors exactly when its discriminant is a perfect square. Then you can split the middle term into two numbers whose product is ac and whose sum is b.
    What happens if a = 0?
    The x² term disappears, so it is not a quadratic. It becomes the linear equation bx + c = 0 with the single root x = −c/b. If b is also 0, there is no solution unless c = 0, in which case every x works.
    How do you find the vertex of a parabola?
    The vertex is at x = −b/2a. Substitute back to get y, or use k = −D/4a. For y = 2x² + 3x − 1 the vertex is (−3/4, −17/8), and it is a minimum because a > 0.

    Last reviewed November 2026. Results are estimates for information only — see our disclaimer.