Free online formula calculators

Quadratic Equation Calculator

Enter the coefficients a, b and c of ax² + bx + c = 0 to find both roots (real or complex), the discriminant and the vertex of the parabola.

Quadratic Equation Calculator
Result
Root x₁5
Root x₂-2
Discriminant (Δ)49
Type of rootsTwo distinct real roots
Vertex(1.5, -12.25)

Link to this calculation

Formula

x = (−b ± √(b2 − 4ac)) ÷ 2a
Δ = b2 − 4ac
Vertex = (−b ÷ 2a, c − b2 ÷ 4a)
SymbolMeaning
a, b, cCoefficients of x², x and the constant term
ΔDiscriminant, which decides the type of roots
xThe roots (solutions) of the equation

How to Use This Calculator

  1. Enter the a (coefficient of x²). Must not be zero.
  2. Enter the b (coefficient of x).
  3. Enter the c (constant).
  4. Press Calculate. Results also update automatically as you type.

Worked Example

Using the values pre-filled in the calculator above:

Inputs
a (coefficient of x²)1
b (coefficient of x)-3
c (constant)-10
Results
Root x₁5
Root x₂-2
Discriminant (Δ)49
Type of rootsTwo distinct real roots
Vertex(1.5, -12.25)

About This Calculation

A quadratic equation is any equation that can be written as ax² + bx + c = 0 with a ≠ 0. Its graph is a parabola, and the roots are the x-values where that parabola crosses the x-axis. The quadratic formula always works, even when the expression does not factor neatly.

The discriminant Δ = b² − 4ac tells you what kind of answer to expect before you finish the calculation. If it is positive there are two different real roots; if it is zero the parabola just touches the axis at one repeated root; if it is negative the parabola never meets the axis and the roots are a pair of complex numbers of the form p ± qi. A perfect-square discriminant (with integer coefficients) means the equation factors over the integers.

The vertex is the turning point of the parabola — a minimum when a is positive and a maximum when a is negative — which makes quadratics the natural tool for optimization problems such as maximizing the area of a fenced plot or the height of a thrown ball. This calculator uses a numerically stable form of the formula, which avoids the loss of precision the textbook version suffers when b² is much larger than 4ac.

Frequently Asked Questions

What if a is zero?
Then the x² term disappears and the equation is linear: bx + c = 0, whose single solution is x = −c ÷ b. The quadratic formula would divide by zero, so this calculator asks for a non-zero a.
What does a complex root mean in practice?
It means the parabola never touches the x-axis, so there is no real x that makes the expression zero. In physics, for example, it can show that a thrown object never reaches a certain height.
How do I check my roots?
Substitute each root back into ax² + bx + c; the result should be zero. Also, the roots always add up to −b/a and multiply to c/a.

Category: Math & Algebra. Found a problem with this calculator? Let us know.