Quadratic Equation Calculator

Solve any quadratic equation ax² + bx + c = 0. Get real or complex roots, the discriminant, the vertex and the step-by-step working.

  • Tested formula
  • Instant results
  • Updated October 7, 2026

Your details

Results Updates as you type

The quadratic formula

x = (−b ± √(b² − 4ac)) ÷ 2a
Example: Solve 2x² − 4x − 6 = 0. Here a = 2, b = −4, c = −6. The discriminant is (−4)² − 4 × 2 × (−6) = 16 + 48 = 64, and √64 = 8. So x = (4 ± 8) ÷ 4, giving x = 3 and x = −1. The vertex is at x = 4 ÷ 4 = 1, y = 2 − 4 − 6 = −8, so the point (1, −8) is the minimum.

Types of solutions

DiscriminantRootsGraph
D > 0Two distinct real rootsCrosses the x-axis twice
D = 0One repeated real rootTouches the x-axis at the vertex
D < 0Two complex roots p ± qiDoes not reach the x-axis

Sum and product of roots (Vieta’s formulas): x₁ + x₂ = −b/a and x₁ × x₂ = c/a — a quick way to check an answer.

How to use the calculator

  1. Write your equation in standard form ax² + bx + c = 0 — move all terms to one side first.
  2. Enter a, b and c. Coefficient a must not be 0 (otherwise the equation is linear).
  3. Read the discriminant, the roots (real or complex), the vertex and the factored form, with each step shown.

Other ways to solve quadratics

Factoring is fastest when the roots are whole numbers. For x² − 5x + 6 = 0, find two numbers that multiply to 6 and add to −5: −2 and −3. So (x − 2)(x − 3) = 0 and x = 2 or x = 3.

Completing the square rewrites the equation as a(x − h)² + k = 0. For x² + 6x + 5 = 0: x² + 6x + 9 = 4, so (x + 3)² = 4, x + 3 = ±2, and x = −1 or x = −5. This method is how the quadratic formula itself is derived.

The quadratic formula always works, including when the roots are irrational or complex.

Vertex and graph

The graph of y = ax² + bx + c is a parabola. It opens upward if a > 0 and downward if a < 0. The vertex — the minimum or maximum point — is at x = −b ÷ 2a. The roots are where the parabola crosses the x-axis; if the discriminant is negative, it never crosses.

Example: For y = 2x² − 4x − 6, the vertex is at x = 4 ÷ 4 = 1, and y = 2 − 4 − 6 = −8. The parabola opens upward with its lowest point at (1, −8) and crosses the x-axis at −1 and 3.

Useful checks

  • Sum and product of roots (Vieta’s formulas): x₁ + x₂ = −b/a and x₁ × x₂ = c/a. For 2x² − 4x − 6: sum = 2 and product = −3, which matches 3 and −1.
  • Substitute back: 2(3)² − 4(3) − 6 = 18 − 12 − 6 = 0 ✓.

Where quadratics appear

  • Physics: the height of a thrown ball, h = −4.9t² + v₀t + h₀ (in meters), is quadratic in time.
  • Geometry: finding dimensions from an area, such as a rectangle whose length is 3 more than its width and area is 40 (w² + 3w − 40 = 0, so w = 5).
  • Business: profit as a function of price often forms a parabola, and the vertex gives the price that maximizes profit.

Frequently asked questions

What is the quadratic formula?
For ax² + bx + c = 0 with a ≠ 0, the solutions are x = (−b ± √(b² − 4ac)) ÷ 2a.
What does the discriminant tell me?
The discriminant D = b² − 4ac determines the type of roots. If D > 0 there are two different real roots; if D = 0 there is one repeated real root; if D < 0 there are two complex conjugate roots and the parabola does not cross the x-axis.
What is the vertex of a parabola?
The vertex is the turning point of y = ax² + bx + c, at x = −b ÷ 2a. It is the minimum when a > 0 and the maximum when a < 0.
Can I solve by factoring instead?
Yes, when the equation factors nicely. x² − 5x + 6 = (x − 2)(x − 3), so x = 2 or 3. The quadratic formula works for every quadratic, including those that do not factor over the integers.
What if a = 0?
Then the equation is linear, bx + c = 0, with the single solution x = −c ÷ b.
What are complex roots?
When the discriminant is negative, the square root is imaginary. The roots are written as p ± qi, where i = √−1. The parabola does not touch the x-axis.

Last reviewed October 7, 2026. Results are estimates for informational purposes; see our disclaimer.