Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Absolute Value Equation Solver

|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.






Getting Started

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 x3=5|x - 3| = 5 and press Enter — the right panel splits the equation into x3=5x - 3 = 5 and x3=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 | |).

Building Equations with Buttons and Keyboard

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.

Try an Example — Eight Form Templates

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 — ax+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.

Reading the Step-by-Step Solution

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.

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 A0Aif 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. x4=7|x - 4| = 7. The expression inside is x4x - 4. Two cases:

&bull; Case 1: x4=7x - 4 = 7, so x=11x = 11.
&bull; Case 2: x4=7x - 4 = -7, so x=3x = -3.

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

Edge cases the solver detects automatically.

&bull; $|A| = c$ with $c < 0$: no solution. An absolute value cannot be negative.
&bull; $|A| = 0$: one solution. The inner expression must be exactly zero, so the two cases collapse.
&bull; $|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.

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 x0xif 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: x0|x| \geq 0 for every real xx, with equality only when x=0x = 0.

Key properties.

&bull; Non-negativity: x0|x| \geq 0, with equality iff x=0x = 0.
&bull; Symmetry: x=x|-x| = |x|. The function is even.
&bull; Multiplicativity: xy=xy|xy| = |x| \cdot |y|.
&bull; Triangle inequality: x+yx+y|x + y| \leq |x| + |y|, with equality when xx and yy have the same sign.

Graph. The graph of y=xy = |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+by = |ax + b| is a V with vertex at x=b/ax = -b/a.

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

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

The Solving Process Explained

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

&bull; 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.

&bull; Stage 2: Examine the right side.

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

&bull; Stage 3: Solve the two cases (when $c > 0$).

&bull; Case 1: A=cA = c. Solve as a linear equation in xx.
&bull; 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|$. 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: aA+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.

Related Concepts

Absolute Value Function &mdash; f(x)=xf(x) = |x|. V-shaped graph with vertex at the origin.

Absolute Value Inequalities &mdash; equations with <<, >>, \leq, or \geq instead of equals. Two subtypes: A<c|A| < c becomes a compound inequality c<A<c-c < A < c; A>c|A| > c becomes a union of two inequalities A<cA < -c or A>cA > c.

Piecewise Functions &mdash; functions defined by different rules on different intervals. The absolute value is the canonical example: x|x| equals xx on [0,)[0, \infty) and x-x on (,0)(-\infty, 0).

Distance Formula &mdash; the geometric interpretation of absolute value. xa|x - a| is the distance between points xx and aa on the real line.

Triangle Inequality &mdash; x+yx+y|x + y| \leq |x| + |y|. The fundamental inequality relating absolute values; appears throughout analysis.

Modulus &mdash; the absolute value generalized to complex numbers: a+bi=a2+b2|a + bi| = \sqrt{a^2 + b^2}. The geometric interpretation as distance from origin extends to the complex plane.

Norm &mdash; the further generalization to vectors and other spaces. The absolute value is the one-dimensional norm.

Linear Equations &mdash; the equation type that results after splitting cases. The solver routes each case through a linear-equation step.

Compound Inequalities &mdash; used to express the solution set of an absolute value inequality. The form xac|x - a| \leq c corresponds to the compound inequality acxa+ca - c \leq x \leq a + c.