Skip to main content

How to Solve Quadratic Equations

Written by Awn · Published · 10 min read

Quick Answer

Here is how to solve quadratic equations. Move everything to one side so it equals zero. If it factors, set each factor to zero. If there is no x term, take square roots. Otherwise use the quadratic formula. Put each answer back into the original equation to check it.

What Is a Quadratic Equation?

A quadratic equation has x2x^2 as its highest power. Its standard form is ax2+bx+c=0ax^2+bx+c=0, where a≠0a\neq 0. The values of xx that make it true are called roots, zeros or solutions. Its graph is a U-shaped curve called a parabola, and real roots are where the curve meets the xx-axis.

How Do You Choose a Method?

What you seeMethod
No xx term, like 2x2=502x^2=50Square roots
Small whole numbersFactoring
a=1a=1 and bb is evenCompleting the square
Anything elseQuadratic formula
You want a pictureGraphing

How to solve quadratic equations: a chart that leads to square roots, factoring or the formula

Not sure? Type the equation into the quadratic formula calculator and switch between methods.

How to Solve Quadratic Equations Step by Step

  1. Write it as ax2+bx+c=0ax^2+bx+c=0.
  2. Divide out any number that goes into every term.
  3. Choose a method from the table.
  4. Solve, and expect up to two answers.
  5. Check each answer in the original equation.

Method 1: Factoring

This uses the zero product rule: if two things multiply to zero, at least one of them is zero.

Solve x2+2x−15=0x^2+2x-15=0.

  1. Find two numbers that multiply to −15-15 and add to 2. They are 5 and −3-3.
  2. Factor: (x+5)(x−3)=0(x+5)(x-3)=0.
  3. Set each factor to zero: x=−5x=-5 or x=3x=3.

How to solve a quadratic equation by factoring, step by step

Method 2: Square Roots

Use this when there is no xx term.

Solve 2x2=502x^2=50.

  1. Divide by 2: x2=25x^2=25.
  2. Take square roots: x=5x=5 or x=−5x=-5.

Method 3: Completing the Square

Solve x2+8x+10=0x^2+8x+10=0.

  1. Move the 10: x2+8x=−10x^2+8x=-10.
  2. Half of 8 is 4, and 42=164^2=16. Add it: (x+4)2=6(x+4)^2=6.
  3. Take square roots: x=−4±6x=-4\pm\sqrt{6}.

The full method is in how to complete the square.

Method 4: The Quadratic Formula

x=−b±b2−4ac2ax=\frac{-b\pm\sqrt{b^2-4ac}}{2a}

In words: x equals minus b, plus or minus the square root of b squared minus 4ac, all over 2a.

Solve 3x2−2x−4=03x^2-2x-4=0. Here a=3a=3, b=−2b=-2 and c=−4c=-4.

  1. b2−4ac=4+48=52b^2-4ac=4+48=52.
  2. x=2±526=2±2136x=\dfrac{2\pm\sqrt{52}}{6}=\dfrac{2\pm 2\sqrt{13}}{6}.
  3. Divide by 2: x=1±133x=\dfrac{1\pm\sqrt{13}}{3}.

The number b2−4acb^2-4ac is the discriminant. Positive means two real roots, zero means one repeated root, and negative means two complex roots.

Method 5: Graphing

Draw y=ax2+bx+cy=ax^2+bx+c and read where it meets the xx-axis. This shows how many real roots there are. It is only exact when the crossings land on neat numbers.

Putting an Equation in Standard Form

Most mistakes happen before any solving starts. Get the equation into the form ax2+bx+c=0ax^2+bx+c=0 first.

The equation you getWhat to doStandard form
x2=5x−6x^2=5x-6Move everything leftx2−5x+6=0x^2-5x+6=0
x(x+3)=10x(x+3)=10Multiply out, then move 10x2+3x−10=0x^2+3x-10=0
(x−1)2=2x+6(x-1)^2=2x+6Expand, then move termsx2−4x−5=0x^2-4x-5=0
x+6x=5x+\frac{6}{x}=5Multiply by xx, then move 5x5xx2−5x+6=0x^2-5x+6=0

Then read off the three numbers with their signs. In x2−4x−5=0x^2-4x-5=0, they are a=1a=1, b=−4b=-4 and c=−5c=-5. If a term is missing, its number is 0.

It isn't quadratic if the squared terms cancel. For example, x2+3x=x2+9x^2+3x=x^2+9 is really just 3x=93x=9. That is linear, and it has one answer: x=3x=3.

When the Constant Is Missing

If cc is 0, take out xx. For 2x2−8x=02x^2-8x=0, write 2x(x−4)=02x(x-4)=0. So x=0x=0 or x=4x=4. Zero is a real answer, so don't leave it out.

What the Discriminant Tells You

The part under the root in the quadratic formula, b2−4acb^2-4ac, is called the discriminant. You can work it out before you solve anything.

Value of b2−4acb^2-4acSolutionsExample
PositiveTwo realx2−9x+20=0x^2-9x+20=0, where it is 1
ZeroOne repeatedx2−6x+9=0x^2-6x+9=0, where it is 0
NegativeTwo complexx2−2x+17=0x^2-2x+17=0, where it is −64-64

It also tells you whether factoring is worth trying. If the discriminant is a perfect square, such as 0, 1, 4, 9 or 49, then the quadratic factors with whole numbers or fractions. If it is not, go straight to the formula or complete the square.

For x2−4x−1=0x^2-4x-1=0, the discriminant is 16+4=2016+4=20. That is positive, so there are two real roots. It is not a perfect square, so they contain a root sign: 2±52\pm\sqrt{5}.

How to Build an Equation From Its Solutions

You can work backward too. If the solutions are rr and ss, the equation is (x−r)(x−s)=0(x-r)(x-s)=0.

Say the solutions are 2 and −7-7.

  1. Write the factors: (x−2)(x+7)=0(x-2)(x+7)=0.
  2. Multiply out: x2+5x−14=0x^2+5x-14=0.

There is a shortcut. The middle number is the opposite of the sum, and the last number is the product. Here the sum is −5-5 and the product is −14-14. This shortcut is called Vieta's formulas. It's also a quick way to check your own answers.

How to Find the Highest or Lowest Point

The graph of y=ax2+bx+cy=ax^2+bx+c has one turning point, called the vertex. It sits halfway between the two solutions, at x=−b2ax=-\frac{b}{2a}.

For y=x2−4x−5y=x^2-4x-5:

  1. The vertex is at x=42=2x=\frac{4}{2}=2.
  2. Put 2 back in: 4−8−5=−94-8-5=-9.
  3. So the vertex is (2,−9)(2,-9).

The number in front is positive, so the graph opens up and −9-9 is the lowest value. If it were negative, the graph would open down and the vertex would be the highest point. The solutions are 5 and −1-1, and 2 is exactly halfway between them.

Worked Examples

Example 1: Rearrange First

Solve x2=9x−20x^2=9x-20.

  1. Move everything left: x2−9x+20=0x^2-9x+20=0.
  2. Factor: (x−4)(x−5)=0(x-4)(x-5)=0.
  3. So x=4x=4 or x=5x=5.

Example 2: A Leading Number

Solve 2x2+x−6=02x^2+x-6=0.

  1. a×c=−12a\times c=-12. Two numbers that multiply to −12-12 and add to 1 are 4 and −3-3.
  2. Split and group: 2x(x+2)−3(x+2)=(2x−3)(x+2)2x(x+2)-3(x+2)=(2x-3)(x+2).
  3. So x=32x=\frac{3}{2} or x=−2x=-2.

Example 3: One Repeated Solution

Solve x2−6x+9=0x^2-6x+9=0.

  1. Two numbers that multiply to 9 and add to −6-6 are −3-3 and −3-3.
  2. So (x−3)2=0(x-3)^2=0.
  3. Both factors give the same answer: x=3x=3.

On a graph, the curve touches the xx-axis at 3 and turns back.

Example 4: A Word Problem

A ball is thrown up from the ground. Its height in feet after tt seconds is 64t−16t264t-16t^2. When is it 48 feet high?

  1. Set the height equal to 48: 64t−16t2=4864t-16t^2=48.
  2. Move everything to one side: 16t2−64t+48=016t^2-64t+48=0.
  3. Divide by 16: t2−4t+3=0t^2-4t+3=0.
  4. Factor: (t−1)(t−3)=0(t-1)(t-3)=0, so t=1t=1 or t=3t=3.

Both answers make sense. The ball passes 48 feet on the way up after 1 second and on the way down after 3 seconds.

Example 5: Fractions in the Equation

Solve x+6x=5x+\dfrac{6}{x}=5.

  1. Multiply every term by xx: x2+6=5xx^2+6=5x.
  2. Move everything left: x2−5x+6=0x^2-5x+6=0.
  3. Factor: (x−2)(x−3)=0(x-2)(x-3)=0.
  4. So x=2x=2 or x=3x=3. Neither makes the bottom zero, so both count.

Example 6: A Quadratic in Disguise

Solve x4−5x2+4=0x^4-5x^2+4=0.

  1. One power is double the other, so let u=x2u=x^2: u2−5u+4=0u^2-5u+4=0.
  2. Factor: (u−1)(u−4)=0(u-1)(u-4)=0, so u=1u=1 or u=4u=4.
  3. Go back to xx: x2=1x^2=1 or x2=4x^2=4.
  4. So x=1x=1, x=−1x=-1, x=2x=2 or x=−2x=-2.

Don't stop at uu. The question asked for xx.

Example 7: Using the Formula With a Minus Sign

Solve 2x2−7x+4=02x^2-7x+4=0.

  1. Here a=2a=2, b=−7b=-7 and c=4c=4.
  2. The discriminant is (−7)2−4⋅2⋅4=49−32=17(-7)^2-4\cdot 2\cdot 4=49-32=17. It is not a perfect square, so factoring won't work.
  3. Put it in: x=7±174x=\dfrac{7\pm\sqrt{17}}{4}.

As decimals, that is about 2.78 and 0.72. Keep the exact form unless the question asks you to round.

Example 8: An Area Problem

A picture is 8 inches by 10 inches. A frame of equal width goes all the way around it. Together they cover 120 square inches. How wide is the frame?

  1. Let xx be the width of the frame. It adds xx on both sides, so the full size is 8+2x8+2x by 10+2x10+2x.
  2. Write the area: (8+2x)(10+2x)=120(8+2x)(10+2x)=120.
  3. Expand: 4x2+36x+80=1204x^2+36x+80=120, so 4x2+36x−40=04x^2+36x-40=0.
  4. Divide by 4: x2+9x−10=0x^2+9x-10=0, which factors as (x+10)(x−1)=0(x+10)(x-1)=0.
  5. So x=1x=1 or x=−10x=-10. A width can't be negative, so the frame is 1 inch wide.

How to Check Your Solutions

Put them back in. This is the surest test. For Example 2 and x=−2x=-2: 2(4)+(−2)−6=02(4)+(-2)-6=0.

Use the sum and product. For ax2+bx+c=0ax^2+bx+c=0, the two roots add to −ba-\frac{b}{a} and multiply to ca\frac{c}{a}. In Example 2, the sum is 32−2=−12\frac{3}{2}-2=-\frac{1}{2} and the product is 32⋅(−2)=−3\frac{3}{2}\cdot(-2)=-3. Those match −12-\frac{1}{2} and −62\frac{-6}{2}.

Think about the story. In a word problem, throw out answers that can't happen, such as a negative length. Do this only at the end, after both roots have been found.

A Plan You Can Use on a Test

  1. Write the equation so that one side is zero. Put the squared term first and make it positive.
  2. Take out a common factor if there is one. Smaller numbers are easier to work with.
  3. Look at the shape. No middle term means square roots. No constant means take out xx.
  4. Otherwise, spend a short time looking for factors.
  5. If you find none, use the formula. Write down all three numbers with their signs before you start.
  6. Check both answers, either by putting them back in or by their sum and product.
  7. Reread the question. It may ask for only the positive answer, a rounded answer, or the sum of the two.

The order matters. Students who start with the formula often copy a sign wrong, and students who skip the common factor end up with numbers that are harder than they need to be.

Does the Method Change the Answer?

No. All the methods of solving quadratic equations give the same roots. Take x2+2x−15=0x^2+2x-15=0 as an example:

  • Factoring: (x+5)(x−3)=0(x+5)(x-3)=0 gives −5-5 and 3.
  • Completing the square: (x+1)2=16(x+1)^2=16, so x+1=±4x+1=\pm 4, which gives 3 and −5-5.
  • Formula: x=−2±4+602=−2±82x=\frac{-2\pm\sqrt{4+60}}{2}=\frac{-2\pm 8}{2}, which gives 3 and −5-5.

What changes is the amount of work and the chance of a slip. When you are solving quadratic equations on a test, factoring is worth about a minute of looking. If nothing turns up, use the formula. It never fails.

Common Mistakes

Factoring Before It Equals Zero

From (x+5)(x−3)=9(x+5)(x-3)=9 you can't say x+5=9x+5=9. The zero product rule only works with zero.

Dividing by x

In x2=5xx^2=5x, dividing by xx loses the root 0. Move everything to one side and factor: x(x−5)=0x(x-5)=0.

Forgetting the Second Root

From x2=25x^2=25, the answers are 5 and −5-5. Write ±\pm as soon as you take the square root.

Losing a Sign in the Formula

When bb is negative, −b-b is positive. For x2−4x−1=0x^2-4x-1=0, the formula starts with +4+4. Putting parentheses around each number helps: −(−4)-(-4).

Dividing Only Part of the Formula

In −b±b2−4ac2a\frac{-b\pm\sqrt{b^2-4ac}}{2a}, the whole top is divided by 2a2a. Dividing only the root part is one of the most common slips. Draw the fraction bar all the way across.

Canceling a Solution by Accident

If both sides share a factor such as x−3x-3, don't cancel it. You would lose the solution x=3x=3. Move everything to one side and factor it out instead.

Practice Problems

  1. Solve x2−11x+28=0x^2-11x+28=0.
  2. Solve 4x2−36=04x^2-36=0.
  3. Solve x2−4x−1=0x^2-4x-1=0.
  4. Solve 3x2+5x−2=03x^2+5x-2=0.
  5. Solve x2−2x+17=0x^2-2x+17=0.
Show the answers
  1. x=7x=7 or x=4x=4
  2. x=3x=3 or x=−3x=-3
  3. x=2+5x=2+\sqrt{5} or x=2−5x=2-\sqrt{5}
  4. x=13x=\frac{1}{3} or x=−2x=-2
  5. x=1+4ix=1+4i or x=1−4ix=1-4i

Check Your Answer With the Quadratic Solver

Use the quadratic equation calculator to see each method side by side. If factoring is the part that slows you down, use the factoring calculator. A longer textbook version is Quadratic Equations in OpenStax College Algebra.

FAQ

What Is the Easiest Way to Solve a Quadratic Equation?

Factoring, when the numbers are small. When it does not factor quickly, the quadratic formula is the safest choice.

Does Every Quadratic Have Two Solutions?

Counting repeats and complex roots, yes. In real numbers there can be two, one or none.

How Do You Solve a Quadratic Without the Formula?

Factor it, take square roots, or complete the square. Completing the square works every time.

What Is the Zero Product Rule?

If A⋅B=0A\cdot B=0, then A=0A=0 or B=0B=0. It is the reason factoring solves equations.

How Do You Know If a Quadratic Factors?

Work out b2−4acb^2-4ac. If it is a perfect square, such as 49, and the coefficients are whole numbers, then it factors with whole numbers.

How Do You Solve a Quadratic Equation With Fractions?

Multiply every term by the common bottom number first. Then solve the new equation as usual, and check that no answer makes an original bottom number zero.

Why Do Some Quadratics Have No Real Solution?

The graph never reaches the xx-axis, so no real number makes it zero. In the formula, this shows up as a negative number under the root.

What Are Quadratic Equations Used For?

They describe thrown objects, areas, profit that rises and then falls, and the shape of many bridges and dishes. Any time one unknown is multiplied by itself, a quadratic appears.


Next step: take three problems and only choose the method, without solving. Solving quadratics gets faster once you know how to solve quadratic equations by looking at their shape.

Try the Calculator

Related Pages