Finds a number’s distance from zero, always returned as a non-negative value.
How it works
If the number is already zero or positive, the result is the same number; if negative, the sign is dropped.
What this does not include
This does not include solving an equation that contains an absolute value — for that, use this site’s absolute value equation calculator instead.
How to use this calculator
- Enter any number.
A worked example
The absolute value of −5 is 5. The absolute value of 7 is 7 — a positive number is unaffected.
What the variables mean
| Variable | Meaning |
|---|---|
| x | Any real number, positive or negative |
| Result | The distance of x from zero on the number line, always non-negative |
Edge cases worth knowing
The absolute value of zero is zero — zero is its own distance from itself, so it’s the one value the sign flip never changes.
Absolute value only strips the sign — it doesn’t round or truncate. The absolute value of −5.7 is 5.7, not 6 or 5.
Frequently asked questions
Why is absolute value always non-negative?
Because it measures distance from zero, and distance itself is never negative — whether you’re 5 units to the left or right of zero, you’re still 5 units away.
What’s the absolute value of zero?
Zero — it’s exactly at the point being measured from, so the distance is zero.
Where is absolute value commonly used?
Measuring error margins, distances, and any situation where only the size of a difference matters, not its direction.