Absolute Value Calculator

Calculate absolute values, evaluate expressions with |...| notation, and solve absolute value inequalities. Full step-by-step working shown.

| | Absolute Value Calculator

Enter any real number to find its absolute value.

Enter an expression using |...| bars or numbers. Example: |3*5 - 20| or |-4| + |2 - 9|

Solve |ax + b| op c. Enter a, b, c and choose the operator.

|x|
-
Sign of x
-
−x (negation)
-
Working
Expression value
-
Absolute value
-
Working
Solution set
-
Working

📊 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

1
Single Number mode - type any real number and instantly see |x|, the sign of x, and the negation −x.
2
Expression mode - type any numeric expression using |...| bars, such as |-4| + |2 - 9| or |3*5 - 20|. The calculator evaluates the whole expression.
3
Inequality mode - enter coefficients a and b for |ax + b|, choose an operator (<, ≤, >, ≥), and enter the right-hand side c. The solution is shown in interval notation with step-by-step working.
4
Read the steps - the working panel shows how the sign is determined or how the compound inequality is split and solved.
5
Interpret the interval - for inequalities, a bounded interval like (1, 7) means all x strictly between 1 and 7; a union like (−∞, 1) ∪ (7, +∞) means all x outside the interval.

💡 Example Calculations

Example 1 — Absolute Value of a Negative Number

Find |−13.5|

1
−13.5 is negative, so |−13.5| = −(−13.5) = 13.5
|−13.5| = 13.5. The absolute value strips the sign, measuring the distance from 0.
Try this example →

Example 2 — Absolute Value Inequality: |x − 4| < 3

Solve |x − 4| < 3 (a = 1, b = −4, c = 3)

1
|x − 4| < 3 means the distance from x to 4 is less than 3: −3 < x − 4 < 3
2
Add 4 throughout: 1 < x < 7
Solution: x ∈ (1, 7) — all numbers within distance 3 of 4.
Try this example →

Example 3 — Absolute Value Inequality: |2x + 1| ≥ 5

Solve |2x + 1| ≥ 5 (a = 2, b = 1, op = ≥, c = 5)

1
Split into two cases: 2x + 1 ≥ 5 → 2x ≥ 4 → x ≥ 2
2
Second case: 2x + 1 ≤ −5 → 2x ≤ −6 → x ≤ −3
Solution: x ∈ (−∞, −3] ∪ [2, +∞)
Try this example →

❓ Frequently Asked Questions

What is the absolute value of a number?+
The absolute value |x| is the distance from x to zero on the number line — always non-negative. Formally, |x| = x when x ≥ 0 and |x| = −x when x < 0. Examples: |8| = 8, |−8| = 8, |0| = 0. It gives the magnitude of a number without regard to its sign.
How do you solve an absolute value equation?+
For |ax + b| = c: if c < 0, there is no solution (absolute value is always ≥ 0). If c = 0, solve ax + b = 0. If c > 0, split into two equations: ax + b = c and ax + b = −c, giving two solutions x = (c − b)/a and x = (−c − b)/a. Always verify by substituting back into |ax + b| = c.
What is the difference between |x| < c and |x| > c?+
|x| < c means x is within distance c of zero: −c < x < c, an interval (a bounded set). |x| > c means x is more than distance c from zero: x < −c or x > c, a union of two rays (an unbounded set). Memorize: “less than → single interval (AND), greater than → union of two rays (OR).”
Can the absolute value ever be negative?+
No. |x| ≥ 0 for every real number x. This is a fundamental property — absolute value measures distance, and distance is never negative. A consequence: the equation |x + 3| = −5 has no solution, and the inequality |x| > −2 is true for all real x.
What is the triangle inequality for absolute value?+
The triangle inequality: |x + y| ≤ |x| + |y|. This says the absolute value of a sum is at most the sum of the absolute values. It is one of the most important inequalities in mathematics, appearing throughout analysis, linear algebra (as the norm inequality), and metric geometry. Equality holds when x and y have the same sign.
What are the key properties of absolute value?+
Six essential properties: (1) |x| ≥ 0 for all x. (2) |x| = 0 ⇔ x = 0. (3) |−x| = |x|. (4) |xy| = |x||y|. (5) |x/y| = |x|/|y| (y ≠ 0). (6) |x + y| ≤ |x| + |y| (triangle inequality). These properties make absolute value a norm on the real number line, satisfying the axioms of a metric space.
What does interval notation mean in an absolute value solution?+
Interval notation describes solution sets concisely. Parentheses ( ) mean the endpoint is excluded (strict inequality); brackets [ ] mean the endpoint is included. Example: (1, 7) means 1 < x < 7 (endpoints excluded). [−3, 5] means −3 ≤ x ≤ 5 (endpoints included). The union ∪ joins two separate intervals, as in (−∞, −3] ∪ [2, +∞).
How is absolute value used in statistics?+
The mean absolute deviation (MAD) is the average of |x⊂i; − mean| across all data points — a measure of spread that is more robust to outliers than standard deviation. The L1 norm (sum of absolute deviations) is used in median regression (least absolute deviations) and LASSO regularization. Absolute percentage error (APE) = |actual − forecast| / |actual| is standard in forecasting evaluation.
What is the absolute value of a complex number?+
For a complex number z = a + bi, the absolute value (or modulus) is |z| = √(a² + b²). This is the distance from z to the origin in the complex plane. Example: |3 + 4i| = √(9 + 16) = √25 = 5. Properties carry over: |z⊂1;z⊂2;| = |z⊂1;||z⊂2;| and |z⊂1; + z⊂2;| ≤ |z⊂1;| + |z⊂2;|.
How do you graph y = |x| and transformations of it?+
y = |x| is V-shaped: slope +1 for x ≥ 0, slope −1 for x < 0, vertex at (0, 0). Transformations: y = |x − h| + k shifts the vertex to (h, k). y = a|x − h| + k changes the slopes to ±a (steeper if |a| > 1, flatter if |a| < 1, reflected if a < 0). y = |2x − 4| has vertex at x = 2 (where 2x − 4 = 0) and slopes ±2.

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.