Quadratic Equation Solver

Solve ax² + bx + c = 0 with exact roots in surd or complex form, plus the discriminant, vertex, factored form and a graph.

Runs in your browser. Nothing is uploaded.

Solutions

–

How to use the Quadratic Equation Solver

  1. Enter the coefficients a, b and c of ax² + bx + c = 0. Fractions like 1/2 and decimals work.
  2. The roots appear straight away, in exact form.
  3. Read the discriminant, vertex, factored form and other details below.
  4. Drag or zoom the graph to see where the parabola crosses the x-axis.

Solve any quadratic exactly

A quadratic equation has the form ax² + bx + c = 0. Enter the three coefficients and the solver gives both roots straight away, in exact form: whole numbers or fractions when the roots are rational, simplified square roots when they are irrational, and complex numbers when there are no real solutions.

The quadratic formula

Every quadratic can be solved with the formula x = (−b ± √(b² − 4ac)) ÷ 2a. The part under the root, b² − 4ac, is the discriminant. The solver shows it so you can see why the roots look the way they do, and it simplifies the square root, for example √72 = 6√2, then reduces the whole expression.

More than the roots

  • Factored form: when the roots are rational, the equation is written as a product such as 2(x + 1)(x − 3).
  • Vertex: the turning point of the parabola, which is its minimum when a > 0 and its maximum when a < 0.
  • Axis of symmetry: the vertical line through the vertex.
  • y-intercept: where the graph crosses the y-axis, at (0, c).
  • Sum and product of the roots: −b/a and c/a, useful for checking answers.

See it on a graph

The graph draws the parabola with its roots and vertex marked. Drag to move it, scroll or pinch to zoom, and use the keyboard: arrow keys to pan and + or − to zoom.

Exact arithmetic

The solver works with exact fractions rather than rounded decimals, so coefficients like 1/3 or 0.25 give exact answers.

Private

Everything runs in your browser.

Frequently asked questions

What does the discriminant tell me?

The discriminant b² − 4ac decides the kind of roots. If it is positive there are two real roots, if it is zero there is one repeated root, and if it is negative the roots are complex (no real solutions; the parabola doesn't touch the x-axis).

Why are some answers written with √?

When the discriminant isn't a perfect square, the roots are irrational. The solver gives them exactly, simplified, such as 1 ± √5, and lists decimal values too.

What are complex roots?

When the discriminant is negative, the square root of a negative number appears. The roots are then written with i, the square root of −1, for example −1 ± 2i.

What if a is 0?

Then the equation is linear, bx + c = 0, and the solver gives its single solution x = −c/b.

Is anything sent to a server?

No. The equation is solved and graphed in your browser.

Tutorials