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:
- Keep the first number exactly as written.
- Change the subtraction sign to addition.
- Replace the second number with its opposite ( becomes , becomes , stays ).
- 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 , the is untouched and the becomes , giving .
In the dash means "take away". In the dash is part of the number. Rewriting as gives each dash exactly one job.
Why does subtracting a negative number make the answer bigger?

Start with a pattern you can verify with your eyes. Hold the first number at and let the second number step down by one each time:
The answers climb by every step, and nothing in the pattern has any reason to stop at zero. Continuing it forces .
The deeper reason is the definition of subtraction. The difference is the number that, added to , gives . To find , ask what plus equals . Since , the answer is . The rule 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 . Removing a negative is a gain. The same fact connects to multiplying integers: subtracting is adding , and .
Quick check
Answer:
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 , start at and move units right. You land on . Add the opposite to confirm: .
There is a second reading that is often faster: is the signed step from to . For , the step from up to is units to the right, so the answer is . This view makes the sign of the answer obvious. If sits to the right of , 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 . There, rewrite as , subtract , and keep the sign of the larger absolute value: .
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: | ||
| positive minus negative: | ||
| negative minus positive: | ||
| negative minus negative: |
Three full examples follow.
Example 1. Subtract from , written :
Example 2. Find :
Both numbers are now negative, so add and keep the negative sign.
Example 3. Find :
The signs differ. Subtract the absolute values: . The larger absolute value belongs to , so the answer is negative:
How to subtract several integers in a row
Longer problems like are where scores drop. Rewrite every subtraction as adding an opposite first, then collect the terms:
Group the positives and the negatives separately. Reading left to right gives the same result: , then , then .
Subtraction and addition share one level in the order of operations, so they run left to right. That makes , not . To get you would need parentheses: . A minus sign in front of parentheses flips every term inside:
Check it the slow way: , and .
Subtraction also breaks two of the friendly laws from the commutative, associative and distributive properties. Order matters, since . Grouping matters, since but -style regrouping such as gives something else.
Subtract a from b: which number comes first?

Word problems reverse the order of reading, and that reversal costs points. “Subtract from ” means . The number after “from” is the one you start with.
- “Subtract from ” is .
- ” less than ” is also .
- “Decrease by ” is .
- “Subtract from ” is .
When a phrase says “the difference of and ”, follow the order given, , 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
Answer:
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 that climbs to has risen by degrees. A bank balance of −$40 after the bank reverses a $25 charge becomes . A diver at m and a cliff top at m are m apart.
Change is always final minus initial, which is why subtraction sits underneath every percent change calculation.
and . Swapping the numbers gives the opposite answer, so the distance between them is , 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:
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 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: , , . Then compute them and confirm with the add-back check (answers: , , ).
Subtracting integers in algebra: slope, equations, determinants
Integer subtraction shows up constantly once letters arrive. Slope uses it twice. For the points and :
Forgetting that the denominator is is the usual error. The same subtraction appears when you find in slope-intercept form.
Solving equations leans on it as well. To solve , subtract from both sides, a move justified by the properties of equality:
Determinants combine subtraction with negatives. For , the 2×2 determinant is :
At the foundation, the integers are closed under subtraction: any two integers give an integer difference. Whole numbers are not, since 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
Answer:
Practice problems
0 of 5 solved
Answer:
Rewrite as . The signs differ, so subtract absolute values: . The larger absolute value belongs to , so the answer is .Answer:
Rewrite as . Both numbers are negative, so add absolute values: . Keep the negative sign: .Answer:
Add the opposite of , which is . Then .Answer:
Rewrite as . The signs differ, so subtract absolute values: . The larger absolute value is positive, so the answer is .Answer:
Rewrite as . First, . Then .
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, becomes , and becomes .
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 , the difference must be . 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: but . 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 .
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: . Typing two minus keys in a row gives an error or the wrong result on many calculators.