ZapKit

Quadratic Equation Solver

Enter the coefficients a, b and c to solve ax² + bx + c = 0, with the discriminant, the vertex and the steps of the quadratic formula.

What is a quadratic equation?

A quadratic equation has the form ax² + bx + c = 0, where the highest power of x is 2. Its graph is a parabola, and its solutions, called roots, are where that curve crosses the x-axis.

Quadratics appear throughout school maths and physics: projectile motion, areas, profit maximisation and optimisation problems all lead to them. This solver applies the quadratic formula, reports the discriminant so you know what kind of roots to expect, gives the vertex of the parabola, and shows the working so you can follow each step.

How to use the Quadratic Equation Solver

  1. 1.Write the equation as ax² + bx + c = 0

    Move everything to one side first, and note the signs.

  2. 2.Enter a, b and c

    Negative numbers and decimals are fine.

  3. 3.Read the roots

    Two real roots, one repeated root, or a pair of complex roots.

Example: 2x² − 4x − 6 = 0

With a = 2, b = −4 and c = −6:

Discriminant
(−4)² − 4 × 2 × (−6) = 64
Roots
x₁ = 3, x₂ = −1
Vertex
(1, −8)

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

D = 64 is a perfect square, so both roots are whole numbers: (4 ± 8) ÷ 4.

What the discriminant tells you

The discriminant D = b² − 4ac decides the kind of answer before you solve. If D is positive there are two different real roots, if it's zero there's one repeated root, and if it's negative the roots are a complex pair a ± bi.

The roots come from the quadratic formula x = (−b ± √D) ÷ 2a. The vertex, at x = −b ÷ 2a, is the turning point of the parabola: its lowest point when a is positive and its highest when a is negative.

Frequently asked questions

What if a is 0?

Then it isn't quadratic. The solver treats it as the linear equation bx + c = 0.

What are complex roots?

When D is negative there's no real solution; the roots involve i, the square root of −1, and the parabola doesn't cross the x-axis.

How do I enter x² − 5x + 6 = 0?

a = 1, b = −5, c = 6. The roots are 2 and 3.

Are decimal answers exact?

They're shown to 8 decimal places; irrational roots like √2 are rounded.

More Utilities tools