Numbers & Arithmetic

Absolute Value: How to Find It, Solve It and Graph It

The absolute value of a number is its distance from zero, written ∣x∣|x|: it equals xx when x≥0x \ge 0 and −x-x when x<0x < 0. So ∣7∣=7|7| = 7, ∣−7∣=7|-7| = 7 and ∣0∣=0|0| = 0, and the result is never negative.

∣x∣={x,x≥0−x,x<0|x| = \begin{cases} x, & x \ge 0 \\ -x, & x < 0 \end{cases}

Most lost points come from treating the bars as “erase the minus sign” instead of as an operation that waits until the inside is simplified. The sections below build the idea from the distance picture, then use it for equations, inequalities and graphs, with a check that catches bad answers.

What is the absolute value of a number?

Put a number on the number line and measure how many steps it is from zero. Direction does not matter, so −7-7 and 77 are both 7 steps away. That single picture is the whole concept, and the piecewise formula is only a way to write it for algebra:

∣x∣={xif x≥0−xif x<0|x| = \begin{cases} x & \text{if } x \ge 0 \\ -x & \text{if } x < 0 \end{cases}

The trap sits in the second line. The expression −x-x does not mean “a negative number”. It means “the opposite of xx”, and the opposite of a negative number is positive. If x=−7x = -7, then −x=7-x = 7, which is exactly why the formula works. It also explains why ∣x∣=−x|x| = -x is true for every x≤0x \le 0, zero included.

Absolute value is defined for every number in the real number system, integers, fractions and irrationals alike. One notation warning: the same vertical bar appears in number theory, where a|b means that a divides b. A matched pair of bars wrapped around an expression is absolute value; a single bar between two numbers is divisibility.

Quick check

For which values of xx is ∣x∣=−x|x| = -x?

How do you find absolute value with negatives and fractions?

Wrong versus right way to evaluate |3 − 8|, with number line showing 3 and 8 are 5 apart
Erasing the minus in |3 − 8| gives 11, but 3 and 8 sit only 5 steps apart.

The bars behave like parentheses: simplify everything inside first, then take the distance, then apply anything outside the bars, such as a coefficient or a minus sign. This follows the same priorities as the order of operations, with the bars acting as a grouping symbol. So −∣−4∣=−4-|-4| = -4, because the bars produce 44 and the outside minus sign then flips it.

Example 1. Evaluate −∣3−8∣+2∣−23−14∣-|3 - 8| + 2\left|-\tfrac{2}{3} - \tfrac{1}{4}\right|.

First term: ∣3−8∣=∣−5∣=5|3 - 8| = |-5| = 5, and the outside minus makes it −5-5.

Second term: the inside needs a common denominator (the same skill as adding fractions with unlike denominators):

−23−14=−812−312=−1112,2∣−1112∣=2212=116-\frac{2}{3} - \frac{1}{4} = -\frac{8}{12} - \frac{3}{12} = -\frac{11}{12}, \qquad 2\left|-\frac{11}{12}\right| = \frac{22}{12} = \frac{11}{6}

Combine: −5+116=−306+116=−196-5 + \frac{11}{6} = -\frac{30}{6} + \frac{11}{6} = -\frac{19}{6}.

Deleting minus signs is a shortcut with limits

It works on a lone number, but not on an expression. In ∣3−8∣|3 - 8|, deleting the minus gives ∣3+8∣=11|3 + 8| = 11, which is wrong. Simplify first to get ∣−5∣=5|-5| = 5.

Decimals work the same way: ∣−0.35∣=0.35|-0.35| = 0.35. For a quick mental check, estimate the inside as a signed number first, and only then drop the sign.

Why does the square root of x squared give the absolute value?

The square root symbol returns the nonnegative root only. Squaring erases the sign, and the root then returns the distance from zero, so (−5)2=25=5\sqrt{(-5)^2} = \sqrt{25} = 5, not −5-5. In general:

x2=∣x∣\sqrt{x^2} = |x|

This is the single most useful link between absolute value and square roots. Writing x2=x\sqrt{x^2} = x is only correct when x≥0x \ge 0, and graders mark it wrong when xx could be negative. For example, (x−3)2=∣x−3∣\sqrt{(x - 3)^2} = |x - 3|, and the bars cannot be dropped until you know which side of 33 the variable lives on.

The same fact gives a fast method for equations with bars on both sides. Since ∣A∣=∣B∣|A| = |B| means the two quantities sit at equal distances from zero, the answer is A=BA = B or A=−BA = -B. For ∣x−1∣=∣2x+3∣|x - 1| = |2x + 3|, the first case gives x−1=2x+3x - 1 = 2x + 3, so x=−4x = -4. The second gives x−1=−2x−3x - 1 = -2x - 3, so x=−23x = -\frac{2}{3}. Both pass the check. The idea also holds for irrational values, where ∣−2∣=2|-\sqrt{2}| = \sqrt{2} exactly, as covered in rational vs irrational numbers.

How does absolute value measure distance between two numbers?

The distance between aa and bb is ∣a−b∣|a - b|. Order never matters, because b−a=−(a−b)b - a = -(a - b) and the bars discard the sign. The distance between −3-3 and 88 is ∣−3−8∣=∣−11∣=11|-3 - 8| = |-11| = 11, and reversing gives ∣8−(−3)∣=11|8 - (-3)| = 11. If the double negatives feel shaky, review subtracting integers first.

This reading is the key to everything later. Read ∣x−3∣=4|x - 3| = 4 aloud as ”xx is 4 units from 3”. Those places are 77 and −1-1, so you can solve it by inspection before touching any algebra. Read ∣x−3∣<4|x - 3| < 4 as ”xx is closer than 4 units to 3”, and the answer is every number between −1-1 and 77.

When you see the form ∣x−c∣|x - c|, the number cc is the center and the other number is the radius. Spotting that structure turns most textbook absolute value problems into a quick sketch on a number line.

Try this: Pick two numbers on opposite sides of zero, such as −6-6 and 44. Compute ∣a−b∣|a - b| and ∣b−a∣|b - a|, then count the steps on a number line. All three results should be 1010.

Quick check

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

What rules does absolute value follow?

Multiplication and division pass through the bars cleanly, while addition and subtraction do not. That contrast explains most “why is my answer wrong” moments.

Rule Example
∣ab∣=∣a∣⋅∣b∣\lvert ab \rvert = \lvert a \rvert \cdot \lvert b \rvert ∣(−3)(4)∣=12=3⋅4\lvert (-3)(4) \rvert = 12 = 3 \cdot 4
∣ab∣=∣a∣∣b∣\left\lvert \frac{a}{b} \right\rvert = \frac{\lvert a \rvert}{\lvert b \rvert}, b≠0b \ne 0 ∣−82∣=4\left\lvert \frac{-8}{2} \right\rvert = 4
∣−a∣=∣a∣\lvert -a \rvert = \lvert a \rvert ∣−6∣=∣6∣=6\lvert -6 \rvert = \lvert 6 \rvert = 6
∣a+b∣≤∣a∣+∣b∣\lvert a + b \rvert \le \lvert a \rvert + \lvert b \rvert ∣5+(−3)∣=2≤8\lvert 5 + (-3) \rvert = 2 \le 8

The first two rules hold because sign and size are independent: the sign rules from multiplying integers only decide whether the result is positive or negative, and the bars throw that decision away. Addition is different because opposite signs cancel before the bars act. With a=5a = 5 and b=−3b = -3, the left side is ∣2∣=2|2| = 2 but ∣5∣+∣−3∣=8|5| + |-3| = 8.

The last row is the triangle inequality. Equality holds only when aa and bb have the same sign (or one is zero). The name comes from geometry: one side of a triangle is never longer than the other two sides added together. The statement ∣a+b∣=∣a∣+∣b∣|a + b| = |a| + |b| is a false rule that students invent constantly, so test any suspicious step with a pair like 55 and −3-3.

How do you solve an absolute value equation?

Graph of y = |x + 1| and y = 2x − 4 crossing only at (5, 6), showing x = 1 is extraneous
At x = 1 the V reads 2 but the line reads −2, so only x = 5 is a real solution.

Solving ∣A∣=B|A| = B means finding every place whose distance from zero equals BB. The process has a fixed order:

  1. Isolate the bars by moving everything else to the other side.
  2. Check the sign of the other side: if it is negative, there is no solution; if it is zero, solve A=0A = 0 only; if it is positive, continue.
  3. Split into two equations, A=BA = B and A=−BA = -B.
  4. Solve both and substitute each answer into the original equation.

Take ∣2x−5∣+3=10|2x - 5| + 3 = 10. Subtract 3 to get ∣2x−5∣=7|2x - 5| = 7. Then 2x−5=72x - 5 = 7 gives x=6x = 6, and 2x−5=−72x - 5 = -7 gives x=−1x = -1. Both work. The two cases exist because the properties of equality let you undo addition and multiplication, but nothing lets you “undo” bars directly, since two different inputs can produce the same output.

Step 4 is not optional when the variable also appears outside the bars, because one of the two cases can fail.

Example 2. Solve ∣x+1∣=2x−4|x + 1| = 2x - 4.

x+1=2x−4  ⇒  x=5orx+1=−(2x−4)  ⇒  3x=3  ⇒  x=1x + 1 = 2x - 4 \;\Rightarrow\; x = 5 \qquad\text{or}\qquad x + 1 = -(2x - 4) \;\Rightarrow\; 3x = 3 \;\Rightarrow\; x = 1

Check x=5x = 5: the left side is ∣6∣=6|6| = 6 and the right side is 10−4=610 - 4 = 6. It works.

Check x=1x = 1: the left side is ∣2∣=2|2| = 2 but the right side is 2−4=−22 - 4 = -2. It fails, so it is an extraneous solution. The only answer is x=5x = 5.

Test the right side before solving

In ∣A∣=B|A| = B, any solution needs B≥0B \ge 0. Here 2x−4≥02x - 4 \ge 0 means x≥2x \ge 2, which rejects x=1x = 1 on sight and saves the substitution.

How do you solve absolute value inequalities?

Use the distance reading. The statement ∣x−c∣<r|x - c| < r says xx is within rr of cc, and ∣x−c∣>r|x - c| > r says xx is farther than rr from cc. Written as algebra:

  • Less than: ∣x−c∣<r|x - c| < r becomes −r<x−c<r-r < x - c < r, a single interval joined by “and”.
  • Greater than: ∣x−c∣>r|x - c| > r becomes x−c<−rx - c < -r or x−c>rx - c > r, two separate rays joined by “or”.

Two traps cost the most points. First, isolate the bars before splitting, and flip the inequality sign whenever you multiply or divide by a negative number. Second, watch the special cases: ∣x∣<−2|x| < -2 has no solutions, while ∣x∣>−2|x| > -2 is true for every real number, because a distance always beats a negative number.

Example 3. Solve 5−2∣x+1∣≥−15 - 2|x + 1| \ge -1.

−2∣x+1∣≥−6  ⇒  ∣x+1∣≤3  ⇒  −3≤x+1≤3  ⇒  −4≤x≤2-2|x + 1| \ge -6 \;\Rightarrow\; |x + 1| \le 3 \;\Rightarrow\; -3 \le x + 1 \le 3 \;\Rightarrow\; -4 \le x \le 2

The sign flipped when dividing by −2-2, which turned "≥\ge" into "≤\le" and made this a “less than” case. Check a point inside: at x=0x = 0, 5−2(1)=3≥−15 - 2(1) = 3 \ge -1, which is true. Check a point outside: at x=3x = 3, 5−2(4)=−35 - 2(4) = -3, which is not ≥−1\ge -1. The solution in interval notation is [−4,2][-4, 2], with square brackets because the inequality includes equality.

What does the graph of an absolute value function look like?

The graph of y=∣x∣y = |x| is a V with its corner, the vertex, at the origin. The right arm is the line y=xy = x and the left arm is y=−xy = -x, so the graph is two straight lines with slopes 11 and −1-1 joined at a point. If you know slope-intercept form, you can sketch each arm in seconds, and this is the piecewise definition drawn out.

The general form y=a∣x−h∣+ky = a|x - h| + k has its vertex at (h,k)(h, k). The number aa controls steepness and direction: a negative aa flips the V upside down. The classic trap is the horizontal shift, because ∣x−2∣|x - 2| moves the graph right by 2, not left. Rewrite x+4x + 4 as x−(−4)x - (-4) to see that it moves left.

Graphs also explain how many solutions an equation has. For y=∣x−2∣+3y = |x - 2| + 3 the vertex is (2,3)(2, 3). Setting ∣x−2∣+3=7|x - 2| + 3 = 7 gives ∣x−2∣=4|x - 2| = 4, so x=6x = 6 or x=−2x = -2: the horizontal line y=7y = 7 crosses the V twice. A line at y=3y = 3 touches only the vertex (one solution), and a line at y=1y = 1 misses the graph entirely (none). That matches the three cases from the equation section.

Quick check

Find the vertex of y=−∣x+4∣−1y = -|x + 4| - 1 and say whether the V opens up or down.

Where is absolute value used in real life?

Any time only the size of a gap matters and not its direction, absolute value is the tool. Manufacturing tolerances are the clearest case: a bolt that must be 4040 mm long within 0.50.5 mm satisfies ∣L−40∣≤0.5|L - 40| \le 0.5, which means 39.5≤L≤40.539.5 \le L \le 40.5. Thermostats, medicine doses and pH ranges all use the same center-and-radius structure.

Error measurement is another everyday use. Percent error compares the size of a miss with the true value:

percent error=∣measured−true∣∣true∣×100\text{percent error} = \frac{|\text{measured} - \text{true}|}{|\text{true}|} \times 100

If a scale reads 9.69.6 when the true mass is 1010, the error is ∣−0.4∣10×100=4%\frac{|-0.4|}{10} \times 100 = 4\%. Without the bars, a reading that is too low would give a negative error, which is meaningless as a size. It differs from percent change, where the sign is kept because direction (increase or decrease) is the point.

The idea also scales up. In computing, the function abs() does exactly this operation. For a complex number, the absolute value (called the modulus) is the distance from the origin in the plane, so ∣3+4i∣=5|3 + 4i| = 5. For a vector, it is the length. Each of these is still “how far from zero”, which is why one simple definition keeps appearing across algebra, geometry and beyond.

Practice problems

0 of 5 solved

  1. Evaluate ∣−4∣+∣7−12∣|-4| + |7 - 12|.

  2. Solve ∣x−3∣=8|x - 3| = 8.

  3. Solve 3∣2x+1∣−4=113|2x + 1| - 4 = 11.

  4. Solve ∣3−2x∣≥5|3 - 2x| \ge 5.

  5. Solve ∣x−1∣=3x−5|x - 1| = 3x - 5.

Common questions

Is absolute value always positive?

It is always nonnegative, which is slightly different. The absolute value of any nonzero number is positive, but ∣0∣=0|0| = 0, and zero is neither positive nor negative.

What is the absolute value of a negative number?

It is the same number with the negative sign removed, because the distance from zero is the same in both directions. For example, ∣−12.5∣=12.5|-12.5| = 12.5.

How do you type or write the absolute value symbol?

Use two vertical bars around the number or expression, as in ∣x−4∣|x - 4|. On most keyboards the bar sits above the Enter key (Shift plus backslash). In code, the function is usually written abs(x).

Can an absolute value equation have no solution?

Yes. If the isolated absolute value equals a negative number, such as ∣x+2∣=−3|x + 2| = -3, no real number works, because a distance cannot be negative. Always isolate the bars before deciding how many cases to solve.

What is the difference between ∣−5∣|-5| and −∣5∣-|5|?

∣−5∣|-5| equals 55 because the bars act first. −∣5∣-|5| equals −5-5 because the bars give 55 and then the outside minus sign flips it.

Why do absolute value equations have two answers?

Two different numbers can sit the same distance from a target. In ∣x−3∣=4|x - 3| = 4, both 77 and −1-1 are four units from 33, so both are solutions.

Up next