The absolute value equation calculator above solves equations of the form m|ax + b| + n = c, and it does the one thing most free solvers refuse to do: it tells you honestly when the equation has no solution at all, or exactly one instead of the two you were expecting. Absolute value equations are the first place in algebra where the number of answers stops being fixed. A linear equation has one root, a quadratic has two, but an absolute value equation can have two, one, none, or every real number, and which of those you get depends entirely on the value sitting on the right after the bars are isolated.
Arb Digital builds these free maths tools the same way we build client reporting dashboards: the number on its own is not the deliverable, the reasoning behind it is. So the working line under the result shows the isolation step with your own figures substituted, names the case the equation falls into, and writes out both branches separately so you can reproduce every line by hand.
What This Absolute Value Equation Calculator Does
Enter the five numbers that describe your equation: the multiplier outside the bars, the coefficient and constant inside them, the constant added outside, and the value on the right. The calculator first isolates the absolute value by subtracting n and dividing by m, giving a single number that the expression |ax + b| must equal. That isolated value is the deciding quantity, and it is shown in the result grid rather than hidden, because everything else follows from its sign.
If that value is positive, the calculator splits the equation into two branches and solves each as an ordinary linear equation. If it is zero, the calculator reports the single repeated solution. If it is negative, it returns no solution and says why, instead of quietly printing a number that fails the original equation. It also handles the two degenerate inputs that break naive solvers: a coefficient of zero inside the bars, and a multiplier of zero outside them.
How to Use It
- Write your equation in the standard shape. Rearrange until it reads m|ax + b| + n = c, with a single absolute value term on the left and every loose constant collected.
- Enter m, a, b, n and c with their signs. In 3|2x − 4| + 5 = 17 the values are m = 3, a = 2, b = −4, n = 5 and c = 17.
- Set the decimal places. Four is enough to recognise a whole-number answer; increase it when your coefficients produce awkward fractions.
- Press Solve. The isolated value, both solutions, the solution count and the working line all update together.
- Substitute each answer back into your original equation. The working line shows you exactly what the left-hand side should evaluate to.
The Formula: Why One Equation Becomes Two
The absolute value of a number is its distance from zero on the number line, and distance has no direction. That single fact is the whole method. If |u| = k and k is positive, then u sits exactly k units from zero, which can happen in two places: k units to the right, or k units to the left. So |u| = k splits into u = k or u = −k, and every absolute value equation you will ever meet is that identity applied to whatever expression happens to be inside the bars. The formal definition is set out in the Wolfram MathWorld entry on absolute value.
Applied to our standard form, the first job is isolation. Subtract n from both sides and divide by m to get |ax + b| = (c − n) / m. Call that right-hand result k. Now the split applies: ax + b = k gives x = (k − b) / a, and ax + b = −k gives x = (−k − b) / a. Both are ordinary one-step linear equations, which is why absolute value problems are usually easier than they look once the bars are gone. The difficulty is never the algebra. It is remembering that the split is only legal when k is not negative.
The Case Nobody Warns You About: When c Makes k Negative
Absolute value is never negative. Not sometimes, not usually — never. It is a distance, and distances do not run backwards. So if isolation leaves you with |ax + b| = −7, you have written down a statement that is false for every real number x, and the correct answer is that the solution set is empty. There is nothing to solve, and any calculator that hands you two numbers here is wrong.
This is where a great many marks are lost, because the arithmetic producing the negative is routine. Take 4|3x + 1| + 20 = 8. Subtracting 20 gives 4|3x + 1| = −12, and dividing by 4 gives |3x + 1| = −3. A student on autopilot writes 3x + 1 = −3 and 3x + 1 = 3, produces x = −4/3 and x = 2/3, and loses every mark, because substituting either back gives 32, not 8. Enter those numbers above and the calculator refuses to split, reporting no solution and showing the negative isolated value that caused it.
The trap has a subtler variant. In −2|x − 5| + 9 = 3, isolating gives −2|x − 5| = −6, and dividing by −2 gives |x − 5| = 3, which is perfectly solvable. The intermediate −6 looks like a dead end but is not, because dividing by a negative multiplier restores the sign. Always finish the isolation before you test.
When There Is Exactly One Solution
If isolation leaves |ax + b| = 0, the two branches collapse into one. Zero is the only number whose distance from zero is zero, so ax + b must equal zero exactly, giving the single solution x = −b/a. There is no second answer to find, and writing one down is an error rather than a harmless extra.
Geometrically this matches a repeated root in a quadratic. The graph of y = m|ax + b| + n is a V, and solving means finding where that V meets the line y = c. The line usually cuts both arms, giving two crossings; through the vertex it touches once; below the vertex of an upward V it misses entirely. Those three pictures are the two-solution, one-solution and no-solution cases — much as the discriminant calculator separates the quadratic cases by counting axis crossings.
A Fully Worked Example You Can Check
Take the default equation, 3|2x − 4| + 5 = 17, so m = 3, a = 2, b = −4, n = 5 and c = 17.
Step one, isolate. Subtract 5 from both sides: 3|2x − 4| = 12. Divide both sides by 3: |2x − 4| = 4. The isolated value k is 4, which is positive, so two solutions exist and the split is legal.
Step two, the positive branch. Set 2x − 4 = 4. Adding 4 gives 2x = 8, so x = 4.
Step three, the negative branch. Set 2x − 4 = −4. Adding 4 gives 2x = 0, so x = 0.
Step four, check both. For x = 4: 3|8 − 4| + 5 = 3(4) + 5 = 17. Correct. For x = 0: 3|0 − 4| + 5 = 3|−4| + 5 = 3(4) + 5 = 17. Correct. Notice that the second check is where the absolute value earns its keep — the expression inside the bars is negative, and only the absolute value turns it back into 4. Skip that step and you get 3(−4) + 5 = −7, which is how sign errors survive undetected all the way to the final answer.
Why Checking Answers Is Compulsory Here, Not Optional
Elsewhere in algebra, substituting your answer back is good practice. With absolute value equations it is part of the method, because branch-splitting can manufacture solutions that do not belong to the original equation. These are extraneous solutions, and they appear as soon as a variable sits on both sides.
Consider |x − 3| = 2x. Splitting gives x = −3 and x = 1. Substituting x = 1 gives 2 on both sides, so it holds. Substituting x = −3 gives 6 on the left but −6 on the right. That value is extraneous: it satisfies a branch but not the original equation, because it makes the right-hand side negative, and nothing inside absolute value bars can equal a negative number. Only x = 1 survives.
The calculator above takes a constant right-hand side, the one form that cannot generate extraneous roots, so both answers it returns are always genuine. When your own problem has x on both sides, solve the two branches by hand and then test each candidate against the original equation, discarding any that make the non-absolute side negative.
The Degenerate Inputs: When a or m Is Zero
Two inputs break the standard method, and the calculator handles both rather than dividing by zero. If a is zero, there is no x inside the bars and the equation reduces to |b| = k, which is either true for every real number or false for every real number. The answer no longer depends on x, so there is no single value to report.
If m is zero, the absolute value term vanishes and the equation becomes n = c, again giving every real number or none. These look like artificial edge cases, and in a textbook they usually are, but they turn up in real work whenever the coefficients are themselves computed from quantities that occasionally evaluate to zero. When the answer is a whole range of values rather than isolated points, the standard way to write it is with brackets and unions, which is what the interval notation calculator converts to and from.
From Absolute Value Equations to Absolute Value Inequalities
Once the equation is solved, the inequality version follows almost for free, and the two solutions you have just found are the boundary points. For |u| < k with k positive, the solution is the band between the two roots, written as the compound inequality −k < u < k. For |u| > k, the solution is everything outside that band: u < −k or u > k, a union of two separate pieces. A useful mnemonic is that "less than" gives you an and, and "greater than" gives you an or.
The same sign rules apply and catch the same people out. |u| < −3 has no solution because nothing is less than a negative distance, while |u| > −3 is satisfied by every real number. Working the equation first, then deciding which side of the boundary points to shade, beats memorising four separate inequality templates. Paul's Online Notes at Lamar University's algebra course works through the same progression from equations to inequalities in detail.
Where Absolute Value Equations Show Up in Practice
Outside the classroom, absolute value is the natural language of tolerance. A component specified as 50 mm with a permitted deviation of 0.2 mm is exactly the statement |d − 50| ≤ 0.2, and the two roots of the matching equation are the limits a part must fall between to pass inspection. Quality control and engineering drawings use this structure constantly, whether or not the bars are written explicitly.
The same shape appears in error analysis, where absolute error is the absolute value of the difference between a measurement and the accepted value, and in statistics, where mean absolute deviation sums absolute differences from the mean. In every case the reason for the bars is identical: the question asks how far apart two quantities are, and that answer must never come back negative.
Arb Digital builds fast, dependency-free interactive tools that rank — the same approach behind every free calculator on this site. Browse the library or tell us what you need built.
Browse Free Tools Talk To UsCommon Mistakes to Avoid
- Splitting before isolating. The two branches are only valid once the absolute value stands alone. In 3|2x − 4| + 5 = 17 you must reach |2x − 4| = 4 first, not split against 17.
- Solving when the isolated value is negative. |ax + b| = −7 has no solution. Producing two numbers here means you solved a different equation from the one you were given.
- Reporting two answers when the isolated value is zero. |ax + b| = 0 has exactly one solution, x = −b/a, because the two branches coincide.
- Forgetting to negate the whole right-hand side. The second branch of |2x − 4| = 4 is 2x − 4 = −4, not −2x − 4 = 4. The minus sign attaches to the isolated value, never to the expression inside the bars.
- Skipping the substitution check when x appears on both sides. That form can produce extraneous roots that satisfy a branch but fail the original equation.
Related Free Tools From Arb Digital
When the expression inside the bars is quadratic rather than linear, solve each branch with the quadratic equation solver and read the case with the discriminant calculator. To rewrite the resulting solution ranges properly, use the interval notation calculator, and for answers that land on awkward thirds or sevenths the fraction calculator keeps them exact instead of rounding. The scientific calculator handles the substitution check, and the full free online tools hub lists everything else we have built.
Frequently Asked Questions
Absolute value measures distance from zero, and distance has no direction. If an expression is four units from zero it can be four or negative four, so the single equation splits into two branches that are each solved separately.
Yes. If isolating the absolute value leaves it equal to a negative number, no real value of x can satisfy it, because absolute value is never negative. The correct answer is that the solution set is empty.
When the isolated absolute value equals zero. Only zero is zero units from zero, so both branches give the same answer and the single solution is negative b divided by a.
Yes, always. The two-branch rule applies only when the absolute value expression stands alone on one side. Splitting before removing the outside multiplier and constant gives an equation you were never asked to solve.
It is a value that satisfies one of the two branches but fails the original equation. Extraneous roots appear when the variable is on both sides, so every candidate must be substituted back before it is accepted.
Solve the matching equation first to find the boundary points. A less-than inequality gives the band between them, written as a compound inequality, and a greater-than inequality gives everything outside them, written as a union.
The equation no longer depends on x. It becomes a statement about constants that is either true for every real number or false for every real number, so the answer is all reals or no solution rather than a specific value.
This calculator is provided for study and reference. Results are computed in double-precision floating point, so substitute each solution back into your original equation before relying on it.