All tools › Math Calculators › Algebra
Enter a, b and c to solve ax^2 + bx + c = 0 and see the discriminant and vertex.
Solve ax² + bx + c = 0
This quadratic formula calculator solves any equation of the form ax² + bx + c = 0. Enter the three coefficients and it returns the solutions for x, real or complex, along with the discriminant, the vertex of the parabola, the axis of symmetry, the direction the curve opens, and the sum and product of the roots.
It is useful for checking algebra homework, and for real problems that produce a quadratic: the flight time of a thrown object, the dimensions of a rectangle with a known area, or a break-even point.
How to use the quadratic formula calculator
- Rearrange your equation so that one side is zero: ax² + bx + c = 0.
- Enter a (number in front of x squared). It cannot be zero.
- Enter b (number in front of x). If there is no x term, enter 0.
- Enter c (the constant). If there is no constant, enter 0.
- Keep the signs. For x² – 4x + 13 = 0, b is -4, not 4.
The quadratic formula
x = ( -b +/- sqrt(b^2 – 4ac) ) / (2a)
- a, b, c are the coefficients you entered.
- b^2 – 4ac is the discriminant. It decides what kind of solutions you get.
- +/- means there are two answers: one using plus, one using minus.
The calculator also works out the vertex, the turning point of the parabola y = ax² + bx + c:
Vertex = ( -b / (2a), c – b^2 / (4a) )
The axis of symmetry is the vertical line through the vertex, x = -b / (2a). The sum of the roots is -b / a and their product is c / a, which is a quick way to check an answer you factored by hand.
Worked example: a ball thrown upward
A ball is thrown straight up at 64 feet per second from a platform 80 feet high. With gravity in feet and seconds, its height is h = -16t² + 64t + 80. It hits the ground when h = 0, so solve -16t² + 64t + 80 = 0.
Inputs: a = -16, b = 64, c = 80.
| Line | Result |
|---|---|
| Solutions | x = 5 or x = -1 |
| Discriminant (b^2 – 4ac) | 9,216 |
| Type of roots | Two real roots |
| Vertex of the parabola | (2, 144) |
| Axis of symmetry | x = 2 |
| Parabola opens | Downward |
| Sum and product of roots | 4 and -5 |
The discriminant is 64² – 4 × (-16) × 80 = 4,096 + 5,120 = 9,216, and its square root is 96. So x = (-64 + 96) / -32 = -1 and x = (-64 – 96) / -32 = 5.
Time cannot be negative here, so the ball lands after 5 seconds. The vertex adds more: the ball peaks at 2 seconds, 144 feet above the ground. The math gives both roots; you decide which one fits the situation.
What the discriminant tells you
| Discriminant | Type of roots | On a graph | Example (a, b, c) | Solutions |
|---|---|---|---|---|
| Greater than 0 | Two real roots | Crosses the x-axis twice | 2, 4, -6 | x = 1 or x = -3 |
| Equal to 0 | One repeated real root | Touches the x-axis at the vertex | 1, -6, 9 | x = 3 |
| Less than 0 | Two complex roots (no real solution) | Never reaches the x-axis | 1, -4, 13 | x = 2 + 3i or x = 2 – 3i |
In the complex case, i is the square root of -1. The two answers are always a matching pair with the same real part and opposite imaginary parts.
Limits
- a cannot be zero. With a = 0 the equation is linear (bx + c = 0) and the calculator tells you so.
- Answers are decimals. Irrational roots are rounded to six places: x² – 2 = 0 shows 1.414214 and -1.414214, not the exact square root of 2. It does not give answers in simplified radical or fraction form.
- It solves; it does not factor, complete the square step by step, or draw the graph.
Frequently asked questions
What if my equation is not equal to zero?
Move every term to one side first. For x^2 = 3x + 10, subtract 3x and 10 from both sides to get x^2 – 3x – 10 = 0, then enter a = 1, b = -3, c = -10.
Are roots, zeros and solutions the same thing?
For a quadratic, yes. They all mean the x values that make ax^2 + bx + c equal zero, which are also the points where the graph meets the x-axis.
Can I enter decimals or fractions as coefficients?
Decimals work directly. For fractions, either enter the decimal value or multiply the whole equation by the common denominator first; the solutions stay the same.
Why do I get a negative answer for time or length?
The equation does not know your context. A quadratic often has one root that makes sense and one that does not, so discard the one that is impossible in your problem.
Related calculators
- Scientific Calculator – check each step of the formula by hand.
- Fraction Calculator – work with fraction coefficients or answers.
- Percentage Calculator – quick percent problems.
- Math calculators – the full list of math tools.

