Saved

Press the star next to a tool's name to save it.

All my tools

Absolute Value Calculator

Use this absolute value calculator to find the absolute value of a number, solve |ax + b| equations and inequalities with interval notation, and find the distance between numbers.

Restored your last values ·

For an absolute value, enter a number. For an equation or inequality, write it as |ax + b| compared with c, and enter a, b and c. For |x − 3| ≤ 9, a is 1, b is −3 and c is 9. For a distance, enter two numbers.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Choose what you want, fill in the boxes, then press Calculate.

See full result

An absolute value calculator finds the absolute value of a number, solves absolute value equations and inequalities of the form |ax + b| compared with c, and finds the distance between two numbers. It shows each solution, the solution set in interval notation and the setup. Choose the job, fill in the boxes and press the button. The rules follow the Wikipedia page on absolute value, and the work is done in your browser. It covers the absolute value equation calculator and the absolute value inequalities calculator.

How to use the absolute value calculator

  1. Choose what you want: a value, an equation, an inequality or a distance.
  2. For a value or a distance, enter the number or numbers.
  3. For an equation or inequality, enter a, b and c for |ax + b| compared with c. For an inequality, also choose the sign.
  4. Press Calculate.

What the absolute value is

The absolute value of a number is its distance from zero, so it is never negative. The Wikipedia page defines it as x when x is zero or positive, and −x when x is negative. So the absolute value of 3 is 3, and of −3 is also 3. It can also be written as the square root of x squared. For a complex number a + bi, the absolute value is the square root of a squared plus b squared; enter the imaginary part to see it, and for 3 + 4i you get 5.

Properties

The page lists the properties used in solving problems. The absolute value is always at least zero, and it is zero only when the number is zero. The absolute value of a product is the product of the absolute values, and the absolute value of a sum is at most the sum of the absolute values, which is the triangle inequality. Also, the absolute value of a difference |a − b| is the distance between a and b on the number line. The distance option gives this directly: the distance between 3 and −4 is 7.

Solving |ax + b| = c

If c is negative, there is no solution, because an absolute value cannot be negative. If c is zero, the only solution is the number that makes ax + b equal to zero. Otherwise, ax + b can equal c or −c, which gives two solutions: x = (c − b)/a and x = (−c − b)/a. For |2x − 4| = 6, the solutions are x = 5 and x = −1, and you can check that |2·5 − 4| = 6 and |2·(−1) − 4| = 6. The calculator lists the solutions in order and shows the problem as written.

Solving absolute value inequalities

The page states the two rules. The inequality |a| ≤ b is the same as −b ≤ a ≤ b, and |a| ≥ b is the same as a ≤ −b or a ≥ b. Its worked example is |x − 3| ≤ 9, which means −9 ≤ x − 3 ≤ 9, so −6 ≤ x ≤ 12. In interval notation that is [−6, 12]. For a greater-than inequality such as |x| > 2, the solution is x < −2 or x > 2, written (−∞, −2) ∪ (2, ∞). The calculator handles a negative a by sorting the end points, and it also covers the special cases: if c is negative, a less-than inequality has no solution and a greater-than inequality is true for every number; if c is zero, |x| ≤ 0 gives only x = 0 and |x| > 0 gives every x except 0.

Why the number line helps

Think of |x − 3| ≤ 9 as saying that x is at most 9 away from 3. That is the interval from −6 to 12. The greater-than version says x is more than a given distance away, which gives two pieces, one on each side. Drawing the number line is a good way to check an answer.

A worked example with a coefficient

Take the inequality |2x + 1| < 7. The coefficient a is 2, b is 1 and c is 7. The inequality is the same as −7 < 2x + 1 < 7. Subtract 1 from every part to get −8 < 2x < 6, then divide by 2 to get −4 < x < 3. In interval notation, that is (−4, 3), with round brackets because the end points are not included. If the sign had been ≤, the end points would be included and the interval would be written [−4, 3]. When a is negative, dividing by it reverses the order, which is why the calculator sorts the two end points for you.

Where absolute values appear

Absolute values appear whenever only the size of a difference matters, not its direction. A machine part must be within 0.05 millimetres of its target size, which is the inequality |x − target| ≤ 0.05. A forecast error is the absolute value of the forecast minus the actual value. A thermostat that holds a room within 2 degrees of a set point uses the same idea. Writing the condition as an absolute value inequality and solving it gives the allowed range at once.

Checking an answer

Pick a number inside the solution set and put it back into the original problem. For |x − 3| ≤ 9, the number 0 is inside the answer [−6, 12], and |0 − 3| is 3, which is at most 9, so it works. A number outside, such as 15, gives |15 − 3| = 12, which is more than 9, so it fails. Testing the end points too confirms whether the brackets should be round or square.

Common mistakes

  • Forgetting the second solution. An equation with a positive c has two.
  • Writing a negative c as solvable. It has no solution.
  • Using the wrong direction for the inequality. Less than gives one interval, greater than gives two.
  • Not isolating the absolute value first. Put it alone on one side before solving.
  • Dropping the coefficient of x. Divide by a at the end.

What next

Use this often? Add Absolute Val to your Home screen.

Frequently asked questions

What is an absolute value calculator?

A tool that finds the absolute value of a number and solves equations and inequalities that contain absolute values.

How do you solve an absolute value equation?

Isolate the absolute value, then split into two cases: ax + b = c and ax + b = −c. |2x − 4| = 6 gives x = 5 and x = −1.

How do you solve |x − 3| ≤ 9?

Write −9 ≤ x − 3 ≤ 9, which gives −6 ≤ x ≤ 12, or [−6, 12] in interval notation.

What if the right side is negative?

An absolute value is never negative, so |ax + b| = c has no solution, and the inequality is true for every x when it asks for more than a negative number.

What is the absolute value of a complex number?

The square root of a² + b² for a + bi. For 3 + 4i it is 5.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Math Tools