Quadratic equation solver

Find real or complex roots of ax² + bx + c = 0 using a numerically stable method.

Enter values

Start with the example below, or enter your own values.

How it works

The discriminant tells you whether two real roots, a repeated root or a complex conjugate pair exists.

Try an example

Coefficient a: 1; Coefficient b: -5; Coefficient c: 6. The form starts with these values; change them to explore your own case.

Example result: x₁ = 3; x₂ = 2

  1. Discriminant D = b² − 4ac = 1
  2. Use the cancellation-resistant quadratic formula.

Learn more in Algebra tools and worked examples.

Results are calculated locally. Floating-point tools provide numerical approximations, not formal proof certificates.