Absolute Value Calculator
Calculate absolute values, evaluate expressions with |...| notation, and solve absolute value inequalities. Full step-by-step working shown.
📊 What is Absolute Value?
The absolute value of a number, written |x|, is its distance from zero on the number line - always a non-negative result. The formal definition is:
- |x| = x if x ≥ 0
- |x| = −x if x < 0
So |7| = 7 (already positive), |−7| = 7 (strip the negative sign), and |0| = 0 (zero is zero).
The concept of absolute value is fundamental to algebra, calculus, and analysis. It appears wherever you need the magnitude of a quantity without regard to its direction or sign: distance between points, error in a measurement, deviation from a mean, and the magnitude of a complex number.
The notation |x| was introduced by Karl Weierstrass in 1841. Before that, mathematicians used phrases like “the modulus” (still common in British usage: the modulus of a number). For complex numbers z = a + bi, the modulus |z| = √(a² + b²) generalizes the same idea to two dimensions.
📐 Formula
Definition: |x| = x (if x ≥ 0) or −x (if x < 0)
Distance interpretation: |x − a| = distance from x to a on the number line
Solving |ax + b| = c (c > 0): Case 1: ax + b = c → x = (c − b) / a Case 2: ax + b = −c → x = (−c − b) / a
Solving |ax + b| < c: −c < ax + b < c → (−c − b)/a < x < (c − b)/a (flip inequalities if a < 0)
Solving |ax + b| > c: ax + b > c OR ax + b < −c → x > (c − b)/a OR x < (−c − b)/a
📖 How to Use
Steps to Calculate
|-4| + |2 - 9| or |3*5 - 20|. The calculator evaluates the whole expression.💡 Example Calculations
Example 1 — Absolute Value of a Negative Number
Find |−13.5|
Example 2 — Absolute Value Inequality: |x − 4| < 3
Solve |x − 4| < 3 (a = 1, b = −4, c = 3)
Example 3 — Absolute Value Inequality: |2x + 1| ≥ 5
Solve |2x + 1| ≥ 5 (a = 2, b = 1, op = ≥, c = 5)
❓ Frequently Asked Questions
🔗 Related Calculators
What is the absolute value of a number?
The absolute value of a number x, written |x|, is its distance from zero on the number line, always a non-negative result. Formally: |x| = x if x ≥ 0, and |x| = −x if x < 0. So |5| = 5, |−5| = 5, and |0| = 0. The absolute value strips away the sign, leaving only the magnitude.
How do you solve an absolute value equation like |2x + 3| = 7?
Split into two cases: 2x + 3 = 7 (giving x = 2) and 2x + 3 = −7 (giving x = −5). Always verify by substituting back: |2(2)+3| = |7| = 7 ✓ and |2(−5)+3| = |−7| = 7 ✓. If the right-hand side is negative (e.g. |2x+3| = −7), there is no solution since absolute value is always ≥ 0.
How do you solve an absolute value inequality like |x − 4| < 3?
For |expression| < c: rewrite as −c < expression < c and solve the compound inequality. Here: −3 < x − 4 < 3, so 1 < x < 7, which is the interval (1, 7). For |expression| > c: split into expression > c or expression < −c, giving a union of two intervals. The key rule: < gives a bounded interval; > gives an unbounded union.
What is the difference between |x| < c and |x| > c?
|x| < c means x is within distance c from zero: −c < x < c, written as the interval (−c, c). |x| > c means x is more than distance c from zero: x < −c or x > c, written as (−∞, −c) ∪ (c, +∞). The less-than case is bounded (a finite interval); the greater-than case is unbounded (two separate rays extending to infinity).
Can the absolute value ever be negative?
No - the absolute value |x| is always greater than or equal to zero for any real number x. This is why an equation like |x + 3| = −5 has no solution. It also means |x| ≥ 0 is an axiom of absolute value, and |x| = 0 if and only if x = 0.
What is the absolute value geometrically?
On the number line, |x| is the distance from x to the origin (0). More generally, |x − a| is the distance from x to the point a. This geometric interpretation is why absolute value appears in distance formulas, error bounds, and tolerance specifications. For complex numbers, |z| = √(a² + b²) for z = a + bi, which is the distance from the origin in the complex plane.
What are the properties of absolute value?
Key properties: (1) |x| ≥ 0 for all x. (2) |x| = 0 ⟺ x = 0. (3) |−x| = |x| (symmetry). (4) |xy| = |x||y| (multiplicative). (5) |x/y| = |x|/|y| for y ≠ 0. (6) |x + y| ≤ |x| + |y| (triangle inequality - perhaps the most important property in analysis). (7) ||x| − |y|| ≤ |x − y| (reverse triangle inequality).
What is the triangle inequality for absolute value?
The triangle inequality states |x + y| ≤ |x| + |y| for all real numbers x and y. Geometrically: the length of one side of a triangle is at most the sum of the other two sides. In analysis, this inequality is fundamental - it appears in proofs of convergence, continuity, and the distance axioms of metric spaces. Equality holds when x and y have the same sign (or one is zero).
How is absolute value used in real-world applications?
Absolute value quantifies deviation or distance without regard to direction: (1) Error and tolerance: a measurement is acceptable if |measured − target| ≤ 0.01. (2) Signal processing: the magnitude spectrum uses |z| for complex amplitudes. (3) Statistics: mean absolute deviation = average of |xᵢ − mean|. (4) Economics: percentage change uses |new − old| / old. (5) GPS and navigation: |lat₁ − lat₂| + |lon₁ − lon₂| is the Manhattan distance.
How do you graph an absolute value function?
The graph of y = |x| is V-shaped: it follows y = x for x ≥ 0 and y = −x for x < 0, meeting at the vertex (0, 0). For y = |x − h| + k, the vertex shifts to (h, k). The slopes are +1 and −1 away from the vertex. For y = a|x − h| + k, the slopes become +a and −a; |a| > 1 steepens the V, |a| < 1 flattens it. The graph is always V-shaped (or U-shaped for even powers) and symmetric about the vertical line through the vertex.