Quadratic Formula vs Factoring: When to Use Each

Factoring is quick when it works, and the quadratic formula always works. The skill is knowing which to reach for before you waste a minute hunting for factors that don’t exist. There is a ten-second check that settles it: the discriminant.

Short answer: for a quadratic with whole-number coefficients, compute b² − 4ac. If it is a perfect square (0, 1, 4, 9, 16, 25…) the quadratic factors into whole-number brackets. If not, skip factoring and use the quadratic formula.

A three-step decision

Step 1: look for a shortcut

Step 2: otherwise, check the discriminant

Write the equation as ax² + bx + c = 0 and compute D = b² − 4ac. It also predicts the kind of answer you will get:

Value of DWhat it meansBest method
A perfect square (1, 4, 9, 25…)Two rational roots; the quadratic factorsFactor, or use the formula for a sure result
Positive, not a perfect squareTwo real roots, irrationalQuadratic formula (it will not factor neatly)
ZeroOne repeated rootFactor as a perfect square, (x + k)²
NegativeNo real roots; two complex rootsQuadratic formula (or stop, if only real roots are asked for)

Step 3: factor only if it will factor, and it is easy

If D is a perfect square and the coefficients are small, especially when a = 1, factor. If a is not 1 and the numbers are large, the formula is faster than trial and error, and the discriminant has already told you the answer will be exact.

Worked examples

Equationb² − 4acVerdictSolutions
x² − 5x + 6 = 01Perfect square: factor(x − 2)(x − 3), so x = 2 or 3
6x² + x − 12 = 0289 = 17²Factorable, but hard to spot(2x + 3)(3x − 4), so x = −3/2 or 4/3
x² − 2x − 1 = 08Not a perfect square: use the formulax = 1 ± √2
x² + 6x + 9 = 00Perfect square trinomial(x + 3)², so x = −3
3x² + 2x + 5 = 0−56No real roots: use the formulax = (−1 ± i√14)/3

Why the discriminant saves time. Take 6x² + x − 12. Finding two numbers that multiply to 6 × (−12) = −72 and add to 1 means testing many pairs. But D = 1 + 288 = 289, which is 17², so the quadratic does factor. The formula gives x = (−1 ± 17)/12, which is 4/3 or −3/2, and those roots hand you the brackets: (3x − 4)(2x + 3).

Compare x² − 2x − 1. Here D = 8 is not a perfect square, so no amount of searching will find whole-number factors. Go straight to x = (2 ± √8)/2 = 1 ± √2.

When each method wins

Mistakes to avoid

To check any answer, the quadratic equation calculator shows the discriminant, every step of the formula, and the vertex. The full formula and its companions are on the algebra formulas cheat sheet.

Examples verified by substitution. Last reviewed October 2026.

Frequently Asked Questions

  1. When should I use the quadratic formula instead of factoring?

    Use the quadratic formula when the discriminant is not a perfect square, when the coefficients are large or fractional, or when factoring is taking more than about thirty seconds. Factor when a shortcut applies or when the numbers are small and the discriminant is a perfect square.

  2. How do I know if a quadratic can be factored?

    For a quadratic with whole-number coefficients, calculate the discriminant b squared minus 4ac. If it is a perfect square, such as 1, 4, 9, 16 or 25, the quadratic factors into brackets with whole-number coefficients. If it is not a perfect square, it will not factor that way.

  3. Does factoring give the same answer as the quadratic formula?

    Yes. Both methods find the same roots. Factoring is a faster route when the quadratic factors neatly, and the formula is a method that works for every quadratic.

  4. Can the quadratic formula solve every quadratic equation?

    Yes. If the discriminant is negative, the formula gives two complex roots involving i. If it is zero you get one repeated root, and if it is positive you get two real roots.

← Browse all free math calculators