Absolute Value Equation Calculator

Solve equations of the form |ax + b| = c. This educational calculator shows the formula, result, and step-by-step interpretation.

High SchoolAlgebra

Calculator

What this calculator teaches

Absolute-value equations are solved by splitting into positive and negative cases.

Use the result as a learning aid. For classwork, still show the formula and intermediate reasoning so the final answer is not just a black-box number.

Why an Absolute-Value Equation Splits into Cases

Absolute value measures distance from zero, so |ax+b| = c asks when the expression ax+b lies exactly c units from zero. If c is positive, there are two target values: +c and -c. That geometric idea produces the two linear equations ax+b=c and ax+b=-c.

There are important edge cases. If c=0, the two cases coincide, so there is only one solution: ax+b=0. If c<0, there is no real solution because an absolute value cannot be negative. The coefficient a also matters. The usual two-case formula assumes a≠0; when a=0 the expression is constant, so the equation is either true for every x or false for every x depending on whether |b| equals c.

ConditionResult pattern
c > 0 and a ≠ 0Two candidate solutions
c = 0 and a ≠ 0One solution
c < 0No real solution
a = 0Constant equation; inspect |b| = c

After solving both linear cases, substitution is an effective check. Each candidate must make the original absolute value equal c. This catches sign or algebra errors made while isolating x.

After finding candidates, a graph gives the same interpretation visually. The function y=|ax+b| is V-shaped, and solving |ax+b|=c means finding where that graph meets the horizontal line y=c. A positive c can cut both arms, c=0 touches the vertex once, and a negative horizontal line cannot meet the graph.

Formula & Symbols

ConceptFormula or rule
Absolute equation|ax+b| = c
Casesax+b = c or ax+b = -c

Worked example

Example: |2x - 4| = 10 gives x = 7 or x = -3.
Example 2: |3x+6|=0 has one solution. Set 3x+6=0 to obtain x=-2; the positive and negative cases are identical because c is zero.
Example 3: |-2x+5|=7 gives -2x+5=7 or -2x+5=-7. The solutions are x=-1 and x=6.
Example 4: |0.5x-1|=2 gives 0.5x-1=2 or 0.5x-1=-2, so x=6 or x=-2.
Example 5: |x+1|=-4 has no real solution because a distance cannot equal a negative number. This is a condition check, not a two-case algebra problem.

Common mistakes

⚠️
Using the wrong input format

Keep lists comma separated, matrices as rows separated by semicolons, and modular inputs as integers.

⚠️
Ignoring assumptions

Some methods require positive probabilities, valid moduli, independent trials, or small educational input sizes.

⚠️
Forgetting the negative case

For c>0, solve both ax+b=c and ax+b=-c. Solving only the positive equation usually discards one valid solution.

⚠️
Splitting into cases before checking c

If c is negative, stop: there is no real solution. If c=0, the two cases are the same and should not be counted as two distinct roots.

FAQ

Can I use decimals?
Most numerical calculators allow decimals, but modular arithmetic and coding-theory tools usually require integers or binary strings.
Is this for homework checking?
Yes. The page is designed to show both the answer and the reasoning pattern.
Why does the result sometimes say approximate?
Some probability, floating-point, and numerical methods naturally produce approximations.
Why are there usually two solutions?
A positive number c has two points at distance c from zero: +c and -c. Therefore the inside expression can equal either value. The two resulting linear equations normally give two different x-values.
When does an absolute-value equation have exactly one solution?
For |ax+b|=c with a≠0, exactly one solution occurs when c=0. Both branches reduce to ax+b=0, so the same root appears twice algebraically but represents one distinct solution.
Can |ax+b| equal a negative number?
No over the real numbers. Absolute value is always greater than or equal to zero. A negative right-hand side therefore makes the equation inconsistent before any further algebra is needed.
How can I verify both solutions?
Substitute each x-value into the original expression ax+b, take its absolute value, and confirm that the result equals c. Checking the original equation is especially useful after dividing by a negative or fractional coefficient.

Related calculators

These links will work after the calculators are registered in the final Math layout update.

Formula Explorer connections

Interpretation: This formula describes an algebraic relationship among variables, functions, equations, roots or sequences. Assumption: Respect the expression’s domain and excluded values. Check roots in the original equation because transformations can introduce extraneous solutions.

Arc Length of a Function Calculator →Arithmetic Sequence Calculator →Binary Polynomial Calculator →Math Formula Explorer →