Absolute Value Calculator

Find the absolute value |x| of any number, and the distance between two numbers on the number line.

Your details

Optional; 0 if left empty

Your data stays in your browser

Result

Enter the number, and a second one for the distance, then press “Calculate”.

Analysis and suggestions

Once calculated, this shows what your result means and suggestions based on your numbers.

Behind the result

Find the absolute value |x| of any number, and the distance between two numbers on the number line.

Example · |x| = x إن كان x ≥ 0، و|x| = −x إن كان x < 0 | المسافة = |a − b|

|-7.5| = 7.5

How it is calculated

Comprehensive Calculator Guide

This calculator finds |x|, a number’s distance from zero on the number line, so a minus sign is dropped and a positive number stays as it is: |−7.5| = 7.5. Add a second number to get the distance between them, |a − b|: from 3 to −4 is 7. It helps with integers, equations and differences without direction.

Absolute value

|x| = x when x ≥ 0 and −x when x < 0, so it is never negative. The distance between a and b is |a − b| either way round. |x| = 5 has two solutions, 5 and −5.

How to Use

  1. Enter the number.
  2. Add a second number for the distance (optional).
  3. Press “Calculate” to see the absolute value and distance.

Formula Used

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

Practical Examples

Example 1
|−7.5| = 7.5.
Example 2
Distance from 3 to −4: 7.

Important Tips

  • Think of it as distance.
  • Work out the inside first.
  • |x| = 5 has two answers.

Common Mistakes to Avoid

  • Assuming |a + b| = |a| + |b|.
  • Missing the negative solution.
  • Thinking it flips positives.

Frequently Asked Questions

|−12|?
12.
Can it be negative?
No.
Distance from −2 to 5?
7.

Read Also

Results are estimates for educational purposes and may vary depending on your situation and data sources.