Home / How to Solve Quadratic Equations

How to Solve Quadratic Equations

Three methods, clear worked examples, and a decision guide for picking the right approach every time.

Chris Terry
By Chris Terry, Editor
Published June 7, 2026

To solve a quadratic equation, plug the coefficients a, b, and c into the quadratic formula: x = (-b +/- sqrt(b^2 - 4ac)) / (2a). That formula always works. For simpler equations, factoring or completing the square can be faster.

What Is a Quadratic Equation?

A quadratic equation is any equation that can be written in the standard form:

ax^2 + bx + c = 0

where a, b, and c are real numbers and a is not zero. The highest power of x is 2, which is what makes it quadratic. According to Wolfram MathWorld, every quadratic equation has exactly two solutions (counting complex numbers), though those solutions may be equal or imaginary.

Real examples show up constantly: projectile motion, profit optimization, area problems. The shape they describe, the parabola, is everywhere in physics and engineering.

The Quadratic Formula

The quadratic formula solves any equation of the form ax^2 + bx + c = 0. No conditions, no special cases.

x = (-b +/- sqrt(b^2 - 4ac)) / (2a)

The +/- sign means you get two answers: one using addition, one using subtraction. The expression under the square root, b^2 - 4ac, is called the discriminant. It tells you what kind of solutions to expect before you finish the calculation.

You can check your work quickly with our quadratic formula calculator, which shows each step of the arithmetic.

Worked Example 1: Two Real Roots

Solve 2x^2 - 4x - 6 = 0.

First, read off the coefficients: a = 2, b = -4, c = -6.

Step 1. Calculate the discriminant: b^2 - 4ac = (-4)^2 - 4(2)(-6) = 16 + 48 = 64.
Step 2. Take the square root: sqrt(64) = 8.
Step 3. Apply the formula: x = (4 +/- 8) / (2 x 2) = (4 +/- 8) / 4.
Step 4. Solve both cases: x = (4 + 8) / 4 = 12 / 4 = 3, and x = (4 - 8) / 4 = -4 / 4 = -1.
Result: x = 3 or x = -1.

Check by substituting back: 2(9) - 4(3) - 6 = 18 - 12 - 6 = 0. Correct.

Method 2: Factoring

Factoring is the fastest method when it works. The goal is to rewrite ax^2 + bx + c as a product of two binomials: (px + q)(rx + s) = 0. From there, each factor can equal zero separately, giving you the two roots.

Factoring works cleanly when the roots are integers or simple fractions. If the discriminant is not a perfect square, factoring over the integers is not possible and you should fall back to the formula.

Worked Example 2: Factoring

Solve x^2 + 5x + 6 = 0.

Here a = 1, b = 5, c = 6. Look for two numbers that multiply to 6 and add to 5. Those numbers are 2 and 3.

Step 1. Write the factored form: (x + 2)(x + 3) = 0.
Step 2. Set each factor equal to zero: x + 2 = 0 gives x = -2. x + 3 = 0 gives x = -3.
Result: x = -2 or x = -3.

A quick check: (-2)^2 + 5(-2) + 6 = 4 - 10 + 6 = 0. Works.

Method 3: Completing the Square (Brief Overview)

Completing the square turns ax^2 + bx + c = 0 into a perfect square trinomial on one side. Move c to the right, divide through by a, then add (b / 2a)^2 to both sides. The left side becomes (x + b/2a)^2, which you can solve with a square root.

It is worth knowing because it is how the quadratic formula is derived. In practice, most people use the formula directly rather than completing the square from scratch each time. The method is also the basis for understanding how to find a derivative of polynomial functions, since manipulating standard forms is a shared skill.

How to Tell Which Method to Use

Here is a simple decision guide.

The discriminant is your early-warning system. Calculate b^2 - 4ac before anything else. Positive means two real roots. Zero means one repeated root. Negative means no real roots.

Solve it instantly

Plug in a, b, and c to get both roots with full working steps.

Common questions

Frequently asked questions

What is the quadratic formula?

The quadratic formula is x = (-b +/- sqrt(b^2 - 4ac)) / (2a). It gives the solutions to any equation in the form ax^2 + bx + c = 0, where a is not zero. The +/- means you get two solutions: one with addition and one with subtraction.

How do you know if a quadratic has no real solutions?

Calculate the discriminant: b^2 - 4ac. If the result is negative, the square root step produces an imaginary number. The equation has no real solutions in that case. It has two complex solutions instead.

What does the discriminant tell you?

The discriminant (b^2 - 4ac) tells you how many real solutions the equation has. A positive value means two distinct real roots. A value of zero means exactly one repeated root, sometimes called a double root. A negative value means no real roots at all, only complex ones.

Can you solve a quadratic by graphing?

Yes. Plot y = ax^2 + bx + c and find where the parabola crosses the x-axis. Each crossing point is a real solution. If the parabola sits entirely above or below the x-axis without touching it, the equation has no real solutions. Graphing is useful for a quick visual check, though it rarely gives exact values for irrational roots.

Chris Terry
About the author
Chris Terry
Editor, Encore Editorial

Editor at Encore Editorial, Chris Terry sets the editorial standards here and turns dense topics into plain English. He has written widely on education, finance, and consumer markets.