tooldeb Online Tools
Categories
Finance & Investing Interest, savings, returns, and inflation. Loans & Property Mortgages, repayment, DSR/DTI/LTV, and jeonse. Tax & Payroll Take-home pay, severance, insurance, and taxes. Shopping & Pricing Discounts, tips, unit price, and margins. Health & Fitness Body metrics, nutrition, and training. Math Percentages, fractions, algebra, and sequences. Geometry Area, volume, and surface of plane and solid shapes. Statistics & Probability Averages, spread, combinations, and odds. Unit Conversion Length, weight, temperature, pressure, and more. IT & Digital Data size, screens, color, and network speed. Engineering & Electronics Circuits, resistance, PCB, and signals. Date & Time Ages, D-day, date math, and time zones. Home & Interior Paint, tile, wallpaper, flooring, and concrete. Automotive Fuel cost, economy, tires, and vehicle tax. Everyday Bills, delivery, photos, and odds and ends.
EN
한국어 English

Quadratic Formula Calculator

Solve ax² + bx + c = 0 for x using the quadratic formula, with the discriminant and both roots shown.

Inputs
Root 1 (x)
3
Root 2 (x)
2
Discriminant (D)
1
Roots are rounded for display; very close values may show tiny floating-point differences. When D < 0 the equation has no real roots.

How the quadratic formula works

Any equation of the form ax² + bx + c = 0 (with a ≠ 0) can be solved directly with the quadratic formula. The discriminant D tells you how many real roots to expect before you even compute them.

D = b² − 4ac x = ( −b ± √D ) / 2a
  • a, b, c — the equation's coefficients
  • D — discriminant = b² − 4ac
  • x — the root(s) solved for

More detail

What the discriminant tells you

D > 0 gives two distinct real roots. D = 0 gives one repeated real root (a double root, where the parabola just touches the x-axis). D < 0 gives no real roots — the two solutions are a complex-conjugate pair, since you'd need the square root of a negative number.

Shortcut. For a = 1, if you can spot two numbers that multiply to c and add to −b, you've factored it without the formula — e.g. x² − 5x + 6 factors as (x−3)(x−2), matching the roots below.

Frequently asked questions

What are the roots of x² − 5x + 6 = 0?

D = (−5)² − 4(1)(6) = 1, which is positive, so there are two real roots: x = 3 and x = 2. Enter a=1, b=−5, c=6 above to see the same result.

What does a discriminant of 0 mean?

D = b² − 4ac = 0 means the equation has exactly one repeated root (a double root). For example x² − 4x + 4 = 0 has D = 0 and a single root x = 2.

What happens when the discriminant is negative?

There are no real solutions — only a pair of complex-conjugate roots, since the formula would require the square root of a negative number. For example x² + 1 = 0 has D = −4 < 0.

What if a = 0?

The equation is no longer quadratic — it's linear (bx + c = 0), so this calculator solves x = −c/b instead. If b is also 0, the equation is either an identity or has no solution.

Related calculators

Browse all Math calculators