Formula
Quadratic formula
Also written: quadratic equation formula · solving quadratics formula
The quadratic formula gives both solutions of any equation in the form ax² + bx + c = 0, whether or not it factors.
What each part means
- the coefficient of x², and never zero
- the coefficient of x
- the constant term
- read the formula twice, once with plus and once with minus
Quadratic formula calculator
Enter the numbers from . Whole numbers, decimals and fractions all work, and the steps below follow the lesson line for line.
The steps below solve a sample equation, with a = 1, b = −5 and c = 6. Turn on JavaScript to try your own numbers.
Worked example:
Two real solutions: x = 3 and x = 2.
Read off a, b and c
In , keep each sign with its number.
Find the discriminant
The discriminant is positive and a perfect square, so there are two real solutions, both rational.
Substitute into the formula
Put the values into the quadratic formula.
Split the ±
Work out the + and the − separately.
Check the solutions
Substitute each solution back into the equation.
Runs on your device: nothing you type is sent or saved. Want the reasoning behind each step? Read the quadratic formula lesson. If the discriminant is negative, see quadratics with complex solutions.
When to use it
The equation is quadratic and either does not factor or would take too long to try. It always works, so it is the fallback when factoring stalls.
Before you use it
Rearrange the equation so one side is zero. The formula reads , and off the standard arrangement , and reading them off anything else gives the wrong answer.
Keep the signs with the numbers. In , the value of is .
Where the formula comes from
It is completing the square, done once on the general equation instead of every time on numbers.
Start from , divide by , then move the constant across:
Add the square of half the coefficient to both sides:
The left side is now a perfect square, and the right side goes over a common denominator:
Take the square root of both sides, which is where appears, and subtract :
Full walkthrough in completing the square.
Worked examples
Solve .
Here , , .
So or .
Solve .
Here , , .
This one does not factor over the whole numbers, which is exactly when the formula earns its place.
The part under the root
is the discriminant. Computing it first tells you how many real solutions to expect, and warns you before you take the root of a negative.
Lessons that teach this
- Square Roots: What They Mean and How to Estimate Them
What a square root is, why √25 means 5 and not ±5, how to recognize perfect squares, and how to estimate a root like √50 to one decimal place without a calculator.
- The Quadratic Formula: How and Why It Works
Learn the quadratic formula, where it comes from, and how to use it to solve any quadratic equation, with worked examples and practice problems.
- Completing the Square, Step by Step
Learn completing the square: why the method works geometrically, how to handle a leading coefficient, and how it produces vertex form and the quadratic formula.