MathPicBot owl mascot MathPicBot
ALGEBRA · 5 MIN READ

How to solve quadratic equations, step by step

Every quadratic can be cracked with one of three reliable methods. Here's when to reach for each — with worked examples you can follow along.

By the MathPicBot team · Updated July 2026

A quadratic equation is any equation you can write in the form ax² + bx + c = 0, where a ≠ 0. The goal is always the same: find the values of x that make it true. Those are the equation's roots.

Method 1 — Factoring

If the quadratic factors neatly, this is the fastest route. You rewrite it as a product of two brackets, then use the fact that if a product is zero, one of its factors must be zero.

WORKED EXAMPLE
x² − 5x + 6 = 0
1. Find two numbers that multiply to 6 and add to −5: that's −2 and −3.
2. Factor: (x − 2)(x − 3) = 0
3. Set each bracket to zero.
ANSWER
x = 2   or   x = 3

Method 2 — The quadratic formula

When factoring isn't obvious, the quadratic formula always works. For ax² + bx + c = 0:

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

The part under the root, b² − 4ac, is the discriminant. If it's positive there are two real roots; zero gives one; negative means the roots are complex.

MathPicBot owl
Don't want to do it by hand?
Snap a photo of your quadratic and MathPicBot solves it step by step.
Solve it now →

Method 3 — Completing the square

This method rewrites the equation as a perfect square plus a constant. It's the most work by hand, but it's how the quadratic formula is derived — and it's essential for tasks like finding a parabola's vertex.

Take x² + 6x + 5 = 0. Move the constant, halve the coefficient of x and square it, then rewrite: (x + 3)² = 4, which gives x = −1 or x = −5.

Which method should you use?

Stuck partway through? Send MathPicBot a photo of your equation and check your working against its step-by-step solution.