Quadratic Equation Calculator with Steps

Solve ax² + bx + c = 0 using the discriminant and quadratic formula, including repeated, real and complex roots.

Free learning toolValidated inputs and visible working
Roots are the graph's horizontal crossingsThe discriminant predicts whether a parabola crosses twice, touches once or misses the real axis.
YOUR RESULT

Your quadratic roots and discriminant

Enter your values

Choose an example or type the known values, then calculate to see the answer and working.

    What the roots of a quadratic represent

    A quadratic equation contains a non-zero x-squared term and can have two real roots, one repeated real root or a pair of complex roots. This calculator evaluates the discriminant before applying the quadratic formula. That sequence explains the type of answer instead of displaying roots without context. Enter the signed coefficients from standard form ax² + bx + c = 0.

    When a second-degree equation needs this solver

    Use this page after moving every term to one side and collecting like powers of x. It is useful when factorisation is not obvious or when you want to verify factored roots. The leading coefficient a cannot be zero. If the course has not introduced complex numbers, a negative discriminant should be interpreted as no real roots rather than copied without explanation.

    Coefficients, discriminants and two branches

    Standard form controls the coefficients

    The equation must equal zero before a, b and c are identified. Moving a term across equality changes its sign. A missing x term means b = 0; it must not shift the position of c.

    The discriminant is evidence

    A positive discriminant gives two distinct real roots, zero gives one repeated root and a negative value gives complex roots. Checking D first catches many sign and coefficient errors.

    Both formula branches matter

    The plus-minus symbol represents two calculations when the square-root term is non-zero. Reporting only the plus branch loses a root and may miss a second intercept or valid context value.

    Quadratic-formula errors that change the roots

    Quadratic Equation Calculator error check
    MistakeWhy it failsBetter check
    Entering b without its signFor x² - 5x + 6, b is -5, not 5.Read coefficients from standard form and include every sign.
    Forgetting the entire denominatorThe expression divides the complete numerator by 2a.Use brackets around -b ± √D before dividing.
    Rejecting a repeated rootWhen D = 0, both branches produce the same value, which is still a valid root.Report it as one repeated root and verify it by substitution.

    Worked example: Solve x² - 5x + 6 = 0

    Use a = 1, b = -5 and c = 6 from the standard-form equation.

    Prediction first

    Estimate the sign, scale, range or likely form of the answer before calculating. A prediction makes an input error easier to notice.

    1. Step

      Calculate D = (-5)² - 4(1)(6) = 25 - 24 = 1.

    2. Step

      Substitute into the formula: x = (5 ± √1) ÷ 2.

    3. Step

      The two branches give x = (5 + 1) ÷ 2 = 3 and x = (5 - 1) ÷ 2 = 2.

    4. Step

      Check by factorisation or substitution: (x - 2)(x - 3) expands to x² - 5x + 6.

    Quadratic Equation Calculator questions

    Should I factorise first?

    Factorisation is often faster when integer factors are visible. The quadratic formula is general and provides a useful independent check.

    What does a negative discriminant mean?

    The graph has no real x-intercepts. The calculator reports complex roots using i, subject to the learner's course scope.

    Can the roots be rounded?

    Keep exact surd or fractional form when required. If a decimal is needed, round only the final roots to the stated precision.

    Connect these roots to graphs and factors

    The result points to related practice, but the best next step depends on what the learner could explain without help.

    Explore OpenSchoolbag

    Choose a page and go there directly.

    Explore learningChoose a learning path
    Quick navigationGo deeper into OpenSchoolbag

    Explore

    Education magazineResource libraryLearning collections

    Plan and practise

    Study plannerMaths practice testSearch the site

    OpenSchoolbag

    Frequently asked questionsAbout the siteEditorial policyContactView the full directory