Absolute Value Equations
Solve equations with absolute values.
Loading tool…
About this tool
Type an equation with abs() to get every x that satisfies it. |x − 2| = 5 has two answers, x = −3 and x = 7.
How to use
1
Step 1
Type the equation using abs(), for example abs(x-2)=5.
2
Step 2
Press Calculate.
3
Step 3
Read each x that satisfies it, or the no-roots message.
How it works
|A| = c splits into two cases, A = c and A = −c. For |x − 2| = 5, that is x − 2 = 5 and x − 2 = −5. If c is negative there is no solution, because an absolute value is never below 0.
|A| = c ⇔ A = c or A = −c (c ≥ 0)
Worked example
Absolute values on both sides
- Input
- abs(x+4)=abs(2*x-1)
- Output
- x = −1, x = 5
- Walkthrough
- x + 4 = 2x − 1 gives x = 5, and x + 4 = −(2x − 1) gives 3x = −3, so x = −1.
Limitations
- Solutions are found by scanning between −10,000 and 10,000, so abs(x − 2) = 500 works (x = −498 and 502) but a root beyond that range is not reported.
- Write abs(...) or use bars; a negative right side, like abs(x)=-3, correctly returns no real roots.
Questions
What is x if |x − 2| = 5?
x = −3 or x = 7.
What is x if |2x + 1| = 7?
x = −4 or x = 3.
Can |x| equal a negative number?
No. The tool reports no real roots.
Does it work with large answers?
Yes. |x − 2| = 500 gives x = −498 and x = 502.
Features
- Both cases found
- Handles abs on both sides
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Variables on both sides — example
Khan Academy
Worked example to check against solver output.
Watch on YouTubeVectors | Essence of linear algebra
3Blue1Brown
Visual vectors when algebra tools move toward matrices.
Watch on YouTube
- Math | Khan Academy
Khan Academy
Practice paths when a tool result needs more drill.
- Systems of Linear Equations
Math is Fun
Two-variable systems for simultaneous equation calculators.