Skip to content
Contania

Quadratic Equation Calculator

A quadratic equation has x squared as its highest power and is solved with the quadratic formula. Enter a, b and c to see the discriminant and the real roots when they exist.

Your numbers

Result

x1
3
x2
2
Discriminant (Δ)
1
Roots
Two distinct real roots
Quadratic formula
StepDetail
Equation1x² + -5x + 6 = 0
Discriminant b² - 4ac-5² - 4·1·6 = 1
x = (-b ± √Δ) / 2ax1 = 3, x2 = 2
Advertisement

The quadratic formula

For ax² + bx + c = 0, first compute the discriminant Δ = b² - 4ac, then the roots: x = (-b ± √Δ) / 2a. For x² - 5x + 6 = 0: Δ = 25 - 24 = 1, and x = (5 ± 1)/2, giving x1 = 3 and x2 = 2.

What the discriminant tells you

The sign of Δ says how many real roots there are: Δ > 0 gives two distinct roots; Δ = 0 gives one repeated root; Δ < 0 gives no real roots (they are complex). A quick check: the roots add to -b/a and multiply to c/a.

Frequently asked questions

Sources

  • Algebra — the quadratic formula

Embed this calculator

Copy the code and paste it into your site or blog. Credit with a link back to Contania is included, and the height adjusts itself.

<iframe src="https://contania.app/embed/math/quadratic-equation" title="Quadratic Formula Calculator (ax² + bx + c = 0)" width="100%" height="720" loading="lazy" style="border:1px solid #e5e0d8;border-radius:12px;max-width:640px"></iframe>
<script>window.addEventListener("message",function(e){if(e.data&&e.data.type==="contania:embed-height"){var f=document.querySelector('iframe[src="https://contania.app/embed/math/quadratic-equation"]');if(f){f.style.height=e.data.height+"px"}}});</script>

Related calculators