Skip to content
M2TOOLKIT

Quadratic Equation Solver

Enter a, b and c to solve ax² + bx + c = 0 — including equations with complex roots.

  • Free
  • No sign-up
  • Nothing is sent or stored

Result

Two real roots
x₁ = 2, x₂ = 1
Discriminant (b² − 4ac)
1
Vertex
(1.5, -0.25)
Axis of symmetry
x = 1.5
Opens
Upward (minimum)
How it was calculated
  1. 1x² − 3x + 2 = 0
  2. x = (−b ± √(b² − 4ac)) ÷ 2a
  3. = (3 ± √1) ÷ 2

The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved.

How to use the Quadratic Equation Solver

  1. Write your equation in the form ax² + bx + c = 0.
  2. Enter the coefficients a, b and c (use negative numbers where needed).
  3. Read the roots, then the discriminant and vertex below.

What does this tool do?

The quadratic formula x = (−b ± √(b² − 4ac)) ÷ 2a solves every quadratic equation. The part under the square root, the discriminant, tells you what kind of answer to expect: positive means two real roots, zero means one repeated root, and negative means two complex roots.

The solver also gives the vertex — the turning point of the parabola — and whether the curve opens upward or downward, which is handy for graphing and optimisation problems.

Why use it?

  • Handles complex roots, not just real ones.
  • Shows the discriminant and vertex at the same time.
  • Falls back to a linear solve if a = 0.

Example

For x² − 3x + 2 = 0: D = 9 − 8 = 1, so x = (3 ± 1) ÷ 2, giving x = 2 and x = 1. The vertex is at (1.5, −0.25).

The formula

x = (−b ± √(b² − 4ac)) ÷ 2a
Discriminant D = b² − 4ac
Vertex = (−b ÷ 2a, f(−b ÷ 2a))

Privacy

The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved. There's no account to create and nothing to install.

Frequently asked questions

What if a is 0?

Then it isn't a quadratic. The solver treats it as the linear equation bx + c = 0 and solves that instead.

What does a complex root mean?

The parabola never crosses the x-axis. The roots are written as p ± qi, where i is the square root of −1.

Last reviewed by the M2Toolkit team.

Other tools people use alongside the quadratic equation solver.