Skip to content
ToolMug

Quadratic Equation Solver

Enter a, b and c to solve ax² + bx + c = 0. You get the exact roots — simplified square roots and complex roots included — their decimal values, the discriminant, vertex, axis of symmetry and factored form, a step-by-step solution with the quadratic formula, and a graph of the parabola.

Runs in your browser — nothing you enter is uploaded

ax² + bx + c = 0

Coefficients can be whole numbers, decimals or fractions such as 1/2.

Two real roots

x₁

3

x₂

2

Approximately: x₁ ≈ 3, x₂ ≈ 2

Discriminant Δ
1
Vertex
(5/2, -1/4)
Axis of symmetry
x = 5/2

Factored form: (x − 3)(x − 2) = 0

Step by step

  1. 1
    Work out the discriminantΔ = b² − 4ac = (-5)² − 4 × 1 × 6 = 1
  2. 2
    Use the quadratic formulax = (−b ± √Δ) / 2a = (5 ± √1) / 2
  3. 3
    Find the vertex of the parabolax = −b / 2a = 5/2, y = -1/4
Graph of y = ax² + bx + c
32(2.5, -0.25)

How to use

  1. Enter the coefficients a, b and c. Decimals and fractions such as 1/2 are fine.
  2. Read the roots, the discriminant, the vertex and the factored form.
  3. Follow the steps and check the graph, where the roots are the points where the curve meets the x-axis.

Options explained

Discriminant Δ = b² − 4ac
Positive — two different real roots; zero — one repeated root; negative — no real roots but two complex roots.
Exact roots
Square roots are simplified (√72 = 6√2) and common factors cancelled, so x = (−2 ± √12) / 2 is shown as −1 ± √3. Decimals and fractions in a, b and c are cleared first by multiplying the whole equation by the same number, which does not change the roots.
Vertex and axis
The vertex is (−b/2a, c − b²/4a), the turning point of the parabola; the axis of symmetry is the vertical line through it.

Examples

Equation Discriminant Roots
x² − 5x + 6 = 0 1 3 and 2
x² − 4x + 4 = 0 0 2 (repeated)
x² + 2x − 2 = 0 12 −1 ± √3
x² + 2x + 5 = 0 −16 −1 ± 2i
2x² + 3x − 2 = 0 25 1/2 and −2

The quadratic formula

For ax² + bx + c = 0 with a ≠ 0, the roots are x = (−b ± √(b² − 4ac)) / 2a. The ± gives the two roots: one with + and one with −.

Frequently asked questions

What if a = 0?

Then the equation is linear (bx + c = 0) and has one solution, x = −c/b. The solver handles that case too.

When can a quadratic be factored?

Over the rational numbers, exactly when the discriminant is a perfect square. The factored form is shown in that case, e.g. 2x² + 3x − 2 = (2x − 1)(x + 2).

Why are complex roots written with i?

i is the square root of −1. When Δ < 0 the roots are a ± bi, a pair of complex conjugates; the graph does not touch the x-axis.

Privacy

This tool runs entirely in your browser. Your files and text are processed on your device and are never uploaded to our servers.

Related tools