This free quadratic formula calculator solves any equation in the form ax² + bx + c = 0, giving exact answers, decimals, the discriminant, vertex, factored form, a graph and every step.
Loading the quadratic formula calculator…
How to use the quadratic formula calculator
- Rewrite your equation so one side is 0: ax² + bx + c = 0.
- Enter a, b and c. Include the signs: for x² − 5x + 6, b is −5.
- Read the solutions at the top, then the vertex, factored form and graph.
- Follow the step-by-step section to check your own work.
Worked example
Solve x² − 5x + 6 = 0. Here a = 1, b = −5, c = 6.
- Discriminant: b² − 4ac = (−5)² − 4(1)(6) = 25 − 24 = 1. It’s positive, so there are two real solutions.
- Quadratic formula: x = (5 ± √1) ÷ 2, so x = 2 or x = 3.
- Factored form: (x − 2)(x − 3).
- Vertex: x = −b ÷ 2a = 2.5, and y = 2.5² − 5(2.5) + 6 = −0.25, so the vertex is (2.5, −0.25).
The quadratic formula
Every quadratic equation ax² + bx + c = 0 (with a ≠ 0) can be solved with
x = (−b ± √(b² − 4ac)) ÷ 2a
The ± means there are usually two answers: one using + and one using −. The formula comes from completing the square on the general equation, which is why it always works, even when factoring doesn’t.
The discriminant
The part under the square root, b² − 4ac, is called the discriminant. It tells you what kind of solutions to expect before you finish solving.
| Discriminant | Solutions | Graph | Example |
|---|---|---|---|
| Positive perfect square | Two rational solutions | Crosses the x-axis twice | x² − 5x + 6 → 2 and 3 |
| Positive, not a perfect square | Two irrational solutions | Crosses twice | x² − 2x − 1 → 1 ± √2 |
| Zero | One repeated solution | Touches the x-axis at the vertex | x² − 4x + 4 → 2 |
| Negative | Two complex solutions | Never touches the x-axis | x² + 2x + 5 → −1 ± 2i |
Exact answers vs. decimals
When a, b and c are whole numbers, the calculator simplifies the radical. For 2x² − 4x − 1 = 0, the discriminant is 24 = 4 × 6, so √24 = 2√6 and the answers become (2 ± √6)/2. Teachers and the Regents exams usually want this exact form; the decimals (about −0.22 and 2.22) are useful for checking a graph. If you enter decimals for a, b or c, you’ll get decimal answers only.
Vertex, axis and direction
- Vertex: the turning point, at x = −b ÷ 2a. Plug that x back in to get y.
- Axis of symmetry: the vertical line through the vertex. The two real solutions are always the same distance from it.
- Direction: if a is positive the parabola opens up (the vertex is a minimum); if a is negative it opens down (a maximum).
Other ways to solve quadratics
| Method | Best when |
|---|---|
| Factoring | The discriminant is a perfect square and the numbers are small |
| Square roots | There’s no bx term, like x² − 2 = 0 |
| Completing the square | You need vertex form, a(x − h)² + k |
| Quadratic formula | Always works |
For practice and lessons, see solving quadratic equations and quadratic equations with complex solutions. Preparing for a state exam? Try the Algebra 1 Regents score calculator or the Algebra 2 Regents score calculator.
To practice factoring first, read Solving Quadratic Equations by Factoring or work through the solving quadratic equations worksheets.
Common mistakes
- Losing the sign of b. In x² − 5x + 6, b is −5, so −b is +5. Most wrong answers start here.
- Not setting the equation to 0. x² + 3x = 10 has to become x² + 3x − 10 = 0 before you read off a, b and c.
- Dividing only part of the top by 2a. The whole numerator, −b ± √(b² − 4ac), is divided by 2a.
- Squaring a negative b wrong. (−4)² is 16, not −16. Use parentheses on a calculator.
- Stopping at an unsimplified radical. √24 should become 2√6, and then common factors should cancel.
Where quadratics show up
Quadratics model anything that rises and falls along a curve: the height of a thrown ball, the area of a fenced rectangle, profit as price changes. In physics, the height of a projectile is h = −4.9t² + v₀t + h₀; solving h = 0 tells you when it lands. Our kinematics calculator uses the same idea.
FAQ
What is the quadratic formula?
For ax² + bx + c = 0, x = (−b ± √(b² − 4ac)) ÷ 2a. It solves every quadratic, even ones that don’t factor.
What does the discriminant tell you?
b² − 4ac decides the solutions: positive means two real solutions, zero means one repeated solution, and negative means two complex solutions.
How do I find the vertex?
The vertex x-value is −b ÷ 2a. Plug it back in to get y. For x² − 5x + 6 the vertex is (2.5, −0.25).
Why does it say the equation doesn't factor?
If the discriminant isn’t a perfect square, the solutions are irrational, so there are no integer factors. The formula still gives exact answers like 1 ± √2.