Skip to content
Study

How to Solve Quadratic Equations: 4 Methods With Examples

Solve quadratic equations by factoring, square roots, completing the square or the quadratic formula, with worked examples and the discriminant.

By ZeroTell Editorial Team7 min read

How to Solve Quadratic Equations: 4 Methods With Examples
On this page
  1. Step zero: get the equation into standard form
  2. Method 1: Factoring
  3. Example: when a = 1
  4. Example: when a ≠ 1
  5. Example: no constant term
  6. Method 2: Taking square roots
  7. Method 3: Completing the square
  8. Method 4: The quadratic formula
  9. Example with whole-number answers
  10. Example with irrational answers
  11. The discriminant: how many solutions?
  12. Which method should you use?
  13. A word problem
  14. How to check your answers
  15. Common mistakes
  16. Practice and check your work
  17. Key takeaways

To solve a quadratic equation, first rearrange it into standard form, ax² + bx + c = 0, then use one of four methods: factoring, taking square roots, completing the square, or the quadratic formula. The quadratic formula, x = (−b ± √(b² − 4ac)) ÷ 2a, works for every quadratic, while factoring is faster when the equation factors neatly. Most quadratics have two solutions, and you can check each by substituting it back into the original equation.

Step zero: get the equation into standard form

A quadratic equation has x² as its highest power. Before choosing a method, move every term to one side so the other side is zero:

ax² + bx + c = 0,   where a ≠ 0

For example, 2x² = 3x + 5 becomes 2x² − 3x − 5 = 0, so a = 2, b = −3 and c = −5. Keep the signs with the coefficients; most errors in the quadratic formula come from dropping a minus sign here.

Method 1: Factoring

Factoring rewrites the quadratic as a product of two brackets. If a product equals zero, one of the factors must be zero (the zero product property).

Example: when a = 1

Solve x² − 5x + 6 = 0.

  1. Find two numbers that multiply to c = 6 and add to b = −5. They are −2 and −3.
  2. Factor: (x − 2)(x − 3) = 0
  3. Set each factor to zero: x − 2 = 0 or x − 3 = 0
  4. Solutions: x = 2 or x = 3

Check: 2² − 5(2) + 6 = 4 − 10 + 6 = 0 ✓ and 3² − 5(3) + 6 = 9 − 15 + 6 = 0 ✓

Example: when a ≠ 1

Solve 2x² + 7x + 3 = 0.

  1. Multiply a × c: 2 × 3 = 6. Find two numbers that multiply to 6 and add to 7: they are 6 and 1.
  2. Split the middle term: 2x² + 6x + x + 3 = 0
  3. Group: 2x(x + 3) + 1(x + 3) = 0
  4. Factor: (2x + 1)(x + 3) = 0
  5. Solutions: x = −1/2 or x = −3

Check x = −1/2: 2(1/4) + 7(−1/2) + 3 = 0.5 − 3.5 + 3 = 0 ✓

Example: no constant term

Solve x² − 4x = 0. Factor out x: x(x − 4) = 0, so x = 0 or x = 4.

Don't divide both sides by x here. That throws away the solution x = 0.

Method 2: Taking square roots

When there's no x term (b = 0), isolate x² and take the square root of both sides. Remember the ±.

Solve 3x² − 48 = 0.

  1. Add 48: 3x² = 48
  2. Divide by 3: x² = 16
  3. Square root: x = ±4, so x = 4 or x = −4

The same method works on equations like (x − 1)² = 9: x − 1 = ±3, so x = 4 or x = −2.

Method 3: Completing the square

Completing the square turns the left side into a perfect square, so you can use square roots. It's also how the quadratic formula is derived.

Solve x² − 4x − 1 = 0.

  1. Move the constant: x² − 4x = 1
  2. Take half of b and square it: half of −4 is −2, and (−2)² = 4
  3. Add 4 to both sides: x² − 4x + 4 = 5
  4. Write the left side as a square: (x − 2)² = 5
  5. Square root: x − 2 = ±√5
  6. Solutions: x = 2 + √5 or x = 2 − √5 (about 4.236 and −0.236)

If a isn't 1, divide every term by a first so the x² term has a coefficient of 1.

Method 4: The quadratic formula

The quadratic formula solves any quadratic in standard form:

x = (−b ± √(b² − 4ac)) ÷ 2a

The whole numerator, −b and the square root together, is divided by 2a.

Example with whole-number answers

Solve 2x² − 3x − 5 = 0, where a = 2, b = −3, c = −5.

  1. Discriminant: b² − 4ac = (−3)² − 4(2)(−5) = 9 + 40 = 49
  2. Square root: √49 = 7
  3. Formula: x = (3 ± 7) ÷ 4
  4. Solutions: x = 10 ÷ 4 = 5/2 or x = −4 ÷ 4 = −1

Check x = 5/2: 2(25/4) − 3(5/2) − 5 = 12.5 − 7.5 − 5 = 0 ✓

Example with irrational answers

Solve 3x² + 2x − 2 = 0, where a = 3, b = 2, c = −2.

  1. Discriminant: 2² − 4(3)(−2) = 4 + 24 = 28
  2. Simplify the root: √28 = √(4 × 7) = 2√7
  3. Formula: x = (−2 ± 2√7) ÷ 6
  4. Simplify by dividing every term by 2: x = (−1 ± √7) ÷ 3

As decimals, that's about 0.549 and −1.215.

The discriminant: how many solutions?

The expression under the square root, b² − 4ac, is called the discriminant. It tells you how many real solutions to expect before you finish solving.

DiscriminantReal solutionsGraph of y = ax² + bx + cExample
PositiveTwo differentCrosses the x-axis twice2x² − 3x − 5 = 0 (discriminant 49)
ZeroOne repeatedTouches the x-axis oncex² − 6x + 9 = 0 (discriminant 0)
NegativeNone (two complex)Never touches the x-axisx² + 2x + 5 = 0 (discriminant −16)

For x² − 6x + 9 = 0: the discriminant is 36 − 36 = 0, and x = 6 ÷ 2 = 3. The equation is (x − 3)² = 0.

For x² + 2x + 5 = 0: the discriminant is 4 − 20 = −16. There are no real solutions. Using the imaginary unit i (where i² = −1), the complex solutions are x = (−2 ± 4i) ÷ 2 = −1 ± 2i.

A positive discriminant that's a perfect square (like 49) means the equation factors with whole numbers or fractions. A positive discriminant that isn't (like 28) means the solutions are irrational.

Which method should you use?

SituationBest method
Small numbers that obviously factorFactoring
No x term (b = 0)Square roots
No constant term (c = 0)Factor out x
a = 1 and b is evenCompleting the square works neatly
Anything else, or you're not sureQuadratic formula

When in doubt, compute the discriminant first. If it's a perfect square, try factoring; otherwise, go straight to the formula.

A word problem

A rectangle's length is 3 cm more than its width, and its area is 40 cm². Find the dimensions.

  1. Let the width be w. Then the length is w + 3.
  2. Area: w(w + 3) = 40, so w² + 3w − 40 = 0
  3. Factor: two numbers that multiply to −40 and add to 3 are 8 and −5, so (w + 8)(w − 5) = 0
  4. Solutions: w = −8 or w = 5
  5. A width can't be negative, so w = 5 cm and the length is 8 cm. Check: 5 × 8 = 40 ✓

Word problems often produce one solution that doesn't make sense in context. Say why you reject it.

How to check your answers

  • Substitute. Put each solution back into the original equation. Both sides should match.
  • Use sum and product. For ax² + bx + c = 0, the two solutions add to −b/a and multiply to c/a. For 2x² − 3x − 5 = 0: 5/2 + (−1) = 3/2 = −(−3)/2 ✓ and (5/2)(−1) = −5/2 = c/a ✓.
  • Sketch the graph. The real solutions are where the parabola crosses the x-axis.

Common mistakes

  • Forgetting to set the equation equal to zero before factoring or using the formula
  • Getting the sign of −b wrong when b is negative (if b = −3, then −b = 3)
  • Dividing only the square root by 2a instead of the whole numerator
  • Losing the ± and finding only one solution
  • Dividing both sides by x and losing x = 0

Practice and check your work

Work each problem by hand first, then compare. An equation solver that shows exact roots, steps and a substitution check is useful for spotting where your work went off track. Use AI step-by-step explanations as a study aid, check them against your own work, and follow your class rules on calculators and AI; our guide on using AI without violating academic integrity covers where the lines usually are.

Solve for x CalculatorExact solutions to equations, step by step

Quadratics come up again in calculus. The vertex of a parabola is where its slope is zero, which you can find with the power rule in our guide to derivative rules.

Key takeaways

  • Rewrite the equation as ax² + bx + c = 0 before choosing a method.
  • Factor when it's quick, use square roots when b = 0, and use the quadratic formula for everything else.
  • The discriminant b² − 4ac tells you whether there are two, one or no real solutions.
  • Check every answer by substitution, and reject solutions that don't fit a word problem's context.

Frequently asked questions

What is the quadratic formula?

For ax² + bx + c = 0 with a ≠ 0, x = (−b ± √(b² − 4ac)) ÷ 2a. The ± gives the two solutions. It works for every quadratic equation, including ones that can't be factored.

Which method should I use to solve a quadratic equation?

Try factoring first if the numbers are small and the equation looks like it factors. Use square roots when there is no x term. Use the quadratic formula when factoring isn't obvious; it always works.

What does it mean when the discriminant is negative?

If b² − 4ac is negative, the equation has no real solutions, and its graph never crosses the x-axis. It does have two complex solutions, which involve the imaginary unit i.

Can a quadratic equation have only one solution?

Yes. When the discriminant is zero, the two solutions are the same number, called a repeated or double root. For example, x² − 6x + 9 = 0 has the single solution x = 3.

Try it on your own text

Solve for x Calculator

Exact solutions to equations, step by step

Open Solve for x Calculator

Tools for this topic

Related articles