🧮
🧮 Math & statistics

Absolute Value Equation Calculator (solve |ax + b| = c or |ax + b| = cx + d)

Results update as you type.

Your numbers

Understanding the absolute value equation solver — concept and principle

This calculator solves equations of the form |ax + b| = c or, more generally, |ax + b| = cx + d. It splits the equation into its two cases, solves each, and rejects any candidate that would make the right side negative. Use it to check algebra homework step by step.

|2x − 3| = 7|2x − 3| = 7−4−2024682x − 3 = 0 at x = 1.52x − 3 = −72x − 3 = 7x = −2x = 52 solutions, none rejected
The inside equals +7 or −7; solve both cases and check each in the original.

How it is calculated

|A| = B (with B ≥ 0) means A = B or A = −B.

Case 1: ax + b = cx + d, so x = (d − b) ÷ (a − c)

Case 2: ax + b = −(cx + d), so x = −(b + d) ÷ (a + c)

The principle

An absolute value is a distance and cannot be negative. So |A| equals a non-negative number B exactly when A is B units from zero, on either side: A = B or A = −B. Each case is an ordinary linear equation. When the right side contains x, solving the cases can produce a value at which cx + d is negative; such a value cannot satisfy the original equation, which is why every candidate must be checked.

Worked example

Default inputs: a = 2, b = −3, c = 0, d = 7, which is |2x − 3| = 7.

  1. The right side is the constant 7, which is positive, so two solutions are expected.
  2. Case 1: 2x − 3 = 7, so 2x = 10 and x = 5.
  3. Case 2: 2x − 3 = −7, so 2x = −4 and x = −2.
  4. Check: |2·5 − 3| = |7| = 7 and |2·(−2) − 3| = |−7| = 7. None rejected.
  5. Solutions: x = −2; x = 5, number of solutions 2.

How to read the result

On a graph, the solutions are where the V-shaped graph of y = |ax + b| meets the line y = cx + d. A V and a line can meet twice, once, or not at all, and can share a whole ray when the line lies along one arm of the V. If the calculator reports a rejected value, that is where the line would meet the reflected, upside-down part of the V that does not exist.

Common mistakes

Keep in mind: Always substitute your answers back into the original equation; that one check catches most errors.

Frequently asked questions

How many solutions can an absolute value equation have?

For |ax + b| = d: none if d < 0, one if d = 0, two if d > 0 (with a ≠ 0).

What is an extraneous solution?

A value produced by the algebra that does not satisfy the original equation.

How do I solve |x − 4| = 2x?

Enter a = 1, b = −4, c = 2, d = 0. Case 1 gives x = −4, which is rejected because 2x would be negative; case 2 gives x = 4/3.

Sources: OpenStax, College Algebra 2e (2021), §2.6 Other Types of Equations

Checked 9 Nov 2026. OpenStax, College Algebra 2e (2021), §2.6 Other Types of Equations — “Solving an Absolute Value Equation” (|A| = B with B ≥ 0 has solutions A = B or A = −B; no solution when B < 0).

🧮 All math & statistics tools →🌍 Calculators by country →