Absolute Value Calculator - Find |x| Instantly
Calculate the absolute value of any number — positive, negative, or zero — and understand what it means on the number line.
Enter any real number and click Calculate Absolute Value to instantly see its absolute value, which is its distance from zero.
Absolute Value Calculator - Find |x| Instantly
Calculate the absolute value of any number — positive, negative, or zero — and understand what it means on the number line.
About the Absolute Value Calculator
The absolute value of a number is its distance from zero on the number line, regardless of direction. Written with vertical bars as |x|, the absolute value is always non-negative: |7| = 7, |−7| = 7, and |0| = 0. Whether a number is to the left or right of zero, its absolute value tells you how far away it is without caring which side. This simple idea turns out to be one of the most fundamental and versatile concepts in all of mathematics.
Formally, the absolute value function is defined as a piecewise rule: |x| = x when x is greater than or equal to zero, and |x| = −x when x is negative. The second branch may look strange at first — why would we negate a negative number? — but it works precisely because negating a negative produces a positive. If x = −7, then −x = −(−7) = 7, which is correctly the distance from −7 to zero on the number line.
In algebra, absolute value equations and inequalities arise constantly. The equation |x| = 5 has two solutions: x = 5 and x = −5, because both points lie exactly 5 units from zero. The inequality |x| < 3 describes all numbers whose distance from zero is less than 3, which is the open interval (−3, 3). The inequality |x| > 3 describes numbers more than 3 away from zero: x < −3 or x > 3. Recognising absolute value as distance immediately makes these problems geometric and intuitive.
In calculus and analysis, the absolute value is used to define key concepts such as limits, continuity, and metric spaces. The formal definition of a limit — that |f(x) − L| < ε whenever |x − a| < δ — uses absolute value to express closeness in a direction-neutral way. The triangle inequality, which states that |a + b| ≤ |a| + |b|, is a fundamental result that generalises to vectors, complex numbers, and abstract metric spaces, underpinning vast areas of modern mathematics.
In applied fields, absolute value appears wherever the magnitude of a quantity matters more than its sign. Error analysis in physics and engineering measures the absolute error |measured − true| to assess accuracy. Signal processing computes the absolute value of a waveform to find its envelope. Statistics uses absolute deviations |x − mean| as the basis for the mean absolute deviation, a robust measure of spread. Finance uses absolute value when measuring the size of price moves regardless of direction — a stock moving −$3 and another moving +$3 have the same absolute price change of $3.
The absolute value is also the foundation for the Euclidean norm in one dimension, which extends to the familiar distance formula in two and three dimensions. In two dimensions, the distance between points (x₁, y₁) and (x₂, y₂) is √((x₂−x₁)² + (y₂−y₁)²), which is the Euclidean generalisation of a one-dimensional absolute difference. Understanding absolute value thus provides the conceptual foundation for all notions of distance in higher-dimensional geometry and functional analysis.
Absolute value examples
These examples show how absolute value works for negative numbers, positive numbers, zero, and decimals.
| Number | Absolute Value | Explanation |
|---|---|---|
| −7 | 7 | The negative sign is dropped. −7 is 7 units to the left of zero, so its distance from zero is 7. |
| 5 | 5 | A positive number is already its own absolute value. 5 is 5 units to the right of zero, distance = 5. |
| 0 | 0 | Zero is its own absolute value because it is 0 units from zero. |0| = 0 is the only case where the absolute value equals zero. |
| −12.5 | 12.5 | Absolute value works for decimals too. −12.5 lies 12.5 units below zero on the number line, so |−12.5| = 12.5. |
How to use the Absolute Value Calculator
- Enter any real number in the Number field — it can be positive, negative, or zero, and it can be an integer or a decimal.
- Click Calculate Absolute Value to instantly see the result.
- The result is always non-negative: |x| is x for positive numbers, 0 for zero, and −x (the positive version) for negative numbers.
- Check the formula display to see the full expression |input| = result.
- Click Reset to clear the field and start a new calculation.
Absolute Value FAQ
What is absolute value?
The absolute value of a number is its distance from zero on the number line, regardless of direction. It is always non-negative. |7| = 7, |−7| = 7, and |0| = 0. The vertical bars |…| are the standard notation for absolute value.
Why is |−7| = 7 and not −7?
Because absolute value measures distance, and distance is never negative. The number −7 lies 7 units to the left of zero, so its absolute value — its distance from zero — is 7. Formally, |−7| = −(−7) = 7, because negating a negative number gives a positive result.
Can absolute value be zero?
Yes, but only for the number zero itself. |0| = 0 because zero is already 0 units from zero. For any non-zero number, the absolute value is strictly positive. This property — |x| = 0 if and only if x = 0 — is one of the defining axioms of an absolute value or norm.
What is the difference between absolute value and absolute change?
Absolute value is applied to a single number to give its distance from zero: |x|. Absolute change is the signed difference between two values: Final − Initial. The absolute value of the absolute change gives the unsigned magnitude of that difference. For example, a drop from 100 to 80 has absolute change −20, and the absolute value of that change is |−20| = 20.
How is absolute value used in equations and inequalities?
The equation |x| = 5 has two solutions: x = 5 and x = −5. The inequality |x| < 3 means −3 < x < 3 (all numbers within 3 units of zero). The inequality |x| > 3 means x < −3 or x > 3. Thinking of absolute value as distance on the number line makes these solutions geometric and easy to visualise.
Does absolute value work for fractions and decimals?
Yes. |−3.75| = 3.75, |−1/2| = 1/2, and so on. The rule is the same regardless of whether the number is an integer, fraction, or decimal: remove the negative sign if present, leave positive numbers unchanged. The calculator handles any real number input.