Absolute Value Inequality Solver

Enter a, b, c, and the inequality direction to solve for x.

How it is calculated

The tool solves |ax + b| ⋄ c, where ⋄ is one of <, ≤, >, ≥ (codes lt, le, gt, ge). It finds the two boundary points where the inside equals −c and +c: x₁ = (−c − b) ÷ a and x₂ = (c − b) ÷ a, then sorts them into a lower and an upper bound, so a negative a still gives them in the right order. The "less than" types give one interval between the bounds; the "greater than" types give the two outer rays. Strict signs exclude the endpoints, ≤ and ≥ include them. With a = 0 or an empty field there is no result. If c is negative, |…| < c and |…| ≤ c have no solution and |…| > c and |…| ≥ c hold for every real number. With c = 0, < has no solution, ≤ gives the single point x = −b ÷ a, ≥ gives all reals, and > gives every x except that point. Bounds are printed to 4 decimals.

Worked example

Solve |2x − 3| < 7, so a = 2, b = −3, c = 7. The inside must lie between −7 and 7. First boundary: x₁ = (−7 − (−3)) ÷ 2 = −4 ÷ 2 = −2. Second boundary: x₂ = (7 − (−3)) ÷ 2 = 10 ÷ 2 = 5. Because the sign is a strict "less than", the answer is the open interval -2.0000 < x < 5.0000. Check x = 0: |−3| = 3, which is below 7, so it belongs. Check x = 6: |9| = 9, which is not below 7, so it does not.

Try this example →

Common mistakes

  • Choosing the wrong direction. "Less than" gives one interval between the bounds, while "greater than" gives two outer pieces; mixing them up flips the whole answer.
  • Entering b with the wrong sign. For |2x − 3| the constant is b = −3, not 3, which would move both bounds by 3 ÷ 2.
  • Writing the inequality as |ax + b| > c when it is really |ax − b| > c, or forgetting that the coefficient of x belongs in a. Rewrite the expression as ax + b first, for example |3 − x| becomes a = −1, b = 3.
  • Expecting a range at c = 0. For ≤ the result is the single point x = −b ÷ a, and for > it is every x except that point, which is displayed as x < p or x > p with the same number twice.
  • Treating a negative c like a normal bound. An absolute value can never be below a negative number, so that case is empty by definition, and "greater than" is true for every real number.

About this calculator

Solving |ax + b| < c or |ax + b| > c means splitting the absolute value into its two cases based on the sign of the expression inside it. For a "less than" inequality, |ax+b| < c becomes the compound inequality −c < ax+b < c (only valid when c > 0), which solves to a single interval. For a "greater than" inequality, |ax+b| > c splits into two separate branches — ax+b > c or ax+b < −c — giving a solution that's the union of two disjoint rays rather than one interval.

This solver takes a, b, c, and the inequality sign (<, ≤, > or ≥), applies the correct case split, and returns the resulting solution interval or pair of rays, including the edge cases c < 0, where the inequality is either always true or has no solution, and c = 0, where the answer can shrink to a single point or exclude just one. Algebra and pre-calculus students use it to check homework and see the case-split reasoning applied to their specific numbers rather than just a final answer.

Was this helpful?

You can pick up to 3 reactions.

Comments (1)

  • Editorial team

    Read "|ax + b| is less than c" as a distance: x lies within c ÷ |a| of the centre −b ÷ a. For the default, |2x + 3| less than 7, the centre is −1.5 and the half-width is 3.5, giving −5 to 2. That picture also explains why a negative c has no solution with less-than. Which type gives you more trouble, less-than or greater-than?

Popular calculators

All Calculators