This absolute value calculator separates three common tasks:
|x|, such as |-12.5| = 12.5.|-3| + |4| = 7.|a-b|, turning a signed difference into number-line distance, such as |5-12| = 7.The page updates automatically and shows supporting values such as the original result, distance, and magnitude. It is useful for learning, checking work, and quick real-number calculations—not for full algebra or symbolic solving.
|-8|.|a-b| as distance between two points on a number line.Enter one finite real number. A positive input stays the same, a negative input loses its sign, and 0 remains 0.
It supports single-number |x|, basic expressions with matching absolute-value bars, and two-number |a-b| difference mode.
|x| is the distance from x to zero on a number line, while |a-b| is the distance between a and b, so the result is never negative.
Use numbers, decimals, spaces, parentheses, and +, -, *, or /; wrap absolute-value sections in matching | | bars.
No. This page is not a full symbolic calculator and does not support variables, functions, percent, powers, scientific notation, complex modulus, or implicit multiplication.
Yes. The page recalculates when inputs change, while the Calculate button remains available as an explicit trigger; the current inputs are also kept in shareable URL parameters.
Calculate a single real number's absolute value, a basic bar-delimited arithmetic expression, or the absolute difference between two numbers.