Absolute Value Calculator

The absolute value of a number is its distance from zero, and reading it that way makes almost everything else about it obvious. Four questions wear the same pair of bars and are not the same question. Evaluating |ax + b| at a point is arithmetic. Solving |ax + b| = c is an equation with generally ...

√(x²) is |x|, not x. At x = −3 the left side comes to 3. That single fact explains why solving x² = 9 gives two answers rather than one, and why an absolute value equation almost always has two solutions: |a| = |b| means a = ±b, never just a = b.

WHAT TO WORK OUT

|x+|=

|x − 3| = 2

1 and 5

The inside can be either 2 or −2, and both give a valid answer. That is the whole reason an absolute value equation has two solutions and an ordinary linear one has a single answer.

Both cases, worked through. Setting the inside equal to 2 gives x − 3 = 2, so x = 5. Setting it equal to −2 gives x = 1. Both satisfy the original equation, which is easy to check: the inside comes to 2 and -2, and both have absolute value 2. Note that the case setting the inside to +2 gives the larger of the two roots here, because a is positive — with the opposite sign they swap over, so the cases are not in the order the answer is listed.

StepWorkingResult
Inside = +2x − 3 = 2x = 5
Inside = −2x − 3 = −2x = 1
Check|inside| at each root2, 2

THE PICTURE

y = |x − 3|y = 2-1.27.2a horizontal line crosses a V twice — which is where the two solutions come from

A horizontal line crosses a V in two places, which is the two solutions made visible. Lower the line to the vertex and the two crossings merge into one; lower it below the axis and there are none, because the V never goes there.

Live calculation · updates as you type

Created with❤️byeaglecalculator.com

HOW TO USE

  1. 1

    Choose what you are actually asking. Solving an equation, evaluating at a point, measuring a distance and taking a complex modulus are four different problems that share a notation.

  2. 2

    For an equation, check the sign of the right-hand side before doing anything. A negative there means no solution, and setting up the two cases anyway produces two numbers that satisfy neither.

  3. 3

    Read the branch that was used when evaluating. The definition has two, and knowing which one applied is what makes the minus sign in |x| = −x for negative x stop looking wrong.

  4. 4

    Use the graph to see why an equation has two answers. A horizontal line crosses a V twice, touches it once at the vertex, and misses it entirely below the axis.

REFERENCE FORMULAS

RuleFormulaWhat it is for
Definition|x| = x if x ≥ 0, −x if x < 0Two cases, not one. The minus on the second branch makes the result positive.
Square root√(x²) = |x|Not x. At x = −3 the left side is 3. This is why x² = 9 gives x = ±3.
Equality|a| = |b| ⟺ a = b or a = −bNever just a = b. This is why an absolute value equation usually has two answers.
Equation|u| = c ⟹ u = c or u = −cTwo solutions when c > 0, one when c = 0, none when c < 0.
Distance|a − b|The gap between a and b on the number line. Symmetric, since |−u| = |u|.
Multiplication|ab| = |a| · |b|Absolute value passes straight through a product, and through a quotient too.
Addition|a + b| ≤ |a| + |b|The triangle inequality. Equality only when a and b share a sign, or one is zero.
Reverse triangle| |a| − |b| | ≤ |a − b|A lower bound on the distance. Useful for showing two quantities cannot be far apart.
Powers|xⁿ| = |x|ⁿAnd for even n, xⁿ is already non-negative, so the bars change nothing.
Signx = sgn(x) · |x|Magnitude and direction separated. The absolute value keeps the size and discards the sign.
Complex modulus|a + bi| = √(a² + b²)The same idea in two dimensions — the distance from the origin.
Not distributive|a + b| ≠ |a| + |b|In general. |3 + (−5)| is 2, while |3| + |−5| is 8.
Vertexy = |ax + b| turns at x = −b/aThe graph is a V. The turning point is where the inside changes sign.
Inequalities|u| < c is an AND; |u| > c is an ORCovered on the inequality solver, where the two cases are worked through.

FREQUENTLY ASKED QUESTIONS

RELATED CALCULATORS

MORE ALGEBRA CALCULATORS

Was this calculator helpful?

Last updated: August 4, 2026 · √(x²) = |x|, not x · |a| = |b| means a = ±b, which is why these equations have two answers.