Quadratic formula calculator: solve ax² + bx + c = 0
The quadratic formula solves any quadratic equation ax² + bx + c = 0: x = (−b ± √(b² − 4ac)) / 2a. With this quadratic formula calculator, type a, b and c into our Quadratic Graph calculator and it draws the parabola y = ax² + bx + c and lists its roots, the x values where it crosses the x axis. Those roots are the solutions of the equation.
Quadratic Graph
Plot and analyse quadratic functions
How to use the quadratic graph calculator
- Get your equation into the form ax² + bx + c = 0, with 0 on one side.
- In the Equation section, type a, b and c into the three boxes. Include the signs: for x² − 5x + 6, type 1, −5 and 6. The preview shows the equation you have built.
- Read the roots in the Intercepts section: each X row is a point (x, 0) where the parabola crosses the x axis. The Y row is where it crosses the y axis, which is always (0, c).
- For the vertex (turning point), choose Min / Max under Analysis.
- To practise, press Random problem under Practice and help. Problems such as marking the x-intercepts come with a hint and the quadratic formula worked out step by step.
The calculator gives the roots as decimals and looks for them between x = −20 and 20. For an exact answer with a square root (a surd, or radical in the US), or for roots further out, use the formula by hand as shown below and use the graph to check it. When the parabola never touches the x axis, the Intercepts section says there are no roots: the equation has no real solutions.
The quadratic formula
The ± means there are two answers, one with + and one with −. a is the number in front of x², b is the number in front of x, and c is the number on its own. If there is no x term, b = 0, and if there is no number on its own, c = 0.
The discriminant: how many solutions?
The part under the square root, b² − 4ac, is called the discriminant. Work it out first: it tells you what kind of answer to expect, and the graph shows the same thing.
| b² − 4ac | Solutions | What the parabola does |
|---|---|---|
| Positive | Two different real roots | Crosses the x axis twice |
| Zero | One repeated root | Touches the x axis at its vertex |
| Negative | No real roots (two complex roots) | Never meets the x axis |
If the discriminant is a perfect square, such as 25 or 49, the roots are whole numbers or fractions and the quadratic can be factored as well. The factoring calculator factors it for you.
Worked examples you can check in the calculator
Example 1: two roots
Solve 2x² − 7x + 3 = 0. Here a = 2, b = −7 and c = 3.
So x = 12 ÷ 4 = 3 or x = 2 ÷ 4 = 0.5. Type 2, −7 and 3 into the calculator and the Intercepts section shows (0.5, 0) and (3, 0).
The two places the curve crosses the x axis are the two solutions.
Example 2: roots with a square root
Solve x² + 2x − 1 = 0, the equation the calculator opens on. a = 1, b = 2, c = −1.
The exact answers are x = −1 + √2 and x = −1 − √2, which are 0.414 and −2.414 to 3 decimal places. The calculator shows the decimals. Simplifying √8 = 2√2 is what lets the 2 cancel.
Example 3: one repeated root
Solve 4x² + 12x + 9 = 0. The discriminant is 12² − 4(4)(9) = 144 − 144 = 0, so the ± adds nothing and there is one root: x = −12 ÷ 8 = −1.5. On the graph, the parabola just touches the x axis at its vertex, (−1.5, 0). The quadratic is a perfect square, (2x + 3)².
Example 4: no real roots
Solve x² − 4x + 13 = 0. The discriminant is (−4)² − 4(1)(13) = 16 − 52 = −36. You can't take the square root of a negative number in the real numbers, so there are no real solutions, and the calculator shows no x-intercepts. The parabola's lowest point is (2, 9), above the axis.
If your course uses complex numbers, write √−36 = 6i and carry on: x = (4 ± 6i) ÷ 2 = 2 ± 3i. In the US, the Common Core standards for high school algebra ask students to write complex solutions from the quadratic formula in the form a ± bi.
Example 5: rearrange first
Solve 3x² = 5x + 1. Move everything to one side first: 3x² − 5x − 1 = 0, so a = 3, b = −5 and c = −1.
So x = 1.847 or x = −0.180 to 3 decimal places. Typing 3, 5 and 1 without rearranging would solve a different equation.
Example 6: a word problem
A rectangle is 3 m longer than it is wide, and its area is 50 m². How wide is it? If the width is x, the length is x + 3, so x(x + 3) = 50, which gives x² + 3x − 50 = 0.
This gives x = 5.728 or x = −8.728. A width can't be negative, so reject that one: the rectangle is 5.73 m wide. Always check both roots against the question.
Try one
Use the quadratic formula on this equation, then press Mark to check your answer in the Algebra course.
Use the quadratic formula to find both roots.
Press Mark to have your answer marked in the Algebra course.
The vertex and the line of symmetry
The two roots sit the same distance either side of the line of symmetry, x = −b ÷ 2a. That is the first part of the quadratic formula on its own, and the ± √ part says how far each root is from it. The vertex is on this line: in example 1, x = 7 ÷ 4 = 1.75, and putting it back in gives y = −3.125, so the vertex is (1.75, −3.125). Min / Max in the calculator gives the same point.
Where the quadratic formula comes from
It comes from completing the square on ax² + bx + c = 0. Divide by a, move c/a across, then add (b/2a)² to both sides:
Subtract b/2a from both sides and you have the quadratic formula. The Algebra course covers factoring, completing the square and the formula in order.
Common mistakes
- Not rearranging to = 0 first. a, b and c only mean anything when one side is 0.
- Losing the sign of b. −b means the opposite of b. If b = −7, then −b = 7.
- Squaring a negative b wrongly. (−7)² = 49, not −49. Use brackets (parentheses) on your calculator.
- Dividing only part of the top by 2a. The whole of −b ± √(b² − 4ac) goes over 2a.
- Writing 2 × a as 2 + a, or forgetting the 2 altogether.
- Keeping a root the question can't use, such as a negative length or time.
Common questions
What is the quadratic formula?
When should I use the quadratic formula instead of factoring?
What does it mean when the discriminant is negative?
Can a be 0?
Why does the calculator show long decimals?
What are the roots of a quadratic?
Revision cards
Read the front, say your answer, then flip to check.
Where to go next
- Solve it
Quadratic Graph
Plot and analyse quadratic functions
Open the tool - Learn it
Algebra
Master equations, inequalities and the language of abstract mathematics
Start the course - Test it
Geometry, Algebra 2 & SAT Math
A new exam-style paper every day, with instant marking and a mark scheme
Start today's paper