Quadratic Formula Calculator: Solve Any Quadratic Equation in Seconds
A quadratic equation can stop a homework session fast. You see x², a few coefficients, and a question that expects two answers, and the working is not obvious at first glance. The quadratic formula gives a direct route to those answers, and a quadratic formula calculator does the arithmetic and shows each step, so you can check your own working instead of guessing.
This page explains the formula, the discriminant, the vertex, completing the square, and the equation-from-roots method, with worked examples you can follow. A quadratic equation calculator is useful when the roots are not obvious from factoring. This quadratic formula solver handles the five common tasks in one place, and the rest of this article explains what it is doing and why.
Quadratic Formula Calculator
Solve any quadratic equation with the working shown.
Solves ax² + bx + c = 0. The value of a cannot be 0.
a = 1, b = −5, c = 6 Δ = b² − 4ac = 25 − 24 = 1 Δ > 0, so there are two distinct real roots. x = (−b ± √Δ) / 2a = (5 ± 1) / 2 x = 3, x = 2 Check: sum = 5 = −b/a; product = 6 = c/a
The discriminant tells you how many roots there are before you solve.
Δ = b² − 4ac = 4 − 20 = −16 Δ < 0, so there are two complex roots and no real roots.
Vertex, axis of symmetry, and the factored and vertex forms of the parabola.
h = −b / 2a = 4 / 2 = 2 k = c − b² / 4a = 3 − 4 = −1 Axis of symmetry: x = 2 y-intercept: 3 Opens upward (a > 0), so the vertex is a minimum. Factored form: (x − 3)(x − 1) Vertex form: (x − 2)² − 1
Builds the equation from its roots using Vieta’s formulas.
Sum of roots = 2 + 3 = 5 Product of roots = 2 × 3 = 6 x² − (sum)x + (product) = 0 x² − 5x + 6 = 0
Rewrites the equation as a perfect square, step by step.
x² − 6x + 8 = 0 x² − 6x = −8 Add (b/2a)² = 9 to both sides (x − 3)² = 1 x − 3 = ±1 x = 4, x = 2
Using the Quadratic Formula Calculator
Select the mode that matches your problem, enter the numbers, and read the result with its working. Follow it as a quadratic formula calculator step by step: pick a mode, enter the numbers, and read the working. This quadratic formula calculator shows every substitution, so you can compare it with your own solution. That is the whole point of a quadratic formula on a calculator: the working stays visible.
1. Solve a Quadratic Equation
Enter a, b, and c from ax² + bx + c = 0, with a ≠ 0. If your equation is not in that form, rearrange it first. For x² − 5x + 6 = 0, enter a = 1, b = −5, and c = 6. The result is x = 3, 2.
2. Check the Discriminant
Enter a, b, and c. The calculator returns Δ = b² − 4ac and states the root type. For x² − 4x + 4 = 0, Δ = 0, so there is one repeated root, x = 2.
3. Find the Vertex and Forms
Enter a, b, and c. You get the vertex (h, k), the axis of symmetry x = h, and the factored and vertex forms. For x² − 4x + 3, the vertex is (2, −1), the axis is x = 2, and the factored form is (x − 3)(x − 1).
4. Build an Equation from Roots
Enter the two roots r1 and r2. The calculator returns the equation (x − r1)(x − r2) = 0 in standard form. For roots 2 and 3, the result is x² − 5x + 6 = 0.
5. Complete the Square
Enter a, b, and c. The calculator rewrites the equation in completed-square form and solves it. For x² − 6x + 8 = 0, the completed-square form is (x − 3)² = 1, so x = 4, 2. That is the completing the square calculator mode.
| Mode | What you enter | What you get |
|---|---|---|
| Solve a Quadratic Equation | a, b, c | The roots, exact and decimal, with steps |
| Check the Discriminant | a, b, c | Δ, the root type, and the value of b² − 4ac |
| Find the Vertex and Forms | a, b, c | Vertex, axis, factored form, and vertex form |
| Build an Equation from Roots | r1, r2 | The equation in standard form with steps |
| Complete the Square | a, b, c | Completed-square form and the roots |
Worked Examples and Results
These quadratic formula examples use the verified defaults from the tool.
| Equation | Result |
|---|---|
| x² − 5x + 6 = 0 | x = 3, 2 |
| x² − 4x + 4 = 0 | x = 2 repeated |
| x² + 2x + 5 = 0 | x = −1 ± 2i |
| x² − 4x + 3 | Vertex (2, −1) |
| Roots 2 and 3 | x² − 5x + 6 = 0 |
| x² − 6x + 8 = 0 | (x − 3)² = 1, x = 4, 2 |
About the Quadratic Formula
A quadratic equation has the form ax² + bx + c = 0, where a, b, and c are numbers and a ≠ 0. The quadratic formula gives its roots directly:
x = (−b ± √(b² − 4ac)) / 2a
The ± sign produces two values, one with addition and one with subtraction. Those two values are the roots, and they are the values of x that make the equation true. A quadratic formula calculator applies this formula to any a, b, and c you enter.
The formula works for every quadratic equation. It gives exact roots when they are simple, decimal roots when they are not, and complex roots when the discriminant is negative. It also works when factoring is awkward, which is most of the time in real problems.
Quadratic Formula Derivation
The formula comes from completing the square on the general equation, so it is not a trick. It is the result of solving ax² + bx + c = 0 step by step.
Start with ax² + bx + c = 0 and divide by a:
x² + (b/a)x + c/a = 0
Move the constant to the right:
x² + (b/a)x = −c/a
Add (b/2a)² to both sides. The left side becomes a perfect square:
(x + b/2a)² = (b² − 4ac) / 4a²
Take the square root of both sides and solve for x:
x = (−b ± √(b² − 4ac)) / 2a
That is the formula. The discriminant b² − 4ac sits inside the square root, and its sign decides what kind of roots you get.
How to Solve a Quadratic Equation
To calculate quadratic equation results, follow these steps in order.
- Write the equation in standard form, ax² + bx + c = 0.
- Read off a, b, and c, including their signs.
- Work out the discriminant, Δ = b² − 4ac.
- Substitute a, b, and c into x = (−b ± √(b² − 4ac)) / 2a.
- Simplify the square root, then calculate the two roots.
- Check each root by substitution, if you have time. A quick check catches sign errors.
- Give the roots in the form the question asks for, exact, decimal, or both.
That is the method, from standard form to checked roots.
Sign errors are the most common mistake. The negative sign in −b applies to the whole value of b, so if b = −5, then −b = 5. Keep −b and ± separate. The ± comes from the square root, not from b. A quadratic formula calculator keeps the exact root until the final step, then rounds once.
What the Discriminant Tells You
| Discriminant | What it means | Example |
|---|---|---|
| Δ > 0 | Two distinct real roots | x² − 5x + 6 = 0, x = 3, 2 |
| Δ = 0 | One repeated real root | x² − 4x + 4 = 0, x = 2 repeated |
| Δ < 0 | Two complex roots | x² + 2x + 5 = 0, x = −1 ± 2i |
The quadratic formula discriminant is the part inside the square root, b² − 4ac. The quadratic equation roots are rational when Δ is a perfect square. If it is not, the roots are irrational, and you should keep the square root in exact form until the final step. If Δ is negative, the roots are complex, and the graph does not cross the x-axis.
Worked Example: Irrational Roots and a Rounding Trap
Solve x² − 8x + 5 = 0. Here a = 1, b = −8, and c = 5.
Δ = (−8)² − 4(1)(5) = 64 − 20 = 44, so
x = (8 ± √44) / 2 = 4 ± √11 ≈ 7.3166, 0.6834.
That rounding trap matters. For 13x² − 166x + 345 = 0, the discriminant is 9616, and √9616 ≈ 98.0612. If you round it to 98 too early, you get the wrong roots, 10.31 and 2.62. The correct roots are 10.16 and 2.61. Keep extra digits until the end, then round once.
Vertex and Forms of a Quadratic Function
The vertex is the highest or lowest point on a parabola. For y = ax² + bx + c, the x-value of the vertex is:
h = −b / 2a
and the y-value is k = f(h). You can also use k = c − b² / 4a. The axis of symmetry is the vertical line x = h. If a > 0, the parabola opens upward and the vertex is a minimum. If a < 0, it opens downward and the vertex is a maximum.
For x² − 4x + 3, h = −(−4) / (2 × 1) = 2, and k = (2)² − 4(2) + 3 = −1. The vertex is (2, −1), the axis is x = 2, and the factored form is (x − 3)(x − 1). That is the quadratic formula vertex for this equation: the lowest point of the parabola. At the vertex the parabola is flat, so its slope is zero.
Forms of a Quadratic Function
| Form | Equation | Use |
|---|---|---|
| Standard form | y = ax² + bx + c | Reading a, b, and c |
| Vertex form | y = a(x − h)² + k | Reading the vertex (h, k) |
| Factored form | y = a(x − r1)(x − r2) | Reading the roots r1 and r2 |
Each form gives the same parabola. Standard form is best for the formula, vertex form is best for the turning point, and factored form is best for the roots. A quadratic formula calculator returns the vertex and both forms together.
Completing the Square
Completing the square rewrites a quadratic as a perfect square plus a constant. It is the method behind the formula, and it is useful when the question asks for the vertex or the completed-square form.
Solve x² − 6x + 8 = 0. Halve the x coefficient, −6, to get −3, and square it to get 9:
x² − 6x + 9 = 1
(x − 3)² = 1
x − 3 = ±1, so x = 4, 2.
The method is short when the leading coefficient is 1. When it is not, divide the equation by a first, then complete the square on the result. A quadratic formula calculator that includes completing the square shows the derivation, not just the roots.
Use the formula for roots, completing the square for the vertex form, and factoring only when the numbers make it easy.
Equation from Roots
If you know the roots, you can build the equation. If the roots are r1 and r2, the equation is (x − r1)(x − r2) = 0. Expanding it gives x² − (r1 + r2)x + r1r2 = 0. That is why the sum and product of the roots are useful. The sum and product of roots give a fast check on any solution.
For roots 2 and 3, the sum is 5 and the product is 6, so the equation is x² − 5x + 6 = 0. In general, for ax² + bx + c = 0, the sum of the roots is −b/a and the product is c/a. This is Vieta's rule. A quadratic formula calculator can also work backwards, from roots to equation.
The rule also works the other way. If the sum is (4 − 3√2) and the product is −28, the equation with a = 1 is x² − (4 − 3√2)x − 28 = 0. That check is faster than solving from scratch, and it is a common exam question.
Quadratic Formula Applications
The formula is useful because real problems are rarely tidy. A projectile, a profit model, and a bridge arch all reduce to a quadratic at some point. A quadratic formula calculator handles the arithmetic in each of these cases.
Projectile Motion
A ball is thrown upward from 5 metres with an initial speed of 20 metres per second. Its height after t seconds is h = −4.9t² + 20t + 5. To find when it hits the ground, set h = 0:
−4.9t² + 20t + 5 = 0
t ≈ 4.32 seconds, after discarding the negative root, −0.24 seconds, which has no physical meaning here. The maximum height is 25.4 metres, at t = 2.04 seconds, which is the vertex of the height function.
The Rocket Problem
A rocket leaves the ground with an initial speed of 30 metres per second. Its height is h = −4.9t² + 30t. Setting h = 0 gives t(−4.9t + 30) = 0, so t = 0 or t = 30/4.9 ≈ 6.12 seconds. The rocket lands after about 6.12 seconds. The first root, t = 0, is the launch, and the second is the landing.
Profit and Break-Even Points
A business has profit P = −0.5n² + 40n − 200, where n is the number of units sold. The maximum profit is at the vertex, n = 40, and the value is $600. The break-even points are where P = 0, which are n ≈ 5.36 and n ≈ 74.64. Below the first value and above the second, the business makes a loss.
The Parabolic Arch
A bridge arch follows y = −0.01x² + 0.8x, where x is the horizontal distance in metres. The peak is at x = 40 metres, and the height there is 16 metres. The arch meets the ground at x = 0 and x = 80, so the span is 0 to 80 metres. The vertex gives the peak, and the roots give the span.
What the Calculator Does Not Solve
In version 1, this calculator does not draw a parabola graph, solve quadratic inequalities or systems of equations, or handle cubic or higher equations. Those are planned for later versions, but they are not part of the current tool.
Why Your Results May Differ
A quadratic formula calculator can give a different last digit from another tool, and the reasons are usually simple.
- Rounding too early. Keep extra digits until the final step, then round once.
- A sign error in b or c. The formula depends on the signs, and one wrong sign changes both roots.
- Forgetting to rearrange to standard form. An equation that is not in ax² + bx + c = 0 does not give the right a, b, and c.
- Dividing by a before checking that a ≠ 0. If a = 0, the equation is linear, not quadratic.
- Using the wrong root in a word problem. A negative time or a negative length is usually not an answer.
- Different rounding in different tools. A calculator that rounds at each step can give a slightly different last digit.
FAQs
These questions cover the five modes this quadratic formula calculator supports and the traps students meet most often.
Write it in standard form ax² + bx + c = 0, read off a, b, and c, work out the discriminant, then substitute into x = (−b ± √(b² − 4ac)) / 2a. That is how to solve quadratic equation by formula, and the method is shown in "How to Solve a Quadratic Equation".
The discriminant Δ = b² − 4ac tells you the root type before you solve. If Δ > 0, there are two distinct real roots. If Δ = 0, there is one repeated root. If Δ < 0, there are two complex roots.
The roots are x = 3, 2. The discriminant is 1, so the roots are real and distinct, and the equation factors as (x − 3)(x − 2) = 0.
You get two complex roots. For x² + 2x + 5 = 0, the roots are x = −1 ± 2i. The equation has no real solution, but it does have complex roots. That is the quadratic formula with complex roots: the discriminant is negative, so the roots come in a conjugate pair.
A repeated root is a single root counted twice, and it happens when the discriminant is zero. For x² − 4x + 4 = 0, the repeated root is x = 2, and the graph touches the x-axis at that point.
A quadratic often gives one positive and one negative root. The negative root is the time before the throw, so you discard it. In the example −4.9t² + 20t + 5 = 0, the answer is t ≈ 4.32 seconds, not −0.24 seconds.
Use h = −b / 2a for the x-value, then find k by substituting h into the equation. For x² − 4x + 3, the vertex is (2, −1), and the axis is x = 2.
For ax² + bx + c = 0, the sum of the roots is −b/a and the product is c/a. For x² − 5x + 6 = 0, the sum is 5 and the product is 6.
Yes, but rearrange it first. Move every term to one side so the other side is zero, then read off a, b, and c. If you skip that step, the signs will be wrong.
The most common reason is rounding at different points. This calculator keeps exact values until the final step, then rounds once. Another tool that rounds earlier can give a different last digit.
Yes. If the discriminant is negative, the calculator returns complex roots in the form a ± bi. For x² + 2x + 5 = 0, the roots are x = −1 ± 2i.
Use the formula, keep the square root in exact form, then give the decimal at the end. For x² − 8x + 5 = 0, the exact roots are 4 ± √11, and the decimal roots are about 7.3166 and 0.6834. That is the short way to solve by quadratic formula calculator.
Final Thought
If you understand the discriminant and the vertex, most quadratic problems become short. A quadratic formula calculator does the arithmetic and shows each step, and the ideas in this article explain why each step is there. Use the answer to check your work, keep the method in mind, and the next equation will take less time.
