Quadratic Formula Calculator
This quadratic formula calculator solves any equation of the form . It shows the steps, the discriminant and a graph, and it gives exact answers, including complex ones. It comes from our free math solver, and you don't need an account.
How to Use the Quadratic Formula Calculator
Enter Your Equation
Type the whole equation, such as 2x^2-5x-3=0. It does not need to equal zero. If you type x^2=5x-6, the steps move everything to one side first.
Read the Steps
You see the values of , and , then the formula with those numbers in it, then the simplified roots. A small table gives the discriminant, the vertex and the axis of symmetry.
Switch the Method
Use the method buttons to see the same equation solved by factoring, by completing the square or by the formula.
The Quadratic Formula
For with :
In words: x equals minus b, plus or minus the square root of b squared minus 4ac, all over 2a.
The numbers , and are called coefficients. goes with , goes with , and is the number on its own. The sign means you work it out twice, once with plus and once with minus.
How Do You Calculate the Quadratic Formula?
Set the equation equal to zero and read off a, b and c. Work out b squared minus 4ac. Take its square root. Then find minus b plus that root, and minus b minus that root. Divide both results by 2a. Those two numbers are the solutions.
- Write the equation as .
- Find .
- Put the numbers into the formula.
- Work out the plus answer and the minus answer.
- Simplify, then put each answer back into the equation to check it.
What Does the Discriminant Tell You?
The discriminant is the part under the square root, b squared minus 4ac. It tells you how many real solutions there are before you solve. A positive value means two real solutions, zero means one repeated solution, and a negative value means two complex solutions.
| Solutions | The parabola | |
|---|---|---|
| Positive | Two real roots | Crosses the -axis twice |
| Zero | One repeated root | Touches the -axis once |
| Negative | Two complex roots | Never meets the -axis |
Methods This Quadratic Equation Solver Uses
Factoring
Find two numbers that multiply to and add to . It is the fastest way when the numbers are kind. Practice it with the factoring calculator.
Completing the Square
Rewrite the equation as a perfect square and take square roots. Doing this to with letters is where the formula itself comes from. The complete the square calculator walks through it.
The Quadratic Formula
It works on every quadratic equation, with any numbers.
Which one should you choose? Try factoring for about 30 seconds. If nothing fits, use the formula. Complete the square when you also need the vertex.
Worked Examples
Example 1: Two Rational Roots
Solve . Here , , .
- Discriminant: .
- Formula: .
- Plus: . Minus: .
Example 2: Roots With a Square Root
Solve . Here , , .
- Discriminant: .
- Formula: .
- Since , divide every term by 2: .
The exact answers are and , or about and . Keep the exact form unless you are asked for decimals.
Example 3: Complex Roots
Solve . Here , , .
- Discriminant: . It is negative, so the roots are complex.
- , so .
Common Mistakes to Check
Using the Wrong Sign for b
If , then and . Put parentheses around every time, and both signs come out right.
Dividing Only Part of the Top
The whole top is divided by . In Example 2, dividing only the root by 2 would give , which is wrong.
Practice Problems
- Solve .
- Solve .
- Solve .
- Solve .
- Solve .
Show the answers
- or
- or
- , a repeated root
- or
- or
Related Calculators
- Factoring CalculatorThis factoring calculator can factor polynomials and whole numbers with steps. Get factor pairs, trinomials and more for free. Enter a problem to start.
- Complete the Square CalculatorThis complete the square calculator turns any quadratic into vertex form and solves it. A free completing the square calculator with steps. Try yours.
- Equation SolverThis equation solver handles linear, radical, log and more equation types. Solve equations step by step and see each answer checked. Free, with no sign-up.
- Polynomial CalculatorUse this polynomial calculator to add, multiply, divide and solve with steps. A free polynomial solver that finds roots and remainders. Enter yours now.
Learn More
FAQ
What Are 5 Methods of Solving a Quadratic Equation?
Factoring, taking square roots, completing the square, the quadratic formula and graphing. This quadratic solver with steps shows three of them as step-by-step methods and adds a graph.
How Can I Solve a Quadratic Equation Online?
Type it into the box at the top of this page and press Solve. You can use it as a quadratic equation calculator for equations with real or complex roots.
How Do I Use the Quadratic Formula on My Calculator?
Work out first and store it. Then type (-b+sqrt(D))/(2a), with your numbers in place of the letters and as the stored value. Keep both sets of parentheses. Repeat with a minus sign for the second root.
What If the Discriminant Is Negative?
There are no real solutions, so the graph never meets the -axis. There are still two complex solutions, written with .
Can Every Quadratic Be Factored?
Not with whole numbers. has no whole-number factors, because its roots contain . The formula still solves it.
What Happens If a Is Zero?
Then there is no term, so the equation is linear, not quadratic. The formula would divide by zero. Use the equation solver instead.
Next step: put your own equation into the quadratic formula calculator above and look at the discriminant before you read the roots.