In short
|x| measures the distance between x and 0 on the number line. Distance is a length — it cannot point left or right, it cannot be negative. So |5| = 5 (five steps to the right of zero), |-5| = 5 (five steps to the left of zero, but still five steps), and |0| = 0 (you are already there). The bars are a geometric instruction: forget direction, keep length.
The first time you saw |-5| = 5, you probably thought the bars were a trick to "make a number positive." That description works, but it hides what is actually going on. The bars are not a sign-flipper. They are a ruler.
Imagine the number line stretched out across your desk, with 0 marked in the middle. Pick up a number — any number — and walk from 0 to where it sits. The number of steps you take is |x|. It does not matter whether you walked left or right. Steps are steps. Distance does not have a direction.
That single picture is what powers everything in absolute value equations — and once you see it, |-5| = 5 stops feeling like a magic rule and starts feeling like common sense. CBSE Class 11 introduces the absolute value (the modulus) exactly this way: the modulus of a real number is its distance from zero on the number line.
The number line picture
Lay a number line in front of you. 0 is the centre. Every other number sits somewhere along it — positive numbers to the right, negative numbers to the left. Now ask the only question absolute value cares about: how far is this number from zero?
Notice what is missing from the labels: a sign. None of the absolute values is negative. That is not a coincidence — it is the whole point.
Why distance is non-negative: a length is a count of steps, not a direction. If your friend walks from her house to the cricket ground and back, she does not say "I walked +200 metres there and -200 metres back, total zero." She walked 400 metres total. Direction is a separate question from distance.
So when someone writes |-7|, they are not asking "what is negative seven?" They are asking "how far is -7 from 0?". Look at the line: -7 sits seven steps to the left of 0. Seven steps is seven steps. |-7| = 7.
Example 1: $|7| = 7$
Start at 0. Walk to 7. You took seven steps to the right. Distance walked: 7.
So |7| = 7.
For positive numbers, the absolute value gives back the number unchanged — because the number itself is already telling you how far right of zero it sits.
Example 2: $|-7| = 7$
Start at 0. Walk to -7. You took seven steps to the left. Distance walked: 7.
So |-7| = 7.
The minus sign was telling you which direction to walk. It was not part of the distance. Once you arrive, the question "how far did you walk?" has the same answer as for +7.
This is why |7| and |-7| collapse to the same number — they are mirror images across zero, and a mirror image sits at the same distance from the mirror as the original.
The piecewise definition that captures it
The geometric idea is so clean that it is easy to forget it needs a formal definition for algebra. Here is the standard one, and you should read it as a translation of the picture above:
Two branches. Read each one slowly.
Top branch (x \ge 0): if x is already zero or positive, then x itself is the distance. No work to do. |3| = 3. |0| = 0. |17.5| = 17.5. The number is the answer.
Bottom branch (x < 0): if x is negative, then |x| = -x. This looks alarming at first — "minus a negative?" — but that is exactly the move that flips a negative into a positive. If x = -5, then -x = -(-5) = 5. The "-x" is doing the geometric job of measuring distance from zero by undoing the leftward sign.
Why the "-x" branch is not a typo: the symbol -x does not mean "a negative number." It means "the additive inverse of x." If x itself is already negative, its additive inverse is positive. So when the bottom branch says |x| = -x, it is producing a positive number — exactly the distance you wanted.
Try it on a few values to feel it:
- x = 4: top branch applies (since 4 \ge 0). |4| = 4.
- x = -4: bottom branch applies (since -4 < 0). |-4| = -(-4) = 4.
- x = 0: top branch applies (since 0 \ge 0). |0| = 0.
- x = -0.3: bottom branch applies. |-0.3| = -(-0.3) = 0.3.
Every case lines up with the picture. The piecewise definition is not a different idea from "distance from zero" — it is the same idea, written in symbols an algorithm can follow.
The generalisation: distance from any centre
Now the move that turns absolute value from a curiosity into a genuinely powerful tool. What if you do not want distance from zero? What if you want distance from, say, 3?
The centre has shifted. Instead of measuring from 0, you measure from a. The bars still strip direction and keep length — they just count steps from a different reference point.
Why does this work? Look at the inside: x - a. If x and a happen to be the same number, x - a = 0 and the absolute value is 0 — distance zero, which is right (you are already at a). If x is two steps to the right of a, then x - a = 2 and |x - a| = 2. If x is two steps to the left of a, then x - a = -2 and |x - a| = 2. Either way, you get the same distance back — because the bars do not care about direction.
Why subtracting a shifts the centre: the expression x - a measures how much further x is than a along the line. When a = 0, that is just x itself. When a \ne 0, it is the gap between them. The absolute value of that gap is the distance.
Example 3: Solve $|x - 3| = 4$
Read the equation in plain English: "the distance between x and 3 is 4."
So x sits exactly 4 units away from 3 on the number line. There are two such points — one on each side.
- Four units to the right of 3: 3 + 4 = 7.
- Four units to the left of 3: 3 - 4 = -1.
So x = 7 or x = -1.
You can check this against the bars directly: |7 - 3| = |4| = 4, and |-1 - 3| = |-4| = 4. Both work.
Why two answers and not one: distance does not specify direction. "Four units away from three" leaves the side of three open — and there is one such point on each side. This is the same reason |x| = 5 has two solutions, just with the centre shifted from 0 to 3.
The lesson generalises one more time: the meaning of absolute value never changes. It is always a distance. What changes is the reference point. |x| measures from 0. |x - 3| measures from 3. |x - a| measures from a. Once you read the bars as a ruler with an adjustable centre, every equation involving them reduces to a simple geometric question: which points on the line are the right distance away?
This is the picture you should carry forward into absolute value inequalities, where "distance equals" turns into "distance less than" or "distance greater than", and the two solution points become an entire interval. It is the picture that lurks behind the triangle inequality, behind error bounds in physics labs, behind GPS tolerance specifications. Every one of those topics is just absolute value playing its one true role: measuring a length on a line.
References
- NCERT Mathematics, Class 11, Chapter 1: Sets and Real Numbers — introduces modulus as distance from zero.
- Khan Academy — Absolute value as distance — interactive number-line illustrations.
- Wikipedia — Absolute value — formal definition and properties of the modulus on the real line.
- Wolfram MathWorld — Absolute Value — the absolute value as a metric on \mathbb{R}.