In short

The absolute value |x| is the distance of x from zero on the number line. An equation like |x| = 5 asks "which numbers are exactly 5 units from zero?" and the answer is always two values: x = 5 and x = -5. More complex equations — |f(x)| = a, |f(x)| = |g(x)|, equations with multiple absolute values — all reduce to the same move: split into cases based on whether the expression inside the bars is positive or negative, solve each case as an ordinary equation, then check every answer back in the original.

Pick a number. Any number. Now ask: how far is it from zero?

If you picked 7, the answer is 7. If you picked -7, the answer is also 7. Both numbers sit exactly seven units from zero on the number line — one to the right, one to the left. The direction is different, but the distance is the same.

That distance — stripped of direction, always non-negative — is the absolute value. It is written with vertical bars: |7| = 7 and |-7| = 7. The bars act like a filter that forgets sign and keeps only magnitude.

Absolute value as distance from zero on the number lineA horizontal number line from negative ten to ten. Two points are marked at negative seven and positive seven, each at the same distance from zero. Arcs above the line connect each point to zero, both labelled with distance seven, showing that the absolute value of both negative seven and positive seven is seven. 0 −7 7 7 units 7 units
Both $-7$ and $+7$ sit exactly seven units from zero. The absolute value discards the sign and keeps only the distance.

Now suppose someone hands you the equation |x| = 5 and asks you to solve it. They are really asking: which numbers on the number line are exactly 5 units from zero? There are exactly two such numbers — one on each side. So x = 5 or x = -5. That is the entire solution, and it follows directly from what absolute value means.

This two-answer pattern is the engine behind every absolute value equation. The bars hide a fork in the road: whatever is inside could be positive or negative, and each possibility is a separate equation to solve.

Definition and properties

Absolute value

For any real number x,

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

Equivalently, |x| = \sqrt{x^2}. Both definitions say the same thing: strip the sign, keep the magnitude.

Three properties follow immediately and are worth holding in your head. For all real numbers a and b:

  1. Non-negativity. |a| \ge 0, with equality only when a = 0.
  2. Product rule. |ab| = |a| \cdot |b|. The absolute value of a product is the product of the absolute values.
  3. Triangle inequality. |a + b| \le |a| + |b|. You met this in Operations and Properties — it says that distances can cancel when signs disagree, but they can never amplify.

The product rule is the one that matters most for equations. It tells you that |ab| = |a| \cdot |b|, so you can pull factors outside the bars one at a time. The triangle inequality is less about solving equations and more about bounding them — it becomes central in Absolute Value — Inequalities.

Equations of the form |x| = a

The simplest type. The equation |x| = a asks: which numbers are a units from zero?

That third case is worth pausing on. If you see |x| = -3 on a test, you can immediately write "no solution" without any algebra at all. The bars guarantee non-negativity.

Now replace the bare x with a linear expression. The equation |2x - 6| = 10 asks: which values of x make 2x - 6 exactly 10 units from zero? The expression inside the bars is either +10 or -10:

Case 1. 2x - 6 = 10. Then 2x = 16, so x = 8.

Case 2. 2x - 6 = -10. Then 2x = -4, so x = -2.

Both answers should be checked in the original equation. |2(8) - 6| = |10| = 10. |2(-2) - 6| = |-10| = 10. Both check out.

Two solutions of the equation absolute value of 2x minus 6 equals 10A number line from negative four to ten. Two points are marked at x equals negative two and x equals eight. Both sit at equal distances from x equals three, which is the point where the expression 2x minus 6 equals zero. Arcs above the line from each point to the centre are labelled with the distance. −4 −2 0 2 4 6 8 x = 3 5 units 5 units
The two solutions $x = -2$ and $x = 8$ are symmetric around $x = 3$, which is where $2x - 6 = 0$. Each is exactly $5$ units away from that centre — and $5$ times the leading coefficient $2$ gives the $10$ on the right side of the equation.

There is a pattern here worth naming. For any equation |f(x)| = a with a > 0, the procedure is:

  1. Write two cases: f(x) = a and f(x) = -a.
  2. Solve each case as an ordinary equation.
  3. Check every answer in the original equation (this matters when f is nonlinear or when the equation has extra terms outside the bars).

Equations of the form |f(x)| = |g(x)|

When absolute values appear on both sides, the distance interpretation shifts. The equation |f(x)| = |g(x)| says: the distance of f(x) from zero equals the distance of g(x) from zero. Two numbers have the same absolute value precisely when they are either equal or negatives of each other. So:

|f(x)| = |g(x)| \quad \Longleftrightarrow \quad f(x) = g(x) \;\;\text{ or }\;\; f(x) = -g(x)

That is the whole rule. No new machinery — just two equations, each solved on its own.

Take |3x - 1| = |x + 5|.

Case 1. 3x - 1 = x + 5. Then 2x = 6, so x = 3.

Case 2. 3x - 1 = -(x + 5). Then 3x - 1 = -x - 5, so 4x = -4, giving x = -1.

Check: |3(3) - 1| = |8| = 8 and |3 + 5| = |8| = 8. Good. |3(-1) - 1| = |-4| = 4 and |-1 + 5| = |4| = 4. Also good.

There is an alternative approach worth knowing. Since |f(x)| = |g(x)| is the same as |f(x)|^2 = |g(x)|^2, and |a|^2 = a^2 for all real a, you can square both sides to get [f(x)]^2 = [g(x)]^2. Rearranging:

[f(x)]^2 - [g(x)]^2 = 0 \quad \Longrightarrow \quad [f(x) - g(x)][f(x) + g(x)] = 0

This uses the difference-of-squares identity. The advantage: it avoids case-splitting entirely and lands you at the same two equations (f(x) = g(x) and f(x) = -g(x)) in one algebraic move. The disadvantage: when f and g are not linear, squaring can introduce higher-degree equations. For linear f and g, the squaring route is clean and fast.

Equations with multiple absolute values

When more than one set of absolute-value bars appears in the same equation, the case-splitting idea extends — but you need to organise the cases carefully.

Consider |x - 1| + |x - 4| = 5. There are two absolute-value expressions, and each flips sign at a different point: x - 1 changes sign at x = 1, and x - 4 changes sign at x = 4. These critical points divide the number line into three intervals:

The solutions are x = 0 and x = 5.

Graph of y equals absolute value of x minus 1 plus absolute value of x minus 4A V-shaped piecewise linear graph of the function y equals the absolute value of x minus one plus the absolute value of x minus four, plotted from x equals negative two to x equals seven. The graph has a flat portion equal to three between x equals one and x equals four, and rises with slope two on either side. A horizontal dashed line at y equals five intersects the graph at x equals zero and x equals five, which are the two solutions. x y −1 0 1 2 3 4 5 3 5 7 y = 5 x = 0 x = 5
The graph of $y = |x - 1| + |x - 4|$ is a piecewise linear curve: it falls with slope $-2$ until $x = 1$, stays flat at $y = 3$ between $x = 1$ and $x = 4$, then rises with slope $2$ after $x = 4$. The horizontal line $y = 5$ intersects it at exactly two points: $x = 0$ and $x = 5$. The flat region at $y = 3$ lies entirely below the line $y = 5$, which is why there are no solutions in $[1, 4]$.

The general strategy for equations with multiple absolute values:

  1. Find the critical points — the values of x where each expression inside a |\cdot| equals zero.
  2. Divide the number line into intervals at those critical points.
  3. In each interval, every absolute-value expression has a definite sign, so you can drop the bars (inserting a minus sign where needed) and solve the resulting ordinary equation.
  4. Check that each solution actually falls in the interval you assumed. Discard any that don't.

This method always works, no matter how many absolute values appear. With k absolute-value terms, you get at most k + 1 regions and at most k + 1 equations to solve.

An interactive look at |x - c| = r

The equation |x - c| = r asks: which numbers are exactly r units away from c? Drag the two controls below to change c (the centre) and r (the radius). The two solution points move in real time.

Interactive absolute value equation on the number lineAn interactive number line from negative ten to ten with two draggable red points representing the two solutions of the equation absolute value of x minus c equals r. A readout panel above the line shows the current values of c and r and the two solutions c minus r and c plus r. As the reader drags the points, the readouts update in real time. −10 −5 0 5 10 ↔ drag the red points
Drag the two red points to change the solutions. The readouts above compute the centre $c$ (the midpoint) and the radius $r$ (half the gap between them). Every position of the two points corresponds to some equation $|x - c| = r$, and every such equation corresponds to exactly two points on the line.

Notice that the two solutions are always symmetric around c. The "\pm" in the solutions x = c \pm r is naming exactly this symmetry — one solution sits r units to the right of c, the other r units to the left.

Two worked examples

Example 1: Solve |2x + 3| = 7

This is an |f(x)| = a equation with f(x) = 2x + 3 and a = 7. Since 7 > 0, there are two cases.

Step 1. Write the two cases.

2x + 3 = 7 \qquad \text{or} \qquad 2x + 3 = -7

Why: the expression 2x + 3 has absolute value 7, so the expression itself is either +7 or -7.

Step 2. Solve Case 1.

2x + 3 = 7 \implies 2x = 4 \implies x = 2

Why: subtract 3 from both sides (additive inverse), then divide by 2 (multiplicative inverse). Standard linear equation moves.

Step 3. Solve Case 2.

2x + 3 = -7 \implies 2x = -10 \implies x = -5

Why: same moves, different numbers.

Step 4. Check both answers.

|2(2) + 3| = |7| = 7. Correct. |2(-5) + 3| = |-7| = 7. Correct.

Result. x = 2 or x = -5.

V-shaped graph of y equals absolute value of 2x plus 3 intersecting y equals 7The graph of y equals absolute value of 2x plus 3 is a V-shape with its vertex at x equals negative 1.5, y equals 0. A horizontal line at y equals 7 intersects the V at x equals negative 5 on the left arm and x equals 2 on the right arm. These two intersection points are the solutions. x y −5 −4 −3 −2 −1 1 2 3 7 y = 7 x = −5 x = 2
The graph of $y = |2x + 3|$ is a V with its vertex at $(-1.5, 0)$. The horizontal line $y = 7$ cuts through both arms: once at $x = -5$ on the left and once at $x = 2$ on the right. Each intersection is one solution. The two solutions are equidistant from the vertex, a direct consequence of the V-shape's symmetry.

The picture confirms the algebra: the V-shaped graph of |2x + 3| meets the horizontal line y = 7 at exactly the two points you computed.

Example 2: Solve |x − 3| = |2x + 1|

This is an |f(x)| = |g(x)| equation. The two sides have equal absolute values, so the expressions are either equal or negatives of each other.

Step 1. Write the two cases.

x - 3 = 2x + 1 \qquad \text{or} \qquad x - 3 = -(2x + 1)

Why: two numbers with the same absolute value are either equal or differ only by sign. This exhausts all possibilities.

Step 2. Solve Case 1.

x - 3 = 2x + 1 \implies -3 - 1 = 2x - x \implies x = -4

Why: collect x-terms on one side, constants on the other.

Step 3. Solve Case 2.

x - 3 = -2x - 1 \implies 3x = 2 \implies x = \tfrac{2}{3}

Why: distribute the minus sign on the right, then collect terms.

Step 4. Check both answers.

|{-4} - 3| = |-7| = 7 and |2(-4) + 1| = |-7| = 7. Equal. Good. |\tfrac{2}{3} - 3| = |-\tfrac{7}{3}| = \tfrac{7}{3} and |2 \cdot \tfrac{2}{3} + 1| = |\tfrac{7}{3}| = \tfrac{7}{3}. Equal. Good.

Result. x = -4 or x = \frac{2}{3}.

Graphs of y equals absolute value of x minus 3 and y equals absolute value of 2x plus 1 intersecting at two pointsTwo V-shaped graphs plotted on the same axes. The graph of y equals the absolute value of x minus 3 has its vertex at x equals 3 and rises with slope 1 on either side. The graph of y equals the absolute value of 2x plus 1 has its vertex at x equals negative one half and rises with slope 2 on either side. The two graphs intersect at x equals negative 4 where both equal 7 and at x equals two thirds where both equal seven thirds. x y −4 −3 −2 −1 1 2 3 4 5 x = −4 x = ²⁄₃ |x − 3| |2x + 1|
The two V-shaped graphs — $y = |x - 3|$ (the wider V in dark) and $y = |2x + 1|$ (the steeper V in red) — intersect at exactly two points. The intersection at $x = -4$ happens high up the arms where both functions equal $7$. The intersection at $x = 2/3$ happens lower down where both equal $7/3$. Two graphs, two crossings, two solutions.

The graphical picture makes the structure visible: two V-shapes in the plane always intersect at most twice (unless they share an entire arm), and the intersection points are exactly the solutions.

Common confusions

A few traps that catch almost everyone the first time.

Going deeper

If you came here to learn how to solve absolute value equations, you have it — the case-split method handles every type. The rest of this section is for readers who want to see the geometric interpretation more precisely and how absolute value connects to the formal notion of distance.

Absolute value as a metric

The absolute value is more than a convenience — it is the distance function on the real line. The distance between any two real numbers a and b is |a - b|. This function has three properties that any distance function must have:

  1. |a - b| \ge 0, with equality if and only if a = b (non-negativity).
  2. |a - b| = |b - a| (symmetry — distance does not depend on direction).
  3. |a - c| \le |a - b| + |b - c| (triangle inequality — going through an intermediate point never shortens the journey).

These three properties define what mathematicians call a metric. The absolute value is the simplest example — the one-dimensional metric on \mathbb{R}. Every equation |x - c| = r is asking for the set of points at distance r from c in this metric. In one dimension, that set has at most two elements. In two dimensions, the same question — "which points are at distance r from c?" — gives a circle. In three dimensions, a sphere. The pattern extends all the way up.

Why checking matters: extraneous solutions

When you solve an equation by squaring both sides — as in the alternative approach for |f(x)| = |g(x)| — you are applying a non-invertible operation. Squaring turns both 5 and -5 into 25, so it can introduce solutions that satisfy the squared equation but not the original. These are called extraneous solutions, and they are the reason the "check" step is not optional.

For absolute value equations with linear interiors, extraneous solutions rarely appear — both cases usually give genuine answers. But the moment the interiors are nonlinear (quadratics, rationals, square roots), extraneous solutions become common. The habit of checking saves you from reporting answers that do not actually work.

Equations with nested absolute values

Sometimes absolute value expressions nest: \big||x| - 3\big| = 2. The outer bars ask for |x| to be a distance 2 from 3, so |x| = 5 or |x| = 1. Each of these gives two solutions: x = \pm 5 and x = \pm 1. So the original equation has four solutions: x \in \{-5, -1, 1, 5\}. Nested absolute values peel off from the outside in — each layer doubles the number of cases, but each individual case is simple.

Where this leads next

Absolute value equations are the prerequisite for several strands.