Absolute Value

Watch the video explainer

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

A number’s position tells you both its distance from zero and its side of zero. Sometimes only the distance matters: −5-5 and 55 are on different sides, but both are five units away.

The absolute value of a number is its distance from zero on the number line. An absolute value is never negative. Zero has distance zero; every other point has a positive distance.

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

Put vertical bars around a number to ask for its absolute value. Read ∣−5∣\lvert-5\rvert as “the absolute value of negative five.” Since −5-5 is five units from zero,

∣−5∣=5.\lvert-5\rvert=5.

The bars return a number. Thus ∣7∣=7\lvert7\rvert=7, ∣−7∣=7\lvert-7\rvert=7, and ∣0∣=0\lvert0\rvert=0. After you measure the distance, replace the bars and their contents with that value.

Check your understanding

What is ∣−12∣\lvert-12\rvert, and what does it measure?

Answer choices

Why the rule splits into two cases

For a written negative number, absolute value looks like removing its minus sign. But a letter might stand for a positive number, a negative number, or zero. We need a rule that handles each possibility.

Why ∣x∣=x\lvert x \rvert = x when x≥0x \ge 0 and ∣x∣=−x\lvert x \rvert = -x when x<0x < 0#

The point 66 is six units right of zero, so ∣6∣=6\lvert6\rvert=6: keep the number itself. The point −4-4 is four units left of zero, so ∣−4∣=−(−4)=4\lvert-4\rvert=-(-4)=4: take its opposite. Zero is zero units from itself, so ∣0∣=0\lvert0\rvert=0.

Now let xx stand for any integer. If it is positive or zero, its value already gives its distance from zero. If it is negative, its positive opposite gives that distance. Every integer falls into one of these two cases.

The symbol ≥\ge means “greater than or equal to.” We can write the cases as

∣x∣=xwhen x≥0,∣x∣=−xwhen x<0.\begin{gathered} \lvert x\rvert=x\quad\text{when }x\ge0,\\ \lvert x\rvert=-x\quad\text{when }x<0. \end{gathered}

In the second case, −x-x means the opposite of a negative number, so it is positive. In both cases the result is zero or positive.

Check your understanding

Why does the absolute-value rule keep xx when x≥0x\ge0 but use −x-x when x<0x<0?

Answer choices

A number and its opposite share one absolute value

Opposites are the same distance from zero, so ∣8∣=∣−8∣=8\lvert8\rvert=\lvert-8\rvert=8. Folding at zero changes the side but preserves that distance. For any integer xx,

∣x∣=∣−x∣.\lvert x\rvert=\lvert-x\rvert.

Only zero has absolute value zero. Every other number lies a positive distance away.

This also helps you find numbers at a given distance. Exactly two integers are four units from zero, 44 and −4-4. In symbols, ∣x∣=4\lvert x\rvert=4 asks for those two numbers. If xx must also be negative, only −4-4 works; if it must be positive, only 44 works. If the required distance is zero, only 00 works. A negative distance is impossible.

For a distance of at most one unit, list the integer points inside and on the ends: −1,0,1-1,0,1. For a distance of less than one unit, leave out the ends: only 00 remains.

Check your understanding

Why do 66 and −6-6 have equal absolute value, and which integer has absolute value zero?

Answer choices

The bars are grouping symbols

Absolute-value bars are grouping symbols, like parentheses. Finish the arithmetic inside before measuring its distance from zero.

Compare two expressions that look almost identical:

∣(−3)+5∣versus∣−3∣+∣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 first measures the sum; the second measures the two numbers separately and adds their distances. Since 22 and 88 differ, you cannot in general split the bars across a sum.

A minus sign written outside the bars

A minus sign outside the bars acts after the absolute value. For example,

−∣−4∣=−(4)=−4.-\lvert-4\rvert=-(4)=-4.

The bars returned the positive distance 44. The outside minus then took its opposite. The final result is negative because it is the opposite of an absolute value.

Check your understanding

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

Answer choices

Worked examples

Worked example 1 Evaluate ∣6−10∣\lvert 6 - 10 \rvert

The bars are grouping symbols, so do the subtraction inside them first:

6−10=−4.6 - 10 = -4.

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

∣6−10∣=∣−4∣=4.\lvert 6 - 10 \rvert = \lvert -4 \rvert = 4.

A common slip is to compute ∣6∣−∣10∣=6−10=−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.

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 between two numbers

The distance between 33 and 88 is five one-unit steps. Subtracting in the two orders gives opposites, but absolute value gives the same distance:

∣3−8∣=∣−5∣=5,∣8−3∣=∣5∣=5.\begin{gathered} \lvert3-8\rvert=\lvert-5\rvert=5,\\ \lvert8-3\rvert=\lvert5\rvert=5. \end{gathered}
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 sign of the difference gives a direction along the line. Reversing the subtraction changes that sign but not the size of the gap, and the absolute value keeps just the size.

For any integers aa and bb, subtracting bb from aa records the move from bb to aa: positive for a rightward move, negative for a leftward move. Its absolute value is the number of one-unit steps between them. If the points coincide, the difference and the distance are both zero.

distance=∣a−b∣.\text{distance}=\lvert a-b\rvert.

Subtract in either order: a−ba-b and b−ab-a are opposites and have the same absolute value.

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

∣−2−4∣=∣−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:

−6−2=−8.-6 - 2 = -8.

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

∣−6−2∣=∣−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.

Check your understanding

How far apart are −7-7 and 33 on the number line?

Answer choices

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)

Writers once described absolute value in words. Some later shortened those words; others used round brackets.

Karl Weierstrass is often credited with introducing the bars in 1841. But the work attached to that date was printed much later, in 1894. Historian Klaus Viertel compared it with notes taken by Weierstrass’s students. Notes from the 1860s still used words or round brackets; the modern bars appear in a set from 1870 and 1871.

These sources leave the exact date of the bars’ introduction uncertain. They also show notation still changing: the teacher’s words, the students’ handwritten notes, and the later printed book do not always use the same symbols. Viertel discusses the evidence in his study of Weierstrass’s lectures.

Your progress

See all your progress →