How Absolute Value Works (And How to Calculate It)

Learn absolute value |x| as distance from zero, number-line views, equation solving, and properties — with clear examples and a free calculator.

By Generatr Team

Absolute value turns any real number into a non-negative size: how far that number sits from zero on the number line, regardless of sign. You write it with bars — |x| — so |7| = 7 and |−7| = 7, and both answers mean “seven units from zero.”

This guide covers the definition, number-line thinking, core properties, solving equations like |ax + b| = c, common mistakes, and how absolute value shows up in averages and spreads. When you want instant checks, open the free absolute value calculator for single values, batch lists, number-line views, and equation solving.

Once |x| feels automatic, related tools like the free power calculator and midpoint calculator help with other core algebra moves on the same number line.

Free tool

Use the Absolute Value Calculator now

Open the interactive absolute value calculator in your browser — free, instant, no signup.

Open Absolute Value Calculator

What Is Absolute Value?

The absolute value of a real number x is its distance from 0. Distance is never negative, so |x| ≥ 0 for every real x.

Piecewise definition

  • If x ≥ 0, then |x| = x
  • If x < 0, then |x| = −x (flip the sign to make it positive)

Examples: |12| = 12, |0| = 0, |−3.5| = 3.5, |−100| = 100. Zero is already on the origin, so its absolute value is zero.

Why students meet it early

Absolute value shows up whenever sign should not matter: error size, price difference, temperature swing, and later inequality graphs. It is also the building block for expressions like |x − a|, which measure distance between x and a.

Run any of these values through the free absolute value calculator if you want a number-line check next to the result.

How Does Absolute Value Measure Distance From Zero?

On a horizontal number line, zero is the origin. The absolute value |x| is the length of the segment from 0 to x — not the signed coordinate.

Signed position vs size

  • −8 means “eight units left of zero”
  • |−8| = 8 means “eight units away from zero”
  • +8 and −8 sit on opposite sides but share the same distance

That is why finance and science often care about magnitude first (how large is the change?) and direction second (up or down? gain or loss?).

Distance between two numbers

The distance between a and b is |a − b| (or |b − a| — same answer). Distance from 4 to 11 is |4 − 11| = 7. Distance from −2 to 5 is |−2 − 5| = 7. You never subtract the smaller from the larger by hand and hope for the sign; absolute value handles order for you.

Midpoints live on the same line: the point halfway between two numbers uses averages of coordinates. Pair this idea with the midpoint calculator when you need the center of a segment, not only its length.

What Properties Does Absolute Value Have?

A few identities save time on homework and exams. Memorize the patterns, then verify with numbers.

  • Non-negativity: |x| ≥ 0, and |x| = 0 only when x = 0
  • Even-like behavior: |−x| = |x|
  • Multiplication: |xy| = |x| · |y|
  • Division: |x/y| = |x| / |y| when y ≠ 0
  • Triangle inequality: |x + y| ≤ |x| + |y|
  • Powers of 2 (even powers): |x|² = x², so squaring erases sign the same way absolute value does before you square-root carefully

What does not work

|x + y| is not always |x| + |y|. Counterexample: x = 3, y = −1 → |2| = 2, but |3| + |−1| = 4. The triangle inequality says the sum of distances is at least the distance of the sum.

Powers and roots interact with absolute value often in algebra. When you raise bases or simplify exponents, the free power calculator is handy for the power step after you clear the bars.

How Do You Solve Absolute Value Equations?

If |expression| = c and c is a positive number, there are usually two cases: the inside equals c, or the inside equals −c. If c = 0, one solution (the inside is zero). If c is negative, no real solution — absolute value cannot equal a negative number.

Template: |ax + b| = c (c > 0)

  1. Case 1: ax + b = c → solve for x
  2. Case 2: ax + b = −c → solve for x
  3. Check both answers in the original equation

Example: |2x − 4| = 6.

  • 2x − 4 = 6 → 2x = 10 → x = 5
  • 2x − 4 = −6 → 2x = −2 → x = −1

Check: |2(5) − 4| = |6| = 6 ✓ and |2(−1) − 4| = |−6| = 6 ✓.

Isolating first

If the absolute value is not alone, isolate it before splitting cases. Example: 3|x| + 1 = 10 → 3|x| = 9 → |x| = 3 → x = 3 or x = −3.

The equation mode on the free absolute value calculator is built for forms like |ax + b| = c so you can compare your case work to a quick machine check.

How Do You Graph Absolute Value on a Number Line?

Graphing |x| as a function of x produces a V shape with vertex at the origin. Graphing solutions to equations and inequalities is about marking points or intervals.

Equation points

|x| = 4 means x = 4 or x = −4 — two dots on the number line, both 4 units from zero.

Inequality sketches

  • |x| < 3 — all x between −3 and 3 (open interval if strict)
  • |x| ≤ 3 — closed interval from −3 to 3
  • |x| > 3 — x < −3 or x > 3 (two rays)
  • |x − a| < r — all points within distance r of a (open ball around a)

Thinking “distance from a point” beats memorizing symbol patterns alone. |x − 2| ≤ 5 means “x is at most 5 units from 2,” so x is between −3 and 7 inclusive.

Visual checks pair well with calculator number-line views. When you later measure spread of a data set, absolute deviations feed into mean absolute deviation and relate to ideas in the standard deviation guide.

Where Does Absolute Value Show Up in Real Life?

Any time you care about size of a difference, not which side it favors, absolute value is the clean notation.

  • Errors and residuals: |predicted − actual| is the absolute error
  • Temperature: a change from 4°C to −3°C has size |−3 − 4| = 7 degrees
  • Finance: absolute return magnitude before you label gain or loss
  • Navigation: distance along a line or axis without signed direction
  • Statistics: absolute deviations from a mean or median

Link to averages

Mean absolute deviation averages |xᵢ − mean| across data points. That is absolute value applied row by row, then averaged — a sibling concept to variance, which squares deviations instead. Brush up on means in the mean, median, and mode guide before you layer deviations on top.

Percent-style “how big is this change relative to the base?” is a different question; for that, see the percentage calculator guide. Absolute value answers “how many units,” not “what percent.”

How Do You Use the Absolute Value Calculator?

Use the tool to verify homework, batch-process a list, or solve a simple absolute value equation without retyping steps into a graphing calculator.

  1. Open the free absolute value calculator.
  2. Enter a single number (positive, negative, or zero) to get |x| and a number-line sense of distance from zero.
  3. Use batch entry when you have many values to convert at once.
  4. Switch to equation mode for forms like |ax + b| = c and review both case solutions.
  5. Compare machine output to your handwritten cases so you catch sign errors early.
  6. Explore properties and identities when you need a quick reference while studying.

What to watch while checking

Confirm that a negative right-hand side for |…| = c is flagged as impossible in the reals. Confirm both solutions when c > 0. Confirm |0| = 0 so you do not invent a phantom second root.

For standardized scores that also measure “how far from a center,” step up to the z-score guide — same distance idea, scaled by standard deviation.

Step-by-Step Instructions

  1. 1Open the free absolute value calculator on Generatr.
  2. 2Enter a real number (including negatives and zero) to compute |x|.
  3. 3Read the result as distance from zero — always zero or positive.
  4. 4For distance between two numbers, compute |a − b| with either order.
  5. 5To solve |ax + b| = c (c > 0), set up two cases: ax + b = c and ax + b = −c.
  6. 6Check each candidate in the original equation and discard extras.
  7. 7Use the tool’s number-line or equation features to verify by hand work.
  8. 8Batch absolute values when you need |x| for a list of data points.

Frequently Asked Questions

What is the absolute value of a negative number?+

It is the positive version of that number — its distance from zero. |−9| = 9, |−0.25| = 0.25. The absolute value is never negative for real inputs.

Is absolute value the same as modulus?+

For real numbers, absolute value and modulus usually mean the same non-negative size |x|. In other contexts, “mod” can mean remainder after division — different operation.

Why can |x| = −2 have no solution?+

Absolute value is a distance, so it cannot equal a negative number. If the right-hand side is negative, there is no real x that satisfies the equation.

How do you solve |x − 3| = 5?+

Two cases: x − 3 = 5 → x = 8, and x − 3 = −5 → x = −2. Both check: |8 − 3| = 5 and |−2 − 3| = 5.

What is the distance between two numbers on a line?+

Use |a − b|. Order does not matter because absolute value removes the sign of the difference. Distance from −1 to 4 is |−1 − 4| = 5.

Is the absolute value calculator free?+

Yes. Generatr’s absolute value calculator runs in your browser for single values, batch lists, number-line context, and simple equation solving with no account required.

Ready to try it yourself?

Use the free Absolute Value Calculator — no download, no account.

Launch Absolute Value Calculator