Skip to content
FiftyCalc Free calculators for all 50 states

Absolute Value Equation Calculator

Test cases replayed : 4 of 4 match · Methodology · No outside source listed

Enter a, b and c in |ax + b| = c to get the values of x that make it true.

Result

Sample figures

x from ax + b = c—

Solutions —

  • x from ax + b = −c—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Absolute Value Equation Calculator

a (coefficient of x): enter a number. Prefilled example: 2.

b (constant inside the bars): enter a number. Prefilled example: -3.

c (right side): enter a number. Prefilled example: 5.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. a (coefficient of x): enter a number.
  2. b (constant inside the bars): enter a number.
  3. c (right side): enter a number.
  4. Read the result: x from ax + b = c; the panel also shows Solutions and x from ax + b = −c.

How this calculator works

|ax + b| = c means ax + b = c or ax + b = −c, so x = (c − b) ÷ a or x = (−c − b) ÷ a.

An absolute value is never negative: if c < 0 there is no solution, and if c = 0 the two cases merge into one, x = −b ÷ a.

Worked example

a (coefficient of x)2
b (constant inside the bars)-3
c (right side)5
SolutionsTwo solutions
x from ax + b = c4
x from ax + b = −c-1

Frequently asked questions

How do you solve |2x − 3| = 5?

2x − 3 = 5 gives x = 4, and 2x − 3 = −5 gives x = −1.

Why does |x + 4| = −2 have no solution?

An absolute value cannot equal a negative number.

Related calculators