Numbers & Arithmetic

Subtracting Integers: How to Do It and Why It Works

To subtract integers, add the opposite of the number being subtracted: a−b=a+(−b)a-b=a+(-b). So 5−(−3)5-(-3) becomes 5+3=85+3=8, and 5−85-8 becomes 5+(−8)=−35+(-8)=-3.

a−b=a+(−b)a - b = a + (-b)

Try it with your numbers

Show every step

The rule takes ten seconds to learn. Understanding why it works is what keeps it from breaking when a problem has three negatives and a pair of parentheses.

How do you subtract integers? The add-the-opposite rule

Every integer subtraction can be turned into an addition, and addition is the operation you already trust. The conversion has four moves:

  1. Keep the first number exactly as written.
  2. Change the subtraction sign to addition.
  3. Replace the second number with its opposite (66 becomes −6-6, −6-6 becomes 66, 00 stays 00).
  4. Add, using the rules in adding integers.

That fourth step is the part most people rush. When the two numbers have the same sign, add their absolute values and keep the sign. When the signs differ, subtract the smaller absolute value from the larger and keep the sign of the number with the larger absolute value.

The costliest slip is changing the wrong number. The opposite step applies only to the second number, never the first. In −9−4-9-4, the −9-9 is untouched and the 44 becomes −4-4, giving −9+(−4)=−13-9+(-4)=-13.

One symbol, two jobs

In 8−38-3 the dash means "take away". In −3-3 the dash is part of the number. Rewriting as 8+(−3)8+(-3) gives each dash exactly one job.

Why does subtracting a negative number make the answer bigger?

Bar chart showing 5 minus 2, 1, 0, negative 1, negative 2 giving answers 3 through 7
Keeping 5 fixed and stepping the second number down makes the answers climb by 1 each time, so subtracting a negative must give a bigger result.

Start with a pattern you can verify with your eyes. Hold the first number at 55 and let the second number step down by one each time:

5−2=3,5−1=4,5−0=5,5−(−1)=6,5−(−2)=75-2=3,\quad 5-1=4,\quad 5-0=5,\quad 5-(-1)=6,\quad 5-(-2)=7

The answers climb by 11 every step, and nothing in the pattern has any reason to stop at zero. Continuing it forces 5−(−1)=65-(-1)=6.

The deeper reason is the definition of subtraction. The difference a−ba-b is the number that, added to bb, gives aa. To find 5−(−2)5-(-2), ask what plus −2-2 equals 55. Since 7+(−2)=57+(-2)=5, the answer is 77. The rule a−b=a+(−b)a-b=a+(-b) is a consequence of that definition, not a trick.

A money picture helps too. If you owe $20 and someone cancels that debt, your net worth rises by 2020. Removing a negative is a gain. The same fact connects to multiplying integers: subtracting bb is adding (−1)⋅b(-1)\cdot b, and (−1)⋅(−3)=3(-1)\cdot(-3)=3.

Quick check

Continue the pattern: 3−2=13-2=1, 3−1=23-1=2, 3−0=33-0=3, so 3−(−1)= ?3-(-1)=\ ?

Subtracting integers on a number line

On a number line, start at the first number. Subtracting a positive number moves you left by that many units. Subtracting a negative number moves you right, because subtracting reverses the direction that adding would take.

For −2−(−5)-2-(-5), start at −2-2 and move 55 units right. You land on 33. Add the opposite to confirm: −2+5=3-2+5=3.

There is a second reading that is often faster: a−ba-b is the signed step from bb to aa. For 2−(−3)2-(-3), the step from −3-3 up to 22 is 55 units to the right, so the answer is 55. This view makes the sign of the answer obvious. If aa sits to the right of bb, the difference is positive. If it sits to the left, the difference is negative.

The number line is a thinking tool, not a calculating tool. It fails when the numbers are large, such as −1,482−(−397)-1{,}482-(-397). There, rewrite as −1,482+397-1{,}482+397, subtract 1,482−397=1,0851{,}482-397=1{,}085, and keep the sign of the larger absolute value: −1,085-1{,}085.

Subtracting integers step by step: four sign cases

Every problem falls into one of four patterns, depending on the signs of the two numbers. The table shows each one with the same digits so the structure is easy to compare.

Pattern Rewritten Result
positive minus positive: 9−49-4 9+(−4)9+(-4) 55
positive minus negative: 9−(−4)9-(-4) 9+49+4 1313
negative minus positive: −9−4-9-4 −9+(−4)-9+(-4) −13-13
negative minus negative: −9−(−4)-9-(-4) −9+4-9+4 −5-5

Three full examples follow.

Example 1. Subtract −14-14 from 99, written 9−(−14)9-(-14):

9−(−14)=9+14=239-(-14)=9+14=23

Example 2. Find −15−8-15-8:

−15−8=−15+(−8)=−23-15-8=-15+(-8)=-23

Both numbers are now negative, so add 15+8=2315+8=23 and keep the negative sign.

Example 3. Find −46−(−29)-46-(-29):

−46−(−29)=−46+29-46-(-29)=-46+29

The signs differ. Subtract the absolute values: 46−29=1746-29=17. The larger absolute value belongs to −46-46, so the answer is negative:

−46+29=−17-46+29=-17

How to subtract several integers in a row

Longer problems like 6−9−(−4)−106-9-(-4)-10 are where scores drop. Rewrite every subtraction as adding an opposite first, then collect the terms:

6−9−(−4)−10=6+(−9)+4+(−10)6-9-(-4)-10=6+(-9)+4+(-10)

=(6+4)+(−9−10)=10+(−19)=−9=(6+4)+(-9-10)=10+(-19)=-9

Group the positives and the negatives separately. Reading left to right gives the same result: 6−9=−36-9=-3, then −3+4=1-3+4=1, then 1−10=−91-10=-9.

Subtraction and addition share one level in the order of operations, so they run left to right. That makes 8−3+2=78-3+2=7, not 33. To get 33 you would need parentheses: 8−(3+2)=38-(3+2)=3. A minus sign in front of parentheses flips every term inside:

10−(4−7)=10−4+7=1310-(4-7)=10-4+7=13

Check it the slow way: 4−7=−34-7=-3, and 10−(−3)=1310-(-3)=13.

Subtraction also breaks two of the friendly laws from the commutative, associative and distributive properties. Order matters, since 10−4≠4−1010-4\neq 4-10. Grouping matters, since (10−4)−3=3(10-4)-3=3 but 10−(4−7)10-(4-7)-style regrouping such as 10−(4−3)=910-(4-3)=9 gives something else.

Subtract a from b: which number comes first?

Wrong versus right order for subtract 8 from 3, showing 3 − 8 equals −5
In "subtract a from b", the number after "from" comes first, so subtracting 8 from 3 gives 3 − 8 = −5.

Word problems reverse the order of reading, and that reversal costs points. “Subtract aa from bb” means b−ab-a. The number after “from” is the one you start with.

  • “Subtract 88 from 33” is 3−8=−53-8=-5.
  • ”88 less than 33” is also 3−8=−53-8=-5.
  • “Decrease −2-2 by 55” is −2−5=−7-2-5=-7.
  • “Subtract −4-4 from −11-11” is −11−(−4)=−11+4=−7-11-(-4)=-11+4=-7.

When a phrase says “the difference of 33 and 88”, follow the order given, 3−83-8, unless the problem says to find the positive gap. A quick test: “from” names the starting amount, and “by” or “of” names the amount that changes.

Quick check

Evaluate: subtract −6-6 from −2-2.

Finding the difference between two integers in real life

The gap between two values is a subtraction, and negatives appear whenever a scale has a meaningful zero. A morning temperature of −8∘C-8^\circ\text{C} that climbs to 15∘C15^\circ\text{C} has risen by 15−(−8)=2315-(-8)=23 degrees. A bank balance of −$40 after the bank reverses a $25 charge becomes −40−(−25)=−15-40-(-25)=-15. A diver at −35-35 m and a cliff top at +20+20 m are 20−(−35)=5520-(-35)=55 m apart.

Change is always final minus initial, which is why subtraction sits underneath every percent change calculation.

Order flips the sign, not the size

3−8=−53-8=-5 and 8−3=58-3=5. Swapping the numbers gives the opposite answer, so the distance between them is ∣a−b∣|a-b|, which is the same either way.

Use the signed version when direction matters (did it rise or fall?) and the absolute version when only the gap matters (how far apart?).

How to check a subtraction of integers answer

The most reliable check reverses the operation: the difference plus the subtracted number must give back the starting number. For Example 3:

−17+(−29)=−46 ✓-17+(-29)=-46\ \checkmark

If the check does not return the first number, something went wrong in the rewrite or the addition.

Three fast sanity tests catch most errors before you check by adding back:

  • Subtracting a negative number never makes the result smaller.
  • Subtracting a positive number never makes the result larger.
  • Swapping the two numbers must give the exact opposite answer.

On a calculator, the negative key and the minus key are different keys. Enter 7−(−4)7-(-4) with parentheses around the negative, or some models read two dashes in a row as an error.

Try this: Without calculating, decide whether each result is larger or smaller than the starting number: −4−(−10)-4-(-10), −4−10-4-10, 4−(−10)4-(-10). Then compute them and confirm with the add-back check (answers: 66, −14-14, 1414).

Subtracting integers in algebra: slope, equations, determinants

Integer subtraction shows up constantly once letters arrive. Slope uses it twice. For the points (−2,3)(-2,3) and (4,−1)(4,-1):

m=−1−34−(−2)=−46=−23m=\frac{-1-3}{4-(-2)}=\frac{-4}{6}=-\frac{2}{3}

Forgetting that the denominator is 4+24+2 is the usual error. The same subtraction appears when you find y=mx+by=mx+b in slope-intercept form.

Solving equations leans on it as well. To solve x+7=2x+7=2, subtract 77 from both sides, a move justified by the properties of equality:

x=2−7=−5x=2-7=-5

Determinants combine subtraction with negatives. For ∣2−345∣\begin{vmatrix}2&-3\\4&5\end{vmatrix}, the 2×2 determinant is ad−bcad-bc:

2⋅5−(−3)(4)=10+12=222\cdot5-(-3)(4)=10+12=22

At the foundation, the integers are closed under subtraction: any two integers give an integer difference. Whole numbers are not, since 3−53-5 has no whole-number answer. That gap is why the negative integers exist, and it is the first step toward the full real number system.

Quick check

Find the slope of the line through (1,−4)(1,-4) and (3,2)(3,2).

Practice problems

0 of 5 solved

  1. 4−94-9

  2. −6−8-6-8

  3. 7−(−13)7-(-13)

  4. −18−(−25)-18-(-25)

  5. −17−(−23)−30-17-(-23)-30

Common questions

How do you subtract integers with different signs?

Rewrite the problem as addition by changing the second number to its opposite. Then add the two numbers using the integer addition rules. For example, 5−(−3)5-(-3) becomes 5+3=85+3=8, and −5−3-5-3 becomes −5+(−3)=−8-5+(-3)=-8.

Why is subtracting a negative the same as adding a positive?

Subtraction asks what number you add to the second number to reach the first. Since 8+(−3)=58+(-3)=5, the difference 5−(−3)5-(-3) must be 88. Another view: removing a debt leaves you richer by exactly that amount.

What is the keep, change, change rule?

It is a memory device for add the opposite: keep the first number, change the minus to a plus, and change the sign of the second number. It only ever touches the second number. Changing the first number is the classic mistake.

Is subtracting integers commutative?

No. Swapping the numbers flips the sign of the answer: 3−8=−53-8=-5 but 8−3=58-3=5. Subtraction is also not associative, so grouping changes the result.

Can subtracting two integers give a number that is not an integer?

No. The integers are closed under subtraction, so the difference of any two integers is always an integer. This is one reason the negative integers exist: whole numbers alone cannot handle 3−53-5.

How do I enter subtracting a negative on a calculator?

Use the negative key (often marked (-)) for the sign and the minus key for the operation, and wrap the negative in parentheses: 7−(−4)7-(-4). Typing two minus keys in a row gives an error or the wrong result on many calculators.

Up next