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).
Piecewise Definition
|x| = x if x ≥ 0
|x| = -x if x < 0
The absolute value (magnitude or distance from zero) is always non-negative.
Geometric Interpretation on Number Line
Distance = 15 unitsStep-by-Step Arithmetic Proof
How to Use the Absolute Value Calculator
Instructions for evaluating numbers, solving equations, and analyzing datasets
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.
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.
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.
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
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.
Related Calculators
Quick SuggestionsAbsolute Difference Calculator
Free online Absolute Difference Calculator. Compute the absolute distance |x - y| between numbers, signed differences, percent difference, and dataset Mean Absolute Difference with interactive visualization.
Percentage Calculator
Free online percentage calculator. Find percentages, percent change, and percentage difference with step-by-step explanation.
1000 Prime Numbers & Primality Calculator
Free online 1000 Prime Numbers & Primality Calculator. Test prime numbers, find prime factorizations, look up Nth primes, and download the first 1,000 primes list.
Adding Machine Calculator
Free online adding machine calculator with paper tape history. Features 10-key entry, auto-decimal mode, running subtotals, percentage adjustments, and printable tape export.
Combinations Calculator (nCr)
Free online Combinations Calculator (nCr). Calculate n choose r without replacement, simplify factorial steps, explore Pascal's triangle row, and list all subsets.
Combination with Replacement Calculator
Free online Combination with Replacement Calculator. Calculate multicombinations C(n + r - 1, r) using stars and bars, compare all 4 sampling models, and view step-by-step proofs.