Quadratic Equation Solver with Steps

Free quadratic equation solver: enter a, b and c to get exact and decimal roots, the discriminant, vertex, factored form and a graph, with every step shown.

Solve any quadratic equation ax² + bx + c = 0 in one click. This free quadratic formula calculator gives exact roots (surds, fractions or complex numbers), decimals, the discriminant, vertex, factored form and a graph, with the full working shown step by step.

Fractions like 1/2 and negative numbers are fine. Move every term to one side first so the equation equals 0.
Advertisement

The quadratic formula

For ax² + bx + c = 0 (a ≠ 0): −b ± √(b² − 4ac) x = ─────────────────── 2a Discriminant D = b² − 4ac D > 0 → two different real roots D = 0 → one repeated real root D < 0 → two complex roots (a ± bi) Vertex: x = −b / 2a, y = c − b² / 4a

Worked example: 2x² − 4x − 6 = 0

  1. Identify a = 2, b = −4, c = −6.
  2. Discriminant: D = (−4)² − 4(2)(−6) = 16 + 48 = 64.
  3. √64 = 8, so x = (4 ± 8) / 4.
  4. x₁ = 12/4 = 3 and x₂ = −4/4 = −1.
  5. Factored form: 2(x − 3)(x + 1). Vertex at (1, −8).

Other ways to solve a quadratic

Factoring is fastest when the roots are whole numbers. Completing the square turns the equation into vertex form a(x − h)² + k = 0. The quadratic formula always works, which is why this calculator uses it and then simplifies the answer to its exact form.

Advertisement

Frequently asked questions

How do I use the quadratic equation solver?

Rearrange your equation so one side is 0, then enter the coefficients a, b and c. Press Solve to see the roots, discriminant, vertex, factored form, graph and step-by-step working.

What does the discriminant tell you?

The discriminant b² − 4ac tells you how many real solutions there are: positive means two real roots, zero means one repeated root, and negative means two complex roots with no x-intercepts.

Can it solve quadratics with complex roots?

Yes. When the discriminant is negative, the solver gives both complex roots in a ± bi form, exactly where possible, e.g. 1 ± 2i.

Does it give exact answers?

Yes. For whole-number or fraction coefficients it simplifies square roots and fractions, e.g. (3 ± √5)/2, and also shows the decimal values.

What if a = 0?

Then the equation is linear (bx + c = 0), not quadratic. The solver tells you and gives the single solution x = −c/b.

Related tools

Free educational tool by HawkInc. Results are calculated in your browser and rounded for display; check critical work by hand or with a second method.