Home / Math Calculators / Quadratic Formula Calculator

Quadratic Formula Calculator

Solve equations in the form ax² + bx + c = 0. Enter the three coefficients to find the discriminant, real or complex roots, vertex, axis of symmetry, and step-by-step working.

Enter your equation

ax² + bx + c = 0

Coefficient of x²; must not be zero.
Coefficient of x.
The constant term, which has no x.

Enter finite numbers. The leading coefficient a must be non-zero for the equation to be quadratic. Calculations run in your browser.

Your solution

Roots
x₁ = 3, x₂ = 2
Two distinct real roots.
x = (−b ± √(b² − 4ac)) / 2a
Discriminant (Δ)1
Root typeTwo real roots
Vertex (h, k)(2.5, -0.25)
Axis of symmetryx = 2.5
Sum of roots5
Product of roots6

Parabola

The graph is a visual aid. The x-axis intercepts represent real roots.

Δ = 1 is positive, so there are two distinct real roots.

Step-by-step solution

  1. Calculate Δ = b² − 4ac.
  2. Substitute the coefficients into the quadratic formula.
  3. Evaluate both roots.

What is the quadratic formula?

A quadratic equation is a second-degree equation written as ax² + bx + c = 0, where a is not zero. The quadratic formula provides the solutions, also called roots, whether they are real or complex.

x = (−b ± √(b² − 4ac)) / (2a)

What does the discriminant tell you?

  • Δ > 0: two distinct real roots.
  • Δ = 0: one repeated real root.
  • Δ < 0: two complex conjugate roots.

How to use this calculator

  1. Rewrite the equation in standard form ax² + bx + c = 0.
  2. Enter coefficients a, b, and c, including negative signs where needed.
  3. Make sure a is not zero, then click Solve equation.
  4. Review the discriminant, roots, vertex, graph, and calculation steps.

Worked example: x² − 5x + 6 = 0

Here a = 1, b = −5, and c = 6. The discriminant is Δ = (−5)² − 4(1)(6) = 25 − 24 = 1. The roots are x = (5 ± √1) / 2, giving x₁ = 3 and x₂ = 2.

Frequently asked questions

What is the quadratic formula?

It is x = (−b ± √(b² − 4ac)) / (2a), used to solve quadratic equations with a non-zero leading coefficient.

What is the discriminant?

The discriminant Δ = b² − 4ac is the expression under the square root. Its sign tells you whether the equation has two distinct real roots, a repeated real root, or complex roots.

Can this calculator solve equations with complex roots?

Yes. When the discriminant is negative, the calculator displays the roots as a complex conjugate pair using i, where i² = −1.

What if a equals zero?

Then the equation is not quadratic; it becomes linear or a degenerate equation. This calculator asks you to enter a non-zero value for a.

What is the vertex of a parabola?

The vertex is the turning point of the graph. Its x-coordinate is h = −b/(2a), and its y-coordinate is k = ah² + bh + c.

When is the quadratic formula useful?

It works even when an equation is difficult to factor, including equations with irrational or complex roots.

This calculator is an educational aid. Check the equation and coefficients carefully when using results in further calculations.