Free Algebra Solver
Absolute value

Absolute Value Equation Calculator

Enter an equation like |2x − 3| = 7. The calculator splits it into the positive and negative case and checks both answers.

Preview |2x - 3| = 7 (Solve) Ready
Examples
Solution

Worked example: |2x - 3| = 7

Worked example. Edit the problem above and press Solve to solve your own.

Problem|2x - 3| = 7
  1. Split into the positive and negative cases

    An expression has absolute value 7 when it equals either 7 or −7.

    |2x - 3| = 7
    Original equation
    2x - 3 = 7
    Positive case
    2x - 3 = −7
    Negative case

    These two cases exhaust every real number at that distance from zero.

  2. Solve both linear cases

    Use the same balance rules to isolate x in each case.

    2x − 3 = 7
    Positive case
    2x − 3 + 3 = 7 + 3
    Positive case: Add 3 on both sides
    2x = 10
    Positive case: simplify
    2x/2 = 10/2
    Positive case: divide both sides by 2
    x = 5
    Positive case: solution
    2x − 3 = −7
    Negative case
    2x − 3 + 3 = −7 + 3
    Negative case: Add 3 on both sides
    2x = −4
    Negative case: simplify
    2x/2 = −4/2
    Negative case: divide both sides by 2
    x = −2
    Negative case: solution
    x = −2 or x = 5
    Combine the solutions from both cases

    Each case is an ordinary linear equation, and both must be kept.

  3. Check both answers in the original equation

    Substitute every candidate into the original absolute-value equation.

    |2(5) - 3| = 7
    Substitute 5 for x
    |7| = 7
    True, so this answer works
    |2(−2) - 3| = 7
    Substitute −2 for x
    |−7| = 7
    True, so this answer works

    Both branches are retained only when they satisfy the original equation.

Answerx = −2 or x = 5

Absolute value guide

How the absolute value equation calculator works

This absolute value equation calculator solves equations like |2x − 3| = 7 by splitting them into two cases, then checks both answers. Here's the method and the special cases.

How do you solve absolute value equations?

Isolate the absolute value, then split it into two equations: the inside equals the positive number, or the inside equals the negative number. Solve both. For |2x − 3| = 7, solve 2x − 3 = 7 and 2x − 3 = −7 to get x = 5 or x = −2.

What does absolute value mean?

Absolute value is a number's distance from zero on the number line. Distance can't be negative, so |5| = 5 and |−5| = 5.

That idea explains the whole method. |x| = 5 asks which numbers are 5 units from zero, and there are two: 5 and −5. In the same way, |x − 4| = 2 asks which numbers are 2 units from 4, which gives x = 2 or x = 6.

This distance view is a fast way to check answers. On a number line, 2 and 6 sit exactly 2 steps either side of 4. If your two answers aren't the same distance from the center point, one of them is probably wrong.

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

Write two equations, 2x − 3 = 7 and 2x − 3 = −7, and solve each. The answers are x = 5 and x = −2.

Start
|2x − 3| = 7
Positive case
2x − 3 = 7 → 2x = 10 → x = 5
Negative case
2x − 3 = −7 → 2x = −4 → x = −2
Check x = 5
|2(5) − 3| = |7| = 7
Check x = −2
|2(−2) − 3| = |−7| = 7

The negative case is the one people skip. It's also why the inside, 2x − 3, gets a negative value of −7 when x = −2, and the bars turn that back into 7.

Why are there two cases?

Because two different numbers have the same absolute value. If |A| = 7, then A is either 7 or −7, and nothing else.

So the general rule is: for c > 0, |A| = c becomes A = c or A = −c. Each case is an ordinary linear equation, and the solver works through both with the same steps it uses on the linear equation calculator page.

Rule (c > 0)
|A| = c → A = c or A = −c

When does an absolute value equation have no solution or one solution?

If the absolute value equals a negative number, there's no solution. If it equals zero, there's exactly one.

EquationRight sideNumber of solutions
|2x − 3| = 7PositiveTwo: x = −2 or x = 5
|3x − 6| = 0ZeroOne: x = 2
|x + 4| = −2NegativeNone

|x + 4| = −2 has no solution because a distance can't be −2. You can stop as soon as you see the negative, with no algebra needed. For |3x − 6| = 0, both cases are the same equation, 3x − 6 = 0, so they give the same single answer.

Watch out, though. The check for a negative has to happen after you isolate the absolute value. |x| − 5 = −2 looks negative at first, but adding 5 gives |x| = 3, which has two solutions.

What if there's a number outside the bars?

Get the absolute value alone on one side before you split into cases. For 3|x − 1| = 12, divide by 3 first to get |x − 1| = 4, which gives x = −3 or x = 5. For |x + 1| − 4 = 6, add 4 to get |x + 1| = 10, which gives x = −11 or x = 9.

Treat the bars like a pair of parentheses you aren't allowed to open yet. Anything outside them gets moved with ordinary inverse operations, and only then do you split into the two cases.

Do this step yourself before typing. This absolute value solver currently expects the form |linear expression| = number, so enter |x − 1| = 4, not 3|x − 1| = 12. The inside also has to be linear, so |x² − 1| = 3 isn't supported.

What are common mistakes with absolute value equations?

Solving only the positive case is the most frequent. That gives one answer to a problem with two.

Another is splitting before isolating. From 3|x − 1| = 12, writing 3x − 1 = 12 or 3x − 1 = −12 mixes up the coefficient and the bars. Divide by 3 first.

Last, some students "solve" |x + 4| = −2 and get x = −6 or x = −2. Neither checks: |−6 + 4| = 2, not −2. Always substitute your answers back in.

What if x has a negative sign inside the bars?

Nothing changes about the method. Split into two cases and solve each, dividing by −1 where needed.

For |5 − x| = 3, the cases are 5 − x = 3 and 5 − x = −3. The first gives −x = −2, so x = 2. The second gives −x = −8, so x = 8. Both check: |5 − 2| = 3 and |5 − 8| = |−3| = 3.

Notice that |5 − x| and |x − 5| are always equal, because a − b and b − a are opposites with the same distance from zero. So |5 − x| = 3 asks for the numbers 3 away from 5, which are 2 and 8.

Where do absolute value equations come up?

They show up whenever something is allowed to be a set amount above or below a target. Machined parts, thermostat ranges and test score cutoffs all work this way.

Say a bolt should be 50 mm long, and the limit is 2 mm either way. The lengths right at the limit solve |x − 50| = 2, which gives x = 48 or x = 52. The bolts that pass are the ones between those two numbers, and finding all of them is an inequality question.

Frequently asked questions

Short answers to the questions people ask most about this topic.

What is an absolute value equation calculator?

It solves equations with absolute value bars, like |2x − 3| = 7. It splits the equation into two linear cases, solves each, and checks both answers in the original.

Is this the same as an absolute value calculator?

It solves equations. It doesn't just evaluate numbers. If you only need |−8|, that's 8: drop the negative sign. For equations with a variable inside the bars, use the solver above.

How do you type absolute value bars?

Use the vertical bar key, usually above Enter on a keyboard. Type |2x − 3| = 7 exactly as it looks.

Can absolute value equal a negative number?

No. Absolute value is a distance, and distances are zero or positive. Any equation like |x + 4| = −2 has no solution.

Why does |3x − 6| = 0 have only one answer?

The only number with absolute value 0 is 0 itself, so both cases reduce to 3x − 6 = 0. That gives x = 2 and nothing else.

Can it solve absolute value inequalities?

Not at the moment. It handles absolute value equations with a linear expression inside. The inequality solver covers linear, compound and quadratic inequalities without bars.

How do you check an absolute value answer?

Put each answer into the original equation with the bars, not into one of the cases. For |2x − 3| = 7, x = −2 gives |−7| = 7, which is true. An answer that fails the original equation gets thrown out.

How many solutions can an absolute value equation have?

With a linear expression inside, it has two, one or none. A positive number on the other side gives two, zero gives one, and a negative number gives none.

Math keypad

Solve mode

Use the keypad below or tap the expression to use your phone keyboard.

Keyboard tips

Ctrl + Enter
Run the selected operation
a/b key
Select part of the problem first to wrap it in a fraction, root, power, or bars
sin(30)
Scientific functions work in Calculate mode; angles are in degrees unless you use π
^
Enter a power, such as x^2
sqrt(
Calculate an exact or simplified square root
a:b
Separate quantities in a ratio
12, 18
Separate integers in an LCM and GCD calculation
@ x =
Assign x when evaluating an expression
y =
Enter a polynomial function to graph
|
Wrap an absolute-value expression