Calc Lab Online
Sponsored • Leaderboard
Algebra & Number Theory100% Free

Absolute Value Calculator

Compute magnitude |x|, solve equations |ax + b| = c, inequalities, and explore real number line geometry.

1Enter Real Number or Expression

Supports negative numbers, decimals, fractions (e.g. -7/4), and simple arithmetic (e.g. 5 - 19).

Quick Example Presets:

Piecewise Definition

|x| = x   if x ≥ 0
|x| = -x   if x < 0

Primary Absolute ValueInput: x = -15
|-15| = 15

The absolute value (magnitude or distance from zero) is always non-negative.

Negative Absolute-|x| = -15
Additive Inverse-x = 15
Sign Functionsgn(x) = -1
Reciprocal0.0667

Geometric Interpretation on Number Line

Distance = 15 units
-20-15-10-505101520|x| = 1515x = -15

Step-by-Step Arithmetic Proof

1Input value: x = -15
2Since x < 0 (-15 is negative), |x| = -x.
3Substitute: |-15| = -(-15) = 15
4Geometric interpretation: Distance from 0 on the real number line is 15 units.
5Negative absolute value: -|-15| = -(15) = -15
6Opposite (additive inverse): -(-15) = 15
Advertisement • In-Content

How to Use the Absolute Value Calculator

Instructions for evaluating numbers, solving equations, and analyzing datasets

1

Select Calculation Mode

Choose Single Number |x| for arithmetic magnitude, Equation |ax + b| = c for algebra problems, Inequality |ax + b| ≤ c for interval solving, or Dataset for multi-number lists.

2

Enter Real Numbers or Expressions

Input any integer, decimal, negative number, fraction (such as -7/4 or 3 1/2), or basic arithmetic expression (such as 5 - 19). Click sample presets for quick demonstrations.

3

Inspect Number Line Geometry

Explore the dynamic SVG coordinate line showing point x, origin 0, symmetric reflection -x, and the highlighted non-negative Euclidean distance arc.

4

Review Proofs & Export

Examine step-by-step piecewise mathematical derivations, copy formatted calculations with one click, or save results to your personal account history.

Absolute Value Definition & Algebraic Properties

Formal definitions, geometric interpretations, and algebraic rules

In mathematics, the absolute value (or modulus) of a real number x, written as |x|, is its numerical value regardless of its algebraic sign. It is formally defined piecewise as:

|x| = x   if x ≥ 0
|x| = -x   if x < 0

Key Fundamental Theorems

  • Non-negativity: |x| ≥ 0 for all real numbers x.
  • Positive-definiteness: |x| = 0 if and only if x = 0.
  • Multiplicativity: |x × y| = |x| × |y|.
  • Subadditivity (Triangle Inequality): |x + y| ≤ |x| + |y|.

Distance & Metric Interpretation

  • Distance from Origin: d(x, 0) = |x - 0| = |x|.
  • Symmetry: |-x| = |x|. A number and its negative are equidistant from zero.
  • Square Root Equivalence: |x| = √(x²).
  • Negative Absolute: -|x| ≤ 0 (always non-positive).

Solving Equations of the Form |ax + b| = c

Because absolute value represents physical distance, equations of the form |ax + b| = c depend fundamentally on the value of c:

  • If c < 0: No solution exists (∅), because an absolute value cannot equal a negative quantity.
  • If c = 0: Exactly one solution exists: ax + b = 0 ⇒ x = -b / a.
  • If c > 0: Two distinct solutions arise by splitting into two branches: Case 1: ax + b = c, and Case 2: ax + b = -c.

Frequently Asked Questions

Common questions regarding absolute value calculations, equations, and applications

What is the absolute value of a number?

The absolute value (or modulus) of a real number is its distance from zero on the real number line, regardless of direction. For example, |5| = 5 because 5 is five units away from zero, and |-5| = 5 because -5 is also five units away from zero. By definition, absolute values are always non-negative (|x| >= 0).

Can the absolute value of a number ever be negative?

No. The absolute value |x| can never be negative. Distance is fundamentally a non-negative geometric property. It equals zero if and only if the number itself is zero (|0| = 0); for any other real number, it is strictly positive.

What does -|x| (negative absolute value) mean?

The expression -|x| represents the negative of the absolute value. First, calculate the absolute value |x| (which is always non-negative), and then apply the negative sign in front. For example, if x = -7, |-7| = 7, so -|-7| = -7. The expression -|x| is always non-positive (<= 0).

How do you solve absolute value equations like |ax + b| = c?

First ensure c >= 0 (if c < 0, there is no solution because an absolute value cannot equal a negative number). If c = 0, solve ax + b = 0. If c > 0, split the equation into two separate linear equations: Case 1: ax + b = c, and Case 2: ax + b = -c. Solving both gives the complete solution set.

What is the triangle inequality for absolute values?

The triangle inequality states that for any two real numbers x and y, |x + y| <= |x| + |y|. Equality holds if and only if both numbers have the same sign (both positive or both negative) or at least one is zero.

Advertisement