Absolute Value Equation Solver: Steps & Examples
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
This calculator solves absolute value equations of the form |ax + b| = c (or similar) for the variable x. You enter the coefficients a, b, and c, and it returns the solution set, showing whether there are two, one, or zero real solutions. It also provides the step-by-step reasoning behind each result.
Formula
The general absolute value equation is written as:
|a·x + b| = c
where:
- a is the coefficient of x (a ≠0)
- b is the constant term added to a·x
- c is the non‑negative value on the right side
To solve, split the equation into two linear cases:
- a·x + b = c
- a·x + b = −c
Solving each gives:
x� = (c − b) / a and x₂ = (−c − b) / a
If c < 0, there are no real solutions because the absolute value is never negative. If c = 0, both cases merge into one solution: x = −b / a.
Worked Example
Using the default values from the calculator: a = 2, b = −3, c = 5.
The equation is |2x − 3| = 5.
Case 1: 2x − 3 = 5 → 2x = 8 → x = 4
Case 2: 2x − 3 = −5 → 2x = −2 → x = −1
The calculator returns x� = 4 and x₂ = −1, matching the manual solution.
When to Use an Absolute Value Equation Solver
Absolute value equations appear in algebra courses, physics (distance from a point), and error analysis. You use a solver when you need quick, accurate solutions without manual algebraic manipulation. It is especially helpful when checking homework or when the coefficients are messy decimals or fractions.
How to Read the Results
The output shows two values, but not all equations have two distinct solutions:
- If c > 0, there are exactly two real solutions (unless a = 0, which is not a valid linear absolute value equation).
- If c = 0, both formulas give the same value, so there is one solution.
- If c < 0, the equation has no real solution because an absolute value cannot equal a negative number.
Always check whether the solutions satisfy the original equation by plugging them back in.
Common Mistakes and Pitfalls
One frequent error is forgetting to consider the negative case. Another is misapplying the distributive property when the absolute value contains a product, such as |2x| = 4, which should be split into 2x = 4 and 2x = −4, not 2|x| = 4 (though that also works if you handle the sign).
Unit mix-ups are rare in pure algebra, but sign errors are common. For example, in |x − 3| = 7, the two cases are x − 3 = 7 and x − 3 = −7, giving x = 10 and x = −4. Some students incorrectly write x = 3 ± 7, which actually gives the correct values but can confuse the order.
Limitations of the Formula
This solver only handles linear absolute value equations of the form |ax + b| = c. It does not solve quadratic absolute values like |x² − 4| = 3, nor inequalities such as |x| < 5. For those, you need more advanced methods or a different calculator.
Also, if a = 0, the equation becomes |b| = c, which is either always true (if |b| = c) or never true. The calculator excludes a = 0 because it is not a linear equation in x.
Frequently Asked Questions
What if c is negative?
If c < 0, there are no real solutions because the absolute value of any real number is non‑negative. The calculator will show “No real solution� or an error message.
Can I use this for equations like |2x + 1| = |x − 3|?
No, that requires solving two separate equations: 2x + 1 = x − 3 and 2x + 1 = −(x − 3). This solver only handles a single absolute value on one side.
How do I solve |x| = 0?
When c = 0, both cases give the same solution: x = 0. In the general formula, x� = x₂ = −b/a, so you get one unique solution.
Why do I sometimes get two identical answers?
That happens when c = 0. The two cases collapse into one, so the calculator may display the same value twice. It is not an error; it just indicates a single solution.
What if a is a fraction?
The calculator works with any real number for a (except 0). For example, |(1/2)x + 3| = 4 gives x = 2 or x = −14. The solver handles fractions correctly.
Related
Formula used
in a | Coefficient a | - | 2 | 0 in b | Constant b | - | -3 | 0 in c | Right side c | - | 5 | 0 out sol1 | First solution | x | (-b - c) / a | 4 out sol2 | Second solution | x | (-b + c) / a | 4
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.