Short answer: The quadratic formula solves any equation of the form ax² + bx + c = 0: x = (−b ± √(b² − 4ac)) ÷ 2a. Identify a, b and c, substitute, and simplify. The expression under the square root, b² − 4ac, is the discriminant: it tells you whether there are two real solutions, one repeated solution, or none.
The formula looks intimidating, but it is just completing the square done once, in general, so you never have to do it again. Below you will find five worked examples, how the discriminant works, and the derivation step by step.
Key points
- The formula: x = (−b ± √(b² − 4ac)) ÷ 2a solves every quadratic with a ≠ 0.
- Set it to zero first: Rearrange into ax² + bx + c = 0 before reading off a, b and c.
- Watch the signs: Most errors come from the sign of b or c, so substitute negatives in parentheses.
- The discriminant: b² − 4ac tells you how many real solutions there are before you finish.
- Roots are symmetric: Both solutions sit the same distance from the axis of symmetry, x = −b ÷ 2a.
- Built by completing the square: Deriving it once makes the formula far easier to remember.
What is the quadratic formula?
A quadratic equation has the standard form ax² + bx + c = 0, where a, b and c are numbers and a is not zero. Its solutions, also called roots or zeros, are where the parabola y = ax² + bx + c crosses the x-axis.
x = (−b ± √(b² − 4ac)) ÷ 2a
The ± means there are usually two solutions: one using + and one using −. The whole numerator is divided by 2a, not just the square root. Learning to solve quadratics this way is part of the Common Core algebra standards, which also ask students to derive the formula by completing the square (Common Core A-REI.B.4).
How do you use the quadratic formula?
- Write the equation in standard form. Get everything on one side so it equals 0.
- Identify a, b and c. Include their signs.
- Find the discriminant. Compute b² − 4ac first; it keeps the arithmetic manageable.
- Substitute and simplify. Put negative values in parentheses.
- Split the ±. Write one solution with + and one with −, then check by substituting back.
Example 1: two rational solutions
Solve 2x² − 3x − 5 = 0. Here a = 2, b = −3 and c = −5.
- Discriminant: (−3)² − 4(2)(−5) = 9 + 40 = 49.
- Substitute: x = (−(−3) ± √49) ÷ (2 × 2) = (3 ± 7) ÷ 4.
- Split: x = (3 + 7) ÷ 4 = 10 ÷ 4 = 5/2, or x = (3 − 7) ÷ 4 = −4 ÷ 4 = −1.
- Check x = −1: 2(1) − 3(−1) − 5 = 2 + 3 − 5 = 0. Correct.
Because the discriminant, 49, is a perfect square, the solutions are rational, which means this quadratic also factors: (2x − 5)(x + 1) = 0.
Example 2: irrational solutions
Solve x² + 4x + 1 = 0. Here a = 1, b = 4 and c = 1.
- Discriminant: 4² − 4(1)(1) = 16 − 4 = 12.
- Simplify the root: √12 = √4 × √3 = 2√3.
- Substitute: x = (−4 ± 2√3) ÷ 2 = −2 ± √3.
- Decimals: x ≈ −0.27 or x ≈ −3.73.
This one does not factor with whole numbers, which is exactly when the formula earns its keep.
Example 3: one repeated solution
Solve 9x² − 12x + 4 = 0. The discriminant is (−12)² − 4(9)(4) = 144 − 144 = 0, so x = 12 ÷ 18 = 2/3. There is only one solution because the parabola just touches the x-axis at its vertex. In fact, 9x² − 12x + 4 = (3x − 2)².
Example 4: no real solutions
Solve x² + 2x + 5 = 0. The discriminant is 2² − 4(1)(5) = 4 − 20 = −16. A negative number has no real square root, so there are no real solutions and the parabola never crosses the x-axis. In Algebra 2 you will write these as complex numbers: x = (−2 ± 4i) ÷ 2 = −1 ± 2i.
Example 5: a word problem
A ball is thrown upward from a 48-foot platform. Its height after t seconds is h = −16t² + 32t + 48. When does it hit the ground?
- Set h = 0: −16t² + 32t + 48 = 0.
- Divide every term by −16 to simplify: t² − 2t − 3 = 0.
- Discriminant: (−2)² − 4(1)(−3) = 4 + 12 = 16.
- Solve: t = (2 ± 4) ÷ 2, so t = 3 or t = −1.
- Time cannot be negative, so the ball lands after 3 seconds.
Tutor tip: The formula always works, but it is not always the fastest route. Our SAT tutors see students default to “the long way” and lose time; if a quadratic factors quickly, as in Example 5 after dividing, factor it. Use the formula when factoring is not obvious.
Quadratics still not clicking?
A tutor can find exactly where the process breaks down, whether it is signs, square roots or setting up the equation, and fix it one-on-one.
Book a risk-free first lesson →
Or explore our algebra tutoring.
What does the discriminant tell you?
The discriminant, D = b² − 4ac, is the part under the square root. You can read the number and type of solutions from its sign before finishing the problem.
| Discriminant | Solutions | Graph | Example above |
|---|---|---|---|
| D > 0, perfect square | Two rational solutions | Crosses the x-axis twice | 2x² − 3x − 5 = 0 (D = 49) |
| D > 0, not a perfect square | Two irrational solutions | Crosses the x-axis twice | x² + 4x + 1 = 0 (D = 12) |
| D = 0 | One repeated solution | Touches the x-axis at the vertex | 9x² − 12x + 4 = 0 |
| D < 0 | No real solutions (two complex) | Never meets the x-axis | x² + 2x + 5 = 0 (D = −16) |
Why are the roots symmetric?
Split the formula into two fractions: x = −b ÷ 2a ± √D ÷ 2a. The first part, −b ÷ 2a, is the x-coordinate of the vertex and the parabola’s axis of symmetry. The second part is how far each root sits from that axis.
So the two roots are always equally spaced on either side of the vertex. A bigger discriminant pushes them further apart; when D = 0 they merge into one point at the vertex; when D is negative there is no real distance and no real roots. In Example 1, the axis is x = 3 ÷ 4 = 0.75, and the roots 2.5 and −1 are each 1.75 away from it.
Where does the quadratic formula come from?
“At Alexander Tutoring, we derive every formula. Instead of memorizing a formula and plugging numbers in, students see where it comes from.”
Sean Alexander, founder of Alexander Tutoring
The quadratic formula is what you get when you complete the square on the general equation ax² + bx + c = 0.
- Divide by a: x² + (b/a)x + c/a = 0.
- Move the constant: x² + (b/a)x = −c/a.
- Complete the square: add half of b/a, squared, to both sides. That is (b/2a)² = b²/4a², giving x² + (b/a)x + b²/4a² = b²/4a² − c/a.
- Factor the left side: (x + b/2a)² = (b² − 4ac)/4a², after writing the right side over the common denominator 4a².
- Take the square root of both sides: x + b/2a = ±√(b² − 4ac) ÷ 2a. The ± is needed because both a positive and a negative number square to the same value.
- Subtract b/2a: x = (−b ± √(b² − 4ac)) ÷ 2a.
Watch the quadratic formula derived step by step, from ax² + bx + c = 0 to the final formula.
Every step depends on completing the square, so it is worth practicing that move on its own first:
A walkthrough of completing the square, the technique the whole derivation rests on.
For more on why derivations make formulas stick, see how to memorize math formulas. The same idea shows up in our lesson on the area of a circle.
What are the most common quadratic formula mistakes?
- Not setting the equation to zero. In x² + 3x = 10, c is −10, not 10.
- Dropping the sign of b. If b = −3, then −b = 3 and b² = 9, never −9.
- Dividing only part of the numerator by 2a. Both −b and the square root are over 2a.
- Forgetting the ±. Most quadratics have two solutions.
- Squaring a negative without parentheses. On a calculator, −3² gives −9; type (−3)².
Tutor tip: Some students carry out the formula perfectly and then slip on the final step of isolating x. Write each solution on its own line, then substitute it back into the original equation. If the check does not give 0, the error is usually a sign.
Sign slips are among the most common algebra mistakes, and quadratics are where they cost the most. Quadratics also appear on standardized tests: see which math formulas to memorize for the SAT and what math topics are on the ACT. Students usually meet the formula in Algebra 1 and use it constantly in Algebra 2; our 11th grade math guide covers what comes next. For a formal statement of the formula, see Wolfram MathWorld.
Tutor-written guide · PDF
Tips for Performing Well During STEM Exams
The game plan our tutors give students before a big math or science test. Enter your name and email and the guide opens right away.
- The night-before routine that beats cramming
- A first-five-minutes plan: formula dump, read-through, quick wins
- Halfway and 10-minute checkpoints so time never runs out
- Calm-down steps for test anxiety you can use mid-exam
Frequently asked questions
What is the quadratic formula?
The quadratic formula is x = (−b ± √(b² − 4ac)) ÷ 2a. It gives the solutions of any quadratic equation written as ax² + bx + c = 0, where a is not zero.
How do you solve 2x² − 3x − 5 = 0 with the quadratic formula?
Use a = 2, b = −3 and c = −5. The discriminant is 9 + 40 = 49, so x = (3 ± 7) ÷ 4, which gives x = 5/2 or x = −1.
What is the discriminant?
The discriminant is b² − 4ac, the expression under the square root in the quadratic formula. If it is positive there are two real solutions, if it is zero there is one repeated solution, and if it is negative there are no real solutions.
When should you use the quadratic formula instead of factoring?
Use the quadratic formula when a quadratic does not factor easily, such as when the solutions are irrational. If you can spot the factors quickly, factoring is faster, but the formula works on every quadratic.
Can the quadratic formula give only one answer?
Yes. When the discriminant b² − 4ac equals zero, the ± adds and subtracts zero, so both solutions are the same number, x = −b ÷ 2a. The parabola touches the x-axis at its vertex.
How is the quadratic formula derived?
It is derived by completing the square on ax² + bx + c = 0: divide by a, move c/a to the other side, add (b/2a)² to both sides, factor, take the square root of both sides and solve for x.
Master quadratics and everything after them
Our tutors are working mathematicians, scientists and engineers who teach one-on-one, online. Your first lesson is risk-free. Explore algebra tutoring or meet our tutors.
Get in touch → We respond within 30 minutes.

