Quadratic Equation Calculator — Free Online | EverydayCalcSkip to main content
everydaycalc.

Find calculators and file viewers

Press Esc to close · / or Ctrl+K to open

Home›Math & Scientific›Quadratic Equation Calculator
Math & Scientific

Quadratic Equation Calculator

Solve ax² + bx + c = 0 with the discriminant, real or complex roots and symmetry axis.

✦ INSTANT CALCULATION

Quadratic Equation Calculator

YOUR RESULT
—

ⓘ Calculated locally in your browser. Results depend on the values and units you enter.

Interactive mathematical graph

The axes, points and dimensions are recalculated from the values you enter.

How this calculator works

For a nonzero a, the discriminant D = b² − 4ac determines the root type. D > 0 yields two real roots, D = 0 gives a repeated real root, and D < 0 yields complex conjugate roots. Numerically stable real-root evaluation reduces cancellation.

Formula and reasoning

D = b² − 4ac; x = (−b ± √D) ÷ (2a)

  1. 1. Start with the measurements
    Coefficient a (x²)1Coefficient b (x)-3Constant c2
  2. 2. Substitute into the formula

    D = (-3)² − 4 × 1 × (2)

  3. 3. Check the computed answer

    Equation roots1 ; 2

Worked example

For x² − 3x + 2 = 0, the discriminant is 1 and the solutions are x = 1 and x = 2.

Frequently asked questions

What if the discriminant is negative?

Both complex conjugate roots are shown in a + bi notation.

Can a equal zero?

No. If a = 0 the equation is linear, not quadratic.

Results are informational and assume the stated inputs and formulas. Double-check critical financial or engineering decisions with a qualified professional.

Add this calculator to your website

Share a working calculator on your blog or website. Choose a fixed size or let the height fit the content.

Fixed height

Works on websites that accept iframe HTML.

Responsive height

Automatically adjusts the height. Your website must allow scripts.

Open calculator preview ↗

Powered by EverydayCalc