Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

|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.

Absolute Value Calculator

Number x: enter a number. Prefilled example: -7.5.

Second number y (for the distance): enter a number. Prefilled example: 3.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Number x: enter a number.
  2. Second number y (for the distance): enter a number.
  3. 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

  1. Ax=|x|+0
Symbols used in the formula
SymbolMeaning
xNumber x
Ax|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
  1. Ax=|−7.5|+0=7.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.

Related calculators