Absolute Value Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter a number to get its absolute value, its distance from zero; add a second number to get the distance between them.
Result
|x|
|y|
- Distance |x − y|
- |x × y| = |x| × |y|
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Number x: enter a number.
- Second number y (for the distance): enter a number.
- Read the result: |x|; the panel also shows |y|, Distance |x − y| and |x × y| = |x| × |y|.
How this calculator works
|x| = x when x ≥ 0 and −x when x < 0: the distance from x to 0 on the number line, never negative.
The distance between two numbers is |x − y|, the same in either order. Absolute values multiply: |xy| = |x| × |y|.
The formula
| Symbol | Meaning |
|---|---|
| Number x | |
| |x| |
Worked example
| Number x | -7.5 |
|---|---|
| Second number y (for the distance) | 3 |
| |y| | 3 |
|---|---|
| Distance |x − y| | 10.5 |
| |x × y| = |x| × |y| | 22.5 |
|x| 7.5
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the absolute value of −7.5?
7.5.
What is the distance between −7.5 and 3?
|−7.5 − 3| = 10.5.