ToolNimba

โž– Absolute Value Calculator: Find |x| Instantly

By ToolNimba Math Team ยท Updated 2026-06-21

Absolute value |x|
-
Count of values
-

Enter a number to see its absolute value (its distance from zero).

The absolute value of a number is its distance from zero on the number line, written with two vertical bars as |x|. Because distance is never negative, the absolute value strips away any minus sign: |-7| and |7| are both 7. Enter a single number or a whole list (separated by commas, spaces or new lines) and this calculator returns the absolute value of each one instantly.

What is the Absolute Value Calculator?

Absolute value answers a simple question: how far is this number from zero, ignoring which side it sits on? On a number line, -7 and 7 are both seven units away from the origin, so both have an absolute value of 7. Formally, |x| equals x when x is zero or positive, and equals -x (the negation, which makes it positive) when x is negative. The notation uses two vertical bars around the value, and you will also hear it called the modulus of a number. This calculator handles one value at a time or a long list, and it accepts integers, decimals, fractions written as division, and expressions to be evaluated inside the bars.

The key property is that the result is never negative. |0| is 0, and for every other number the output is strictly positive. This is why absolute value shows up wherever only the size of a quantity matters and the direction does not: the gap between two temperatures, the magnitude of an error, the speed of an object regardless of which way it travels. It turns a signed quantity into a plain non-negative size, which is exactly what you want when you compare distances or measure how far off an estimate was.

A point that trips people up is the difference between |-x| and -|x|. The first takes the absolute value of -x, which is positive; the second takes the absolute value of x and then negates it, which is negative (or zero). The bars act on whatever sits inside them first, so |3 - 8| = |-5| = 5, not -5. When an expression appears inside the bars, evaluate the inside completely, then take the distance from zero of that result. The same rule explains why absolute value does not split across addition or subtraction: |a + b| is generally not |a| + |b|.

Absolute value obeys a small set of algebraic rules that are worth memorising. It distributes over multiplication and division, so |a times b| = |a| times |b| and |a / b| = |a| / |b| when b is not zero. It does not distribute over addition or subtraction; instead the triangle inequality holds, |a + b| is less than or equal to |a| + |b|. Two more identities come up constantly: |x| = the square root of (x squared), and |x| = |-x|. These let you rewrite messy expressions and check answers quickly.

The idea extends beyond plain numbers. In algebra, an absolute value equation such as |X| = k splits into two cases, X = k and X = -k, because two different points on the number line can be the same distance from zero. Absolute value inequalities split too: |X| less than k means -k is less than X is less than k (a band around zero), while |X| greater than k means X greater than k or X less than -k (everything outside the band). Graphed, the function y = |x| forms a V shape with its vertex at the origin, since the output rises in both directions away from zero.

For complex numbers the same word means the modulus, the distance of the point a + bi from the origin in the plane, computed as the square root of (a squared plus b squared). That is why engineers, statisticians and physicists all lean on absolute value: it is the cleanest way to express size, magnitude or error without worrying about sign or direction. This tool focuses on real numbers and lists of them, which covers the vast majority of homework, spreadsheet and everyday needs.

When to use it

  • Finding how far a number is from zero, regardless of its sign, for a homework or algebra problem.
  • Measuring the size of a difference or error, such as |measured - expected|, where only the magnitude matters.
  • Converting a column of signed values (temperature swings, profit and loss, sensor readings) into their non-negative sizes.
  • Setting up an absolute value equation or inequality and checking the two cases it splits into.
  • Computing distances between two points on a number line as |a - b| for geometry or statistics work.
  • Checking your own working when simplifying an expression that contains absolute value bars.

How to use the Absolute Value Calculator

  1. Type a single number into the box, for example -7, to see its absolute value.
  2. Or paste a list of numbers separated by commas, spaces or new lines to convert them all at once.
  3. You can also enter an expression such as 3 - 8 and the tool evaluates inside the bars first.
  4. Read the absolute value (the distance from zero) from the result panel.
  5. For a list, check the per-value table that shows each input next to its absolute value.

Formula & method

absolute value: |x| = x when x is greater than or equal to 0, and |x| = -x when x is less than 0. Equivalently, |x| = the square root of (x^2). Key rules: |a*b| = |a|*|b|, |a/b| = |a|/|b|, |a+b| <= |a|+|b| (triangle inequality), and |x| = |-x|. The result is always 0 or positive.

Worked examples

Find the absolute value of -7.

  1. The number -7 is negative, so use the rule |x| = -x.
  2. |-7| = -(-7) = 7
  3. Check: -7 is 7 units away from zero on the number line.

Result: |-7| = 7

Simplify the expression |3 - 8|.

  1. Evaluate the inside of the bars first: 3 - 8 = -5.
  2. Now take the absolute value of -5: |-5| = 5.
  3. The bars apply to the result of the subtraction, not to each number separately.

Result: |3 - 8| = 5

Solve the absolute value equation |x - 3| = 5.

  1. The absolute value is already isolated, so split it into two cases.
  2. Case 1 (positive): x - 3 = 5, which gives x = 8.
  3. Case 2 (negative): x - 3 = -5, which gives x = -2.
  4. Check both: |8 - 3| = |5| = 5 and |-2 - 3| = |-5| = 5.

Result: x = 8 or x = -2

Find the absolute value of each number in the list -3, 5, -12.5, 0.

  1. |-3| = 3
  2. |5| = 5
  3. |-12.5| = 12.5
  4. |0| = 0

Result: 3, 5, 12.5, 0

Absolute value of common inputs

Input xAbsolute value |x|Reason
-77Negative: drop the minus sign
77Positive: unchanged
00Zero: distance from zero is zero
-12.512.5Negative decimal: drop the sign
-3/40.75Negative fraction: take the positive size
3 - 85Evaluate inside first to -5, then take size

Properties and rules of absolute value

RuleStatementExample
Non-negative|x| is greater than or equal to 0|-4| = 4
Symmetry|x| = |-x||6| = |-6| = 6
Square root form|x| = sqrt(x^2)sqrt((-5)^2) = 5
Multiplication|a*b| = |a|*|b||-2*3| = 2*3 = 6
Division|a/b| = |a|/|b||-8/2| = 8/2 = 4
Triangle inequality|a+b| <= |a|+|b||3+(-5)| = 2 <= 8

Solving absolute value equations and inequalities

FormSplits intoMeaning
|X| = k (k > 0)X = k or X = -kTwo points k units from zero
|X| = 0X = 0One solution
|X| = k (k < 0)No solutionAbsolute value is never negative
|X| < k-k < X < kBand of values around zero
|X| > kX > k or X < -kEverything outside the band

Common mistakes to avoid

  • Thinking absolute value can be negative. Absolute value is a distance, so it is never negative. If you ever get a negative answer, you have likely written -|x| (negate after) instead of |x|. The result of the bars alone is always 0 or positive.
  • Splitting the bars across an operation. In |a - b| you must evaluate a - b first and then take the absolute value. |3 - 8| is |-5| = 5, not |3| - |8| = -5. The bars treat everything inside as one quantity, and absolute value does not distribute over addition or subtraction.
  • Confusing |-x| with -|x|. |-x| is the absolute value of -x, which is positive. -|x| is the absolute value of x with a minus sign placed in front, which is negative or zero. They are not the same thing.
  • Forgetting the second case in an equation. When you solve |X| = k for k greater than 0, there are two answers, X = k and X = -k. Many learners report only the positive case and miss the negative one. Always set up both branches.
  • Solving an equation that has no solution. If you isolate the absolute value and it equals a negative number, such as |x| = -3, there is no solution, because a distance can never be negative. Do not force an answer.
  • Mixing up the bar notation with brackets. The two vertical bars |x| are not parentheses or rounding. They specifically mean distance from zero, so |2.7| stays 2.7, it does not round to 3.

Glossary

Absolute value
The distance of a number from zero on the number line, written |x|. It is always zero or positive.
Modulus
Another name for absolute value: the modulus of a number is its size with the sign removed. For complex numbers it is the distance from the origin in the plane.
Number line
A straight line where every real number has a position; absolute value measures how far a number sits from the zero point.
Magnitude
The size of a quantity ignoring its direction or sign, which is exactly what absolute value reports.
Negation
Multiplying a number by -1. For a negative number, negation produces its positive absolute value.
Triangle inequality
The rule that |a + b| is less than or equal to |a| + |b|, which limits how large the absolute value of a sum can be.
Absolute value equation
An equation containing absolute value bars, such as |X| = k, which usually splits into two cases, X = k and X = -k.
Argument
The expression sitting inside the absolute value bars, which you evaluate or solve before applying the distance from zero.

Frequently asked questions

What is the absolute value of a number?

The absolute value of a number is its distance from zero on the number line, written with two vertical bars as |x|. Because distance cannot be negative, the absolute value of -7 and of 7 are both 7. Zero has an absolute value of 0.

What does |x| mean?

The notation |x| means "the absolute value of x". The two vertical bars tell you to take the size of x while ignoring its sign, so |x| is x when x is positive or zero, and -x (a positive number) when x is negative.

How do I find the absolute value of a number?

Look at the sign. If the number is positive or zero, the absolute value is the number itself. If it is negative, remove the minus sign to get its positive size. So |9| = 9, |0| = 0, and |-4.2| = 4.2. You can also compute it as the square root of the number squared.

Is absolute value the same as modulus?

For a single real number, yes: the modulus of a number is just another name for its absolute value. The word modulus is more common in some regions and in higher maths, where it also describes the distance of a complex number from the origin, but for everyday numbers the two mean the same distance from zero.

Can an absolute value be negative?

No. Absolute value measures distance, and a distance is never negative. The smallest possible result is 0, which happens only for the input 0. If you see a negative answer you probably wrote -|x|, which negates after taking the absolute value.

How do I find the absolute value of an expression like 3 - 8?

Evaluate everything inside the bars first, then take the distance from zero of that single result. 3 - 8 is -5, and the absolute value of -5 is 5, so |3 - 8| = 5. Do not take the absolute value of each number separately.

How do you solve an absolute value equation?

First isolate the absolute value so it reads |X| = k. If k is positive, split into two cases, X = k and X = -k, and solve each. For example, |x - 3| = 5 gives x - 3 = 5 (so x = 8) or x - 3 = -5 (so x = -2). If k is negative there is no solution, and if k is 0 there is one solution.

How do you solve an absolute value inequality?

For |X| less than k the solution is the band -k less than X less than k. For |X| greater than k the solution is everything outside that band, X greater than k or X less than -k. Always isolate the absolute value first, and remember that |X| less than a negative number has no solution.

Does absolute value distribute over multiplication and addition?

It distributes over multiplication and division, so |a times b| = |a| times |b| and |a / b| = |a| / |b| when b is not zero. It does not distribute over addition or subtraction. Instead the triangle inequality holds, |a + b| is less than or equal to |a| + |b|.

Can this calculator handle a list of numbers?

Yes. Paste several numbers separated by commas, spaces or new lines and the tool returns the absolute value of each one, along with a count and a per-value table. Entries that are not valid numbers are skipped.