---
slug: absolute-value-calculator
title: "Absolute Value Calculator"
category: math
updated: 2026-11-19
canonical: https://calcseed.com/c/math/absolute-value-calculator/
html: /c/math/absolute-value-calculator/
---

# Absolute Value Calculator

Calculate the absolute value of any number, positive or negative. Free and instant.

## Quick answer

**Quick answer:** with the default inputs (-5), the absolute value is **5**. Change any input to update the result.

## Default calculation

Values computed by this calculator at exactly the default inputs listed below.

### Inputs (defaults)

| Input | Value | Unit |
| --- | --- | --- |
| Number | -5 |  |

### Outputs at these defaults

| Output | Value | Unit |
| --- | --- | --- |
| Absolute value | 5 |  |

## Formula

```text
|x| = x for x &ge; 0    |x| = −x for x < 0
```

## Inputs

| Variable | Type | Unit | Default |
| --- | --- | --- | --- |
| Number | number |  | -5 |

## Outputs

| Result | Format |
| --- | --- |
| Absolute value | primary |
| Absolute value | number |

## How it works

### What this calculator does

Enter any number and the calculator returns its absolute value — the distance from zero on the number line, sign removed. At its default of −5, the output is **5**. Positive numbers pass through unchanged, zero returns zero, and negatives flip: |−1000| = 1000. Distance is never negative, so an absolute value is always zero or greater.

### The definition

Absolute value answers "how far from zero", not "in which direction". The two-branch definition below is the whole operation: keep the number if it is zero or positive, and flip the sign if it is negative. Flipping means multiplying by −1, which turns −5 into 5 and −3.14 into 3.14.

### Worked example: |−5|

- The input −5 is negative, so the second branch applies.
- Multiply by −1: |−5| = −(−5) = 5.
- Check by distance: −5 sits 5 units left of zero on the number line, and distance ignores direction.

The same logic gives |5| = 5 through the first branch, and |0| = 0 through either — zero is the one input where both branches agree. For decimals the operation is identical: |−3.14| = 3.14.

### Examples

| x | |x| |
| --- | --- |
| 5 | 5 |
| -5 | 5 |
| 0 | 0 |
| -3.14 | 3.14 |
| -1000 | 1000 |

Reading the table by distance makes every row obvious: 5 and −5 both sit exactly 5 units from zero, so they share an absolute value. That symmetry is the geometric heart of the operation — two different numbers can have the same absolute value, but one absolute value never has two distances.

### Solving equations and inequalities with absolute value

#### Equations split into two cases

The equation |x| = 5 asks for every number 5 units from zero, so the answer is **x = 5 or x = −5**. Both check: |5| = 5 and |−5| = 5. An equation like |x − 3| = 2 asks which numbers sit 2 units from 3, giving x = 5 or x = 1. Missing the negative case is the classic error here — one absolute-value equation almost always has two solutions.

#### Inequalities become ranges

The inequality |x|  5, keeps everything *outside* that range, so x  5 — two separate rays. Tolerances work exactly this way: a machined part specified at 50.00 mm &plusmn; 0.05 mm is the statement |x − 50| &le; 0.05, meaning any part between 49.95 mm and 50.05 mm passes.

### Where absolute value appears

- **Error magnitude.** A measurement off by −2 units and one off by +2 are equally wrong; percent error reports use |measured − actual| to say so.
- **Temperature swings.** A drop from 10&deg; to −6&deg; is a change of |−6 − 10| = 16 degrees.
- **Budget variance.** A category $120 over and one $120 under differ by |−120| = |120| = 120 dollars of miss.
- **Distances.** GPS, statistics and physics all compute |a − b| whenever direction does not matter.
- **Signed data cleanup.** Stripping sign before averaging magnitudes tells you typical size without direction noise.

### Properties worth knowing

- **Never negative:** |x| &ge; 0 for every input, and |x| = 0 only when x = 0.
- **Products keep sign-free:** |a × b| = |a| × |b|, so |−4 × −3| = 12.
- **Division too:** |a ÷ b| = |a| ÷ |b|, provided b &ne; 0.
- **Triangle inequality:** |a + b| &le; |a| + |b|. Equality holds when a and b share a sign; |−4 + 3| = 1 while |−4| + |3| = 7.
- **Sign flips cancel:** |−x| = |x|, which is why the double negative −(−5) equals 5.

### Common mistakes

- **Treating |−5| as −5.** The bars erase the sign; the result is 5. An absolute value is never negative.
- **Distributing the bars over addition.** |−4 + 3| = 1, not 7. Bars are grouping symbols, so simplify inside first.
- **Finding one solution instead of two.** |x| = 5 has two answers, 5 and −5; solving only x = 5 loses half the solution set.
- **Dropping the bars when squaring.** |x|² = x² is true, but the reverse step needs the bars: &radic;(x²) = |x|, so &radic;(−4)² = 4, not −4.
- **Comparing |a − b| with |b − a| as different.** They are equal — distance between two points has no direction.

### Absolute value versus sign

Any number splits into two pieces of information: magnitude, which is |x|, and sign, which says which side of zero. Absolute value deliberately discards the second piece, so it is the right tool whenever magnitude is the question and the wrong one whenever direction matters. A checking account cares about sign (an overdraft of −$200 is not the same as a balance of $200), but a reconciliation report cares about magnitude (both are $200 of error to investigate). Choosing which information to keep is the actual decision behind these bars — the arithmetic itself takes one step.

## FAQ

### How do I calculate absolute value?

Drop the minus sign if there is one. |−5| = 5, |5| = 5, and |0| = 0.

### Can absolute value be negative?

No. It measures distance from zero, and distance is always zero or greater.

### What is the absolute value of zero?

0. Zero is exactly zero units from itself, and both branches of the definition agree on it.

### What are the solutions to |x| = 5?

x = 5 and x = −5. Both numbers sit exactly 5 units from zero, so both satisfy the equation.

### What does |x| < 5 mean?

Every number strictly between −5 and 5: −5 < x < 5. It is one interval, not two.

### Is |a - b| the same as |b - a|?

Yes. Both measure the distance between a and b, and distance has no direction. |3 − 8| = |8 − 3| = 5.

### Why does |x|² = x² always hold?

Squaring erases the sign just as the bars do: (−5)² = 25 = |−5|². The reverse operation needs care, since &radic;(x²) = |x|, not x.

### How do I solve |x - 3| = 2?

Split into x − 3 = 2 or x − 3 = −2, giving x = 5 or x = 1 — the two points 2 units from 3.

### What is the triangle inequality?

|a + b| &le; |a| + |b|. With a = −4 and b = 3, the left side is 1 while the right side is 7; equality holds only when both numbers share a sign.

### When should I use absolute value instead of keeping the sign?

Use it when magnitude is the question: error sizes, distances, variances. Keep the sign when direction matters, such as account balances or temperature above versus below freezing.

## Method and sources

Methodology: Results follow exact mathematical definitions; the arithmetic is deterministic and can be verified by hand from the steps shown.

Last updated: 2026-11-19.
- Absolute value: |x| = x if x >= 0, else -x.
