Subtracting one polynomial from another is Adding Polynomials with one extra step in front of it: flip the sign of every term in the polynomial being subtracted, then combine like terms exactly as before. Nearly every mistake in this lesson traces back to that one step being done to only part of the second polynomial instead of all of it.
Subtraction Is Adding the Opposite
$$ A - B = A + (-B) $$
\(-B\) means every single term of \(B\) has its sign flipped — not just the first term, and not just the terms that happen to already be positive. The minus sign sitting in front of a set of parentheses is really multiplication by \(-1\), and multiplication distributes across an entire sum.
$$ -(x^{2}-3x+5) = -x^{2}+3x-5 $$
All three signs flipped: the \(x^{2}\) term went from positive to negative, the \(-3x\) term went from negative to positive, and the constant \(5\) went from positive to negative.
Subtracting Polynomials Horizontally
Distribute the negative sign across every term of the second polynomial first, then group and combine like terms exactly as in addition.
$$ (3x^{2}+5x-2) - (x^{2}+4x-7) $$
$$ = 3x^{2}+5x-2-x^{2}-4x+7 $$
$$ = (3x^{2}-x^{2}) + (5x-4x) + (-2+7) = 2x^{2} + x + 5 $$
The sign-flip happens exactly once, in the step where the parentheses around the second polynomial are removed — after that, the rest of the process is identical to adding two polynomials.
Subtracting Polynomials Vertically
Flip the sign of every term in the polynomial being subtracted first, then add column by column, exactly as in vertical addition.
$$ \begin{array}{r} 5x^{3} - 2x^{2} + 4x - 6 \\ -\; (2x^{3} + x^{2} - 3x + 1) \\ \hline \end{array} \;\;\Longrightarrow\;\; \begin{array}{r} 5x^{3} - 2x^{2} + 4x - 6 \\ +\; (-2x^{3} - x^{2} + 3x - 1) \\ \hline 3x^{3} - 3x^{2} + 7x - 7 \end{array} $$
Rewriting the subtraction as “add the sign-flipped polynomial” turns vertical subtraction into the exact same column-by-column addition already covered in Adding Polynomials — nothing new is needed once that flip is done.
Subtracting Polynomials in More Than One Variable
The sign flip and the like-terms check both work the same way with two or more variables — every term’s sign flips, and only truly matching variable parts combine.
$$ (5x^{2}y-3xy^{2}+4) - (2x^{2}y-xy^{2}-6) $$
$$ = 5x^{2}y-3xy^{2}+4-2x^{2}y+xy^{2}+6 $$
$$ = (5x^{2}y-2x^{2}y) + (-3xy^{2}+xy^{2}) + (4+6) = 3x^{2}y - 2xy^{2} + 10 $$
Worked Example A: Subtracting Two Trinomials Horizontally
Subtract \((4x^{2}-2x+9) - (x^{2}+5x-3)\).
Step 1 — flip the sign of every term in the second polynomial:
$$ 4x^{2}-2x+9-x^{2}-5x+3 $$
Step 2 — group like terms:
$$ (4x^{2}-x^{2}) + (-2x-5x) + (9+3) $$
Step 3 — combine each group:
$$ 3x^{2} - 7x + 12 $$
Answer: \(3x^{2}-7x+12\)
Worked Example B: A Case with Only the First Term’s Sign Flipped, Corrected
Subtract \((6x^{2}+3x-8) - (2x^{2}-x+5)\), watching every sign in the second polynomial.
Step 1 — flip all three signs in the second polynomial (not just the first term’s):
$$ 6x^{2}+3x-8-2x^{2}+x-5 $$
Step 2 — group like terms:
$$ (6x^{2}-2x^{2}) + (3x+x) + (-8-5) $$
Step 3 — combine each group:
$$ 4x^{2} + 4x - 13 $$
Answer: \(4x^{2}+4x-13\). If only the \(2x^{2}\) had its sign flipped (a common shortcut mistake), the \(-x\) and \(+5\) would incorrectly keep their original signs, producing a wrong answer.
Worked Example C: Subtracting Vertically with a Missing Term
Subtract \((5x^{3}-4x+7) - (2x^{3}+3x^{2}-1)\) using vertical alignment.
Step 1 — flip the sign of every term in the polynomial being subtracted:
$$ -(2x^{3}+3x^{2}-1) = -2x^{3}-3x^{2}+1 $$
Step 2 — stack and add column by column, leaving a gap where a term is missing:
$$ \begin{array}{r} 5x^{3} \phantom{- 3x^{2}} - 4x + 7 \\ +\; (-2x^{3} - 3x^{2} \phantom{- 4x} + 1) \\ \hline 3x^{3} - 3x^{2} - 4x + 8 \end{array} $$
Answer: \(3x^{3}-3x^{2}-4x+8\)
Worked Example D: Subtracting in the Reverse Order
Subtract \((2x-1) - (5x-3)\), then compare it to \((5x-3)-(2x-1)\) from Worked Example (see note below).
Step 1 — flip the sign of every term in \((5x-3)\):
$$ 2x-1-5x+3 $$
Step 2 — combine like terms:
$$ (2x-5x) + (-1+3) = -3x+2 $$
Answer: \(-3x+2\). Subtracting in the other order, \((5x-3)-(2x-1)\), gives \(3x-2\) — the exact opposite result, which is why the order of subtraction always matters and can’t be swapped freely the way addition can.
Common Mistakes to Avoid
- Flipping the sign of only the first term. Every single term inside the second polynomial’s parentheses changes sign, not just the one right after the minus sign.
- Forgetting the negative sign is multiplication by \(-1\). Treating the subtraction sign as if it only touched the term written immediately next to it, rather than distributing across the whole polynomial, is the single most common error in this lesson.
- Combining terms before finishing the sign flip. Distribute the negative sign completely first; combining prematurely risks locking in an unflipped sign.
- Assuming subtraction is commutative. \(A-B\) and \(B-A\) are opposites of each other, not equal — always subtract in the exact order given.
- Skipping the sign flip in vertical subtraction. Subtracting column by column directly (rather than flipping signs first and then adding) is a common source of errors specifically in the vertical layout.
- Losing track of a missing term’s sign. A term that’s missing from the polynomial being subtracted has nothing to flip and nothing to change — the corresponding term from the first polynomial just passes through unchanged.
Where This Shows Up Later
- Multiplying Polynomials. Expanding a product like \((x-3)(x+3)\) relies on tracking signs exactly as carefully as this lesson does, just across a multiplication instead of a direct subtraction.
- Factoring Polynomials. Checking a factored answer by re-expanding it and subtracting the original polynomial (expecting \(0\)) is a fast way to verify factoring was done correctly.
- Solving equations. Moving a polynomial expression from one side of an equation to the other, in Linear Equations and beyond, is subtraction of an entire polynomial at once.
- Functions. \((f-g)(x)\) is defined as subtracting one function’s output from another’s, which is exactly this term-by-term process applied to two function rules.
Practice Problems
Work each problem yourself before opening the answer.
Problem 1. Subtract \((7x^{2}+4x-3) - (2x^{2}+x-1)\).
Show answer
$$ 7x^{2}+4x-3-2x^{2}-x+1 = (7x^{2}-2x^{2}) + (4x-x) + (-3+1) = 5x^{2} + 3x - 2 $$
Answer: \(5x^{2}+3x-2\)
Problem 2. Subtract \((5x^{3}-3x+2) - (x^{3}+4x^{2}-6)\).
Show answer
$$ 5x^{3}-3x+2-x^{3}-4x^{2}+6 = (5x^{3}-x^{3}) - 4x^{2} + (-3x) + (2+6) = 4x^{3} - 4x^{2} - 3x + 8 $$
Answer: \(4x^{3}-4x^{2}-3x+8\)
Problem 3. Subtract \((3x^{2}-5x+8) - (3x^{2}-5x+8)\).
Show answer
Every term flips sign and then cancels exactly against the matching term above it:
$$ (3x^{2}-3x^{2}) + (-5x+5x) + (8-8) = 0 $$
Answer: \(0\)
Problem 4. Subtract \((4x^{2}+2xy-y^{2}) - (x^{2}-3xy+2y^{2})\).
Show answer
$$ 4x^{2}+2xy-y^{2}-x^{2}+3xy-2y^{2} = (4x^{2}-x^{2}) + (2xy+3xy) + (-y^{2}-2y^{2}) = 3x^{2} + 5xy - 3y^{2} $$
Answer: \(3x^{2}+5xy-3y^{2}\)
Problem 5. Subtract \((6x-9) - (2x^{2}+3x-4)\).
Show answer
$$ 6x-9-2x^{2}-3x+4 = -2x^{2} + (6x-3x) + (-9+4) = -2x^{2} + 3x - 5 $$
Answer: \(-2x^{2}+3x-5\)
Problem 6. Subtract \((x^{2}-4) - (-2x^{2}+7)\).
Show answer
Step 1 — flip the sign of every term being subtracted (a double negative on the \(x^{2}\) term becomes positive):
$$ x^{2}-4+2x^{2}-7 $$
Step 2 — combine like terms:
$$ (x^{2}+2x^{2}) + (-4-7) = 3x^{2} - 11 $$
Answer: \(3x^{2}-11\)
Problem 7. Subtract \((8x^{3}-2x^{2}+x-5) - (3x^{3}-x^{2}+6)\).
Show answer
$$ 8x^{3}-2x^{2}+x-5-3x^{3}+x^{2}-6 = (8x^{3}-3x^{3}) + (-2x^{2}+x^{2}) + x + (-5-6) = 5x^{3} - x^{2} + x - 11 $$
Answer: \(5x^{3}-x^{2}+x-11\)
Problem 8. Subtract \((2x^{2}y+5xy^{2}) - (7x^{2}y-3xy^{2})\).
Show answer
$$ 2x^{2}y+5xy^{2}-7x^{2}y+3xy^{2} = (2x^{2}y-7x^{2}y) + (5xy^{2}+3xy^{2}) = -5x^{2}y + 8xy^{2} $$
Answer: \(-5x^{2}y+8xy^{2}\)
Problem 9. Subtract \((0) - (4x^{2}-3x+1)\), that is, subtract a polynomial from zero.
Show answer
Subtracting from \(0\) just flips every sign, with nothing left over to combine with:
$$ 0-4x^{2}+3x-1 = -4x^{2}+3x-1 $$
Answer: \(-4x^{2}+3x-1\)
Problem 10. Subtract \((3x-1) - (5x+2)\), then subtract in the reverse order, \((5x+2)-(3x-1)\), and compare.
Show answer
First order:
$$ 3x-1-5x-2 = -2x-3 $$
Reverse order:
$$ 5x+2-3x+1 = 2x+3 $$
Answer: \(-2x-3\) for the first order and \(2x+3\) for the reverse order — the two results are opposites of each other, confirming subtraction is not commutative.
Quick Reference
| Situation | Move |
|---|---|
| \(A - B\) | Rewrite as \(A + (-B)\): flip the sign of every term of \(B\) |
| Subtracting horizontally | Distribute the negative sign fully first, then group and combine like terms |
| Subtracting vertically | Flip every sign in the bottom row first, then add column by column |
| A term is missing from the polynomial being subtracted | Nothing to flip in that column — the other term passes through unchanged |
| \(A - B\) versus \(B - A\) | Always opposites of each other, never equal (unless both are \(0\)) |
| Checking a subtraction | Add your answer back to the polynomial that was subtracted; it should reproduce the first polynomial |
Once distributing the negative sign feels automatic, Multiplying Polynomials is the natural next lesson, since expanding a product also depends on tracking signs through every term. Revisit Adding Polynomials any time the sign-flip step feels shaky, or Polynomials for the full overview these lessons split apart. Build speed with the Subtracting Polynomials Generator, or browse the rest of the Algebra lessons as new ones publish.