Skip to content
Add and Subtract Integers

Add and Subtract Integers

By the end of this section, you will be able to: use negatives and opposites of integers, simplify expressions with absolute value, add integers, and subtract integers.

Use Negatives and Opposites of Integers

Our work so far has only included the counting numbers and the whole numbers. But if you have ever experienced a temperature below zero or accidentally overdrawn your checking account, you are already familiar with negative numbers. Negative numbers are numbers less than 00. The negative numbers are to the left of zero on the number line.

-4-3-2-101234zeroNegative numbersPositive numbers

The arrows on the ends of the number line indicate that the numbers keep going forever. There is no biggest positive number, and there is no smallest negative number.

Is zero a positive or a negative number? Numbers larger than zero are positive, and numbers smaller than zero are negative. Zero is neither positive nor negative.

Consider how numbers are ordered on the number line. Going from left to right, the numbers increase in value. Going from right to left, the numbers decrease in value.

-4-3-2-101234largersmaller

Remember that we use the notation a<ba < b (read “aa is less than bb”) when aa is to the left of bb on the number line, and a>ba > b (read “aa is greater than bb”) when aa is to the right of bb on the number line.

Now we need to extend the number line to include negative numbers, too. The numbers marked by points on this extended line are called the integers. The integers are the numbers 3,2,1,0,1,2,3\dots -3, -2, -1, 0, 1, 2, 3 \dots

Integers. The whole numbers and their opposites are called the integers. The integers are the numbers 3,2,1,0,1,2,3\dots -3, -2, -1, 0, 1, 2, 3\dots

Example. Order each of the following pairs of numbers, using << or >>: (a) 14___614 \_\_\_ 6 (b) 1___9-1 \_\_\_ 9 (c) 1___4-1 \_\_\_ -4 (d) 2___202 \_\_\_ -20.

It may be helpful to refer to a number line.

(a) 1414 is to the right of 66 on the number line, so 14>614 > 6.

(b) 1-1 is to the left of 99 on the number line, so 1<9-1 < 9.

(c) 1-1 is to the right of 4-4 on the number line, so 1>4-1 > -4.

(d) 22 is to the right of 20-20 on the number line, so 2>202 > -20.

Order the pair using < or >: 15___715 \_\_\_ 7

Order the pair using < or >: 2___5-2 \_\_\_ 5

Order the pair using < or >: 3___7-3 \_\_\_ -7

You may have noticed that, on the number line, the negative numbers are a mirror image of the positive numbers, with zero in the middle. Because the numbers 22 and 2-2 are the same distance from zero, they are called opposites. The opposite of 22 is 2-2, and the opposite of 2-2 is 22.

Opposite. The opposite of a number is the number that is the same distance from zero on the number line, but on the opposite side of zero.
-4-3-2-10123433

Sometimes in algebra the same symbol has different meanings. Just like some words in English, the specific meaning becomes clear by looking at how it is used. You have seen the symbol “-” used in three different ways:

ExpressionMeaning
10410 - 4Between two numbers, it indicates the operation of subtraction. We read 10410 - 4 as “10 minus 4.”
8-8In front of a number, it indicates a negative number. We read 8-8 as “negative eight.”
x-xIn front of a variable, it indicates the opposite. We read x-x as “the opposite of xx.”
(2)-(-2)Here there are two “-” signs. The one in the parentheses tells us the number is negative two. The one outside the parentheses tells us to take the opposite of 2-2. We read (2)-(-2) as “the opposite of negative two.”

Opposite notation. a-a means the opposite of the number aa. The notation a-a is read as “the opposite of aa.”

Example. Find: (a) the opposite of 77 (b) the opposite of 10-10 (c) (6)-(-6).

(a) 7-7 is the same distance from 00 as 77, but on the opposite side of 00. The opposite of 77 is 7-7.

(b) 1010 is the same distance from 00 as 10-10, but on the opposite side of 00. The opposite of 10-10 is 1010.

(c) (6)-(-6) is the opposite of 6-6, which is 66.

Find the opposite of 3-3.

Simplify: (1)-(-1).

When evaluating the opposite of a variable, we must be careful. Without knowing whether the variable represents a positive or negative number, we don’t know whether x-x is positive or negative.

Example. Evaluate (a) x-x, when x=8x = 8 (b) x-x, when x=8x = -8.

(a) To evaluate when x=8x = 8 means to substitute 88 for xx, then write the opposite: x=(8)=8-x = -(8) = -8.

(b) To evaluate when x=8x = -8 means to substitute 8-8 for xx, then write the opposite: x=(8)=8-x = -(-8) = 8.

Evaluate n-n, when n=4n = 4.

Evaluate n-n, when n=4n = -4.

Simplify Expressions with Absolute Value

We saw that numbers such as 22 and 2-2 are opposites because they are the same distance from 00 on the number line. They are both two units from 00. The distance between 00 and any number on the number line is called the absolute value of that number.

Absolute value. The absolute value of a number is its distance from 00 on the number line. The absolute value of a number nn is written as n|n|.

For example, 5-5 is 55 units away from 00, so 5=5|-5| = 5. And 55 is 55 units away from 00, so 5=5|5| = 5.

-5055 units5 units

The absolute value of a number is never negative (because distance cannot be negative). The only number with absolute value equal to zero is the number zero itself, because the distance from 00 to 00 on the number line is zero units.

Property of absolute value. n0|n| \geq 0 for all numbers. Absolute values are always greater than or equal to zero!

Example. Simplify: (a) 3|3| (b) 44|-44| (c) 0|0|.

The absolute value of a number is the distance between the number and zero. Distance is never negative, so absolute value is never negative.

(a) 3=3|3| = 3

(b) 44=44|-44| = 44

(c) 0=0|0| = 0

Simplify: 28|-28|.

Simplify: 47|47|.

In the next example, we’ll order expressions with absolute values. Remember, positive numbers are always greater than negative numbers.

Example. Fill in <,>,<, >, or == for each of the following pairs of numbers: (a) 5___5|-5| \_\_\_ -|-5| (b) 8___88 \_\_\_ -|-8| (c) 9___9-9 \_\_\_ -|-9| (d) (16)___16-(-16) \_\_\_ -|-16|.

(a) Simplify each side: 5=5|-5| = 5 and 5=5-|-5| = -5. Since 5>55 > -5, 5>5|-5| > -|-5|.

(b) Simplify: 88 stays 88, and 8=8-|-8| = -8. Since 8>88 > -8, 8>88 > -|-8|.

(c) Simplify: 9-9 stays 9-9, and 9=9-|-9| = -9. Since 9=9-9 = -9, 9=9-9 = -|-9|.

(d) Simplify: (16)=16-(-16) = 16, and 16=16-|-16| = -16. Since 16>1616 > -16, (16)>16-(-16) > -|-16|.

Fill in <, >, or = for the following pair of numbers, entering the full comparison: 8___8-8 \_\_\_ |-8|.

Fill in <, >, or = for the following pair of numbers, entering the full comparison: 1___1-1 \_\_\_ |-1|.

We now add absolute value bars to our list of grouping symbols. When we use the order of operations, first we simplify inside the absolute value bars as much as possible, then we take the absolute value of the resulting number.

Grouping symbolMarks
Parentheses( )( \ )
Brackets[ ][\ ]
Braces{ }\{\ \}
Absolute value \vert\ \vert

In the next example, we simplify the expressions inside absolute value bars first, just as we do with parentheses.

Example. Simplify: 24193(62)24 - |19 - 3(6-2)|.

24193(62)Work inside parentheses first: subtract 2 from 6.24193(4)Multiply 3(4).241912Subtract inside the absolute value bars.247Take the absolute value.247Subtract.17 \begin{array}{ll} & 24 - |19 - 3(6-2)| \\ \text{Work inside parentheses first: subtract 2 from 6.} & 24 - |19 - 3(4)| \\ \text{Multiply } 3(4). & 24 - |19 - 12| \\ \text{Subtract inside the absolute value bars.} & 24 - |7| \\ \text{Take the absolute value.} & 24 - 7 \\ \text{Subtract.} & 17 \end{array}

Simplify: 19114(31)19 - |11 - 4(3-1)|.

Next we evaluate absolute value expressions with a variable.

Example. Evaluate: (a) x|x| when x=35x = -35 (b) y-|y| when y=20y = -20 (c) u-|u| when u=12u = 12 (d) p-|p| when p=14p = -14.

(a) Substitute 35-35 for xx, then take the absolute value: x=35=35|x| = |-35| = 35.

(b) Substitute 20-20 for yy. Simplify inside the bars first, then negate: y=20=(20)=20-|y| = -|-20| = -(20) = -20.

(c) Substitute 1212 for uu, take the absolute value, then negate: u=12=12-|u| = -|12| = -12.

(d) Substitute 14-14 for pp, simplify inside the bars, then negate: p=14=14-|p| = -|-14| = -14.

Evaluate: x|x| when x=17x = -17.

Evaluate: m-|m| when m=22m = 22.

Add Integers

Most students are comfortable with the addition and subtraction facts for positive numbers. But doing addition or subtraction with both positive and negative numbers may be more challenging.

We can model addition and subtraction of integers with positive and negative counters. One color (blue) represents positive counters; the other color (red) represents negative counters. If we have one positive counter and one negative counter, the value of the pair is zero — they form a neutral pair.

1 + (-1) = 0

We use the counters to model the four addition facts using the numbers 55, 5-5, 33, and 3-3: 5+35+3, 5+(3)-5+(-3), 5+3-5+3, and 5+(3)5+(-3).

To add 5+35 + 3, we start with 55 positive counters, then add 33 more positive counters, giving 88 positives. Likewise, to add 5+(3)-5 + (-3), we start with 55 negative counters, then add 33 more negative counters, giving 88 negatives.

8 positives5 + 3 = 88 negatives-5 + (-3) = -8

In each case, when the signs were the same, the counters were all the same color, and so we added them.

Add: 2+42 + 4.

Add: 2+(4)-2 + (-4).

So what happens when the signs are different? Let’s add 5+3-5 + 3. We start with 55 negative counters, then add 33 positive counters. Three of the negatives pair up with the three positives to form neutral pairs, which we remove. That leaves 22 negatives, so 5+3=2-5 + 3 = -2. Notice there were more negatives than positives, so the result was negative.

Now add the last combination, 5+(3)5 + (-3). Start with 55 positive counters, then add 33 negative counters. Three neutral pairs form and are removed, leaving 22 positives, so 5+(3)=25 + (-3) = 2.

-5 + 3more negatives — sum is negative-5 + 3 = -2

5 + (-3)more positives — sum is positive5 + (-3) = 2

Add: 2+4-2 + 4.

Add: 2+(4)2 + (-4).

Now that we have added small positive and negative integers with a model, we can visualize the model in our minds to simplify problems with any numbers. When you need to add numbers such as 37+(53)37 + (-53), you really don’t want to count out 37 blue counters and 53 red counters. Picture 37 blue counters with 53 red counters lined up underneath. Since there would be more red (negative) counters than blue (positive) counters, the sum would be negative. How many more red counters would there be? Because 5337=1653 - 37 = 16, there are 16 more red counters. Therefore, the sum of 37+(53)37 + (-53) is 16-16.

37+(53)=1637 + (-53) = -16

Let’s try another one. We’ll add 74+(27)-74 + (-27). Imagine 74 red counters and 27 more red counters, so we’d have 101 red counters. This means the sum is 101-101.

74+(27)=101-74 + (-27) = -101

Addition of positive and negative integers.

5+35 + 3 and 5+(3)-5 + (-3): both positive or both negative — the counters would be all the same color, so add them, and the sum has that same sign.

5+3-5 + 3 and 5+(3)5 + (-3): signs different — some counters make neutral pairs; subtract to see how many are left over, and the sum takes the sign of whichever count was larger.

Example. Simplify: (a) 19+(47)19 + (-47) (b) 14+(36)-14 + (-36).

(a) Since the signs are different, we subtract 1919 from 4747. The answer will be negative because there are more negatives than positives: 19+(47)=2819 + (-47) = -28.

(b) Since the signs are the same, we add. The answer is negative because there are only negatives: 14+(36)=50-14 + (-36) = -50.

Simplify: 31+(19)-31 + (-19).

Simplify: 15+(32)15 + (-32).

The techniques used up to now extend to more complicated problems, like the ones we’ve seen before. Remember to follow the order of operations!

Example. Simplify: 5+3(2+7)-5 + 3(-2 + 7).

5+3(2+7)Simplify inside the parentheses.5+3(5)Multiply.5+15Add left to right.10 \begin{array}{ll} & -5 + 3(-2+7) \\ \text{Simplify inside the parentheses.} & -5 + 3(5) \\ \text{Multiply.} & -5 + 15 \\ \text{Add left to right.} & 10 \end{array}

Simplify: 2+5(4+7)-2 + 5(-4+7).

Simplify: 4+2(3+5)-4 + 2(-3+5).

Subtract Integers

We continue to use counters to model subtraction. Remember, the blue counters represent positive numbers and the red counters represent negative numbers. Perhaps when you were younger, you read “535 - 3” as “5 take away 3.” When you use counters, you can think of subtraction the same way!

To subtract 535-3, restate the problem as “5 take away 3”: start with 55 positive counters, take away 33 positive counters, and 22 positives are left. The difference of 55 and 33 is 22.

To subtract 5(3)-5-(-3), restate it as “5-5 take away 3-3”: start with 55 negative counters, take away 33 negative counters, and 22 negatives are left. The difference of 5-5 and 3-3 is 2-2.

5 - 3 = 22 positives left

-5 - (-3) = -22 negatives left

Notice that these two examples are much alike: in the first, we subtract 33 positives from 55 positives and end up with 22 positives. In the second, we subtract 33 negatives from 55 negatives and end up with 22 negatives. Each example used counters of only one color, and the “take away” model of subtraction was easy to apply.

Subtract: 646 - 4.

Subtract: 6(4)-6 - (-4).

What happens when we have to subtract one positive and one negative number? We’ll need to use both blue and red counters, as well as some neutral pairs. Adding a neutral pair does not change the value — it’s like changing quarters to nickels, the value is the same, but it looks different.

To subtract 53-5-3, restate it as “5-5 take away 33.” We start with 55 negatives. We need to take away 33 positives, but we don’t have any positives to take away. Since a neutral pair has value zero, we can add neutral pairs without changing the value. We add 33 neutral pairs to the 55 negatives, giving us 33 positives to take away. Removing them leaves 88 negatives: 53=8-5 - 3 = -8.

For the fourth case, 5(3)5-(-3), restate it as “55 take away 3-3.” We start with 55 positives. We need to take away 33 negatives, but there are no negatives to take away, so we add 33 neutral pairs, giving us 33 negatives to take away. Removing them leaves 88 positives: 5(3)=85-(-3) = 8.

-5 - 3 = -8removing the 3 positives leaves8 negatives

5 - (-3) = 8removing the 3 negatives leaves8 positives

Example. Subtract: (a) 31-3-1 (b) 3(1)3-(-1).

(a) We need 11 more negative than we have, so add a neutral pair, then take 11 positive away from that added pair: 31=4-3-1 = -4.

(b) We need 11 more positive than we have, so add a neutral pair, then take 11 negative away from that added pair: 3(1)=43-(-1) = 4.

Subtract: 64-6 - 4.

Subtract: 6(4)6 - (-4).

Have you noticed that subtraction of signed numbers can be done by adding the opposite? In the last example, 31-3-1 is the same as 3+(1)-3+(-1), and 3(1)3-(-1) is the same as 3+13+1. You will often see this idea, the subtraction property, written as follows:

Subtraction property. ab=a+(b)a - b = a + (-b). Subtracting a number is the same as adding its opposite.

Look at 646-4 and 6+(4)6+(-4): both give 22. Of course, when you have a subtraction problem with only positive numbers, like 646-4, you just do the subtraction — you already knew how to subtract 646-4 long ago. But knowing that 646-4 gives the same answer as 6+(4)6+(-4) helps when you are subtracting negative numbers.

Example. Simplify: (a) 13813-8 and 13+(8)13+(-8) (b) 179-17-9 and 17+(9)-17+(-9).

(a) 138=513 - 8 = 5 and 13+(8)=513 + (-8) = 5 — the same.

(b) 179=26-17-9 = -26 and 17+(9)=26-17+(-9)=-26 — the same.

Simplify: 117-11 - 7.

Simplify: 15715 - 7.

Now look at what happens when we subtract a negative: 8(5)8-(-5) gives the same result as 8+58+5, namely 1313. Subtracting a negative number is like adding a positive! You will often see this written as a(b)=a+ba - (-b) = a + b.

Example. Simplify: (a) 9(15)9-(-15) and 9+159+15 (b) 7(4)-7-(-4) and 7+4-7+4.

(a) 9(15)=249-(-15) = 24 and 9+15=249+15 = 24 — the same.

(b) 7(4)=3-7-(-4) = -3 and 7+4=3-7+4=-3 — the same.

Simplify: 5(1)-5 - (-1).

Simplify: 4(19)4 - (-19).

Let’s look again at the results of subtracting the different combinations of 55, 5-5, 33, and 3-3.

Subtraction of integers.

53=25 - 3 = 2: 5 positives take away 3 positives leaves 2 positives. 5(3)=2-5 - (-3) = -2: 5 negatives take away 3 negatives leaves 2 negatives. When there would be enough counters of the color to take away, subtract.

53=8-5 - 3 = -8: 5 negatives, wanting to take away 3 positives, need neutral pairs. 5(3)=85 - (-3) = 8: 5 positives, wanting to take away 3 negatives, need neutral pairs. When there would not be enough counters of the color to take away, add neutral pairs first.

What happens when there are more than two integers? We just use the order of operations as usual.

Example. Simplify: 7(43)97-(-4-3)-9.

7(43)9Simplify inside the parentheses first.7(7)9Subtract left to right.149Subtract.5 \begin{array}{ll} & 7-(-4-3)-9 \\ \text{Simplify inside the parentheses first.} & 7-(-7)-9 \\ \text{Subtract left to right.} & 14 - 9 \\ \text{Subtract.} & 5 \end{array}

Simplify: 8(31)98 - (-3-1) - 9.

Simplify: 12(96)1412 - (-9-6) - 14.

Key terms

negative numbers — numbers less than 00; they lie to the left of zero on the number line. integers — the whole numbers and their opposites: 3,2,1,0,1,2,3\dots -3, -2, -1, 0, 1, 2, 3 \dots. opposite — the number that is the same distance from zero on the number line, but on the opposite side. absolute value — the distance between a number and 00 on the number line, written n|n|; always greater than or equal to zero. neutral pair — one positive counter and one negative counter together, with combined value zero. subtraction propertyab=a+(b)a - b = a + (-b); subtracting a number is the same as adding its opposite.


This section is adapted from Elementary Algebra 2e, Section 1.3: Add and Subtract Integers by Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: recreated the number-line and positive/negative-counters figures as accessible inline graphics, and the grouping-symbols list as a table; omitted the Manipulative Mathematics callouts, media links, Self Check checklist, and end-of-section exercises; and converted the practice problems (“Try Its”) into interactive exercises with instant feedback.