Back to How to Solve

How to Solve a Quadratic Equation Step by Step

Quadratics don't have to be scary. Learn how to pick the best method (factoring, square roots, completing the square, or the quadratic formula) and solve with confidence.

📐 Algebra⏱️ ~18 min read📊 Intermediate

Need help fast? Paste your quadratic into our ai math solver to get the full step-by-step solution instantly.

Solve Now →

What is a Quadratic Equation?

A quadratic equation is an equation where the highest power of the variable is 2. The most common way to write it is called standard form:

ax² + bx + c = 0

Here, a, b, and c are numbers and a ≠ 0(if a were 0, it would not be quadratic). Quadratic equations often have two solutions, but they can also have one solution (a repeated root) or no realsolutions.

If you want extra practice and visuals, Khan Academy's Quadratics unit is a solid companion.

The Step-by-Step Strategy (Works Every Time)

If you learn one flowchart for quadratics, learn this one:

  1. Step 1: Rewrite in standard form ax² + bx + c = 0.
  2. Step 2: Try factoring first (fastest when it works).
  3. Step 3: If the equation has b = 0 (no x term), try square roots.
  4. Step 4: If it doesn't factor nicely, use the quadratic formula (always works).
  5. Step 5: Check both solutions in the original equation.

Method 1: Solve by Factoring

Factoring works when you can rewrite the quadratic as a product of two linear factors:

(x + p)(x + q) = 0

Then you use the zero product property: if the product is 0, at least one factor must be 0. So you set each factor equal to 0 and solve.

Example: x² + 5x + 6 = 0

x² + 5x + 6 = 0
(x + 2)(x + 3) = 0
x + 2 = 0 → x = -2
x + 3 = 0 → x = -3
Solutions: x = -2, x = -3

Factoring is the fastest method, but it doesn't always work cleanly. If you can't factor quickly, don't get stuck—move on to a method that always works.

Method 2: Solve Quadratics by Square Roots

The square-roots method is perfect when the quadratic has no middle term (or you can isolate x²):

x² = k

When you take a square root, remember there are two solutions: x = ±√k (plus/minus).

Example: 3x² - 27 = 0

3x² - 27 = 0
3x² = 27
x² = 9
x = ±3
Solutions: x = 3, x = -3

We also have a dedicated guide for this method: how to solve quadratics by square roots.

Method 3: Completing the Square

Completing the square turns a quadratic into a perfect square trinomial, like: (x + m)². This is especially useful when you need vertex form or when you want a method between factoring and the quadratic formula.

Core idea

For x² + bx, add (b/2)² to complete the square.

Example: x² + 6x + 1 = 0

x² + 6x + 1 = 0
x² + 6x = -1
Add (6/2)² = 9 to both sides:
x² + 6x + 9 = -1 + 9
(x + 3)² = 8
x + 3 = ±√8
x = -3 ± 2√2

This method takes practice, but it's extremely powerful—especially in more advanced algebra.

Method 4: The Quadratic Formula (Always Works)

If a quadratic does not factor nicely, the quadratic formula will solve it every time. It applies to any equation in standard form ax² + bx + c = 0.

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

The expression inside the square root, b² − 4ac, is called the discriminant. It tells you how many real solutions you have:

  • If b² − 4ac > 0, there are two real solutions.
  • If b² − 4ac = 0, there is one real solution (a repeated root).
  • If b² − 4ac < 0, there are no real solutions (solutions are complex).

We also wrote a dedicated guide for the formula: how to solve using the quadratic formula.

How to Choose the Best Method

If you notice…Use…Why…
It factors quicklyFactoringFastest and cleanest
No x term (b = 0)Square rootsDirect and efficient
You need vertex formCompleting the squareBuilds (x + m)²
Nothing factors nicelyQuadratic formulaAlways works

Common Mistakes to Avoid

⚠️

Forgetting the ± when taking square roots

If x² = 9, the solutions are x = 3 and x = -3.

⚠️

Not writing the equation in standard form first

Most mistakes happen when a, b, and c are chosen incorrectly.

⚠️

Sign errors with −b or with the discriminant

Use parentheses carefully: (−b ± √(b² − 4ac)) / (2a).

Quick FAQ

Do quadratics always have two solutions?

Often yes, but sometimes there is one repeated solution (discriminant = 0) or no real solutions (discriminant < 0).

What if I get an ugly decimal?

That's normal for many quadratics. Exact answers may involve radicals or fractions.

How do I know if factoring will work?

If the numbers are small, try it quickly. Otherwise, move on—using the quadratic formula is a smart choice, not a “last resort.”

Want the Full Solution Automatically?

Paste your quadratic and get every step (including which method is best).

Try AI Math Solver →
How to Solve a Quadratic Equation Step by Step | Complete Guide