Skip to main content

Online Calculators and Tools | Calculators Toolbox

Absolute Value Calculator

This absolute value calculator finds |x| for any number and the distance between two numbers on a number line.

Home / Absolute Value Calculator
Absolute Value Calculator illustration showing a glowing number line with a marker at zero and two arrows of equal length pointing to positive and negative sides
Absolute Value Calculator

Calculation Explanation

Absolute Value Calculator – Find |x| and Distance

Our free absolute value calculator finds |x| for any number, positive or negative, decimal or whole. A second tab finds the distance between two numbers on the number line, |a − b|, with a clear explanation for each answer.

What Is Absolute Value?

The absolute value of a number is its distance from zero on the number line, regardless of direction. It's written with two vertical bars: |x|. Since distance is never negative, an absolute value is always zero or positive. |7| = 7 and |−7| = 7, because both 7 and −7 sit exactly seven units from zero.

In everyday terms, absolute value answers "how big?" without caring about "which way?". A temperature change of −12° and one of +12° have the same size; a debt of $500 and a credit of $500 involve the same amount of money. Absolute value captures that size.

How to Find the Absolute Value

The rule is simple: if the number is negative, remove the minus sign. If it's positive or zero, leave it alone.

|x| = x if x ≥ 0   |   |x| = −x if x < 0   |   Distance = |a − b|

The second rule, −x when x is negative, can look confusing at first. It just means "the opposite of a negative number is positive": if x = −27.5, then −x = 27.5. To find how far apart two numbers are, subtract them and take the absolute value: |−8 − 5| = |−13| = 13.

Example Calculations:

|−27.5|Remove the minus sign → 27.5
|14|Already positive → 14
Distance from −8 to 5|−8 − 5| = 13
|3 − 10| + |−4|7 + 4 = 11

How to Use the Absolute Value Calculator

  1. On the |x| tab, type any number. Negatives, decimals and very large numbers all work.
  2. The absolute value appears instantly, with a short explanation of why.
  3. To find the distance between two numbers, switch to Distance |a − b| and enter both values.
  4. The result is the same whichever order you enter them, because distance doesn't depend on direction.

Real-World Uses of Absolute Value

Temperature Changes

From −5 °F at dawn to 18 °F at noon, the temperature changed by |18 − (−5)| = 23 degrees.

Elevation Differences

Death Valley sits at −282 ft and Mount Whitney at 14,505 ft, a difference of |14,505 − (−282)| = 14,787 ft.

Finance and Errors

Analysts measure forecast error as |actual − predicted| so that overestimates and underestimates both count.

Manufacturing Tolerances

A part is acceptable if |measured − target| ≤ 0.02 mm, whether it's slightly too big or too small.

Distance on a Map

On a city grid, the walking distance between blocks uses |x₁ − x₂| + |y₁ − y₂|, called taxicab distance.

Programming

Functions like Math.abs() and abs() are used constantly to compare values and measure differences.

Properties of Absolute Value

Always Non-Negative

|x| ≥ 0 for every real number, and |x| = 0 only when x = 0.

Opposites Have the Same Absolute Value

|x| = |−x|. A number and its opposite are the same distance from zero.

Example: |−9| = |9| = 9.

Multiplication and Division

|a × b| = |a| × |b| and |a ÷ b| = |a| ÷ |b|.

Example: |−4 × 6| = |−24| = 24, and |−4| × |6| = 24.

The Triangle Inequality

|a + b| ≤ |a| + |b|. Adding numbers with opposite signs can only make the total smaller in size, never bigger.

Example: |5 + (−3)| = 2, which is less than |5| + |−3| = 8.

Absolute Value Equations

|x| = 5 has two solutions, x = 5 and x = −5. |x − 3| = 4 means x is 4 units from 3, so x = 7 or x = −1.

Tips and Common Mistakes

  • Absolute value isn't simply "make it positive" for expressions: |a − b| is not |a| − |b|. Work out the inside first.
  • |−3|² = 9, but −|3|² = −9. Watch where the minus sign sits.
  • An equation like |x| = −2 has no solution, because absolute values can't be negative.
  • |x| < 4 means −4 < x < 4; |x| > 4 means x < −4 or x > 4.
  • On a calculator or spreadsheet, use ABS(): =ABS(A1) in Excel or Google Sheets.
  • For differences as a percentage, use the percentage difference calculator.

Absolute Value Examples Table

ExpressionInside valueAbsolute valueMeaning
|12|121212 units from zero
|−12|−121212 units from zero
|0|00At zero
|−0.75|−0.750.75Three-quarters from zero
|4 − 11|−77Distance from 4 to 11
|−6 − (−2)|−44Distance from −6 to −2
|−3| × |5|3 × 515Same as |−15|

Step-by-Step Worked Example

Solve the equation |2x − 6| = 10.

  1. An absolute value equals 10 when the inside is either 10 or −10.
  2. Case 1: 2x − 6 = 10 → 2x = 16 → x = 8.
  3. Case 2: 2x − 6 = −10 → 2x = −4 → x = −2.
  4. Check both: |2(8) − 6| = |10| = 10 ✓ and |2(−2) − 6| = |−10| = 10 ✓.

So x = 8 or x = −2. Use the |x| tab to check the inside values, 10 and −10, both give 10.

Absolute Value Beyond Real Numbers

The idea of "size without direction" extends beyond the number line. For a complex number a + bi, the absolute value (called the modulus) is √(a² + b²), its distance from zero on the complex plane. For a vector, the equivalent is its length or magnitude. In every case, absolute value measures how far something is from the origin, which is why it's one of the most widely used ideas in mathematics, physics and engineering.

Absolute Value Inequalities

Inequalities with absolute values describe ranges around a point. |x − 10| ≤ 3 means x is within 3 units of 10, so 7 ≤ x ≤ 13. This is exactly how tolerances work: a bolt that must be 10 mm ± 3 mm. On the other hand, |x − 10| > 3 means x is more than 3 units away, so x < 7 or x > 13. Thinking of absolute value as distance makes these problems easy to picture on a number line.

Absolute Value in Statistics

Statisticians use absolute values to measure how spread out data is. The mean absolute deviation (MAD) is the average of |value − mean| for every data point. For test scores of 70, 80 and 90, the mean is 80, the deviations are 10, 0 and 10, and the MAD is 6.67. Because absolute values ignore direction, scores above and below the average both count toward the spread instead of canceling each other out.

Why Use Our Absolute Value Calculator?

Our absolute value calculator gives instant answers for single numbers and for the distance between two numbers, handles decimals and negatives correctly, and explains each result in plain language. It's a handy tool for students learning integers, anyone solving absolute value equations, and professionals measuring errors and differences.

Frequently Asked Questions

Quick answers to common questions related to Absolute Value Calculator are as under:-

What is absolute value?

Absolute value is a number’s distance from zero on the number line, written |x|. It is always zero or positive, so |−6| = 6 and |6| = 6.

How do you find the absolute value of a negative number?

Remove the minus sign. The absolute value of −15 is 15.

Can absolute value be negative?

No. Absolute value measures distance, which can never be negative. The smallest possible absolute value is 0.

How do you find the distance between two numbers?

Subtract one number from the other and take the absolute value. The distance between −3 and 9 is |−3 − 9| = 12.

What is the absolute value of zero?

The absolute value of 0 is 0, because zero is no distance from itself.

How do you solve an absolute value equation?

Set the expression inside the bars equal to both the positive and the negative value, then solve each equation. |x − 2| = 5 gives x = 7 or x = −3.

Latest from Our Blog

Explore helpful tips, updates, and guides on calculators, AI tools, and conversions.