Skip to main content

Quadratic Equation Solver

  • Runs in your browser: what you type is not uploaded
  • Free, no sign-up
  • Formula and a worked example below

About Quadratic Equation Solver

A quadratic equation solver finds the roots (solutions) of ax² + bx + c = 0 using the quadratic formula, and reports the discriminant that tells you how many real roots exist.

Quadratics model projectile paths, areas, optimisation and many physics and engineering relationships, so solving them quickly is a common need.

Formula

x = (−b ± √(b² − 4ac)) / (2a)
  • a — coefficient of x² (must not be 0)
  • b — coefficient of x
  • c — the constant term

The discriminant D = b² − 4ac: if D > 0 there are two real roots, if D = 0 one repeated root, and if D < 0 no real roots (the roots are complex).

Quadratic Equation Solver: worked example

x² − 3x + 2 = 0 (a = 1, b = −3, c = 2)

  1. Discriminant D = b² − 4ac = (−3)² − 4 × 1 × 2 = 9 − 8 = 1.
  2. D > 0, so there are two real roots: x = (3 ± √1) ÷ 2.
  3. x₁ = (3 + 1) ÷ 2 = 2 and x₂ = (3 − 1) ÷ 2 = 1.

Answer: x = 2 or x = 1. Check: 2² − 3 × 2 + 2 = 0.

How to use the Quadratic Equation Solver

  1. Enter the coefficients a, b and c from your equation ax² + bx + c = 0.
  2. Read the discriminant to see how many real solutions to expect.
  3. Read the root(s); the vertex and axis of symmetry describe the parabola's shape.

Good to know

  • If a = 0 the equation is linear, not quadratic, and the quadratic formula does not apply.
  • The discriminant's sign alone tells you whether the roots are real and distinct, real and equal, or complex.
  • The two roots are symmetric about the vertex line x = −b / (2a).

Frequently asked questions about the Quadratic Equation Solver

What is the discriminant?

It is b² − 4ac, the expression under the square root. Its sign reveals whether there are two real roots, one repeated real root, or no real roots.

What happens when the discriminant is negative?

There are no real solutions; the parabola does not cross the x-axis. The roots are a pair of complex conjugates.

Can I always use the quadratic formula?

Yes, for any quadratic with a ≠ 0. Factoring or completing the square can be faster in simple cases, but the formula always works.