Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Absolute Value Equation Solver

How to use Absolute Value Equation Solver
  1. Build the equation in the display at the top: click the | | button once before and once after the expression inside the bars, and the Var, Num and Op buttons or the brackets for the rest, or type on the keyboard. Learn more about building equations
  2. Clear empties the display, the curved arrow undoes the last edit and the ⌫ button deletes the character before the caret. Learn more about editing
  3. Click Solve, or press Enter in the display, once the equation is complete; an expression without an equals sign or without bars is refused. Learn more about solving
  4. Open Try an Example and click a card to load a random equation of that form. Learn more about the templates
  5. The right panel lists the steps from isolating the bars to the two cases and their check, and the answer card gives one value, two values or No solution; the box under the solver explains the method. Learn more about the solution
  6. Bars equal to a negative number end in No solution; bars equal to zero give one value instead of two. Learn more about the special cases
|x|

Solve absolute value equations step by step

Enter equation...
Var
Num
Op

Select an equation type or enter your own absolute value equation, then click Solve to see the step-by-step solution.

How the solver works

The solver reads one equation in xx, yy or nn with a linear expression between absolute value bars. It isolates the bars by moving constants and dividing out a coefficient, then looks at the other side: a negative number means no solution, zero means the inside is zero, and a positive number cc splits the equation into the inside equal to cc and equal to −c-c, each solved as a linear equation and checked. With bars on both sides it uses the cases A=BA = B and A=−BA = -B. Learn more about absolute value





Getting Started

Demo|x − 3| = 5, Solve, Clear, bars equal to zero
Step 0 of 4
The solver shows an equation display at the top with a blinking yellow caret marking the cursor position. Click anywhere in the display to place the cursor, or use arrow keys, Home, and End for keyboard navigation. Type directly or use the button panel below.

Three quick experiments:

• Type ∣x−3∣=5|x - 3| = 5 and press Enter — the right panel splits the equation into x−3=5x - 3 = 5 and x−3=−5x - 3 = -5, then solves both branches to give x=8x = 8 or x=−2x = -2.
• Click the "No Solution" example template — an equation with a negative right side loads. The solver detects this immediately and reports no solution.
• Enter ∣2x+1∣=0|2x + 1| = 0 to see the zero case: only one solution exists because zero has only one absolute value preimage.

The Solve button is disabled until you enter something. Pressing Enter on the display is equivalent to clicking Solve. The special row offers the absolute value bars button (rendered as ∣| ∣|). An expression without an equals sign is refused with "Input must be an equation (use = sign)", one without bars with "No absolute value found", and a non-linear expression inside the bars with its own message. ∣2x+1∣=0|2x + 1| = 0 gives the single solution x=−0.5x = -0.5. What the bars mean is explained in what is absolute value.

Building Equations with Buttons and Keyboard

DemoA coefficient and a constant, undo, delete, Solve
Step 0 of 4
The button panel groups inputs by type. All inputs can be made either by clicking or typing on the keyboard.

• Variable row — xx, yy, nn. The solver picks up whichever variable appears in the equation.
• Number row — digits 0 through 9 and the decimal point.
• Operator row — multiplication, division, plus, minus, equals.
• Special row — absolute value bars button, and parentheses.

The absolute value bars button inserts a single ∣| character; click it twice to surround an expression. Keyboard users can type the vertical bar character directly. For multi-term expressions inside the bars, type them between the two bars: ∣2x+3∣|2x + 3|.

Keyboard shortcuts: type letters and digits directly, use star or slash for multiplication and division, and press Enter to solve. Ctrl+Z undoes up to fifty edits back; Backspace deletes the character before the cursor; Delete removes the one after it. The Clear button empties the display entirely; the curved-arrow button steps through the undo stack one edit at a time; the ⌫ button deletes the character before the caret. Why the bars make two cases out of one equation is explained in what is absolute value.

Try an Example — Eight Form Templates

DemoOpen the templates, load two forms
Step 0 of 4
Click the "Try an Example" header to expand the template panel. Each card generates a random equation of that form. Clicking again produces a new random version.

• Simple — ∣x+a∣=b|x + a| = b. Coefficient of 1 on the variable; the base case.
• With Coefficient — ∣ax+b∣=c|ax + b| = c. Requires solving each branch as a two-step linear equation.
• Equals Zero — ∣ax+b∣=0|ax + b| = 0. Single solution; the two cases collapse.
• No Solution — ∣expression∣=|expression| = negative. The solver detects and rejects immediately.
• Isolate First — ∣x+a∣+b=c|x + a| + b = c. Requires subtracting bb before splitting into cases.
• Coefficient Outside — a⋅∣x+b∣=ca \cdot |x + b| = c. Requires dividing by aa before splitting.
• Abs Both Sides — ∣ax+b∣=∣cx+d∣|ax + b| = |cx + d|. Uses the A=BA = B or A=−BA = -B case split.
• Fraction Inside — ∣x/a+b∣=c|x/a + b| = c. Tests fractional-coefficient handling inside the bars.

Roughly 80 percent of generated equations produce clean integer solutions; the rest exercise the special cases and edge scenarios. Loading a template clears the previous solution; click Solve to work the new equation. The split applied to every template is justified in the two-case split.

Reading the Step-by-Step Solution

DemoBars on both sides, then no solution
Step 0 of 3
The solution panel shows each algebraic move as a labeled step. The step sequence depends on the structural case.

• Rearrange — if the absolute value is on the right side, the solver swaps sides for clarity.
• Isolate Absolute Value — subtracts an additive constant or divides by a coefficient outside the bars to leave ∣expression∣=c|\text{expression}| = c alone on one side.
• No Solution (when applicable) — if the isolated right side is negative, the solver flags impossibility and stops.
• Zero Case (when applicable) — if the isolated right side equals zero, the inner expression must equal zero. Single solution returned.
• Split into Two Cases — for ∣A∣=c>0|A| = c > 0, splits into A=cA = c and A=−cA = -c.
• Case 1: Positive — solves the linear equation A=cA = c for the variable.
• Case 2: Negative — solves the linear equation A=−cA = -c for the variable.
• Verify Both Solutions — substitutes each candidate back into the original to confirm the absolute value evaluates to the right side.

For ∣A∣=∣B∣|A| = |B| equations, the solver uses Case 1: A = B and Case 2: A = -B instead of the positive/negative split. ∣x−1∣=∣2x+4∣|x - 1| = |2x + 4| gives x=−5x = -5 or x=−1x = -1; ∣x∣+3=1|x| + 3 = 1 isolates to ∣x∣=−2|x| = -2 and ends in No solution. The box under the solver, How the solver works, summarises the method in a few lines and links to the theory below. The three stages are set out in the solving process explained.

The Two-Case Split — Why It Works

The absolute value function strips off the sign of its input. ∣5∣=5|5| = 5 and ∣−5∣=5|-5| = 5. Two different inputs can produce the same output.

The principle. For any real number AA,

∣A∣={Aif A≥0−Aif A<0|A| = \begin{cases} A & \text{if } A \geq 0 \\ -A & \text{if } A < 0 \end{cases}


So ∣A∣=c|A| = c does not determine the sign of AA. Both A=cA = c and A=−cA = -c satisfy the equation. The solver must consider both possibilities and produce both solutions (or whichever turns out to be valid).

Example. ∣x−4∣=7|x - 4| = 7. The expression inside is x−4x - 4. Two cases:

• Case 1: x−4=7x - 4 = 7, so x=11x = 11.
• Case 2: x−4=−7x - 4 = -7, so x=−3x = -3.

Check: ∣11−4∣=∣7∣=7|11 - 4| = |7| = 7 ✓ and ∣−3−4∣=∣−7∣=7|{-3} - 4| = |{-7}| = 7 ✓. Both solutions are valid.

Edge cases the solver detects automatically.

• ∣A∣=c|A| = c with c<0c < 0: no solution. An absolute value cannot be negative.
• ∣A∣=0|A| = 0: one solution. The inner expression must be exactly zero, so the two cases collapse.
• ∣A∣=∣B∣|A| = |B|: two cases on inputs rather than outputs. Either A=BA = B or A=−BA = -B. The principle is the same: both sign assignments of the right-hand expression must be checked.

For deeper coverage see absolute value and piecewise definition of absolute value.

The split is worked in the basic equation and solving equations of the form |f(x)| = k; when a case can fail is absolute value and extraneous solutions.

What is Absolute Value?

The absolute value of a real number xx, written ∣x∣|x|, is its distance from zero on the number line:

∣x∣={xif x≥0−xif x<0|x| = \begin{cases} x & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases}


Equivalently, ∣x∣=x2|x| = \sqrt{x^2}. Absolute value is always non-negative: ∣x∣≥0|x| \geq 0 for every real xx, with equality only when x=0x = 0.

Key properties.

• Non-negativity: ∣x∣≥0|x| \geq 0, with equality iff x=0x = 0.
• Symmetry: ∣−x∣=∣x∣|-x| = |x|. The function is even.
• Multiplicativity: ∣xy∣=∣x∣⋅∣y∣|xy| = |x| \cdot |y|.
• Triangle inequality: ∣x+y∣≤∣x∣+∣y∣|x + y| \leq |x| + |y|, with equality when xx and yy have the same sign.

Graph. The graph of y=∣x∣y = |x| is a V-shape with vertex at the origin and slopes of ±1\pm 1 on the two branches. The graph of y=∣ax+b∣y = |ax + b| is a V with vertex at x=−b/ax = -b/a.

Geometric interpretation. ∣x−a∣|x - a| is the distance between xx and aa on the number line. The equation ∣x−a∣=c|x - a| = c asks: which points are exactly cc units from aa? Answer: a+ca + c and a−ca - c.

For deeper coverage see absolute value function, distance on the number line, and piecewise functions.

The definition is given in definition of absolute value, the distance reading in geometric interpretation, and the place of these equations among the equation types in absolute value equations.

The Solving Process Explained

Three stages solve any absolute value equation. The first is mandatory; the second branches on the structural case.

• Stage 1: Isolate the absolute value. Move every term outside the bars to the other side. Subtract additive constants, then divide by any coefficient multiplying the absolute value expression. The goal is to reach the form ∣A∣=c|A| = c where AA is the expression inside the bars and cc is a single number on the other side.

• Stage 2: Examine the right side.

• If c<0c < 0: no solution. Stop.
• If c=0c = 0: the inner expression equals zero. Solve A=0A = 0 as a linear equation. Single solution.
• If c>0c > 0: split into two cases.

• Stage 3: Solve the two cases (when c>0c > 0).

• Case 1: A=cA = c. Solve as a linear equation in xx.
• Case 2: A=−cA = -c. Solve as a linear equation in xx.

Both solutions are valid by construction. No extraneous-check step needed for the standard form because the squaring trap of radical equations does not arise here.

Variant: ∣A∣=∣B∣|A| = |B|. Both sides absolute values. The analogous split: Case 1 is A=BA = B, Case 2 is A=−BA = -B. Each yields a linear equation. Both solutions are valid.

Variant with coefficient outside: a⋅∣A∣+d=ca \cdot |A| + d = c. Subtract dd, divide by aa, then proceed with the standard split.

For comprehensive treatment see solving absolute value equations and case analysis.

The stages are worked in solving equations of the form |f(x)| = k and equations with absolute value on both sides; several bars at once are treated in equations with multiple absolute value terms, and the forms are summarised in summary of absolute value equation forms.