Adding and Subtracting Integers

Watch the video explainer

Learning goals

  • Add on the number line by stepping right for a positive and left for a negative
  • Combine two same-sign numbers by adding their distances from zero and keeping that sign
  • Find a different-sign sum by subtracting the distances and taking the farther number's sign
  • Explain why a number and its opposite make a zero pair, so a+(−a)=0a + (-a) = 0
  • Rewrite a subtraction as adding the opposite, so 4−(−6)=4+6=104 - (-6) = 4 + 6 = 10

Addition as a walk along the line

Whole-number addition counts on: 3+43 + 4 starts at 33 and moves four units right to 77. With a negative number, the step goes the other way. For 3+(−4)3 + (-4), start at 33 and move four units left, past 2,1,02, 1, 0, to −1-1.

3 + 4: start at 3, step 4 units to the right, land on 7. A number line from -3 to 8. Points marked at 3. Jumps from 3 to 7. -3 -2 -1 0 1 2 3 4 5 6 7 8 +4 3
3 + 4: start at 3, step 4 units to the right, land on 7.
3 + (-4): start at 3, step 4 units to the left, land on -1. A number line from -3 to 8. Points marked at 3. Jumps from 3 to -1. -3 -2 -1 0 1 2 3 4 5 6 7 8 -4 3
3 + (-4): start at 3, step 4 units to the left, land on -1.

Both walks start at 33. The sign of the number being added changes the direction, just as a deposit raises a balance and a withdrawal lowers it.

To add a+ba + b, start at aa. A positive bb moves you right by its distance from zero; a negative bb moves you left by its distance from zero. Adding zero leaves you in place. The letters aa and bb stand for any two integers.

Use the number line below to change the start or the number being added.

The sign chooses the direction, the size chooses the distance

1 + (-4) = -3. Adding a negative number moves 4 units to the left. A number line from -6 to 6. A dot marks the starting number and an arrow shows the step to the landing point. Use the controls below the figure to change either one. -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 -4 1 -3
Start at Then add

1 + (-4) = -3. Adding a negative number moves 4 units to the left.

A number line walk you can change: choose the number to start from, then choose the number to add.

The arrow shows the step, and the filled point shows where it ends. Try these changes:

  1. Leave the start at 11 and change the added number from −4-4 to 44. The landing point moves from −3-3 to 55: the same distance from the start, in opposite directions.
  2. Set the added number to 00. There is no step, so you land where you started.
  3. Keep the added number fixed and move the start. The arrow keeps its length and direction.

Check your understanding

To find −2+5-2 + 5, which walk and landing point are correct?

Answer choices

Adding two numbers with the same sign

Adding two negatives combines two leftward moves. For (−2)+(−5)(-2)+(-5), start two units left of zero and move five more units left. You end seven units left of zero, at −7-7.

(-2) + (-5): two leftward steps combine to land 7 units left of zero, at -7. A number line from -9 to 3. Points marked at -2. Jumps from -2 to -7. -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 -5 -2
(-2) + (-5): two leftward steps combine to land 7 units left of zero, at -7.

Two positives combine rightward moves instead: 2+5=72+5=7. In both cases the distances add, and the answer stays on the same side of zero.

Same signs: add the distances from zero and keep the shared sign.

Check your understanding

What is (−6)+(−7)(-6) + (-7)?

Answer choices

A number plus its opposite is zero

Opposites have the same distance from zero, on opposite sides, except that zero is its own opposite. Start at 55 and add −5-5: five steps left bring you exactly back to zero.

5 + (-5): stepping 5 units left from 5 lands exactly on zero. A number line from -2 to 7. Points marked at 5. Jumps from 5 to 0. -2 -1 0 1 2 3 4 5 6 7 -5 5
5 + (-5): stepping 5 units left from 5 lands exactly on zero.

Two numbers that add to zero are called a zero pair. The walk shows why every number and its opposite make one.

A number plus its opposite is always zero#

Try −4+4-4+4. From −4-4, four rightward steps return to zero, so −4+4=0-4+4=0.

Now let aa be any nonzero integer. Starting at aa, adding its opposite −a-a moves the same distance back toward zero, so it lands on zero. This works whether aa starts left or right of zero.

If a=0a=0, adding its opposite means taking no step, and 0+0=00+0=0. Thus every integer satisfies

a+(−a)=0.a+(-a)=0.

When the signs differ, you can match positive units with negative units to make zero pairs. The units left unmatched give the sum.

Check your understanding

Why does 8+(−8)=08+(-8)=0?

Answer choices

Adding two numbers with different signs

Take 7+(−3)7+(-3). Start at 77 and step three units left to 44. Three positive units pair with three negative units, leaving four positive units.

7 + (-3): a 3-unit step left cancels 3 of the 7 units, leaving 4 to the right. A number line from -2 to 9. Points marked at 7. Jumps from 7 to 4. -2 -1 0 1 2 3 4 5 6 7 8 9 -3 7
7 + (-3): a 3-unit step left cancels 3 of the 7 units, leaving 4 to the right.

Now the negative number is farther from zero: 3+(−7)3 + (-7). Start at 33 and step seven units left. The first three steps bring you to zero (a zero pair cancels), and four more steps carry you past zero to −4-4:

3 + (-7): 3 of the 7 left steps reach zero, and 4 more land on -4. A number line from -6 to 5. Points marked at 3. Jumps from 3 to -4. -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 -7 3
3 + (-7): 3 of the 7 left steps reach zero, and 4 more land on -4.

In 7+(−3)7+(-3), positive units remain. In 3+(−7)3+(-7), negative units remain. Both have a remaining distance of 7−3=47-3=4.

Different signs: subtract the smaller distance from the larger. Use the sign of the number farther from zero, because that side has units left over.

If the distances are equal, all units pair off and the sum is zero: 6+(−6)=06+(-6)=0.

Check your understanding

What is (−8)+5(-8) + 5?

Answer choices

Subtraction means adding the opposite

Subtraction undoes addition. For example, adding 33 moves three units right, so subtracting 33 moves three units left. Thus 7−37-3 and 7+(−3)7+(-3) both land at 44.

Now consider a negative step. Adding −6-6 moves six units left. Undoing it must move six units right. The two walks below show a step and the step that undoes it:

Adding -6 steps 6 units left: 10 + (-6) = 4. A number line from -2 to 12. Points marked at 10. Jumps from 10 to 4. -2 -1 0 1 2 3 4 5 6 7 8 9 10 11 12 -6 10
Adding -6 steps 6 units left: 10 + (-6) = 4.
Subtracting -6 undoes that step, so it goes 6 units right: 4 - (-6) = 10. A number line from -2 to 12. Points marked at 4. Jumps from 4 to 10. -2 -1 0 1 2 3 4 5 6 7 8 9 10 11 12 +6 4
Subtracting -6 undoes that step, so it goes 6 units right: 4 - (-6) = 10.

The reverse walk starts at 44 and ends at 1010. That is also what adding 66, the opposite of −6-6, does. More generally, undoing any step means moving the same distance in the other direction:

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

Here aa and bb can be any integers, including zero. Rewrite a subtraction this way, then use the addition rules. For example,

4−(−6)=4+6=10.4-(-6)=4+6=10.

You can see the same thing with money: if a debt of six dollars is removed, you are six dollars better off.

Check your understanding

Which rewrite and value are correct for −3−(−5)-3-(-5)?

Answer choices

Worked examples

Worked example 1 Rewrite a subtraction: −2−9-2 - 9

Subtraction is adding the opposite, so make that trade before anything else. The opposite of 99 is −9-9:

−2−9=−2+(−9).-2 - 9 = -2 + (-9).

Now both numbers are negative, so both steps go left and their distances add:

2+9=11.2 + 9 = 11.

Two leftward steps land 1111 units to the left of zero, so the answer is negative:

−2−9=−11.-2 - 9 = -11.

Worked example 2 A longer chain: −4+9−6−(−2)-4 + 9 - 6 - (-2)

Work left to right, but first rewrite every subtraction as adding the opposite so the whole expression becomes one string of additions:

−4+9−6−(−2)=−4+9+(−6)+2.-4 + 9 - 6 - (-2) = -4 + 9 + (-6) + 2.

Now combine the steps one at a time. Start with −4+9-4 + 9: the signs differ, the distances are 44 and 99, and the larger is positive, so

−4+9=5.-4 + 9 = 5.

Add the next term, 5+(−6)5 + (-6): signs differ, distances 55 and 66, larger one negative, giving

5+(−6)=−1.5 + (-6) = -1.

Finally add the last term, −1+2=1-1 + 2 = 1. So

−4+9−6−(−2)=1.-4 + 9 - 6 - (-2) = 1.

You can change the order and grouping of an addition without changing the sum, and this works for integers too: the same rightward and leftward steps, taken in any order, end at the same place. After rewriting all subtractions as additions, the positive terms give 9+2=119+2=11 and the negative terms give −4+(−6)=−10-4+(-6)=-10. Then

11+(−10)=1.11+(-10)=1.

Reordering a subtraction can change its value: 7−3=47-3=4, but 3−7=−43-7=-4. That is why we rewrite subtractions before regrouping. Once the expression contains only additions, we can move each term together with its sign.

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

In 1685, the English mathematician John Wallis asked readers to imagine a man walking five yards forward and then two yards back. He would finish three yards ahead of his starting point. But what if he walked eight yards back instead?

The man would finish three yards behind the start. Wallis recorded his advance as −3-3 yards. That could sound strange if an advance had to be a forward distance. But the man’s final position was easy to picture: the minus sign meant to read the distance in the opposite direction.

Wallis used this walk in A Treatise of Algebra to defend negative quantities as meaningful. The walk needed a starting point and two directions, forward and back. His original diagram and words are reproduced in mathematician David Mumford’s historical study of negative numbers.

Your progress

See all your progress →