science tinker

Quadratic equation solver

Enter the numbers a, b and c from ax² + bx + c = 0. You get the roots in exact form, the discriminant, the vertex, the factorised and completed-square forms, every step of the quadratic formula, and the graph.

ax² + bx + c = 0

Examples:

The quadratic formula

Any quadratic equation ax² + bx + c = 0 (with a ≠ 0) can be solved with

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

The ± means there are usually two answers: one using +, one using −.

The discriminant tells you how many roots

The part under the square root, Δ = b² − 4ac, is the discriminant:

  • Δ > 0: two different real roots (the graph crosses the x-axis twice). If Δ is a perfect square and a, b, c are whole numbers, the roots are rational and the quadratic factorises.
  • Δ = 0: one repeated root (the graph touches the x-axis at its vertex).
  • Δ < 0: no real roots (the graph never meets the x-axis); the roots are complex numbers involving i = √−1.

Vertex and completing the square

The graph of y = ax² + bx + c is a parabola. Its turning point (vertex) is at x = −b ÷ 2a. Writing the quadratic as a(x − h)² + k, called completing the square, shows the vertex (h, k) directly, and is how the quadratic formula is proved.

Where quadratics turn up

Anything thrown or launched follows a parabola: the height of a ball is h = −4.9t² + ut + h₀ (in metres and seconds). Try the "a throw" example to find when the ball lands, or explore it in the projectile motion simulator.

Questions students ask

What if a is 0?

Then there is no x² term, so it is a linear equation bx + c = 0 with the single answer x = −c ÷ b. The solver tells you this.

Can I enter fractions or decimals?

Yes: type 1/2, 0.5 or even sqrt(2). Exact forms are shown when a, b and c are whole numbers; otherwise you get decimal answers.

What does a surd mean?

A surd is a root that cannot be simplified to a whole number, like √5. Answers such as 1 ± √2 are exact; their decimal versions are only approximations.

More math tools

Know someone who needs this?

It’s free for every student. Send it to your class group chat.

Updated · Free, no sign-up ·

Connected tools

The same idea from another angle, across the site.