Absolute Value Calculator & Equation Solver — |ax + b| = c (Free)
AlgebraFreeNo sign-up
An absolute value calculator measures distance from 0, so |−7| = 7 and |7| = 7. To solve |2x − 3| = 7, split it into two cases: 2x − 3 = 7 gives x = 5, and 2x − 3 = −7 gives x = −2. Both answers are 7/2 units from 3/2, the point where the inside equals 0.
The solutions of |2x − 3| = 7 are x = −2 and x = 5.
Show steps
- An absolute value equal to 7 means the inside is 7 or −7. Split into two cases.
- Case 1: 2x − 3 = 7, so 2x = 7 + 3 = 10, so x = 10 ÷ 2 = 5.
- Case 2: 2x − 3 = −7, so 2x = −7 + 3 = −4, so x = (−4) ÷ 2 = −2.
- Distance view: Factor out |2|: |2x − 3| = 2|x − 3/2|, so the condition is |x − 3/2| = 7/2. In words: x is exactly 7/2 units from 3/2 on the number line.
- Check x = −2: |2 × (−2) − 3| = |−7| = 7 ✓
- Check x = 5: |2 × 5 − 3| = |7| = 7 ✓
How to use the absolute value equation solver
- Pick a tab: Equation for |ax + b| = c (and two harder forms), Inequality for <, ≤, > or ≥, Evaluate to work out an expression such as |−7 + 3| − |2 − 9|, Distance for the gap between two numbers, or Graph for y = a|x − h| + k.
- Type the numbers. Whole numbers, decimals and fractions such as 3/4 all work, and the answer is kept exact.
- Read the answer, the solution set or interval, the center and distance, and the number line. Open Show steps to see both cases and a check of every answer.
What absolute value means
The absolute value of a number is its distance from 0 on the number line. Distance is never negative, so |x| is always 0 or positive: |−4| = 4, |4| = 4 and |0| = 0. As a rule, |x| = x when x ≥ 0 and |x| = −x when x < 0. The second part is what turns −4 into −(−4) = 4.
The same idea measures the distance between any two numbers: the distance from a to b is |a − b|. The distance between −3 and 5 is |−3 − 5| = |−8| = 8, and the order does not matter, because |5 − (−3)| is also 8.
How to solve absolute value equations
An equation |ax + b| = c asks which x-values put the inside exactly c units from 0. There are two such numbers, c and −c, so you get two cases.
- Isolate the absolute value. In 3|2x + 1| + 4 = 25, subtract 4 and divide by 3 first: |2x + 1| = 7.
- Look at c. If c is negative there is no solution. If c = 0 there is one solution (solve ax + b = 0). If c is positive, continue.
- Split into two cases: ax + b = c and ax + b = −c. Solve each as an ordinary linear equation.
- Check each answer in the original equation.
Why there are two cases
Both 7 and −7 are 7 units from 0, so |2x + 1| = 7 holds when 2x + 1 = 7 (x = 3) and when 2x + 1 = −7 (x = −4). On the number line, the center is where the inside is 0, here x = −1/2, and the two solutions sit 7/2 units on either side of it: −1/2 − 7/2 = −4 and −1/2 + 7/2 = 3. The calculator draws this picture for every equation.
Two absolute values, or x on both sides
For |ax + b| = |cx + d|, the insides are either equal or opposite, so solve ax + b = cx + d and ax + b = −(cx + d). For |ax + b| = cx + d, the right side may be negative for some x, so each candidate must make cx + d ≥ 0. A candidate that fails is an extraneous solution and is rejected.
Worked examples
Example 1: isolate first
Solve 3|2x + 1| + 4 = 25. Subtract 4: 3|2x + 1| = 21. Divide by 3: |2x + 1| = 7. Case 1: 2x + 1 = 7, so x = 3. Case 2: 2x + 1 = −7, so x = −4. Check: 3|7| + 4 = 25 and 3|−7| + 4 = 25.
Example 2: an extraneous solution
Solve |x − 2| = 2x − 7. Case 1: x − 2 = 2x − 7 gives x = 5. Case 2: x − 2 = −(2x − 7) gives 3x = 9, so x = 3. Check: at x = 5 both sides equal 3, so it works. At x = 3 the right side is 2(3) − 7 = −1, and an absolute value cannot equal −1, so x = 3 is rejected. The only solution is x = 5.
Example 3: an inequality with a sign flip
Solve −2|x + 3| + 5 ≥ −3. Subtract 5: −2|x + 3| ≥ −8. Divide by −2 and flip the sign: |x + 3| ≤ 4. “Less than or equal” gives one three-part inequality: −4 ≤ x + 3 ≤ 4, so −7 ≤ x ≤ 1, or [−7, 1] in interval notation.
Absolute value inequalities
After you isolate the absolute value, the sign tells you the shape of the answer. “Less than” keeps x close to the center, so it becomes one AND inequality (a single interval). “Greater than” pushes x away from the center, so it becomes two inequalities joined by OR (two rays).
| Inequality (c > 0) | Rewrite as | Example |
|---|---|---|
| |u| < c | −c < u < c | |x − 4| < 3 → 1 < x < 7 |
| |u| ≤ c | −c ≤ u ≤ c | |x − 4| ≤ 3 → [1, 7] |
| |u| > c | u < −c or u > c | |2x − 1| > 5 → x < −2 or x > 3 |
| |u| ≥ c | u ≤ −c or u ≥ c | |4x + 1| ≥ 3 → x ≤ −1 or x ≥ 1/2 |
Watch the special values of c. |u| < −1 has no solution, and |u| > −2 is true for every x, because an absolute value is never negative. |u| < 0 has no solution, |u| ≤ 0 means u = 0, and |u| > 0 is true everywhere except where u = 0.
Graphing y = a|x − h| + k
The graph of an absolute value function is a V. Its vertex is (h, k), its axis of symmetry is x = h, and the arms have slopes a and −a. If a is positive the V opens up and k is the minimum; if a is negative it opens down and k is the maximum. For y = 2|x − 1| − 4, the vertex is (1, −4), the y-intercept is 2|0 − 1| − 4 = −2, and the x-intercepts come from |x − 1| = 2: x = −1 and x = 3.
Common mistakes to avoid
- Splitting before isolating. In 3|2x + 1| + 4 = 25, writing 3(2x + 1) + 4 = ±25 gives wrong answers. Get the bars alone first.
- Dropping the negative case. |x| = 5 has two answers, 5 and −5.
- Solving |x| = −5. There is no solution; do not write x = ±5.
- Forgetting the flip. Dividing an inequality by a negative number reverses the sign.
- Mixing up AND and OR. |u| < c is a single “between” interval; |u| > c is two pieces going outward.
- Skipping the check when x appears outside the bars, which is where extraneous answers hide.
Where absolute value is used
Tolerances are absolute value inequalities. A part meant to be 70 mm long that may be off by at most 5 mm must satisfy |x − 70| ≤ 5, so 65 ≤ x ≤ 75. Differences in temperature, elevation or account balances are distances, so they use |a − b|: the change from −15 °F to 40 °F is |40 − (−15)| = 55 degrees.
Checking your answer by hand
Before you trust any answer, substitute it into the original equation, including any numbers outside the bars. For an inequality, test one value inside your answer and one outside: the inside value should make the inequality true and the outside value should make it false. The calculator’s steps show both tests, so you can compare them with your own working.
Absolute value practice quiz: 10 questions
Test yourself with 10 multiple-choice questions. Choose an answer and press Submit to see if you are right and why. Your score appears at the end.
|−9| = 9 and |4| = 4, so the sum is 13. Adding the signed numbers (−9 + 4 = −5) is the common slip.
Inside the first bars, 3 − 8 = −5, so |−5| = 5. Then |−2| = 2, and 5 − 2 = 3.
Case 1: x − 4 = 6 gives x = 10. Case 2: x − 4 = −6 gives x = −2. Both are 6 units from 4.
Isolate first: 2|x − 1| = −2, so |x − 1| = −1. An absolute value cannot be negative, so there is no solution.
Less than means between: −2 < x − 3 < 2, so 1 < x < 5. The endpoints are not included because the sign is strict.
Greater than or equal means outward: 2x − 1 ≤ −7 gives x ≤ −3, or 2x − 1 ≥ 7 gives x ≥ 4.
Subtract 6: −3|x| > −6. Dividing by −3 flips the sign: |x| < 2, so −2 < x < 2.
In y = a|x − h| + k the vertex is (h, k). Here x + 3 = x − (−3), so h = −3 and k = 4.
Case 1 gives x = 4, where both sides are 3. Case 2, x − 1 = −(2x − 5), gives x = 2, but then 2x − 5 = −1 is negative, so x = 2 is extraneous.
Quiz complete
Frequently asked questions
Why does |ax + b| = c have two solutions?
Because two numbers are c units from 0: c and −c. The inside ax + b can equal either one, and each case gives its own x. For |2x − 3| = 7 the solutions are x = 5 and x = −2.
What if c is negative?
Then there is no solution. An absolute value is a distance, and a distance is never negative, so |4x − 1| = −2 can never be true. Isolate the bars first, though: −2|x| + 10 = 4 becomes |x| = 3, which does have solutions.
What if c is zero?
Then there is exactly one solution, because only 0 has absolute value 0. Solve ax + b = 0: |x + 5| = 0 gives x = −5.
Can an absolute value be negative?
No. |x| is always 0 or positive. An expression like −|−5| is negative, but that is the opposite of an absolute value: −|−5| = −5.
How do you solve absolute value inequalities?
Isolate the absolute value, then rewrite. For |u| < c use −c < u < c; for |u| > c use u < −c or u > c. Solve the pieces, write the answer in interval notation and test one point inside and one outside.
Related calculators
- Compound inequality calculator
- Inequality calculator
- Linear equation calculator
- Function grapher
- Complex number calculator
More algebra calculators
Related to This Article
More math articles
- 10 Most Common SSAT Middle Level Math Questions
- What Are the Applications of the Law of Sines?
- NREMT Paramedic Exam Changes: What the 2024 Shift Means for 2027 Prep
- 10 Most Common 7th Grade MCAS Math Questions
- Free Grade 8 English Worksheets for West Virginia Students
- Illinois IAR Grade 6 Math Free Worksheets: Printable Grade 6 Math Practice, Answers Included
- Writ of certiorari
- Polar ↔ Rectangular Coordinate Converter (Free)
- Chapter 19: Freedom of Religion
- The National Labor Union and the Knights of Labor



What people say about "Absolute Value Calculator: Solve |ax + b| = c With Steps"?
No one replied yet.