Quadratic Equation Solver

Type the numbers a, b and c of your equation. Use negative numbers for minus signs, for example x² − 5x + 6 = 0 is a = 1, b = -5, c = 6.

x² +
x +
= 0

Solution

Two real solutions (D > 0).

x₁ = 2, x₂ = 3

Exact: x = 3, x = 2

Discriminant
D = 1
Factored form
(x - 3)(x - 2) = 0
Vertex of the parabola
(2.5, -0.25)
Axis of symmetry
x = 2.5

Steps

  1. The equationx² - 5x + 6 = 0
  2. Coefficientsa = 1, b = -5, c = 6
  3. DiscriminantD = b² - 4ac = (-5)² - 4 × 1 × 6 = 1
  4. Quadratic formulax = (-b ± √D) / 2a = (5 ± √1) / 2

Everything runs in your browser. Your data never leaves your device.

What this solver does

Type the three coefficients of a quadratic equation ax² + bx + c = 0 to solve it instantly, with every step shown the way a teacher would write it. You get the discriminant, the substituted quadratic formula and the solutions as decimals. For whole-number coefficients you also get exact answers: fractions like −1/2, simplified square roots like −1 ± √3, and complex roots like −1 ± 2i. When the roots are rational the factored form is shown too.

How to use it

  1. Write your equation in the form ax² + bx + c = 0, moving every term to one side first.
  2. Type a, b and c. Use negative numbers for minus signs.
  3. Read the solution, the exact form and the steps.

Example

For x² − 5x + 6 = 0: a = 1, b = −5 and c = 6. The discriminant is D = (−5)² − 4 × 1 × 6 = 1, so x = (5 ± 1) / 2, giving x = 3 and x = 2. The factored form is (x − 3)(x − 2) = 0.

The parabola

The graph of y = ax² + bx + c is a parabola. Its vertex, the lowest or highest point, is at x = −b / 2a, and the solutions of the equation are where the parabola crosses the x-axis. The solver shows the vertex and the axis of symmetry as well.

Frequently asked questions

What is the quadratic formula?

For ax² + bx + c = 0 with a not equal to 0, x = (−b ± √(b² − 4ac)) / 2a. The part under the root, D = b² − 4ac, is called the discriminant.

What does the discriminant tell me?

If D is positive there are two different real solutions, if D is 0 there is one repeated solution, and if D is negative there are no real solutions but two complex ones.

What are complex roots?

When D is negative the square root of D is imaginary. The solutions are written as p ± qi, where i is the square root of −1. The solver shows them both as decimals and exactly.

Can I use decimals or fractions?

Decimals work, for example 0.5x² − 1.5x + 1 = 0. The exact forms with fractions and square roots are shown when a, b and c are whole numbers.

What if a is 0?

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

Last updated: · What's new

Related tools