solving quadratic equations

How to Solve Quadratic Equations: Factoring, the Quadratic Formula, Completing the Square and Graphing

Short answerp. 1

A quadratic equation has four common solving methods. Factoring is fastest when the numbers split cleanly. The quadratic formula, x=−b±b2−4ac2ax=\dfrac{-b\pm\sqrt{b^2-4ac}}{2a}, written on one line as x = (−b ± √(b² − 4ac))/(2a), always works, for any a≠0a\neq0, bb and cc, real roots or not. Completing the square is fastest for vertex questions. How to solve a quadratic equation, in short: pick the method the numbers suggest.

On this page
  1. How to solve a quadratic equation: pick the method first
  2. Solving by factoring
  3. The quadratic formula, step by step
  4. Completing the square to solve
  5. Solving by square roots and by graphing
  6. Quadratic equation examples, solved
  7. Word problems that become quadratics
  8. Check the roots by substitution
  9. When the quadratics set is due

How to solve a quadratic equation: pick the method first

How to solve a quadratic equation depends on what the numbers actually look like, not on memorizing one universal recipe and forcing every equation through it. Solving quadratic equations quickly means learning which method an equation is asking for before writing anything down — the four methods below all reach the same roots, but three of them are faster than the fourth whenever the numbers cooperate. This page is about the solving side only; if what you actually need is standard, vertex and factored form, compared side by side, that's a separate page, because reading information off an equation and solving it for its roots are two different skills that happen to share the same starting expression.

Which method to use
What you seeMethodWhy
cc splits into two integers that add to bbFactoringFastest, no formula needed
The question asks for the vertex, maximum or minimumCompleting the squareReads the vertex straight off
The equation has no xx term (ax2+c=0ax^2+c=0)Square rootsIsolate x2x^2, then root both sides
Nothing factors and the numbers are uglyThe quadratic formulaWorks for any aa, bb, cc — including irrational or complex roots

That triage is how to solve quadratic equations by formula only when the formula is actually the fastest route on offer — glance at cc and bb first, and reach for the formula last, not first. None of the four methods is more "correct" than the others: every one of them, applied to the same equation, lands on the identical pair of roots, because each method is just a different route through the same underlying algebra. The only thing that changes from method to method is how many lines it takes to get there — and on a timed test, lines saved are the entire point of choosing well.

Solving by factoring

a = 1: two numbers that multiply to c and add to b

For x2−x−6=0x^2-x-6=0, find two numbers that multiply to −6-6 and add to −1-1: those are −3-3 and 22. So x2−x−6=(x−3)(x+2)x^2-x-6=(x-3)(x+2), and the equation is true when either factor is 0: x=3x=3 or x=−2x=-2. Check: 32−3−6=9−3−6=03^2-3-6=9-3-6=0; (−2)2−(−2)−6=4+2−6=0(-2)^2-(-2)-6=4+2-6=0.

a ≠ 1: the AC method

For 2x2+7x+3=02x^2+7x+3=0, multiply a×c=2×3=6a\times c=2\times3=6, then find two numbers that multiply to 66 and add to b=7b=7: those are 66 and 11. Split the middle term and factor by grouping: 2x2+6x+x+3=02x^2+6x+x+3=0, so 2x(x+3)+1(x+3)=02x(x+3)+1(x+3)=0, giving (2x+1)(x+3)=0(2x+1)(x+3)=0. The roots are x=−12x=-\dfrac12 and x=−3x=-3. Check: 2(0.25)+7(−0.5)+3=0.5−3.5+3=02(0.25)+7(-0.5)+3=0.5-3.5+3=0; 2(9)+7(−3)+3=18−21+3=02(9)+7(-3)+3=18-21+3=0.

Both examples work because of the same underlying idea: multiplying two binomials always produces a middle term that's a sum, so factoring is really just running FOIL backward. The AC method exists only to handle the case where a≠1a\neq1 makes that sum harder to spot by eye — split the middle term using the pair you found, then group and factor each half, and the same binomial appears in both groups every time the numbers were chosen correctly.

The quadratic formula, step by step

What is the quadratic formula?

The quadratic formula solves any quadratic equation written in standard form, ax2+bx+c=0ax^2+bx+c=0:

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

It always works, even when factoring stalls or the roots turn out to be irrational or complex — the one method guaranteed to work regardless of what aa, bb and cc turn out to be, which is exactly why it's the fallback rather than the first move in the table above.

How do you solve quadratic equations using the quadratic formula? Five moves, applied to the same equation every time.

Identify a, b and c (sign errors start here)

For x2+4x+1=0x^2+4x+1=0: a=1a=1, b=4b=4, c=1c=1. The most common error at this step is dropping a negative sign when bb or cc is negative — write them down before substituting, don't carry them in your head.

Substitute into the formula

Solving quadratic equations using the quadratic formula starts with a direct substitution:

x=−4±42−4(1)(1)2(1)x = \frac{-4 \pm \sqrt{4^2-4(1)(1)}}{2(1)}

Simplify the discriminant

42−4(1)(1)=16−4=124^2-4(1)(1) = 16-4=12. So x=−4±122x = \dfrac{-4\pm\sqrt{12}}{2}.

Two roots, one root, or none: what b² − 4ac tells you

The discriminant b2−4acb^2-4ac tells you what kind of roots you're about to get, before you finish solving — it's worth computing on its own, as a quick preview, before running the rest of the formula, especially on a timed test where a negative result means the remaining arithmetic will involve an imaginary number.

  • Positive (b2−4ac=12>0b^2-4ac=12>0 above): two distinct real roots.
  • Zero: exactly one real root (a repeated root, the vertex touches the x-axis).
  • Negative: no real roots — two complex roots instead. For x2+2x+5=0x^2+2x+5=0, the discriminant is 4−20=−164-20=-16, so the roots are x=−1±2ix=-1\pm2i.

A full worked solve with irrational roots

Continuing x=−4±122x=\dfrac{-4\pm\sqrt{12}}{2}: simplify the radical first, 12=23\sqrt{12}=2\sqrt{3}, then reduce: x=−4±232=−2±3x=\dfrac{-4\pm2\sqrt3}{2}=-2\pm\sqrt3. Leave the answer as x=−2+3x=-2+\sqrt3 and x=−2−3x=-2-\sqrt3 unless the question asks for decimals — the surd form is exact; −2+3≈−0.27-2+\sqrt3 \approx -0.27 and −2−3≈−3.73-2-\sqrt3\approx-3.73 are rounded.

Notice that x2+4x+1=0x^2+4x+1=0 doesn't factor over the integers — there's no pair of whole numbers that multiplies to 1 and adds to 4 — which is exactly the signal from the method table above to reach for the formula instead of hunting for factors that don't exist. The formula never needs that judgment call; it produces the same two roots whether an equation factors neatly or not, which is the whole reason it's the guaranteed fallback.

Completing the square to solve

Completing the square solves a quadratic without factoring and without the formula, by rebuilding one side into a perfect square. Take x2−2x−15=0x^2-2x-15=0:

  1. Isolate the variable terms: x2−2x=15x^2-2x=15.
  2. Take half of bb (−2÷2=−1-2\div2=-1) and square it ((−1)2=1(-1)^2=1).
  3. Add 1 to both sides: x2−2x+1=15+1=16x^2-2x+1=15+1=16.
  4. The left side is now a perfect square: (x−1)2=16(x-1)^2=16.
  5. Square root both sides: x−1=±4x-1=\pm4.
  6. Solve: x=1±4x=1\pm4, giving x=5x=5 or x=−3x=-3.

Check: 52−2(5)−15=25−10−15=05^2-2(5)-15=25-10-15=0; (−3)2−2(−3)−15=9+6−15=0(-3)^2-2(-3)-15=9+6-15=0. This is the same move used to convert standard form into vertex form: step 4 is the vertex form y=(x−1)2−16y=(x-1)^2-16 set equal to zero, and solving continues two lines further, to the roots. Completing the square works on any quadratic, not just this one, because adding (b/2)2(b/2)^2 to a x2+bxx^2+bx expression is always exactly the amount needed to turn it into a perfect square trinomial — that's not a coincidence specific to this equation, it's the algebraic identity the whole method is built on.

Solving by square roots and by graphing

x² = k: isolate and root

When an equation has no xx term at all, isolate x2x^2 and take the square root of both sides — remembering the ±\pm, since both a positive and a negative number square to the same result. For 3x2−27=03x^2-27=0: add 27, 3x2=273x^2=27; divide by 3, x2=9x^2=9; root both sides, x=±3x=\pm3. Check: 3(9)−27=27−27=03(9)-27=27-27=0. Forgetting the ±\pm is the single most common error on this method — a calculator's square-root key only ever returns the positive root, so the negative one has to be added back in by hand.

Reading roots from a graph

A graphed parabola crosses the x-axis exactly at its roots, so once the curve is drawn accurately, the roots can be read off directly without any algebra. For y=x2−4y=x^2-4, a table of points shows where the curve crosses zero:

y = x² - 4, seven points
xx-3-2-10123
yy50-3-4-305

Scroll the table sideways to see every column.

The curve crosses y=0y=0 at x=−2x=-2 and x=2x=2 — the same two roots factoring gives for x2−4=(x−2)(x+2)x^2-4=(x-2)(x+2). Graphing is slower to set up than the other three methods, but it's the only one that shows the whole shape of the parabola at once, not just its roots: where the vertex sits, which way the parabola opens, and how close together or far apart the two roots are. A parabola that only touches the x-axis once, without crossing it, is the graphical picture of a repeated root — the same case example 2 below reaches algebraically.

Quadratic equation examples, solved

These quadratic equation examples run through every method above on fresh numbers, so you can match a new problem to the method it needs on sight. One of the examples below (5) needs the quadratic formula outright and one (7) has no real roots; the rest factor, root out directly, or reduce to one repeated root.

  1. x2+2x−8=0x^2+2x-8=0 — factors: (x+4)(x−2)=0(x+4)(x-2)=0, so x=−4,2x=-4,2. Check: 16−8−8=016-8-8=0; 4+4−8=04+4-8=0.
  2. x2−10x+25=0x^2-10x+25=0 — a perfect square: (x−5)2=0(x-5)^2=0, so x=5x=5 (a repeated root). Check: 25−50+25=025-50+25=0.
  3. 2x2−3x−2=02x^2-3x-2=0 — AC method, a×c=−4a\times c=-4, numbers −4-4 and 11: 2x(x−2)+1(x−2)=(2x+1)(x−2)=02x(x-2)+1(x-2)=(2x+1)(x-2)=0, so x=−12,2x=-\dfrac12,2. Check: 2(0.25)−3(−0.5)−2=0.5+1.5−2=02(0.25)-3(-0.5)-2=0.5+1.5-2=0; 2(4)−6−2=02(4)-6-2=0.
  4. x2+5x=0x^2+5x=0 — factor out xx: x(x+5)=0x(x+5)=0, so x=0,−5x=0,-5. Check: 0+0=00+0=0; 25−25=025-25=0.
  5. x2−2x−1=0x^2-2x-1=0 — formula: discriminant =4+4=8=4+4=8, so x=2±82=1±2x=\dfrac{2\pm\sqrt8}{2}=1\pm\sqrt2. Check (decimal): 1+2≈2.4141+\sqrt2\approx2.414; (2.414)2−2(2.414)−1≈0(2.414)^2-2(2.414)-1\approx0.
  6. −x2+4x−3=0-x^2+4x-3=0 — multiply by −1-1 first: x2−4x+3=0x^2-4x+3=0, so (x−1)(x−3)=0(x-1)(x-3)=0, giving x=1,3x=1,3. Check in the original: −1+4−3=0-1+4-3=0; −9+12−3=0-9+12-3=0.
  7. x2+4=0x^2+4=0 — no real solution: x2=−4x^2=-4, so x=±2ix=\pm2i. The discriminant is 0−16=−160-16=-16, negative, which flags the complex roots before any solving happens.
  8. 4x2−1=04x^2-1=0 — square roots: x2=14x^2=\dfrac14, so x=±12x=\pm\dfrac12. Check: 4(0.25)−1=1−1=04(0.25)-1=1-1=0.

Read back through the eight: four factor over the integers (1, 2, 4, 6), one needs the AC method (3), one is genuinely irrational (5), one has no real solution (7), and one roots out directly with no factoring at all (8). That spread is deliberate — a real problem set rarely sticks to one method for every item, and recognizing which case an equation belongs to, before picking up a pencil, is most of the actual skill this page teaches, more than any single method's mechanics.

Word problems that become quadratics

A word problem becomes a quadratic the moment two quantities get multiplied together and one of them depends on the other — length times width, or velocity and time both feeding into a height formula. The algebra afterward is identical to every worked example above; the only new step is translating the sentence into an equation in the first place.

Projectile height: when does it land?

A ball is thrown upward from a 6-foot platform with an initial velocity of 32 ft/s: h(t)=−16t2+32t+6h(t)=-16t^2+32t+6 (feet and seconds). The −16-16 coefficient isn't arbitrary — it comes from half of Earth's gravitational acceleration in feet per second squared, so it shows up in every projectile-height formula written in feet, not just this one. It lands when h(t)=0h(t)=0: −16t2+32t+6=0-16t^2+32t+6=0. By the quadratic formula, t=−32±322−4(−16)(6)2(−16)=−32±1408−32=1∓224t=\dfrac{-32\pm\sqrt{32^2-4(-16)(6)}}{2(-16)}=\dfrac{-32\pm\sqrt{1408}}{-32}=1\mp\dfrac{\sqrt{22}}{4}. The negative-time root isn't physical — time can't run backward — so it's discarded on sight rather than reported as a second answer: t=1+224≈2.17t=1+\dfrac{\sqrt{22}}{4}\approx2.17 seconds.

Area: find the missing dimension

A rectangular garden's length is 3 feet more than its width, and its area is 70 square feet. Let the width be ww, so the length is w+3w+3: w(w+3)=70w(w+3)=70, giving w2+3w−70=0w^2+3w-70=0. Factoring: (w+10)(w−7)=0(w+10)(w-7)=0, so w=−10w=-10 (rejected — a width can't be negative) or w=7w=7. The width is 7 feet and the length is 10 feet. Check: 7×10=707\times10=70. Rejecting the negative root here works the same way the negative-time root got rejected above: the algebra hands back two mathematically valid solutions, and it's the word problem's own context — a physical width, a moment in time — that rules one of them out, not anything wrong with the quadratic formula or the factoring itself.

Both word problems above turn a sentence into a quadratic and then solve it, which is one direction of a wider pattern worth noticing: many relationships that start out linear turn quadratic the moment area, or the square of a variable, enters the picture. Compare that with direct and quadratic variation, where the same question — does one quantity depend on the square of another — gets asked about tables, graphs and equations instead of word problems.

Check the roots by substitution

Checking a quadratic's roots uses the identical method as checking any other equation's solution: substitute the value back into the original equation and confirm both sides match, which is checking a root by substitution applied to a squared variable instead of a linear one. Example 6 above did exactly this in the original, unmultiplied equation, −x2+4x−3=0-x^2+4x-3=0, rather than the flipped version used to factor it — substituting into the original is what actually confirms the answer, since a sign error in the flip would otherwise go undetected. Every worked example on this page ends the same way, with a substitution check, for the same reason a solving method by itself only tells you an answer is plausible; the check is what actually tells you it's right, not merely reasonable-looking. Decimal roots, like example 5's 1+2≈2.4141+\sqrt2\approx2.414, only check approximately once rounded — the exact surd form checks exactly, which is why it's kept as the primary answer and the decimal is offered only as a sanity check.

When the quadratics set is due

Four methods are learnable in an evening once you know which one a given equation is asking for — the triage table near the top of this page, applied a dozen times, is usually enough to make the choice automatic. A problem set with thirty quadratics — mixed methods, word problems, and a few with complex roots — due by tomorrow is a different kind of task, and it's where most students go looking for a math set worked with every step shown instead of grinding through every item by hand. GradeDraft's math desk, part of our homework help across math and science, solves sets like this with every step shown, not just a final boxed answer, priced from $25 per problem after a quick look at the set.

Send the assignment or a photo of it. You'll get a per-problem quote back within 2 hours (8 am–11 pm ET) and full worked steps with the delivery, the same format used above.

Get my quadratics set solved

FAQ

Quadratic equation questions

Replies within 2 hours, 8 am–11 pm ET, 7 days a week

01

What is the quadratic formula?

The quadratic formula, x=−b±b2−4ac2ax=\dfrac{-b\pm\sqrt{b^2-4ac}}{2a}, solves any quadratic equation written in standard form, regardless of whether it factors. It's the one method that never fails, which is why it's the fallback whenever factoring stalls or the roots turn out to be irrational or complex, rather than the first method reached for. Plug in aa, bb and cc from the standard-form equation, simplify the discriminant under the square root first, then simplify the whole fraction — the five-step order used throughout this page.

02

How do you solve a quadratic equation?

Pick the method the numbers suggest: factor if cc splits cleanly into two integers that add to bb, complete the square if the question wants the vertex, isolate and root if there's no xx term, and use the quadratic formula whenever nothing else applies cleanly. All four methods reach the same roots; they differ only in speed for a given equation, and a graph, while slower, confirms any of the other three visually if the algebra is in doubt.

03

What is a quadratic equation?

A quadratic equation is any equation that can be written as ax2+bx+c=0ax^2+bx+c=0 with a≠0a\neq0 — an equation where the highest power of the variable is 2. Solving it means finding the x-values that make it true, which are also the points where the related parabola, y=ax2+bx+cy=ax^2+bx+c, crosses the x-axis. Drop the squared term entirely and the equation is linear instead; raise the highest power to 3 and it becomes cubic — quadratic sits specifically at power 2, no higher and no lower.

04

Can a quadratic equation have no real solution?

Yes. When the discriminant b2−4acb^2-4ac is negative, the parabola never crosses the x-axis, and the two solutions are complex numbers instead of real ones, as in example 7 above. The equation still has exactly two solutions — they simply aren't points that plot on an ordinary x-y grid. Graphically, a negative discriminant means the whole parabola sits above the x-axis (if it opens upward) or entirely below it (if it opens downward), never touching zero anywhere.

05

When should you use the quadratic formula instead of factoring?

Use the formula the moment factoring stalls past a few seconds of trying — when cc doesn't split into two integers that add to bb, or when the roots turn out to be irrational or complex. Factoring is faster whenever the numbers cooperate, but the formula is the only method guaranteed to work on every quadratic, ugly numbers included, so it's worth reaching for once a factoring attempt has failed rather than testing three or four more integer pairs on guesswork.

Published price from$25 per problem
See my price