Online Calculators and Tools | Calculators Toolbox
This absolute value calculator finds |x| for any number and the distance between two numbers on a number line.
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.
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.
The rule is simple: if the number is negative, remove the minus sign. If it's positive or zero, leave it alone.
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.
From −5 °F at dawn to 18 °F at noon, the temperature changed by |18 − (−5)| = 23 degrees.
Death Valley sits at −282 ft and Mount Whitney at 14,505 ft, a difference of |14,505 − (−282)| = 14,787 ft.
Analysts measure forecast error as |actual − predicted| so that overestimates and underestimates both count.
A part is acceptable if |measured − target| ≤ 0.02 mm, whether it's slightly too big or too small.
On a city grid, the walking distance between blocks uses |x₁ − x₂| + |y₁ − y₂|, called taxicab distance.
Functions like Math.abs() and abs() are used constantly to compare values and measure differences.
|x| ≥ 0 for every real number, and |x| = 0 only when x = 0.
|x| = |−x|. A number and its opposite are the same distance from zero.
Example: |−9| = |9| = 9.
|a × b| = |a| × |b| and |a ÷ b| = |a| ÷ |b|.
Example: |−4 × 6| = |−24| = 24, and |−4| × |6| = 24.
|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.
|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.
| Expression | Inside value | Absolute value | Meaning |
|---|---|---|---|
| |12| | 12 | 12 | 12 units from zero |
| |−12| | −12 | 12 | 12 units from zero |
| |0| | 0 | 0 | At zero |
| |−0.75| | −0.75 | 0.75 | Three-quarters from zero |
| |4 − 11| | −7 | 7 | Distance from 4 to 11 |
| |−6 − (−2)| | −4 | 4 | Distance from −6 to −2 |
| |−3| × |5| | 3 × 5 | 15 | Same as |−15| |
Solve the equation |2x − 6| = 10.
So x = 8 or x = −2. Use the |x| tab to check the inside values, 10 and −10, both give 10.
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.
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.
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.
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.
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.
Remove the minus sign. The absolute value of −15 is 15.
No. Absolute value measures distance, which can never be negative. The smallest possible absolute value is 0.
Subtract one number from the other and take the absolute value. The distance between −3 and 9 is |−3 − 9| = 12.
The absolute value of 0 is 0, because zero is no distance from itself.
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.