Absolute Value Calculator: Distance, Equations & Graphs
A submarine sits at -187 m below the ocean surface. The question is how far below the surface it is, not whether the number is negative. An absolute value calculator turns this signed number into a distance of 187 m and shows the working, making it easier to understand what the negative sign represents.
This page provides a free tool with five modes, step-by-step working for every answer, and the exact numbers behind each result, so students can check their homework quickly. The absolute value calculator on this page gives the answer with the two cases and the check together, helping you understand how each result is calculated.
One number: -7 is 7 units from 0, so |-7| = 7.
Using the Absolute Value Calculator
The absolute value calculator on this page is an absolute value inequalities calculator with steps that covers five kinds of questions, each taking just a few seconds. Every answer shows the working so you can follow how the result was reached.
Evaluate One Number
Type one value for x, and the tool gives |x| with piecewise steps. It shows which branch applies and why. The default is -7, which gives 7.
Solve an Equation
Enter a, b, and c for |ax + b| = c. The tool isolates the bars first, then splits the expression into two cases. The default is |2x - 3| = 5, which gives x = 4 or x = -1.
Solve an Inequality
Enter a, b, c, and the inequality sign. The tool gives the interval in interval notation, with an AND or OR label and open or closed endpoints. The default is |2x - 3| <= 5, which gives [-1, 4].
Distance and Midpoint
Type two numbers a and b. The tool gives the distance |a - b| and the midpoint (a + b) / 2. The default is -7 and -4, which gives distance 3 and midpoint -5.5.
From a Range
Type a minimum and a maximum. The tool gives the midpoint, the radius, and the equation |x - midpoint| = radius. The default is 55 to 75, which gives |x - 65| = 10.
Mode Comparison
| Mode | What you enter | What you get |
|---|---|---|
| Evaluate One Number | one x | |x| with the branch and the reason |
| Solve an Equation | a, b and c | the two cases and the solutions |
| Solve an Inequality | a, b, c and the sign | the interval, with AND or OR |
| Distance and Midpoint | two numbers | distance and midpoint |
| From a Range | a minimum and a maximum | midpoint, radius and the equation |
Worked Examples
These absolute value examples are the same ones the tool uses as defaults.
| Example | Answer |
|---|---|
| |-7|, |4.25|, |-12.8|, |0|, |-0.5| | 7, 4.25, 12.8, 0, 0.5 |
| |2x - 3| = 5 | x = 4 or x = -1 |
| |2x - 3| <= 5 | [-1, 4] |
| Distance between -7 and -4 | 3, midpoint -5.5 |
| Heights 55 to 75 | |x - 65| = 10 |
Reading the Result
Every answer here is a distance, so it is never negative, and the tool shows the two cases for an equation, or the interval for an inequality, so you can see exactly how the answer was reached. A "No solution" result means the right side was negative, not that the tool failed.
What Is Absolute Value
The absolute value definition is simple: |x| is the distance from x to 0. It is always 0 or more, and |x| = 0 only when x = 0.
The absolute value symbol is two vertical bars, |x|. If x is 0 or more, |x| = x. If x is less than 0, |x| = -x.
The absolute value calculator on this page uses the distance idea for every mode, so an answer is always a distance, never a signed number.
The Distance-from-Zero Idea
|-7| is 7 because -7 sits 7 units from 0, and |4.25| is 4.25 because 4.25 sits 4.25 units from 0. The sign tells you the direction, and the bars keep only the distance.
How to Find Absolute Value
To find the absolute value, look at the number inside the bars. If it is 0 or more, keep it. If it is less than 0, change its sign. The absolute value calculator on this page follows the same steps and shows which branch it used.
The absolute value of a number is found the same way for a decimal, a fraction, or a whole number. For an expression, work out the sign of the whole inside first, because |x - 5| has no minus sign to erase until you know whether x - 5 is positive or negative.
The Absolute Value Formula
The formula is |x| = x if x is 0 or more, and |x| = -x if x is less than 0. For example, |-7| = -(-7) = 7, and |4.25| = 4.25.
Absolute Value on a Number Line
On the number line, -7 sits 7 units to the left of 0, so its distance is 7, and 4.25 sits 4.25 units to the right of 0, so its distance is 4.25. The distance between two numbers is found the same way, as |a - b|.
|x| = the square root of (x squared), and |-x| = |x|, so the sign outside the bars never changes the answer.
Solving Equations with Bars
The absolute value calculator on this page solves |ax + b| = c by first isolating the bars, then splitting into the two cases ax + b = c and ax + b = -c.
Here are worked examples: |x - 3| = 5 gives x = 8 or x = -2; |2x + 5| = 13 gives x = 4 or x = -9; |2x + 4| - 8 = -2 first isolates to |2x + 4| = 6, then gives x = 1 or x = -5; and |3x - 4| = 5 gives x = 3 or x = -1/3.
When There Is No Solution
When c is less than 0, there is no solution, because a distance cannot be negative. For example, |x - 2| = -5 has no solution, and |2x - 3| = -5 has no solution either. When c is 0, there is exactly one solution: |x + 3| = 0 gives x = -3, and |2x + 3| = 0 gives x = -1.5.
Absolute Value Inequality
The absolute value calculator on this page turns a less-than case into one interval with AND, and a greater-than case into two rays with OR.
|2x - 3| <= 5 gives -1 <= x <= 4, interval [-1, 4]; |2x - 3| >= 5 gives x <= -1 or x >= 4, interval (-infinity, -1] joined with [4, infinity); |x + 3| < 5 gives -8 < x < 2; |x - 2| > 3 gives x < -1 or x > 5.
Less Than vs Greater Than
Less than means the inside stays close to 0, so the answer is one interval, while greater than means the inside sits far from 0, so the answer is two rays. When c is 0 or less, a less-than case has no solution, and a greater-than case with c less than 0 holds for all real numbers.
Distance and Midpoint
The absolute value calculator on this page finds the distance between two numbers as |a - b|, which is the same as |b - a|. It also calculates the midpoint using (a + b) / 2.
For example, the distance between -7 and -4 is |-7 - (-4)| = 3, and the midpoint is (-7 + -4) / 2 = -5.5. The submarine at -187 m sits |-187| = 187 m below the surface.
A tolerance question uses the same idea in a different form. For example, |x - 5| <= 0.2 means x sits between 4.8 and 5.2. Linear interpolation estimates a value between two known points on a straight line.
From a Range to an Equation
The absolute value calculator on this page builds an equation from a minimum and a maximum. The midpoint is (minimum + maximum) / 2, the radius is (maximum - minimum) / 2, and the equation is |x - midpoint| = radius.
For example, the shortest person in a class is 55 inches tall, and the tallest is 75 inches tall. The midpoint is 65, the radius is 10, and the equation is |x - 65| = 10. Check both endpoints: |55 - 65| = 10 and |75 - 65| = 10.
A server room kept at 72 degrees F with a tolerance of 4 degrees gives |T - 72| <= 4, so the temperature sits between 68 and 76 degrees F inclusive.
The V-Shaped Function
The absolute value graph is a V, with the vertex at its corner. The absolute value calculator on this page reports the vertex and the intercepts as numbers.
For y = a|x - h| + k, the vertex is (h, k). When a is greater than 0, the graph opens up; when a is less than 0, it opens down. The right ray has slope +a, and the left ray has slope -a. The domain is all real numbers, and the range is y greater than or equal to k when a is greater than 0, or y less than or equal to k when a is less than 0.
The slope of the two rays is +a on the right and -a on the left, and each ray is a straight line with its own slope.
The Vertex of the V
For y = -0.5|x| + 6, the vertex is (0, 6), and at x = 4, y = 4 ft. For g(x) = |x - 2| + 1, the corner is (2, 1), with g(0) = 3 and g(1) = 2; for y = -2|x + 1| + 3, the vertex is (-1, 3), it opens down, and it is twice as steep.
Absolute Value Properties
The absolute value calculator on this page uses these rules in every mode. They are worth remembering because they help prevent common mistakes when working with positive and negative numbers.
The absolute value rules are |x| = the square root of (x squared); |-x| = |x|; |ab| = |a| times |b|; and |a + b| <= |a| + |b|.
For example, |-3 times 4| = 12, which is 3 times 4; |-5 + 2| = 3, which is less than or equal to 7, the sum of |-5| and |2|; and the square root of ((-7) squared) = 7.
When Absolute Value Goes Wrong
The bars are simple, but four mistakes keep showing up. Each one below is a real error found in a published page or thread.
The first mistake is splitting |2x - 3| = 5 into cases based on whether x is greater than 0 or less than 0. The split must follow the sign of 2x - 3, the inside expression, not the sign of x. The answers, 4 and -1, happen to be right, but the method is wrong. The same page also typesets 8/2 as 82.
The second mistake is treating an expression as an equation. A problem written as "-4|11 - 2x| - 20" has no equals sign, so it is an expression, not an equation, and it has no solution. Never solve an expression. With an equals sign added, -4|11 - 2x| = -20 isolates to |11 - 2x| = 5, giving x = 3 or x = 8.
The third mistake is forgetting the right-side check. For |2x - 3| = -5, splitting into cases gives -1 and 4, but both are wrong because a distance cannot be negative. The correct result is no solution.
The fourth mistake is thinking you can always just erase the minus sign. This works for a single negative number, such as |-7| = 7, but not for an expression. |x - 5| has no minus sign to erase until you know whether x - 5 is positive or negative, so split on the inside first.
Absolute Value Word Problems
These are everyday problems that turn into expressions with bars. The absolute value calculator on this page checks each answer and shows the working so you can follow the calculation.
The shortest person in a class is 55 inches tall, and the tallest is 75 inches tall. The midpoint is 65, the radius is 10, and the equation is |x - 65| = 10.
For credit-card charges, Isabel pays 1.5 percent of a transaction on a sale and 0.5 percent of |transaction| on a return. The function is 0.015|x| for x greater than 0 and 0.005|x| for x less than 0, with domain all real numbers and range [0, infinity).
A server room kept at 72 degrees F with a tolerance of 4 degrees gives |T - 72| <= 4, so the temperature sits between 68 and 76 degrees F inclusive.
A machined part must satisfy |2x + 5| = 13, which gives x = 4 or x = -9, and a submarine at -187 m sits 187 m below the surface.
Questions Students Ask
These are real questions students asked in public threads, and the tool on this page helps check each answer. In the answers, the tool is used instead of naming the calculator.
Write an absolute value equation that represents the minimum and maximum heights, given that the shortest person in class is 55 inches tall and the tallest person is 75 inches tall.
|x - 65| = 10. The midpoint is (55 + 75) / 2 = 65, and the radius is (75 - 55) / 2 = 10. Check it: |55 - 65| = 10 and |75 - 65| = 10.
Isabel's credit-card charges: a sale is 1.5% of the transaction, and a return is 0.5% of the absolute value of the transaction. What is the function, its domain and its range?
The function is 0.015|x| for x greater than 0 and 0.005|x| for x less than 0. The domain is all real numbers, and the range is [0, infinity).
Solve |2x + 4| - 8 = -2.
x = 1 or x = -5. First isolate the bars: |2x + 4| = 6. Then split into 2x + 4 = 6 and 2x + 4 = -6.
Where is the vertex for the parent of the absolute value functions?
(0, 0). The parent is f(x) = |x|, a V with its corner at the origin, symmetric about the y-axis, and its outputs are always 0 or more.
Frequently Asked Questions
Final Thought
The bars turn a signed number into a distance. That distance is what every mode on the page measures, whether it is a single number, an equation, an interval, or a V. The absolute value calculator on this page shows the working with every answer, so you can check the result. Check the sign inside the bars before solving, because distance is never negative even when the input is. For equations, test both possible cases, and remember that some equations have no solution at all. With inequalities, decide whether the result sits between two bounds or outside them before accepting the answer.
