MATHEMATICS & NUMBERS · FREE ONLINE TOOL
Absolute Value Equation Calculator
Enter the coefficients in |a × x + b| = c to calculate the real solution or solutions.
Use the calculator
How to use this calculator
Enter a, b and a non-negative c. The equation has two distinct real solutions when c is positive and one repeated solution when c is zero.
Formula and methodology
For c ≥ 0 and a ≠ 0, solve a × x + b = c and a × x + b = −c. Thus x = (c − b) ÷ a and x = (−c − b) ÷ a.
Worked example
For |2x + 1| = 5, the solutions are x = −3 and x = 2.
Important limitations
Results follow the mathematical definitions and assumptions stated on this page. Check the displayed inputs and rounding before using results in coursework or technical work.
Frequently asked questions
Can an absolute-value equation have no real solution?
Yes. If the right-hand side is negative, an absolute value cannot equal it.
Why can there be two solutions?
The expression inside the absolute value can equal either the positive or negative right-hand side.