How to Solve Quadratic Equations

Algebra · about 1 min read · updated October 2026

A quadratic equation has the form:

$$ ax^{2} + bx + c = 0 \qquad (a \neq 0) $$

where $a$, $b$, and $c$ are numbers.

Method 1: Factoring

Solve $\; x^{2} - 5x + 6 = 0$.

Look for two numbers that multiply to $6$ and add to $-5$: these are $-2$ and $-3$. So:

$$ x^{2} - 5x + 6 = (x - 2)(x - 3) = 0 $$

By the zero-product property, either $x - 2 = 0$ or $x - 3 = 0$, giving:

$$ x = 2 \quad \text{or} \quad x = 3 $$

Method 2: The quadratic formula

When factoring is hard, use:

$$ x = \frac{-b \pm \sqrt{b^{2} - 4ac}}{2a} $$

The expression $b^{2} - 4ac$ is called the discriminant. It tells you how many real solutions exist:

Discriminant Real solutions
$b^{2} - 4ac > 0$ two distinct real solutions
$b^{2} - 4ac = 0$ one repeated real solution
$b^{2} - 4ac < 0$ no real solutions (two complex ones)

A worked example with the formula

Solve $\; x^{2} + 2x - 8 = 0$. Here $a = 1$, $b = 2$, $c = -8$.

Step 1. Discriminant:

$$ b^{2} - 4ac = 2^{2} - 4(1)(-8) = 4 + 32 = 36 $$

Step 2. Square root:

$$ \sqrt{36} = 6 $$

Step 3. Substitute into the formula:

$$ x = \frac{-2 \pm 6}{2} $$

So

$$ x = \frac{-2 + 6}{2} = \frac{4}{2} = 2 \qquad \text{or} \qquad x = \frac{-2 - 6}{2} = \frac{-8}{2} = -4 $$

Solutions:

$$ x = 2 \quad \text{or} \quad x = -4 $$

Factoring when $a \neq 1$

For $\; 2x^{2} + 7x + 3 = 0$, look for two numbers that multiply to $ac = 6$ and add to $b = 7$: these are $6$ and $1$.

$$ 2x^{2} + 7x + 3 = (2x + 1)(x + 3) = 0 $$

So

$$ x = -\frac{1}{2} \quad \text{or} \quad x = -3 $$

Try it

Use the MathPilot AI Equation Solver with $x^{2} + 2x - 8 = 0$, then generate quadratic practice problems to build speed.

Practice it: try the equation solver or generate a practice set on this topic.

More algebra guides