Quadratic equation solver

Enter a, b and c of ax² + bx + c = 0. We find the discriminant and the solutions, even complex ones.

Quadratic equation solver

Result

2Solution 1

Solution 2
3
Discriminant Δ
1
Vertex: x
2.5
Vertex: y
-0.25

Quadratic equation solver

Inputs

a (in front of x²)
1
b (in front of x)
-5
c (the plain number)
6

How it is calculated

Δ = b² − 4ac.

Result

Solution 1

2
Solution 2
3
Discriminant Δ
1
Vertex: x
2.5

How it is calculated

  1. Δ = b² − 4ac.
  2. If Δ > 0: x = (−b ± √Δ) ÷ 2a, two solutions.
  3. If Δ = 0: one solution x = −b ÷ 2a.
  4. If Δ < 0: x = −b ÷ 2a ± i × √(−Δ) ÷ 2a.
  5. If a = 0: x = −c ÷ b.

Example

x² − 5x + 6 = 0: Δ = 25 − 24 = 1, so x = 2 or x = 3.

Good to know

  • Results are rounded to 6 decimal places.
  • If a = b = 0 there is no solution (c ≠ 0) or every number works (c = 0).

When to use it

  • Solve a quadratic equation for homework and check the discriminant step by step.
  • Find where a parabola crosses the x-axis, or see that it never does.
  • To study the straight line through two points instead, use Slope of a line.

Frequently asked questions

What do complex roots mean on a graph?

The parabola does not cross the x-axis. The equation has no real solution, only two complex ones that are mirror images (a ± bi).

How can I check the two roots quickly?

Their sum is −b ÷ a and their product is c ÷ a. For x² − 5x + 6 = 0: 2 + 3 = 5 and 2 × 3 = 6.

How do I write the factored form?

With two roots x₁ and x₂, ax² + bx + c = a(x − x₁)(x − x₂). Here x² − 5x + 6 = (x − 2)(x − 3).

Updated October 10, 2026

Indicative result. For an important decision, check with a professional.