Linear Equation Solver — Step-by-Step with Number Line

The Linear Equation Solver finds the solution to any linear equation in one variable. Two modes: simple form (ax + b = 0) and two-side form (ax + b = cx + d). The solver handles all three cases — a unique solution, no solution (contradiction), and infinite solutions (identity) — and shows the result...

LINEAR SOLVER

2x + 6 = 0

UNIQUE SOLUTION

x = -3/1

= -3 (decimal)

STEP-BY-STEP SOLUTION

1

Start: 2x + 6 = 0

2

Subtract 6 from both sides: 2x = -6

3

Divide both sides by 2: x = -6 / 2

4

x = -3/1 = -3

QUICK EXAMPLES

NUMBER LINE

-7-6-5-4-3-2-101x = -3/10

SOLUTION

-3/1

LHS CHECK

0

RHS CHECK

0

Live diagram · updates as you type

SOLUTION PROPERTIES

Solution-3/1
Decimal-3
SignNegative
LHS = RHS0 = 0 ✓
Created with❤️byeaglecalculator.com

HOW TO USE

  1. 1

    Select your mode: ax + b = 0 for simple equations with all terms on one side, or ax + b = cx + d for equations with x terms on both sides.

  2. 2

    Enter the coefficients. For ax + b = 0, enter a and b. For ax + b = cx + d, enter all four values a, b, c, and d.

  3. 3

    The solution appears instantly in the result box. If there is a unique solution, the exact fraction form is shown alongside the decimal.

  4. 4

    Read the step-by-step solution to see every algebraic manipulation — useful for checking your own working or understanding the method.

  5. 5

    Check the number line diagram — the solution point is marked in red. The LHS and RHS check values confirm the solution is correct.

WORKED EXAMPLE

Example 1: 2x + 6 = 0. Subtract 6: 2x = −6. Divide by 2: x = −3. Check: 2(−3)+6 = 0 ✓. Example 2: 3x + 4 = x + 10. Subtract x: 2x + 4 = 10. Subtract 4: 2x = 6. Divide by 2: x = 3. Check: LHS = 13, RHS = 13 ✓. Example 3 (no solution): 4x + 3 = 4x + 7 → 3 = 7 — contradiction. Example 4 (infinite): 2x + 1 = 2x + 1 → 1 = 1 — identity.

REFERENCE FORMULAS

FORMULA REFERENCE
NAMEFORMULANOTES
Simple formax + b = 0 → x = −b/aUnique solution when a ≠ 0
Two-side formax + b = cx + d → x = (d−b)/(a−c)Unique solution when a ≠ c
No solution(a−c) = 0, (d−b) ≠ 0Contradiction — parallel lines, empty set
Infinite solutions(a−c) = 0, (d−b) = 0Identity — same line, all reals
CheckSubstitute x back: LHS = RHSAlways verify by substituting your answer

FREQUENTLY ASKED QUESTIONS

RELATED CALCULATORS

MORE ALGEBRA CALCULATORS

Was this calculator helpful?

Last updated: April 28, 2026 · Formula verified by EagleCalculator team · Eagle-eyed accuracy for every calculation.