Absolute Value Equation Solver

To solve |ax + b| = c, split into two cases: ax + b = c and ax + b = −c. For |2x − 3| = 7, the cases give x = 5 and x = −2, and both check out.

Last updated · By · Runs in your browser, nothing is uploaded

Result

Step-by-Step Solution

Enter your values above to see the full working.

What Is an Absolute Value Equation?

The absolute value of a number, written |x|, is its distance from zero on the number line, so it is never negative: |5| = 5 and |−5| = 5. An absolute value equation asks which values of x make the distance equal to a given number.

Thinking in terms of distance makes these equations easy to understand. |x − 4| = 3 means “x is 3 units away from 4”, which is true for two points: 1 and 7. That is why absolute value equations usually have two solutions, one on each side.

How Many Solutions?

Right side cSolutions of |ax + b| = cExample
c > 0Two solutions|2x − 3| = 7 gives x = 5 and −2
c = 0One solution|2x − 3| = 0 gives x = 1.5
c < 0No solution|x| = −5 is impossible

How to Solve |ax + b| = c

|ax + b| = c (c ≥ 0) Case 1: ax + b = c → x = (c − b) ÷ a Case 2: ax + b = −c → x = (−c − b) ÷ a
  • a is the coefficient of x inside the bars, and it must be non-zero.
  • b is the constant inside the bars.
  • c is the right-hand side. It must be zero or positive, because an absolute value cannot equal a negative number.
  • Always isolate the absolute value first. For 3|x − 1| + 2 = 11, subtract 2 and divide by 3 to get |x − 1| = 3 before splitting.

Each case is a plain linear equation. Always check both answers in the original equation.

How Is It Calculated? Worked Examples

|2x − 3| = 7

  1. Case 1: 2x − 3 = 7 → 2x = 10 → x = 5.
  2. Case 2: 2x − 3 = −7 → 2x = −4 → x = −2.
  3. Check x = 5: |2(5) − 3| = |7| = 7 ✓.
  4. Check x = −2: |2(−2) − 3| = |−7| = 7 ✓.

Distance Interpretation: |x − 4| = 3

Points exactly 3 units from 4 are 4 + 3 = 7 and 4 − 3 = 1. So x = 7 or x = 1, which are the two solutions the cases produce.

The Special Cases

EquationResultWhy
|2x − 3| = 0x = 1.5The only number with distance 0 from 0 is 0
|x| = −5No solutionA distance cannot be negative

Isolating First

To solve 3|x − 1| + 2 = 11, subtract 2 to get 3|x − 1| = 9, divide by 3 to get |x − 1| = 3, then split: x − 1 = 3 gives x = 4, and x − 1 = −3 gives x = −2.

Absolute Value on Both Sides

To solve |x − 1| = |2x + 3|, the two expressions must be equal or opposite. Equal: x − 1 = 2x + 3 gives x = −4. Opposite: x − 1 = −(2x + 3) gives 3x = −2, so x = −2/3. Check x = −4: |−5| = 5 and |−5| = 5 ✓. Check x = −2/3: |−5/3| = 5/3 and |5/3| = 5/3 ✓.

From Equations to Inequalities

InequalityMeaningSolution
|x − 4| < 3Within 3 of 41 < x < 7
|x − 4| > 3More than 3 from 4x < 1 or x > 7

The two solutions of the equation, 1 and 7, are exactly the boundaries of those regions. Solving the equation first is the standard route to solving the inequality.

How to Use This Absolute Value Equation Solver

  1. Write your equation as |ax + b| = c, after isolating the absolute value.
  2. Enter a, b and c.
  3. Read the solutions and the two cases. If c is negative, the calculator reports that there is no solution.

Where Absolute Value Equations Are Used

  • Distance problems: points at a given distance from a reference point.
  • Engineering and manufacturing: tolerances. A part of length L must satisfy |L − 50| = 0.2 at its limits, so 49.8 mm and 50.2 mm.
  • Error and accuracy: the absolute difference between a measurement and its target.
  • Statistics: absolute deviations in the mean absolute deviation and median-based methods.
  • Programming: abs() is used to compare values within a tolerance.

What Are the Most Common Mistakes With the Absolute Value Equation Solver?

  • Finding only one solution. There are normally two cases to solve.
  • Splitting before isolating. The absolute value must stand alone on one side first.
  • Not checking. Extraneous solutions appear in harder equations. Always substitute back.
  • Allowing a negative right side. |ax + b| = −3 has no solutions.
  • Dropping the sign in the second case. The second case sets the inside to −c, not c with a different sign elsewhere.
  • Confusing equations with inequalities. |x| < 3 gives a range, not two points.

Where Can You Verify These Formulas?

The definitions and formulas on this page follow standard references. Check them against these sources:

Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.

Frequently Asked Questions

How do you solve an absolute value equation?

Isolate the absolute value, then solve two linear equations: inside = c and inside = −c. For |2x − 3| = 7 the solutions are x = 5 and x = −2.

Why does an absolute value equation have two solutions?

Because two different numbers can be the same distance from zero, one positive and one negative.

When does an absolute value equation have no solution?

When the isolated absolute value equals a negative number, since distance is never negative.

What does |x − 4| = 3 mean?

It means x is 3 units from 4 on the number line, so x = 1 or x = 7.

Do I need to check my answers?

Yes. Substitute each solution into the original equation to make sure both work.

How is solving an inequality different?

For |ax + b| &lt; c the solutions form an interval between the two boundary values, and for |ax + b| &gt; c they form two outer intervals.