The absolute value strips the sign and leaves the magnitude. Enter any real number to get |x| with a clear explanation of whether and why the sign changed.
|-7| - Absolute Value
The absolute value strips the sign and leaves the magnitude. Enter any real number to get |x| with a clear explanation of whether and why the sign changed.
What is the absolute value of -7? Absolute value measures the distance from zero on the number line - always non-negative. |5| = 5, |-5| = 5, |0| = 0. For negative numbers it flips the sign, for positive numbers it does nothing. The calculator computes |x| and shows the geometric interpretation on the number line.
Parameters
Enter data for calculations
💡 Fill in all required fields to unlock the calculate button
One rule, zero exceptions
The absolute value of a number is its distance from zero on the number line. Positive numbers stay as they are. Negative numbers drop the minus sign. Zero stays zero. That is the entire rule - and the calculator applies it for you, showing both the result and the reasoning behind it.
Absolute value on the number line
Think of the number line as a ruler centered at zero. The absolute value tells you how far a number sits from the center, regardless of direction. Both -5 and +5 are exactly 5 steps away from zero, so |{-5}| = |5| = 5.
The formal definition uses a piecewise function:
|x| = -x if x < 0
The second line looks odd at first - "negative of a negative" - but -(-5) = 5, which is exactly what we want. The minus sign in the formula cancels the minus sign in the number.
Quick reference table
| Input (x) | |x| | Why |
|---|---|---|
| -100 | 100 | Negative - drop the sign |
| -7 | 7 | Negative - drop the sign |
| -0.5 | 0.5 | Works with decimals too |
| 0 | 0 | Zero is already at distance zero |
| 3 | 3 | Positive - no change |
| 42 | 42 | Positive - no change |
| 3.14 | 3.14 | Irrational approximations work the same way |
Practical examples
|a - b| always gives a non-negative difference
Financial reporting uses absolute values for magnitude
Tolerances are defined as absolute deviations
Depth and altitude are both distances from the zero reference
Peak-to-peak voltage = 2 x |peak amplitude|
Absolute value in equations and inequalities
Equations with absolute value often produce two solutions, because the expression inside the bars can be either positive or negative.
| Problem | Solution | Interpretation |
|---|---|---|
| |x| = 5 | x = 5 or x = -5 | Two numbers are 5 units from zero |
| |x - 3| = 7 | x = 10 or x = -4 | Two numbers are 7 units from 3 |
| |2x + 1| = 9 | x = 4 or x = -5 | Solve 2x + 1 = 9 and 2x + 1 = -9 |
| |x| < 3 | -3 < x < 3 | All numbers closer than 3 units to zero |
| |x| > 4 | x < -4 or x > 4 | All numbers farther than 4 units from zero |
Where absolute value appears in real life
| Field | How absolute value is used |
|---|---|
| Engineering tolerances | A part is acceptable if |measured - target| < tolerance. The direction of the error does not matter, only its magnitude. |
| Statistics (MAD) | Mean Absolute Deviation = average of |xi - mean|. Less sensitive to outliers than standard deviation because it does not square the differences. |
| Financial reporting | "The index moved 150 points" uses absolute change. Percentage change also often uses |new - old| / old for magnitude. |
| Signal processing | Rectifiers convert AC to DC by taking the absolute value of the voltage waveform. |sin(t)| is a full-wave rectified sine. |
| Computer science | The abs() function is one of the most commonly used math functions in any programming language. In Python: abs(-7) returns 7. |
| Navigation | Distance between two coordinates along a single axis is the absolute value of their difference: |lat2 - lat1| gives the latitude gap. |
FAQ - Frequently Asked Questions
Related tools
Standard Deviation Calculator
Standard deviation squares deviations, while mean absolute deviation uses |xi - mean| directly - Open calculator
Coordinate Calculator
Distance along a single axis is the absolute value of the difference between two coordinates - Open calculator
Percentage Calculator
Absolute percentage change uses |new - old| / old to ignore direction - Open calculator
Fraction Calculator
Absolute value of a fraction works the same way - |-3/4| = 3/4 - Open calculator
Powers & Roots Calculator
A useful identity: |x| = sqrt(x^2), connecting absolute value to squares and roots - Open calculator
See also
Calculator verified by the LiczGrupa.pl team
Content, formulas and results have been reviewed for accuracy and relevance by our team of specialists.

Reviewed by: Patryk Matyjasik