Quadratic roots calculator

Solve ax² + bx + c = 0, including complex roots. Enter your values and see the formula, your numbers plugged in and every step of the working. Free, no sign-up, SI and imperial units.

Formula

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

Inputs

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

Worked example: x² − 3x + 2 = 0

  • a (x² coefficient) a = 1
  • b (x coefficient) b = -3
  • c (constant) c = 2
  1. Δ = b² − 4ac = (-3)² − 4 × 1 × 2 = 1
  2. x = (3 ± √1) ÷ 2 = (3 ± 1) ÷ 2
  3. x₁ = 2, x₂ = 1
  4. Check: x₁ + x₂ = −b/a = 3, x₁·x₂ = c/a = 2

Answer: Root 1: 2; Root 2: 1; Discriminant Δ = 1

More engineering maths calculators

Engineering Maths formula sheet · All calculators · Practice problems