Absolute Value Equation Calculator
Test cases replayed : 4 of 4 match · Methodology · No outside source listed
Enter a, b and c in |ax + b| = c to get the values of x that make it true.
Result
x from ax + b = c
Solutions
- x from ax + b = −c
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- a (coefficient of x): enter a number.
- b (constant inside the bars): enter a number.
- c (right side): enter a number.
- Read the result: x from ax + b = c; the panel also shows Solutions and x from ax + b = −c.
How this calculator works
|ax + b| = c means ax + b = c or ax + b = −c, so x = (c − b) ÷ a or x = (−c − b) ÷ a.
An absolute value is never negative: if c < 0 there is no solution, and if c = 0 the two cases merge into one, x = −b ÷ a.
Worked example
| a (coefficient of x) | 2 |
|---|---|
| b (constant inside the bars) | -3 |
| c (right side) | 5 |
| Solutions | Two solutions |
|---|---|
| x from ax + b = c | 4 |
| x from ax + b = −c | -1 |
Frequently asked questions
How do you solve |2x − 3| = 5?
2x − 3 = 5 gives x = 4, and 2x − 3 = −5 gives x = −1.
Why does |x + 4| = −2 have no solution?
An absolute value cannot equal a negative number.