Absolute Value Calculator

The absolute value is a number’s distance from zero, ignoring its sign: |−17.5| = 17.5. The absolute value of a difference gives the distance between two numbers.

To find the distance between two numbers.
Results update as you type.

|−17.5|

17.5

distance from zero

Distance between −17.5 and 4
21.5|−17.5 − 4|

About this calculator

Indian textbooks sometimes call it the modulus.

How to use it

  1. Enter a number.
  2. Optionally enter a second number.
  3. Read the results.

The formula

|x| = x if x ≥ 0, and −x if x < 0
|a − b|
distance between a and b

Worked example

−17.5 and 4

  1. |−17.5| = 17.5.
  2. Distance between −17.5 and 4 = |−17.5 − 4| = 21.5.

What the result means

Absolute values are always zero or positive.

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.

Last reviewed on 3 October 2026. Found a mistake? Tell us.