This site is a work in progress. New lessons are added regularly. Contact us

Absolute Value

Learning goals

  • Find any integer's absolute value by reading its distance from zero, so the answer is never negative
  • Explain why a number and its opposite share one absolute value
  • Say why the rule needs two cases, and why the negative case still gives a positive answer
  • Simplify inside the bars before measuring, and handle a minus sign written outside them
  • Measure how far apart two numbers are as the absolute value of their difference

Distance, without the direction

Every integer’s position on the number line carries two pieces of information. One is how far the number is from zero. The other is which side of zero it is on. The sign is what tells you that: a positive number sits to the right, a negative number to the left.

Often a problem cares only about the first piece. How far did the temperature move, up or down? To answer that, we need a way to keep the distance and let the side go.

The absolute value of a number is its distance from zero on the number line.

Distance is a count of equal steps, and you cannot take a negative number of steps along a line. So an absolute value is never negative.

Both -5 and 5 sit 5 units from zero. Absolute value records that distance, 5, and forgets which side. A number line from -6 to 6. Points marked at -5, 5. Distance spans from 0 to -5, 0 to 5. -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 5 units 5 units -5 5
Both -5 and 5 sit 5 units from zero. Absolute value records that distance, 5, and forgets which side.

The notation

To write “the distance of a number from zero,” we wrap the number in a pair of vertical bars. The absolute value of 5-5 is written 5\lvert -5 \rvert, and we read it aloud as “the absolute value of negative five.” Since 5-5 is five units from zero,

5=5.\lvert -5 \rvert = 5.

The bars are a command: measure how far what is inside sits from zero, and report that distance. A few quick readings, straight off the line:

7=7,7=7,0=0.\lvert 7 \rvert = 7, \qquad \lvert -7 \rvert = 7, \qquad \lvert 0 \rvert = 0.

The number 77 is seven units from zero, and so is 7-7, so both have absolute value 77. Zero is no distance from itself, so 0=0\lvert 0 \rvert = 0. Notice the output of the bars is just a number: once you have measured the distance, the bars have done their job and disappear.

Why the rule splits into two cases

If absolute value simply throws away a minus sign, why bother with a careful definition? Because “throw away the minus sign” describes what you see on the page. It is not a reason, and it stops working the moment a letter stands where the number was.

Read the two sides of zero off the line instead, one at a time.

A number that is already positive, or zero, sits at its own distance with nothing to undo. The point 77 is seven units to the right of zero, so 7=7\lvert 7 \rvert = 7, the number itself.

A negative number is the interesting case. The point 5-5 lies five units to the left of zero, so its distance is 55. That 55 is the opposite of 5-5, and taking the opposite of a negative number gives a positive result: (5)=5-(-5) = 5. So 5=5\lvert -5 \rvert = 5, the opposite of the number.

Neither reading used the size of the number. What mattered was only which side of zero it sat on, so the same two readings work for any integer xx. Writing them down needs one new symbol. The sign \ge is read “is greater than or equal to”, so x0x \ge 0 says that xx is zero or above. It is the familiar >> with the equal case allowed in as well.

x=xwhen x0,x=xwhen x<0.\lvert x \rvert = x \qquad \text{when } x \ge 0, \qquad\qquad \lvert x \rvert = -x \qquad \text{when } x < 0.

The second case looks like it should be negative, and it is not. Here x-x means the opposite of xx, and xx is negative in that case, so its opposite is positive.

Check your understanding

What is 12\lvert -12 \rvert?

Answer choices

A number and its opposite share one absolute value

Opposites, as the first lesson of this chapter showed, are the same distance from zero on opposite sides. Absolute value reports exactly that distance, so it cannot tell 88 apart from 8-8: both give 88. That holds for every number and its opposite:

x=x.\lvert x \rvert = \lvert -x \rvert.

A small but useful consequence is that the only number with an absolute value of 00 is 00 itself. Any other number sits some positive distance from zero, so its absolute value is positive.

The bars are grouping symbols

The absolute-value bars are grouping symbols. Like parentheses, they tell you what to finish first. They also do one job parentheses do not: once the inside is a single number, the bars measure how far that number is from zero. So a pair of bars is two instructions in one, and the grouping happens first.

Compare two expressions that look almost identical:

(3)+5versus3+5.\lvert (-3) + 5 \rvert \qquad \text{versus} \qquad \lvert -3 \rvert + \lvert 5 \rvert.

In the first, the bars group the sum, so add inside first and then take the absolute value:

(3)+5=2=2.\lvert (-3) + 5 \rvert = \lvert 2 \rvert = 2.

In the second, each number has its own bars, so take each absolute value first and then add:

3+5=3+5=8.\lvert -3 \rvert + \lvert 5 \rvert = 3 + 5 = 8.

The two are not equal. In the first expression the bars enclose (3)+5(-3) + 5 and reduce it to the single number 22. The second never forms that sum at all, so it measures 3-3 and 55 separately and adds the two distances. So finish the arithmetic inside a pair of bars first. That leaves one number, and its distance from zero is the answer.

Check your understanding

Evaluate (8)+3\lvert (-8) + 3 \rvert.

Answer choices

A minus sign written outside the bars

The bars measure only what stands between them. A minus sign written in front of a pair of bars is outside them, so it takes no part in the measuring. It waits until the measuring is done, and then takes the opposite of the result:

4=4,4=(4)=4.\lvert -4 \rvert = 4, \qquad -\lvert -4 \rvert = -(4) = -4.

The second answer is negative, and nothing has gone wrong, because it is not an absolute value. It is the opposite of one. “An absolute value is never negative” is a promise about what comes out from between the bars, and this minus sign was never between them.

Check your understanding

Evaluate 9-\lvert -9 \rvert.

Answer choices

Worked examples

Worked example 1 Evaluate 610\lvert 6 - 10 \rvert

The bars are grouping symbols, so do the subtraction inside before taking the absolute value. Subtract first:

610=4.6 - 10 = -4.

Now take the absolute value of that single number. The point 4-4 is four units from zero:

610=4=4.\lvert 6 - 10 \rvert = \lvert -4 \rvert = 4.

A common slip is to compute 610=610=4\lvert 6 \rvert - \lvert 10 \rvert = 6 - 10 = -4, but that ignores the grouping and even produces a negative result, which an absolute value can never be. Inside first, then the bars.

Worked example 2 Compare 7\lvert -7 \rvert and 5\lvert 5 \rvert

Replace each absolute value with the distance it stands for, then compare those numbers the usual way.

The first is the distance of 7-7 from zero:

7=7.\lvert -7 \rvert = 7.

The second is the distance of 55 from zero:

5=5.\lvert 5 \rvert = 5.

Now compare the results: 7>57 > 5, so

7>5.\lvert -7 \rvert > \lvert 5 \rvert.

Even though 7<5-7 < 5 as signed numbers, 7-7 is farther from zero than 55 is, so it has the larger absolute value. Distance and order are different questions: one asks how far, the other asks which side.

Check your understanding

Which number has the greatest absolute value: 9-9, 66, 2-2, or 77?

Answer choices

Distance between two numbers

Absolute value also answers a question you might not expect: how far apart are two numbers on the line?

Walk from 33 to 88 on the line and it takes five one-unit steps. The two subtractions give opposite results, 5-5 and 55. Taking the absolute value turns both of them into that same five:

38=5=5,83=5=5.\lvert 3 - 8 \rvert = \lvert -5 \rvert = 5, \qquad \lvert 8 - 3 \rvert = \lvert 5 \rvert = 5.
The distance between 3 and 8 is |3 - 8| = 5, the five one-unit steps separating them, in either direction. A number line from -3 to 9. Points marked at 3, 8. Distance spans from 3 to 8. -3 -2 -1 0 1 2 3 4 5 6 7 8 9 5 units 3 8
The distance between 3 and 8 is |3 - 8| = 5, the five one-unit steps separating them, in either direction.

The subtraction 383 - 8 measures the signed gap, and its sign only records which number was taken from which. The bars throw that sign away and keep the size of the gap, which is what “how far apart” should mean. Since 383 - 8 and 838 - 3 are opposites, and opposites share one absolute value, the order of subtraction cannot change the answer.

So the gap between any two integers aa and bb is the absolute value of their difference,

distance between a and b=ab.\text{distance between } a \text{ and } b = \lvert a - b \rvert.

This works across zero too. The distance between 2-2 and 44 is

24=6=6,\lvert -2 - 4 \rvert = \lvert -6 \rvert = 6,

and the walk splits neatly at zero: two steps from 2-2 up to zero, then four more out to 44.

Crossing zero from -2 to 4 takes 2 steps up to zero and 4 more beyond it, so the distance is 6. A number line from -4 to 6. Points marked at -2, 4. Distance spans from -2 to 0, 0 to 4. -4 -3 -2 -1 0 1 2 3 4 5 6 2 units 4 units -2 4
Crossing zero from -2 to 4 takes 2 steps up to zero and 4 more beyond it, so the distance is 6.

Worked example 3 Find the distance between 6-6 and 22

Use the distance rule: subtract the two numbers and take the absolute value of the result. Subtract first, remembering that subtracting a positive moves left:

62=8.-6 - 2 = -8.

Now take the absolute value to discard the sign and keep the size of the gap:

62=8=8.\lvert -6 - 2 \rvert = \lvert -8 \rvert = 8.

The two numbers are 88 units apart. You can confirm the answer by walking the line. Six one-unit steps take you from 6-6 up to zero, and two more reach 22, which is eight steps in all.

Common mistakes

Practice

Multiple Choice Questions (MCQ)

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

Free Response Questions (FRQ)

Longer questions in parts, to be worked out on paper. Progressive hints, the answer on its own so you can check yourself and try again, then the full worked solution, plus a rubric to mark your own work against.

Free response Work it out on paper 5 questions 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.

Go deeper (optional)

You can skip this and keep going. Read it if you want to know more.

Why the two cases cover every integer, and never return a negative answer

The lesson reads the two cases off the line on 77 and 5-5. This runs the same reading with a letter in place of the number, so it settles every integer at once.

Why x=x\lvert x \rvert = x when x0x \ge 0 and x=x\lvert x \rvert = -x when x<0x < 0#

Let xx stand for any integer, and recall that x\lvert x \rvert is the distance from xx to zero on the number line. Every integer sits either at or to the right of zero, or to the left of it. There is no third place for it to be, so two cases are enough to cover them all.

First suppose xx is positive or zero, so xx sits at or to the right of zero. The distance from zero to a point xx units to the right is just xx units, so there is nothing to flip:

x=xwhen x0.\lvert x \rvert = x \qquad \text{when } x \ge 0.

Now suppose xx is negative, so xx sits to the left of zero. The number xx is itself negative, so it cannot equal the distance, which must be positive. The distance is instead the opposite of xx, and the opposite of a negative number is positive:

x=xwhen x<0.\lvert x \rvert = -x \qquad \text{when } x < 0.

Neither case used the size of the number, only which side of zero it sat on, so the two cases hold for every integer xx. In the first case the answer is xx itself, which is zero or positive there. In the second it is the opposite of a negative number, which is positive. So no integer produces a negative answer, which is exactly what a distance must never be.

A bit of history (Optional)

The idea in this lesson is much older than the symbol for it. For centuries writers had to spell it out in words: the value of the number, taken without regard to its sign. That is tolerable to write once. It is a burden when it belongs on every line of an argument. And that is where it kept turning up.

The name is the better clue anyway. Absolute comes from a Latin word meaning loosened, or set free. An absolute value is a number set free from its sign. What survives is the size, once you stop asking which side of zero the number sits on. Nothing else about it is kept.

The two bars are young by comparison. A German mathematician, Karl Weierstrass, first fenced a number between them in 1841. The shape is well chosen, because it looks like the instruction it carries. A wall goes up on each side, and the measuring waits until the arithmetic inside is finished.