x² Quadratic Equation Solver

Enter a, b and c from ax² + bx + c = 0 and see the roots worked out step by step with the quadratic formula — including complex roots when the discriminant is negative.

No ratings yet — be the first

Enter details

Quadratic ax² + bx + c = 0
x = (-b ± √(b² - 4ac))/(2a)
x² +x += 0
  • a (coefficient of x²)
  • b (coefficient of x)
  • c (constant term)

Log in or create a free account to save your inputs and results, so you don't have to enter them again next time.🔒 No spam, ever. We never sell or share your details, and you can delete your history or account at any time. Privacy policy

Fill in the details and click Calculate to see your results.

Rate this calculator

Was it useful? A quick star rating helps others — and you can leave a comment too.
Rate it: ★ ★ ★ ★ ★

📘 About the Quadratic Roots Calculator

A quadratic equation has the form ax² + bx + c = 0. It can have two real roots, one repeated root or two complex roots, depending on the discriminant b² − 4ac.

Enter a, b and c. The solver applies the quadratic formula, shows every step, gives exact (surd) and decimal answers, complex roots as p ± qi, the factored form, the vertex and the sum and product of the roots.

🧮 Formula

Where

  • a,b,c = coefficients
  • Δ = discriminant
  • real part = -b/(2a)
  • imaginary magnitude = √(-Δ)/(2|a|) when Δ < 0
x = (-b ± √Δ)/(2a), where Δ = b² - 4ac.

✏️ Worked examples

x² − 5x + 6 = 0

You enter
a (coefficient of x²)1
b (coefficient of x)-5
c (constant term)6
You get
Rootsx = 3 and x = 2
Equationx² − 5x + 6 = 0
Discriminant Δ = b² − 4ac1
Nature of rootsTwo distinct real roots (Δ > 0)
Factored form(x − 3)(x − 2)
Vertex (turning point)(2.5, -0.25) — minimum
Sum and product of rootssum = −b/a = 5, product = c/a = 6

x = 3 and x = 2.

x² + 2x + 5 = 0

You enter
a (coefficient of x²)1
b (coefficient of x)2
c (constant term)5
You get
Rootsx = -1 + 2i and x = -1 − 2i
Equationx² + 2x + 5 = 0
Discriminant Δ = b² − 4ac-16
Nature of rootsTwo complex (imaginary) roots (Δ < 0)
Exact formx = (-2 ± i√16) ÷ 2
Factored formDoes not factor over real numbers
Vertex (turning point)(-1, 4) — minimum
Sum and product of rootssum = −b/a = -2, product = c/a = 5

x = -1 + 2i and x = -1 − 2i.

2x² − 7x + 3 = 0

You enter
a (coefficient of x²)2
b (coefficient of x)-7
c (constant term)3
You get
Rootsx = 3 and x = 0.5
Equation2x² − 7x + 3 = 0
Discriminant Δ = b² − 4ac25
Nature of rootsTwo distinct real roots (Δ > 0)
Factored form2(x − 3)(x − 0.5)
Vertex (turning point)(1.75, -3.125) — minimum
Sum and product of rootssum = −b/a = 3.5, product = c/a = 1.5

x = 3 and x = 0.5.

🧭 How to use this calculator

What you enter

  • a (coefficient of x²)
  • b (coefficient of x)
  • c (constant term)

What you get

  • Root 1 / Real Part
  • Root 2 / Real Part
  • Imaginary Magnitude
  • Discriminant

💡 Root types

  • Positive discriminant: two real roots.
  • Zero discriminant: one repeated real root.
  • Negative discriminant: complex conjugate roots.

💡 Requirement

  • a must be non-zero.
  • Complex roots are represented by real part plus or minus the imaginary magnitude.

❓ Frequently asked questions

What is the quadratic formula?

x = [−b ± √(b² − 4ac)] ÷ 2a, for ax² + bx + c = 0 with a ≠ 0.

What does the discriminant tell me?

b² − 4ac > 0: two real roots; = 0: one repeated root; < 0: two complex roots.

Can a quadratic have complex roots?

Yes, when the discriminant is negative: x = p ± qi. The calculator shows them.

How do I factor a quadratic from its roots?

If the roots are r₁ and r₂, ax² + bx + c = a(x − r₁)(x − r₂).