Quadratic Equation Solver

Enter a, b and c from ax² + bx + c = 0. You get both roots, real or complex, and the working.

x² + x + = 0
Roots
–
Discriminant
–
Vertex
–
Sum of roots
–
Product of roots
–

Steps

    Your data stays in your browser

    This tool runs on JavaScript inside your browser. Nothing you add here is uploaded to our server, so it works for confidential data too. How we handle data

    • No upload
    • Processed on your device
    • No account

    Before you enter a, b and c

    1. Rearrange your equation so one side is 0, in the form ax² + bx + c = 0.
    2. Type the values of a, b and c. Use a minus sign for negative values.
    3. Read the roots and the discriminant, which tells you what kind of roots you have.
    4. Follow the numbered steps to see the quadratic formula worked through.

    What is the quadratic formula?

    x = (−b ± √(b² − 4ac)) / 2a. For x² − 5x + 6 = 0, a = 1, b = −5 and c = 6. The discriminant is 25 − 24 = 1, so x = (5 ± 1) / 2, giving x = 2 or x = 3. You can check by putting each root back into the equation: 4 − 10 + 6 = 0 and 9 − 15 + 6 = 0.

    What does the discriminant tell me?

    • D > 0: two different real roots. The parabola crosses the x-axis twice.
    • D = 0: one repeated real root. The parabola touches the x-axis at its vertex.
    • D < 0: no real roots, but two complex roots of the form p ± qi. The parabola never meets the x-axis.

    How do I check my answer without solving again?

    Use the sum and product of roots. For ax² + bx + c = 0, the roots add up to −b/a and multiply to c/a. In x² − 5x + 6 = 0, 2 + 3 = 5 and 2 × 3 = 6, both matching. The solver shows these two values so you can spot mistakes in your own working.

    For other maths homework, use the LCM and HCF Calculator, the Mean, Median, Mode Calculator, or the scientific Online Calculator for square roots and powers.

    Questions people ask

    What happens if a is 0?

    Then it isn't a quadratic. The equation becomes bx + c = 0, and the solver gives the single answer x = −c/b.

    Can it solve equations with complex roots?

    Yes. When the discriminant is negative, the roots are shown as p ± qi, where i is the square root of −1.

    What is the vertex of a quadratic?

    The turning point of the parabola, at x = −b/2a. It is the lowest point when a is positive and the highest when a is negative.

    Can I enter decimals and fractions?

    Decimals, yes. For fractions, type the decimal value, or multiply the whole equation by the denominator first to get whole numbers, which also gives you the exact form.

    Why is there no exact form for some answers?

    The exact square root form appears only when a, b and c are whole numbers and the roots aren't already whole or simple decimals.

    How do I put my equation into ax² + bx + c = 0 form?

    Move every term to one side so the other side is 0. For example, x² = 3x + 4 becomes x² − 3x − 4 = 0, so a = 1, b = −3 and c = −4.

    Related tools