Skip to content
Explore tools

Algebra

Quadratic Formula: How To Use It, With 10 Worked Examples

Last updated: October 2026

The quadratic formula is x = (-b ± √(b² – 4ac)) / 2a. It solves any quadratic equation written as ax² + bx + c = 0, where a is not 0. Plug in a, b and c, simplify, then work out the answer once with plus and once with minus to get both solutions.

It works even when an equation cannot be factored. Below are the five steps, the discriminant and 10 worked examples.

What Is The Quadratic Formula?

The quadratic formula is a rule that gives the solutions, also called roots or zeros, of any quadratic equation. A quadratic equation is any equation where the highest power of x is 2.

Here is the formula again, written out:

x = (-b ± √(b² – 4ac)) / (2a)

Read it as: "x equals negative b, plus or minus the square root of b squared minus four a c, all over two a."

The whole top part sits over 2a, not just the square root.

Standard Form And The Values Of A, b And c

Before you can use the formula, the equation must be in standard form:

ax² + bx + c = 0

LetterWhat it isIn 2x² – 7x + 3 = 0
aThe number in front of x²2
bThe number in front of x-7
cThe number with no x (the constant)3

Three rules matter here:

If a term is missing, its value is 0. In x² – 9 = 0, b = 0. In x² + 4x = 0, c = 0.

What The ± Sign Means

The ± symbol means "plus or minus." It tells you to work out the formula twice: once adding the square root and once subtracting it.

That is why most quadratics have two answers: their U-shaped graph, a parabola, can cross the x-axis twice.

How To Use The Quadratic Formula In 5 Steps

Using the quadratic formula comes down to five steps: write the equation in standard form, name a, b and c, find the discriminant, plug into the formula, and simplify both answers.

Here is each step with the equation x² + 5x + 6 = 0.

  1. Write it in standard form. It already is: x² + 5x + 6 = 0.
  2. Name a, b and c. a = 1, b = 5, c = 6.
  3. Find the discriminant, b² – 4ac. 5² – 4(1)(6) = 25 – 24 = 1.
  4. Plug into the formula. x = (-5 ± √1) / (2 × 1) = (-5 ± 1) / 2
  5. Split and simplify.

Check: put x = -2 back in: (-2)² + 5(-2) + 6 = 4 – 10 + 6 = 0. It works.

Finding the discriminant first tells you what kind of answer to expect.

The Discriminant: Know Your Answer Type First

The discriminant is the part under the square root sign, b² – 4ac. Its sign tells you how many real solutions the equation has before you solve it.

Discriminant (b² – 4ac)Number of solutionsWhat the graph doesExample
Positive and a perfect square2 rational solutionsCrosses the x-axis twicex² + 5x + 6 = 0 (D = 1)
Positive, not a perfect square2 irrational solutionsCrosses the x-axis twicex² + 4x – 1 = 0 (D = 20)
Zero1 repeated solutionTouches the x-axis oncex² – 6x + 9 = 0 (D = 0)
Negative2 complex solutions, no real onesNever touches the x-axisx² + 2x + 5 = 0 (D = -16)

It is also a factoring test. If the discriminant is a perfect square (0, 1, 4, 9, 16 and so on), the equation factors neatly. If not, use the formula.

Quadratic Formula Examples

The 10 quadratic formula examples below cover every situation you will meet in class: whole-number answers, fractions, a repeated root, square roots, complex numbers, missing terms, rearranging, decimals, a negative a and two word problems. Each one shows every step.

Example 1: Two Whole-Number Answers

Solve x² – x – 12 = 0

Notice that -b is +1 here, because b is -1. The negative of a negative is positive.

Example 2: Fraction Answers

Solve 2x² – 7x + 3 = 0

Always reduce fraction answers. 2/4 becomes 1/2, which a fraction simplifier can confirm in a second.

Example 3: One Repeated Answer

Solve x² – 6x + 9 = 0

When the discriminant is 0, plus and minus give the same answer. The parabola just touches the x-axis at x = 3. This equation is also a perfect square: (x – 3)² = 0.

Example 4: Answers With A Square Root

Solve x² + 4x – 1 = 0

To simplify, divide every term on top by 2: -4/2 = -2 and 2√5/2 = √5. A square root calculator helps when you need the decimal value of √5 (about 2.236).

Example 5: Complex Answers (Negative Discriminant)

Solve x² + 2x + 5 = 0

If your class has not covered complex numbers, the answer is "no real solutions."

Example 6: No x Term (b = 0)

Solve 3x² – 12 = 0

Faster: add 12, divide by 3 to get x² = 4, so x = ±2.

Example 7: No Constant Term (c = 0)

Solve 4x² + 8x = 0

When c is 0, one answer is always 0.

Example 8: Rearrange First

Solve 2x² = 3x + 5

The right side is not 0, so subtract 3x and 5 from both sides:

Using a = 2, b = 3 and c = 5 straight from the original would give a wrong answer.

Example 9: Decimal Coefficients

Solve 0.5x² + 1.5x – 2 = 0

You can plug the decimals straight in, but it is easier to clear them first. Multiply every term by 2:

Multiplying the whole equation by the same number does not change its solutions.

Example 10: A Negative Value Of A

Solve -x² + 4x + 5 = 0

Watch the denominator: 2a is -2. You can also multiply by -1 first to get x² – 4x – 5 = 0, which has the same solutions.

Word Problems Solved With The Quadratic Formula

Quadratic equations show up whenever something falls under gravity or covers an area.

A Ball Thrown Into The Air

A ball is thrown upward from 4 feet above the ground at 64 feet per second. Its height after t seconds is h = -16t² + 64t + 4. When does it hit the ground?

The ball hits the ground when h = 0:

Time cannot be negative, so the ball lands after about 4.06 seconds. The -16 is half of gravity's pull in feet (about 32 feet per second squared).

Finding The Size Of A Rectangle

A garden is 3 feet longer than it is wide. Its area is 40 square feet. How wide is it?

A width cannot be negative, so the garden is 5 feet wide and 8 feet long. Check: 5 × 8 = 40. ✓

How The Quadratic Formula Is Derived

The quadratic formula comes from solving ax² + bx + c = 0 by completing the square. Doing that once, with letters instead of numbers, gives a result that works for every quadratic.

  1. Start with ax² + bx + c = 0.
  2. Divide every term by a: x² + (b/a)x + c/a = 0
  3. Move the constant: x² + (b/a)x = -c/a
  4. Add (b/2a)² to both sides to complete the square: x² + (b/a)x + b²/4a² = b²/4a² – c/a
  5. Write the left side as a square: (x + b/2a)² = (b² – 4ac) / 4a²
  6. Take the square root of both sides: x + b/2a = ±√(b² – 4ac) / 2a
  7. Subtract b/2a: x = (-b ± √(b² – 4ac)) / 2a

Quadratic Formula Vs Other Solving Methods

The quadratic formula always works, but it is not always the fastest. Pick the method that fits the equation in front of you.

MethodBest whenExampleDrawback
FactoringNumbers are small and the discriminant is a perfect squarex² + 5x + 6 = 0Fails for most real-world equations
Square rootsThere is no x term (b = 0)3x² – 12 = 0Only works when b = 0
Completing the squarea = 1 and b is even, or you need vertex formx² + 6x – 7 = 0More steps with odd b or a ≠ 1
Quadratic formulaAny equation, especially messy ones5x² + 3x + 1 = 0More arithmetic for easy cases
GraphingYou need a quick estimate or a pictureAnyAnswers are usually approximate

If no factors jump out quickly, switch to the formula. A graphing calculator is handy for seeing where the parabola crosses the x-axis, so you can tell at a glance whether your answers make sense.

Two Fast Ways To Check Your Answers

Use substitution for certainty, or the sum and product test for speed.

Substitute Back In

Put each answer into the original equation. If the result is 0, it is correct.

For 2x² – 7x + 3 = 0 with x = 1/2: 2(1/4) – 7(1/2) + 3 = 0.5 – 3.5 + 3 = 0 ✓

Use The Sum And Product Of The Roots

For any quadratic ax² + bx + c = 0, the two solutions always follow these rules:

For 2x² – 7x + 3 = 0, the answers were 3 and 1/2:

It works with square roots too: in Example 4, the √5 parts cancel when you add, leaving -4 = -b/a.

How The Formula Connects To The Graph

The solutions from the quadratic formula are the x-intercepts of the parabola y = ax² + bx + c. The formula also hides the parabola's axis of symmetry.

Split the formula into -b/2a and ±√(b² – 4ac)/2a. The first piece is the axis of symmetry and the vertex's x-value. The second is how far each root sits from that line. For x² + 4x – 1 = 0, the axis is x = -2, and the roots sit √5 units on either side of it.

Common Mistakes To Avoid

Most quadratic formula errors are sign slips or dividing only part of the top by 2a. This table shows each mistake and how to avoid it.

MistakeWrongRight
Dividing only the root by 2a-b ± √D / 2a(-b ± √D) / 2a
Squaring a negative b without parentheses-7² = -49(-7)² = 49
Forgetting -b flips the signb = -3, so -b = -3b = -3, so -b = 3
Not moving everything to one sideUsing 2x² = 3x + 5 as isRewrite as 2x² – 3x – 5 = 0
Wrong sign on 4ac when c is negative9 – 40 for (-3)² – 4(2)(-5)9 + 40 = 49
Using only the plus signOne answerSolve with + and with –
Simplifying only part of the top(-4 ± 2√5)/2 = -4 ± √5-2 ± √5
Keeping impossible answers in word problemsWidth = -8 feetReject negative lengths and times

Calculator tip: type negative numbers in parentheses and put the whole top in parentheses before dividing. Enter (-(-7) + √((-7)² – 4×2×3)) / (2×2), not -(-7) + √(…) / 2×2.

Practice Problems With Answers

Try these on your own, then check below. They are in order from easiest to hardest.

  1. x² + 7x + 10 = 0
  2. 3x² + 2x – 1 = 0
  3. x² – 10x + 25 = 0
  4. x² – 2x – 4 = 0
  5. 2x² + 5x – 3 = 0
  6. 5x² + 3x + 1 = 0

Answers

  1. x = -2 or x = -5 (discriminant 9)
  2. x = 1/3 or x = -1 (discriminant 16)
  3. x = 5, a double root (discriminant 0)
  4. x = 1 ± √5, about 3.236 and -1.236 (discriminant 20)
  5. x = 1/2 or x = -3 (discriminant 49)
  6. x = (-3 ± i√11) / 10, no real solutions (discriminant -11)

You can check any of these with the quadratic equation solver, which shows the discriminant and every step.

Summary

The quadratic formula, x = (-b ± √(b² – 4ac)) / 2a, solves every equation in the form ax² + bx + c = 0. Put the equation in standard form, name a, b and c with their signs, find the discriminant, then work out the plus and minus answers.

The discriminant tells you what to expect: two real roots if it is positive, one if it is zero, and complex roots if it is negative. Check answers by substituting them back in or with the sum and product rules.

Next step: work through the six practice problems above, then try writing your own word problem using area or a thrown ball. For more algebra help, the algebra calculator solves and explains other equation types.

Frequently Asked Questions

What is the quadratic formula used for?

The quadratic formula is used to find the solutions of any quadratic equation, meaning any equation where the highest power of the variable is 2. In real life, that includes working out how long a thrown object stays in the air, finding the dimensions of a space from its area, and finding the price that gives the most profit in simple business models. It is also the step that comes before graphing parabolas in algebra and precalculus.

Does the quadratic formula always work?

Yes. The quadratic formula works for every quadratic equation, as long as it is in standard form and a is not 0. It works even when the equation cannot be factored and even when the solutions are irrational or complex. That reliability is why it is often taught as the fallback method. Other methods, like factoring, are simply faster for certain equations.

What is the difference between a quadratic equation and the quadratic formula?

A quadratic equation is the problem, and the quadratic formula is one tool for solving it. The equation has the form ax² + bx + c = 0, such as x² + 5x + 6 = 0. The formula, x = (-b ± √(b² – 4ac)) / 2a, is the general recipe that turns the values of a, b and c into the answers. You can also solve quadratic equations by factoring or graphing.

What does the quadratic formula look like when a = 1?

When a = 1, the formula gets simpler: x = (-b ± √(b² – 4c)) / 2. The 4ac becomes just 4c, and the bottom becomes 2. For x² + 6x + 7 = 0, that gives x = (-6 ± √(36 – 28)) / 2 = (-6 ± √8) / 2 = -3 ± √2. Many textbook problems start with a = 1, so this short version saves time.

Can you use the quadratic formula on a cubic equation?

Not directly. The quadratic formula only works when the highest power is 2. A cubic equation has an x³ term, so it needs different methods. However, if you can factor out one root first, such as x(x² – 5x + 6) = 0, the leftover piece is quadratic, and you can use the formula on that part to find the remaining solutions.

Can I use a calculator to solve quadratics on the SAT?

Yes. The digital SAT has a Desmos calculator built into the Bluebook app for the whole Math section, and you may bring your own approved calculator instead. Handheld calculators must not have CAS (computer algebra) features. Graphing the equation and reading the x-intercepts is often faster than the formula, but knowing the formula helps when you need exact answers like -2 ± √5.

Try it with your own numbers

Use a free CalcSolver tool to check the examples in this guide.

Open the quadratic solver