About this calculator
Indian textbooks sometimes call it the modulus.
How to use it
- Enter a number.
- Optionally enter a second number.
- Read the results.
The formula
- |a − b|
- distance between a and b
Worked example
−17.5 and 4
- |−17.5| = 17.5.
- Distance between −17.5 and 4 = |−17.5 − 4| = 21.5.
What the result means
Absolute values are always zero or positive.
Solving equations and inequalities with absolute value
Read |x − a| as “the distance between x and a”. That turns most absolute value questions into number-line questions.
- |x| = 5 has two answers: x = 5 or x = −5.
- |x − 3| = 7 means x is 7 away from 3, so x = 10 or x = −4.
- |x − 3| < 2 means x is within 2 of 3, so 1 < x < 5.
- |x| = −4 has no solution, because an absolute value is never negative.
Rules worth knowing
To check an answer such as x = −4 for |x − 3| = 7, enter −4 as the first number and 3 as the second. The distance shown is 7.
- |a × b| = |a| × |b|: |−4 × 3| = 12.
- |a + b| ≤ |a| + |b|: |−5 + 3| = 2, while |−5| + |3| = 8.
- |a − b| = |b − a|, so the order of the two numbers does not change the distance.
- −|x| is always zero or negative, but |−x| is the same as |x|.
Where absolute value is used
It appears whenever only the size of a difference matters: the gap between two temperatures such as −8 °C and −3 °C (5 degrees), the error between a measured value and the true value, or how far a price moved regardless of direction.
Assumptions
- Real numbers.
Limitations
- None.
Frequently asked questions
What is the absolute value of −5?
5.
Can absolute value be negative?
No.
What is the distance between −3 and 7?
10.
What is the absolute value of 0?
0. Zero is the only number whose absolute value is zero.
What is the absolute value of −3/4?
3/4, or 0.75. Enter it as −0.75, since the calculator works with decimals.
What is the distance between −8 and −3?
5, because |−8 − (−3)| = |−5| = 5.
Last reviewed on 12 October 2026. How we calculate and check. Found a mistake? Tell us.

