Calculateus

Absolute Value Equation Solver

Solve an absolute value equation of the form |ax + b| = c.

Result

x₁
5
x₂
-2

Solving |2x - 3| = 7.

About the Absolute Value Equation

An absolute value equation like |ax + b| = c looks intimidating at first because the same equation can point to two completely different values of x. Our Absolute Value Equation Solver finds both solutions (when they exist) instantly.

How It Works

The calculator splits the equation into its two underlying cases - one where the expression inside the bars equals c, and one where it equals negative c - then solves each linear equation for x. If c is negative, there's no solution at all, since absolute value can never produce a negative result.

x₁ = (c − b) ÷ a x₂ = (−c − b) ÷ a

Formula & Methodology

Absolute value strips away sign, meaning |ax + b| can equal c in exactly two ways: either the quantity inside the bars is already equal to positive c, or it's equal to negative c and the bars flip it back to positive. Both cases are ordinary linear equations once the absolute value is removed, so solving each one the normal way (isolating x) produces the equation's two roots. When c is exactly zero, both cases collapse into the same single solution, since the only way |something| = 0 is for that something to be 0 itself.

Step-by-Step: Calculating It By Hand

  1. 1Confirm c is not negative - if it is, the equation has no solution.
  2. 2Set up the first case: ax + b = c, and solve for x.
  3. 3Set up the second case: ax + b = −c, and solve for x.
  4. 4If c equals 0, both cases give the same single answer.

Examples

Two solutions

|2x − 3| = 7 splits into 2x − 3 = 7 and 2x − 3 = −7, giving x = 5 and x = −2.

No solution

|2x − 3| = −4 has no solution at all, since an absolute value can never equal a negative number.

Advantages

  • Automatically finds both solutions from the two underlying cases
  • Correctly flags equations with no solution rather than returning a false answer
  • Handles the special single-solution case when c equals zero
  • Removes the risk of missing one of the two roots when solving by hand

Common Mistakes

  • Solving only the positive case and missing the negative case's solution
  • Forgetting that a negative c makes the equation unsolvable
  • Mixing up which sign belongs to which case when setting up the two linear equations
  • Not checking a solution back in the original equation, which occasionally matters for more complex absolute value expressions

Edge Cases to Watch For

  • When c is negative, no real value of x can make an absolute value expression equal it, so the equation has no solution.
  • When c equals zero, the two cases merge into a single unique solution rather than two distinct ones.
  • When a equals zero, the expression inside the bars is just a constant, and the equation is either always true or never true rather than solvable for x.
  • The two solutions are always symmetric around the point where ax + b = 0, mirroring the V-shape of an absolute value graph.

Common Use Cases

  • Algebra homework and coursework involving absolute value
  • Modeling situations with a fixed distance from a target value in either direction
  • Quality control tolerances, where a measurement must fall within a fixed distance of a target
  • Quick verification of manually solved absolute value problems
Written & fact-checked by the Calculateus TeamLast updated August 5, 2026How we verify our formulas

Frequently asked questions

Why does an absolute value equation usually have two solutions?

Because |ax + b| = c splits into two cases: ax + b = c, and ax + b = -c - both make the expression inside the bars equal to c once the sign is stripped away, so both are valid solutions.

Conclusion

Absolute value equations are really just two linear equations wearing a single set of bars - once you split them apart, the algebra is straightforward. Our Linear Equation Solver handles either resulting case on its own if you need a single-equation refresher.