CalcWorldHub
Free online calculator · no signup

Absolute value equation solver

Solve |ax + b| = c for the real value or values of x.

4,000 tools
Absolute value equation solver — Coefficient a, Constant b, Target c and calculation method
Absolute value equation solver: inputs and calculation method.

How to use this calculator

Solve |ax + b| = c for the real value or values of x.

  1. Enter Coefficient a, Constant b, Target c. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Math guide

How this calculation works

|ax+b|=c
A visual cue for the quantities used in the formula.

Solve |ax + b| = c by checking both linear cases, ax + b = c and ax + b = −c. The solver reports distinct real roots and handles degenerate a = 0 separately.

Inputs and meanings

a — Coefficient a
Enter the coefficient multiplying x.
b — Constant b
Enter the constant inside the absolute value.
target — Target c
Enter a nonnegative value on the right side.

Formula and method

If c ≥ 0 and a ≠ 0, solve ax + b = c and ax + b = −c.

An absolute value equals a nonnegative target when its expression is either the positive or negative target. If a is zero, the equation is constant and has either every real number or no solution.

Worked example

For |2x − 3| = 5, solve 2x−3=5 or 2x−3=−5, giving x=4 or x=−1.

Assumptions and limits

Coefficients and target must be finite real numbers. The calculator reports exact-form expressions only through decimal results.

Frequently asked questions

Why can there be two answers?

The expression inside absolute value may equal either c or −c.

What if the target is negative?

An absolute value cannot be negative, so a negative target would have no real solutions; this form requires c ≥ 0.

What if a equals zero?

Then the left side is the constant |b|: every real x works if |b| equals c, otherwise none do.

How do I use the Absolute value equation solver?

Enter Coefficient a, Constant b, Target c. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Absolute value equation solver?

For |2x − 3| = 5, solve 2x−3=5 or 2x−3=−5, giving x=4 or x=−1.