Pre-Algebra Foundations

Absolute Value as Distance From Zero

See what absolute value measures, how to compute it, how it gives distance between numbers and how to solve simple equations.

Key takeaways

  • |x| is the distance from x to zero, so it is always zero or positive.
  • The distance between two numbers a and b on the number line is |a - b|, which equals |b - a|.
  • Absolute value bars group what is inside, so finish the inside before removing them.
  • An equation |x| = k has two solutions when k > 0, one when k = 0 and none when k < 0.
  • In general |a + b| is not equal to |a| + |b|; it can be smaller.

The absolute value of a number is its distance from zero on the number line. It is written with two vertical bars, so |6| = 6 and |-6| = 6. Both numbers sit six units from zero, on opposite sides.

Because distance is never negative, an absolute value is never negative either. That one idea explains how to compute it, how to measure the gap between any two numbers and why some absolute value equations have two answers while others have none.

Distance has no direction

If you walk 4 blocks east, you have covered 4 blocks. If you walk 4 blocks west, you have also covered 4 blocks. A signed number such as +4 or -4 records direction as well as size. Absolute value keeps the size and drops the direction.

On the number line, |-4| = 4 and |4| = 4. The number 0 is no distance from itself, so |0| = 0, and it is the only number with absolute value zero.

Absolute value should not be confused with the opposite of a number. The opposite of -4 is 4, but the opposite of 4 is -4. The absolute value of each is 4. For a negative number, absolute value and opposite agree. For a positive number they do not.

A definition by cases

Algebra needs a rule that works for a letter whose sign is unknown. It looks like this:

|x| = x      if x ≥ 0
|x| = -x     if x < 0

The second line can look odd, since it has a minus sign even though the result is positive. Remember that -x means the opposite of x. If x = -9, then -x = -(-9) = 9, which is the distance we wanted.

This means you cannot simply "erase the bars" from |x|. Writing |x| = x is true only when x is zero or positive. The same caution applies to square roots, because √(x²) = |x|. With x = -5, we get √25 = 5, not -5. The details are in why √(x²) equals |x|.

Bars as grouping symbols

Work inside the bars first, just as with parentheses, then take the absolute value.

|3 - 11|      = |-8|  = 8
|3| - |11|    = 3 - 11 = -8
-|5 - 9|      = -|-4| = -4
2|-7| + 1     = 2 × 7 + 1 = 15
|-2 × 6| ÷ 4  = 12 ÷ 4 = 3

The first two lines show that you cannot split bars across a subtraction. The third line shows that a negative result is possible when a minus sign sits outside the bars. The absolute value itself is 4, and the outer sign then takes its opposite.

Distance between two numbers

The distance between a and b on the number line is |a - b|. Subtraction gives the directed change, and the bars remove the direction.

Pair Calculation Distance
3 and 10 |3 - 10| 7
-2 and 5 |-2 - 5| 7
-9 and -4 |-9 - (-4)| 5
6 and -6 |6 - (-6)| 12

Because |a - b| = |b - a|, you may subtract in either order.

This leads to a useful reading skill. The expression |x - 3| means the distance from x to 3. The expression |x + 3| means |x - (-3)|, the distance from x to -3. Watching for that sign change prevents a very common error. If subtracting negatives feels unsure, review signed addition and subtraction.

Solving simple equations

To solve |x| = 8, ask which points are 8 units from zero. There are two: x = 8 and x = -8.

To solve |x - 3| = 5, find the points 5 units from 3. Moving right gives 8 and moving left gives -2.

|x - 3| = 5
x - 3 = 5   or   x - 3 = -5
x = 8       or   x = -2
check: |8 - 3| = 5 and |-2 - 3| = 5

Compare |x| = 0, which has the single solution 0, with |x| = -2, which has none, since no distance is negative. When the bars are not alone, isolate them first. In 3|x| + 4 = 19, subtract 4 and divide by 3 to get |x| = 5, so x = 5 or x = -5. Longer cases are treated in solving by splitting into cases.

How many solutions does |x| = k have?
k is positive Two solutions x = k or x = -k Example: |x| = 8 k is zero One solution x = 0 Distance zero from zero k is negative No solution Distance cannot be negative Example: |x| = -2 k is positive Two solutions x = k or x = -k Example: |x| = 8 k is zero One solution x = 0 Distance zero from zero k is negative No solution Distance cannot be negative Example: |x| = -2

Within a distance, or beyond it

Inequalities with absolute value also read as distance statements. The condition |x| < 4 says that x is less than 4 units from zero, which means -4 < x < 4. The condition |x| > 4 says x is more than 4 units away, which means x < -4 or x > 4.

Real tolerances work this way. If a part is meant to be 50 millimeters long and may be off by at most 0.2 millimeters, its length L satisfies |L - 50| ≤ 0.2, so 49.8 ≤ L ≤ 50.2. These patterns are developed in absolute value inequalities.

Averages of distances

Distances help describe how spread out a set of numbers is. Take the values 4, 7, 9 and 12. Their mean is 32 ÷ 4 = 8. Each value sits some distance from 8:

|4 - 8|  = 4
|7 - 8|  = 1
|9 - 8|  = 1
|12 - 8| = 4
total    = 10,  and 10 ÷ 4 = 2.5

On average the values are 2.5 units from the mean. This quantity is called the mean absolute deviation, and many middle school courses use it as a first measure of spread.

Notice what would happen without the bars. The signed differences are -4, -1, 1 and 4, which add to zero. They always add to zero around the mean, so they say nothing about spread. Removing direction is what makes the measure informative.

Finding a point from two distance clues

Distance language turns puzzles into pictures. Which number is equally far from -3 and 11? You want |x + 3| = |x - 11|. On the line, the answer is the midpoint, (-3 + 11) ÷ 2 = 4. Check: |4 + 3| = 7 and |4 - 11| = 7.

Which numbers are 2 units from 6 and also 10 units from -2? The first clue allows 4 or 8. The second allows 8 or -12. Only 8 satisfies both.

Which numbers have a sum of distances to 1 and to 5 equal to 4? Every number from 1 to 5 works, because for a point between them the two distances fill the whole 4-unit gap. A point outside that stretch gives a larger sum. At x = 7, the distances are 6 and 2, which total 8.

Rules that hold and rules that fail

Some properties are dependable for all real numbers:

  • |-a| = |a|
  • |ab| = |a| × |b|
  • |a/b| = |a|/|b|, for b ≠ 0
  • |a|² = a²

Sums behave differently. The triangle inequality says |a + b| ≤ |a| + |b|. With a = 7 and b = -10, the left side is |-3| = 3 and the right side is 17. Equality holds when a and b have the same sign or at least one is zero.

Testing a proposed rule with one positive and one negative number is a fast way to catch a false one. Testing only positives would suggest that bars can be removed anywhere.

Working backward from the bars

Sometimes you need to write an absolute value statement from a description. "All numbers within 3 units of 10" becomes |x - 10| ≤ 3, which covers 7 through 13. "Numbers more than 5 units from -1" becomes |x + 1| > 5, which means x > 4 or x < -6.

The center of the description goes inside the bars with a subtraction, and the allowed distance goes outside. For an interval from 2 to 14, first find the center, (2 + 14) ÷ 2 = 8, and the half-width, 6. The interval is |x - 8| ≤ 6. Test the ends: |2 - 8| = 6 and |14 - 8| = 6.

Where absolute value shows up

Absolute value appears whenever size matters and direction does not.

  • Error. If an estimate is 120 and the true value is 112, the absolute error is |120 - 112| = 8. An estimate of 104 has the same absolute error.
  • Elevation and depth. A point at -30 meters and a point at 30 meters are equally far from sea level.
  • Graphs. The graph of y = |x| is a V shape with its corner at the origin, described in absolute value graphs.
  • Comparing sizes. A change of -15 points is larger in magnitude than a change of +9, although -15 is the smaller number.

The last point deserves care. "Smaller" refers to position on the line. "Smaller in absolute value" refers to closeness to zero.

Mistakes to watch for

  • Turning every sign inside the bars positive. |3 - 11| is 8, but changing it to 3 + 11 gives 14.
  • Giving only one answer. |x| = 6 has the solutions 6 and -6.
  • Giving two answers where none exist. |x + 1| = -4 cannot be true for any x.
  • Distributing a negative into the bars. -2|x - 3| is not |-2x + 6|. The correct statement is 2|x - 3| = |2x - 6|, and the minus sign stays outside.
  • Splitting before isolating. In |x| - 5 = 2, first add 5 to get |x| = 7.

Checking each proposed solution in the original equation costs a few seconds and catches all of these.

Common questions

Is absolute value always positive?

It is always nonnegative. It equals zero when the number inside is zero.

Can |x| equal -x?

Yes, exactly when x ≤ 0. For x = -3, both sides equal 3.

How do I order numbers with absolute values?

Evaluate each expression, then place the results on the line. For -5, |-2|, -|4| and 0, the values are -5, 2, -4 and 0, so from least to greatest: -5, -|4|, 0, |-2|.

Written for 4Algebra with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 41 articles in Pre-Algebra Foundations →

Latest news on this topic