Absolute value
a
A number's absolute value is its distance from zero, so it is never negative.

a=5
a equals the absolute value of (−5), equals 5
Den här sidan finns på svenska. Byt till svenska
Definition — what does that mean?
A number's distance from zero. It is never negative, which is why |x| = a has two answers when a > 0.
In Swedish: Absolutbelopp
a
A number's absolute value is its distance from zero, so it is never negative.

a=5
a equals the absolute value of (−5), equals 5
You are given
a = |x|
x is a number and a its absolute value, the number’s distance from zero on the number line. It is a
definition: |x| is x if x is zero or positive, and −x if x is negative. A distance cannot be negative,
so a is never less than zero.
One way round there is always exactly one answer. The other way, when you know a and want x, there are two if a > 0: both a and −a lie at distance a from zero.
A negative number. |−5| = 5. The number −5 is five steps from zero.
A positive number. |5| = 5. The same distance, the other way. It is the distance that counts, not the direction.
The equation |x| = 7. Which numbers are seven steps from zero? x = 7 and x = −7. Write both.
An equation with no solution. |x| = −3 has no solution, because no distance is negative.
The distance between two numbers. |a − b| is the distance between a and b on the number line. Between 2 and −6 it is |2 − (−6)| = |8| = 8, and the other way round |−6 − 2| = |−8| = 8.
Why does |x| = a have two solutions?
When a > 0, two numbers are the same distance from zero, one on each side. |x| = 4 gives x = 4 or x = −4.
What if a is zero?
Then there is only one solution, x = 0. Zero is the only number at distance zero from zero.
How is the absolute value related to the square root?
√(x²) = |x|. A square root is never negative, so √((−3)²) = √9 = 3, not −3. It is the same idea as in
the root of a product.
| Solve for | Rearranged | With the numbers | Comes to |
|---|---|---|---|
| a | |x| | |−5| | 5 |
| x | a | 5 | 5 |
Last reviewed October 6, 2026 ·How pages are reviewed
Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.