Quadratic Formula Calculator
Type a, b and c. You get both solutions, in decimals and in exact form, the vertex and a small graph of the parabola.
Solve your quadratic equation
Loading the calculator. It needs JavaScript.
How to use the quadratic formula
First, get your equation into the form ax² + bx + c = 0, with everything on one side. Then read off the three numbers. For x² - 5x + 6 = 0, a is 1, b is -5 and c is 6. Keep the signs. A missing term counts as 0, so x² - 9 = 0 has b = 0.
Then follow these steps. The calculator shows them for your own numbers.
- Work out the discriminant, b² - 4ac.
- Take its square root.
- Put everything into x = (-b ± √(b² - 4ac)) / 2a.
- Do it once with + and once with - to get the two roots.
Worked example
Solve 2x² + 3x - 2 = 0. Here a = 2, b = 3 and c = -2.
- Discriminant: 3² - 4(2)(-2) = 9 + 16 = 25.
- Square root: √25 = 5.
- With +: (-3 + 5) / 4 = 2 / 4 = 1/2.
- With -: (-3 - 5) / 4 = -8 / 4 = -2.
So x = 1/2 or x = -2. Check one: 2(1/2)² + 3(1/2) - 2 = 0.5 + 1.5 - 2 = 0. It works.
Reading the discriminant
| b² - 4ac | Roots | What the graph does |
|---|---|---|
| More than 0 | Two different real roots | Crosses the x-axis twice |
| Exactly 0 | One repeated root | Just touches the x-axis at the vertex |
| Less than 0 | Two complex roots, p ± qi | Never reaches the x-axis |
Exact answers
Decimals are handy, but teachers often want the exact form. When the discriminant is a perfect square, the roots are whole numbers or fractions, like 2/3. When it is not, the calculator pulls out square factors and writes the root as a surd. For x² - 2x - 1 = 0, the discriminant is 8, and √8 = 2√2. So the roots are (2 ± 2√2) / 2, which simplifies to 1 ± √2.
Complex roots get the same treatment. For x² + x + 1 = 0, the exact form is (-1 ± i√3) / 2, which is about -0.5 ± 0.866025i.
The vertex and the graph
Every quadratic makes a U-shaped curve called a parabola. It opens upward when a is positive and downward when a is negative. The turning point is the vertex. Its x value is -b / 2a, the same first part of the quadratic formula. That is also the axis of symmetry: the two roots sit the same distance on either side of it. The graph under the answer marks the roots and the vertex for your equation.
Common mistakes
- Losing a minus sign. If b is -5, then -b is +5, and b² is 25, not -25.
- Dividing only part of the top by 2a. The whole of -b ± √(b² - 4ac) goes over 2a.
- Not moving everything to one side. For x² = 3x + 4, rewrite it as x² - 3x - 4 = 0 first.
- Calling a = 0 a quadratic. With no x² term, the equation is a straight line, so it has one root at most.
Accuracy
The tool reads each number to 6 decimal places and does the exact forms with whole-number maths. For the decimals it uses a second form of the formula for one of the roots. That avoids a known problem where a tiny root comes out as 0 when b is much larger than a and c.
Questions
What is the quadratic formula?
For ax² + bx + c = 0, the solutions are x = (-b ± √(b² - 4ac)) / 2a. The ± means you work it out twice, once adding the square root and once taking it away.
What does the discriminant tell me?
The discriminant is b² - 4ac. If it is positive, there are two different real roots. If it is 0, there is one root, counted twice. If it is negative, there are no real roots, and the two answers are complex numbers.
What does i mean in the answer?
The letter i stands for the square root of -1. When the discriminant is negative, the square root in the formula has no real value, so the roots are written as p + qi and p - qi. On a graph, this means the parabola never touches the x-axis.
What happens if a is 0?
Then there is no x² term, so the equation is linear, not quadratic, and the formula would divide by 0. The calculator solves bx + c = 0 instead and tells you it did.
How do I find the vertex of a parabola?
The x value of the vertex is -b / 2a. Put that x back into the equation to get the y value. The vertical line through the vertex is the axis of symmetry.
Facts checked 2026-11-29. Sources: Quadratic formula (Wikipedia).
