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 ax2+bx+c=0ax^2 + bx + c = 0, where a≠0a \ne 0. The goal is always the same: find the values of xx 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
x2βˆ’5x+6=0x^2 - 5x + 6 = 0
1. Find two numbers that multiply to 66 and add to βˆ’5-5: that's βˆ’2-2 and βˆ’3-3.
2. Factor: (xβˆ’2)(xβˆ’3)=0(x-2)(x-3) = 0
3. Set each bracket to zero.
ANSWER
x=2x = 2 or x=3x = 3

Method 2: The quadratic formula

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

x=βˆ’bΒ±b2βˆ’4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

The part under the root, b2βˆ’4acb^2 - 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 x2+6x+5=0x^2 + 6x + 5 = 0. Move the constant, halve the coefficient of xx and square it, then rewrite: (x+3)2=4(x+3)^2 = 4, which gives x=βˆ’1x = -1 or x=βˆ’5x = -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.