...
🔢 Math Tool · Instant · Free

|x| Absolute Value Calculator

Instantly find the absolute value of any number — positive, negative, decimal, or fraction. Solve absolute value equations, inequalities, and complex number magnitudes with step-by-step solutions and a live number line visual.

Single Number |x|
Absolute Value Equations
Inequalities Solver
Complex Number |a+bi|
Step-by-Step Solutions
Live Number Line Visual
|x|

Absolute Value Calculator — 4 Modes

Single value, equations, inequalities, and complex numbers — all with steps

Enter any number Integer, Decimal, Fraction
Absolute Value
📋 Step-by-Step Solution
⚡ Quick Examples — Click to Try
|-7| |-3.14| |0| |42| |-100| |-0.001| |3/4| |-5/2| |1,000,000|

Solve equations of the form |ax + b| = c. Enter the coefficients below.

a (coefficient of x) Default: 1
b (constant inside |…|) Default: 0
c (right-hand side) Must be ≥ 0
Solving: |x| = 5
Solutions
📋 Step-by-Step Solution

Solve |ax + b| < c or |ax + b| > c. Enter coefficients and choose the direction.

a (coefficient of x)
b (constant inside |…|)
c (right-hand side, ≥ 0)
Inequality Direction
Solution Set
📋 Step-by-Step Solution

Find the modulus (absolute value) of a complex number |a + bi| = √(a² + b²).

Real Part (a) e.g. 3
Imaginary Part (b) e.g. 4
Computing: |3 + 4i|
Complex Modulus |a + bi|
5
= √(3² + 4²) = √(9 + 16) = √25 = 5
📋 Step-by-Step Solution
⚡ Famous Complex Magnitudes
|3+4i| = 5 |1+i| = √2 |5+12i| = 13 |-3+4i| = 5 |i| = 1

Quick Reference

Absolute Value Table — Common Numbers

A ready-to-reference table of absolute values for frequently encountered numbers — from negatives and fractions to decimals. Notice the perfect symmetry: every negative and positive pair shares the same absolute value.

ExpressionWorkingAbsolute ValueSign Change?
|-25|−25 is negative → flip sign25Yes
|-10|−10 is negative → flip sign10Yes
|-7.5|−7.5 is negative → flip sign7.5Yes
|-3/4|−3/4 is negative → flip sign3/4 = 0.75Yes
|-1|−1 is negative → flip sign1Yes
|0|Zero has no sign0No
|1|+1 is positive → no change1No
|3/4|3/4 is positive → no change0.75No
|7.5|7.5 is positive → no change7.5No
|10|10 is positive → no change10No
|25|25 is positive → no change25No
|-π|−3.14159… is negative → flipπ ≈ 3.14159Yes
|-√2|−1.41421… is negative → flip√2 ≈ 1.4142Yes
|-0.001|Small negative → flip sign0.001Yes

Mathematical Properties

6 Essential Properties of Absolute Value

These properties are the backbone of every absolute value problem you’ll ever encounter — from basic arithmetic to advanced real analysis. Knowing them lets you simplify expressions in seconds without evaluating each case individually.

|x| ≥ 0

Non-Negativity

The absolute value of any real number is always zero or positive. It can never be negative. This is the foundational property — |x| = 0 if and only if x = 0.

|-x| = |x|

Even Function (Symmetry)

The absolute value of a number equals the absolute value of its negative. This makes the function perfectly symmetric about the y-axis — |−5| = |5| = 5.

|xy| = |x|·|y|

Multiplicativity

The absolute value of a product equals the product of the absolute values. This makes it easy to simplify expressions like |−3 × 4| = |−3| × |4| = 3 × 4 = 12.

|x/y| = |x|/|y|

Divisibility

The absolute value of a quotient equals the quotient of the absolute values (when y ≠ 0). Works identically to the multiplication property: |−6/2| = |−6|/|2| = 3.

|x+y| ≤ |x|+|y|

Triangle Inequality

The absolute value of a sum is at most the sum of the absolute values. This is one of the most important inequalities in all of mathematics — foundational in analysis, geometry, and metric spaces.

|x-y| = d(x,y)

Distance Interpretation

The absolute value of the difference between two numbers equals the distance between them on the number line. |−3 − 5| = |−8| = 8, meaning −3 and 5 are 8 units apart.

// Formal piecewise definition of |x|
|x| = x    if x ≥ 0
|x| = −x   if x < 0
// Equivalent forms:
|x| = √(x²)              // Always gives the non-negative root
|x| = max(x, −x)        // Maximum of x and its negative
// For complex z = a + bi:
|z| = √(a² + b²)        // Euclidean distance from origin

How to Solve

Step-by-Step: Solving Absolute Value Equations & Inequalities

The key to mastering absolute value problems is understanding that |x| = c creates two cases, while |x| < c and |x| > c produce two different solution structures. Here’s the complete framework.

⚖️

Equations: |ax + b| = c

Rule: When c < 0, there is no solution (absolute value is never negative). When c = 0, there is exactly one solution: ax + b = 0. When c > 0, split into two equations:

Case 1: ax + b = c
Case 2: ax + b = −c

Solve each case for x independently. Both solutions are valid unless a domain restriction exists.

📏

Inequalities: |ax + b| < c or > c

Less than (< or ≤): Rewrite as a compound AND inequality: −c < ax + b < c. Solve the three-part inequality for x — the solution is a bounded interval.

Greater than (> or ≥): Split into two OR inequalities: ax + b < −c OR ax + b > c. Solve each separately — the solution is two unbounded rays.

Memory Trick: “Less than” absolute value inequalities → think “AND” and draw a closed interval. “Greater than” absolute value inequalities → think “OR” and draw two open rays pointing outward. This pattern never changes, regardless of the expression inside the bars.

Real-World Applications

Where Absolute Value Actually Shows Up in Real Life

Absolute value is not just a textbook concept. It appears constantly in engineering, science, finance, and computer programming — any time you need to measure magnitude without caring about direction.

📡

Signal Processing & Electronics

Amplifiers and ADC chips measure signal deviation from a center frequency. The absolute difference — not the signed difference — determines whether the signal is within tolerance.

🌡️

Temperature Deviations

A thermostat doesn’t care if the room is 2°F above or below the set point — it only cares about the magnitude of the error. Absolute value quantifies this perfectly: |actual − target|.

📊

Finance: Profit & Loss

When calculating total exposure or risk, financial analysts use absolute values to sum gains and losses without signs canceling out. Mean Absolute Deviation (MAD) is a core risk metric.

💻

Programming: abs() Function

Every major programming language — Python, JavaScript, Java, C++ — has an abs() or Math.abs() function. Used in array sorting, error bounds, distance calculations, and collision detection in games.

📐

Engineering Tolerances

Manufacturing specifications like “length = 50mm ± 0.5mm” are absolute value inequalities: |length − 50| ≤ 0.5. Parts outside this range fail quality control, regardless of direction of error.

🗺️

Distance on a Number Line

The distance between any two points on a number line is |a − b|. The order doesn’t matter — |3 − 7| = |7 − 3| = 4. This generalizes to Euclidean distance and complex modulus.

🤖

Machine Learning: Loss Functions

Mean Absolute Error (MAE) — averaging |predicted − actual| across all data points — is one of the most common regression loss functions in machine learning and statistical modeling.

⚛️

Physics: Magnitude of Vectors

In physics, speed is the absolute value of velocity — direction stripped away. Electric field strength, force magnitude, and displacement use absolute values to express scalars from vectors.


Complete Guide

Everything You Need to Know About Absolute Value

The Intuitive Meaning of Absolute Value: Distance, Not Direction

The best way to understand absolute value is through the lens of distance. Imagine standing at zero on a number line. If you walk 5 steps to the right, you’re at +5. If you walk 5 steps to the left, you’re at −5. In both cases, you walked the same distance from zero — 5 steps. The absolute value captures this distance, discarding whether the journey was to the left or right. Formally, |x| is the distance from x to 0 on the real number line — always a non-negative value.

This distance interpretation is not just a teaching convenience — it is the rigorous mathematical definition in the context of metric spaces. The absolute value of (a − b) gives the distance between points a and b. This extends naturally to the complex plane, where the absolute value of a complex number a + bi is the distance from the origin to the point (a, b) — computed as √(a² + b²). This is the reason why the absolute value appears so naturally in geometry, physics, and engineering: it measures pure magnitude, freed from the concept of direction.

The Piecewise Definition and Why Both Cases Matter

The formal piecewise definition of absolute value is: |x| = x if x ≥ 0, and |x| = −x if x < 0. Students often stumble on the second case — thinking that −x must be negative because of the minus sign. The key insight is that when x is itself negative, −x is positive. If x = −7, then −x = −(−7) = +7. The minus sign in the definition doesn't make the result negative; it flips the sign of whatever x is, ensuring the output is always non-negative.

This piecewise structure is why absolute value equations always split into two cases. When you write |ax + b| = c, you’re essentially saying “the expression inside the bars evaluates to either c or −c, because both are at distance c from zero.” The case split (ax + b = c OR ax + b = −c) directly mirrors the piecewise definition, and understanding this connection makes the entire solving algorithm feel inevitable rather than arbitrary.

Absolute Value vs. Modulus: Same Thing, Different Contexts

In different mathematical contexts, the absolute value goes by different names and symbols. For real numbers, it is called the absolute value and written |x|. For complex numbers, the same operation is called the modulus or magnitude and written |z|. For matrices, a similar but distinct operation — the determinant — uses the same vertical bar notation. In vector mathematics, the magnitude of a vector v is written |v| or ‖v‖. In number theory and abstract algebra, absolute value generalizes to the concept of a valuation or norm on a field.

Despite these different names and contexts, the core idea remains consistent: measuring the “size” of a mathematical object, stripped of any directional information. Whether you’re computing |−7| = 7 in an algebra class, |3 + 4i| = 5 in complex analysis, or ‖v‖ = 5 for a velocity vector, you are performing the same conceptual operation — measuring magnitude without regard to sign or direction.

Common Absolute Value Mistakes and How to Avoid Them

The most common error students make with absolute value is assuming that |−x| = x without considering what x represents. If x is already negative (say x = −3), then −x = 3 and |−x| = |3| = 3 — but also |x| = |−3| = 3. The result is the same either way. The error comes when students assume x must be positive because it has no sign written in front of it. Remember: a variable without a visible sign can represent any real number, including a negative one.

Another frequent mistake occurs when solving absolute value equations: students solve only one case and miss the second solution. For |x − 3| = 7, the two cases give x − 3 = 7 (so x = 10) and x − 3 = −7 (so x = −4). Both are valid solutions. A related error occurs in absolute value inequalities — using the wrong structure for < vs >. “Less than” creates a bounded interval (AND), while “greater than” creates a union of two rays (OR). Mixing these up produces the complement of the correct answer set.

Absolute Value in Calculus: Derivative and Integration

Absolute value has a subtle but important role in calculus. The function f(x) = |x| is continuous everywhere but not differentiable at x = 0 — the point where the function has a sharp corner (a “cusp”). This makes it a canonical example of a function that is continuous but non-differentiable at a single point. The derivative of |x| for x ≠ 0 is the signum function: d/dx|x| = x/|x| = sign(x), which is +1 for positive x and −1 for negative x.

Integration of absolute value functions requires splitting the integral at every point where the expression inside the bars equals zero. For example, ∫₋₃³ |x| dx must be split at x = 0: ∫₋₃⁰ (−x) dx + ∫₀³ x dx = [−x²/2]₋₃⁰ + [x²/2]₀³ = 9/2 + 9/2 = 9. This splitting technique is fundamental when computing areas in the coordinate plane, particularly when curves cross the x-axis and the signed area would cancel without the absolute value.

How Absolute Value Powers Data Science and Statistics

In data science and statistics, absolute value is the foundation of several essential metrics. Mean Absolute Error (MAE) computes the average of |predicted − actual| across a dataset and is preferred over Mean Squared Error when you don’t want to penalize large errors disproportionately. Mean Absolute Deviation (MAD) measures the average spread of a dataset: MAD = (1/n) × Σ|xᵢ − x̄|. L1 regularization in machine learning (called “Lasso regression”) adds a penalty term proportional to the sum of absolute values of model coefficients, producing sparse models with many exact zeros — a property that L2 (squared) regularization cannot produce.

  • Always check whether c is negative before solving |ax + b| = c — if c < 0, there is no solution (write “No Solution” or “∅”)
  • For inequalities, memorize the direction rule: |x| < c creates an AND (bounded interval); |x| > c creates an OR (two unbounded rays)
  • After solving any absolute value equation, substitute both answers back into the original equation to verify they satisfy it
  • |x²| = x² for all real x, because x² is already non-negative — the absolute value has no effect on a squared quantity
  • The graph of y = |x| is a V-shape with vertex at the origin, slope −1 for negative x and slope +1 for positive x
  • |a − b| = |b − a| always — distance is symmetric, so the order of subtraction does not matter
  • In programming, abs() in Python works for integers and floats; math.fabs() always returns a float; for complex numbers, abs() returns the modulus
  • The triangle inequality |a + b| ≤ |a| + |b| becomes an equality when a and b have the same sign — that is, when they both point in the same direction

FAQ

Frequently Asked Questions About Absolute Value

The absolute value of a number is its distance from zero on the number line, always expressed as a non-negative value. Written as |x|, it removes the sign from any number: |−7| = 7, |7| = 7, and |0| = 0. Formally: |x| = x when x ≥ 0, and |x| = −x when x < 0. The result is always zero or positive — never negative.
No — by definition, the absolute value is always non-negative (zero or positive). This is called the non-negativity property: |x| ≥ 0 for all real numbers x. If you encounter a situation where |x| = −4 or similar, the equation has no solution, because no real number has a negative absolute value. This is why, when solving |ax + b| = c, the first step is always to check if c is negative — if so, the solution set is empty.
Split into two cases: Case 1: x − 3 = 7, giving x = 10. Case 2: x − 3 = −7, giving x = −4. Both solutions are valid. Check: |10 − 3| = |7| = 7 ✓, and |−4 − 3| = |−7| = 7 ✓. Always verify both solutions. For more complex equations like |2x + 1| = 9: Case 1: 2x + 1 = 9 → x = 4. Case 2: 2x + 1 = −9 → 2x = −10 → x = −5. Solutions: x = 4 and x = −5.
For |x| < c (where c > 0): the solution is −c < x < c — a bounded interval, written in interval notation as (−c, c). This is a single connected region. For |x| > c (where c > 0): the solution is x < −c OR x > c — two separate unbounded rays, written as (−∞, −c) ∪ (c, ∞). The memory rule: “less than” → AND → bounded interval; “greater than” → OR → two rays. Replace < with ≤ or > with ≥ to get closed brackets [ ] at the endpoints.
For a complex number z = a + bi, the absolute value (called the modulus) is |z| = √(a² + b²). This is the Euclidean distance from the origin to the point (a, b) in the complex plane. Example: |3 + 4i| = √(3² + 4²) = √(9 + 16) = √25 = 5. The modulus is always a non-negative real number. Notable cases: |i| = |0 + 1i| = √(0 + 1) = 1. Every complex number on the unit circle has modulus 1.
|0| = 0. Zero is neither positive nor negative, and its distance from itself is zero. This is the only number whose absolute value equals itself with x being non-positive (since |x| = x only when x ≥ 0, and x = 0 satisfies this). In fact, |x| = 0 if and only if x = 0 — this biconditional is a key property used frequently in proofs.
Most programming languages have a built-in absolute value function: Python: abs(x) for any numeric type, math.fabs(x) for float; JavaScript: Math.abs(x); Java: Math.abs(x); C/C++: abs() from <cmath> or fabsf() for floats; SQL: ABS(x). Common programming uses include: calculating distance between two coordinates |x₂ − x₁|, finding the difference between two values without caring about direction, implementing loss functions in ML (MAE), checking if a value is within a tolerance range |value − target| <= epsilon, and sorting/comparing magnitudes.
Yes, |x²| = x² for all real x. Since x² ≥ 0 for all real numbers (squaring always produces a non-negative result), the absolute value has no effect — the number is already non-negative. Similarly, |x|² = x² for all real x, because |x| is always non-negative, and squaring it gives the same result as squaring x directly. This identity — √(x²) = |x| — is frequently useful in simplifying radical expressions. Be careful: √(x²) ≠ x in general; it equals |x|.
Explore More Tools

Related Math Calculators on Click2Calc

Continue your math journey with these related tools — all available right here on Click2Calc.

Disclaimer: This Absolute Value Calculator is provided for educational and general mathematical purposes. All calculations use standard mathematical definitions and are designed to be accurate for typical educational and professional use. Complex number modulus, equation, and inequality solvers use standard algebraic methods. Results should be verified manually for high-stakes academic or professional applications. This tool does not replace formal mathematical education or qualified instruction.

Scroll to Top
Seraphinite AcceleratorOptimized by Seraphinite Accelerator
Turns on site high speed to be attractive for people and search engines.