Absolute Value Equation Calculator

Solve an equation with absolute value bars and see both cases worked.

Type bars with the | key, such as |2x - 3| = 7 or |x + 1| = |2x - 4|.

Try

Result

You entered3∣x−2∣+1=103\left|x - 2\right| + 1 = 10

x=−1,  x=5\displaystyle x = -1, \; x = 5

Decimal

−1,5\displaystyle -1, 5
Show the work
  1. Isolate the absolute value

    Subtract the plain number and divide by the number multiplying the bars, so that the absolute value stands alone on one side.

    ∣x−2∣=3\left|x - 2\right| = 3
  2. Absolute value equals a number

    ∣A∣=B|A| = B means that AA is BB units from zero, so AA is either BB or −B-B. Write one equation for each possibility.

    Using A=B∨A=−BA = B \lor A = -B

    x−2=3x−2=−3\begin{gathered} x - 2 = 3 \\ x - 2 = -3 \end{gathered}
  3. Solve the first case

    Set the expression inside the bars equal to the right-hand side, then collect the xx terms and divide by the coefficient.

    x−2=3x=5x=5\begin{gathered} x - 2 = 3 \\ x = 5 \\ x = 5 \end{gathered}
  4. Solve the second case

    Set the expression inside the bars equal to the opposite of the right-hand side, then solve in the same way.

    x−2=−3x=−1x=−1\begin{gathered} x - 2 = -3 \\ x = -1 \\ x = -1 \end{gathered}
  5. Check each solution

    Substitute each candidate into the original equation. An absolute value is never negative, so a candidate would fail if the right-hand side came out negative; here every candidate holds.

    x=−1 ⁣: ∣−3∣=3=3x=5 ⁣: ∣3∣=3=3\begin{gathered} x = -1\colon\ \left|-3\right| = 3 = 3 \\ x = 5\colon\ \left|3\right| = 3 = 3 \end{gathered}
  6. Result

    So x=−1x = -1 and x=5x = 5 are the solutions.

Worked examples