AskANumber.com

Quadratic Equation Solver

The defaults, x² − 3x + 2 = 0, factor cleanly: the discriminant is 1, so there are two real roots, x = 2 and x = 1. Enter the coefficients a, b, and c of ax² + bx + c = 0 and get the roots from the quadratic formula, along with the discriminant and the vertex of the parabola.

Roots
x₁ = 2.000, x₂ = 1.000
Two real roots
Discriminant
1.00
Vertex x
1.500
Vertex y
-0.250
Two distinct real roots
Discriminant b²−4ac = 1.00 > 0, so the parabola crosses the x-axis at two points.
y = 1x² + -3x + 2
Discriminant: 1.00 · two real roots
021(1.5, -0.25)
Inputs
x² + x + = 0
The discriminant predicts the roots
b² − 4ac = 1.00 > 0, so there are two distinct real roots where the parabola crosses the x-axis.
The vertex is the minimum
Because a > 0 the parabola opens upward, so its vertex is the lowest point on the curve.
Ask a follow-up
Uses your inputs above
x₁ = 2.000, x₂ = 1.000 roots. Want to try a variation?

The math

Reviewed 2026
Formula
x = (−b ± √(b² − 4ac)) / 2a

Related calculators

Example: how quadratic is calculated

Step-by-step with default inputs

Suppose you put the default values into Quadratic Equation Solver:

a
1
b
-3
c
2

Plug those into the formula x = (−b ± √(b² − 4ac)) / 2a and the result is:

Roots
x₁ = 2.000, x₂ = 1.000

How to calculate quadratic by hand

  1. Compute the discriminant D = b² − 4ac: with a = 1, b = −3, c = 2, D = 9 − 8 = 1.
  2. Take its square root: √1 = 1 (if D is negative, the roots are complex).
  3. Apply x = (−b ± √D) / 2a: (3 + 1) ÷ 2 = 2 and (3 − 1) ÷ 2 = 1.
  4. Check by substitution: 2² − 3·2 + 2 = 0 and 1² − 3·1 + 2 = 0.
  5. For the vertex, use x = −b/2a = 1.5 and y = c − b²/4a = −0.25.

How does the quadratic equation solver work?

The solver applies the quadratic formula x = (−b ± √(b² − 4ac)) / 2a, the closed-form solution obtained by completing the square on ax² + bx + c = 0. It first evaluates the discriminant D = b² − 4ac, which decides the character of the roots: D > 0 gives two distinct real roots, D = 0 gives one repeated real root at x = −b/2a, and D < 0 gives a complex-conjugate pair, which the calculator writes out as x = re ± im·i rather than reporting no solution. It also reports the parabola's vertex — x = −b/2a and y = c − b²/4a — the turning point on the axis of symmetry midway between real roots. The formula requires a ≠ 0; with a = 0 the equation is linear, not quadratic.

Last reviewed July 2, 2026 · Editorial policy

Frequently asked questions

What does the discriminant tell you?

How many and what kind of roots exist, before you solve anything. D = b² − 4ac: positive means two distinct real roots, zero means one repeated root, negative means a complex-conjugate pair. For x² − 3x + 2, D = 1, so two real roots.

Can a quadratic equation have no solution?

Not over the complex numbers — every quadratic has exactly two roots counting multiplicity. When the discriminant is negative there are no real solutions, meaning the parabola never crosses the x-axis, and the calculator reports the complex pair x = re ± im·i instead.

What happens if a = 0?

The equation stops being quadratic — the x² term vanishes, leaving the linear equation bx + c = 0 with the single solution x = −c/b. The quadratic formula itself breaks down at a = 0 because it divides by 2a.

What is the vertex of the parabola?

The turning point — the minimum when a > 0, the maximum when a < 0. Its x-coordinate, −b/2a, is also the axis of symmetry halfway between the two real roots; for the defaults that is x = 1.5, y = −0.25.

How accurate is this quadratic calculator?

The math is deterministic — the same inputs always produce the same output, and the formula is shown above. Accuracy of the answer for your situation depends on how well your inputs match reality and how well the formula models the question.

How do I share my result?

Hit Share at the top of the page. Every input you change is encoded in the URL, so a permalink reproduces exactly what you see. No account needed.