Linear Equation Calculator

Every straight-line equation in one unknown can be written ax + b = cx + d, and the solution is one rearrangement away: gather the x terms, divide by what remains. The interesting part is when they gather to nothing — the equation collapses into a contradiction or opens into an identity. This page solves normally, checks the answer, and names both cases in plain words.

Enter values

The multiplier on x on the left side

The number added on the left side

The multiplier on x on the right side

The number added on the right side

Results update as you type.

Results

Solution for x
-2
Check
Both sides equal 1
Equation
2x + 5 = 5x + 11

How is the Linear Equation calculated?

Four number fields describe the equation: a and b on the left, c and d on the right, so the page reads ax + b = cx + d. The calculator rearranges to (a − c)x = d − b; when a and c differ it divides to produce x and prints a check row that substitutes the answer back so both sides can be seen to agree. When a equals c the x terms cancel: identical constants mean every value of x works, different constants mean none does, and the page says exactly that.

Formula

x = (d − b) ÷ (a − c), obtained by rearranging ax + b = cx + d into (a − c)x = d − b. a and c are the multipliers on x, while b and d are the constants. If a − c = 0 the x terms vanish: b = d leaves both sides identical, so any x satisfies the equation, and b ≠ d makes the equality impossible for every x.

Example

Take the defaults 2x + 5 = 5x + 11: x = (11 − 5) ÷ (2 − 5) = 6 ÷ (−3) = −2, and the check confirms both sides equal 1. Next, 3x + 7 = x + 19 gives x = 12 ÷ 2 = 6, with both sides at 25. Then the cancel cases: 4x + 5 = 4x + 9 would demand 5 = 9, so there is no solution, while 2x + 6 = 2x + 6 is true for every value of x.

Things to remember

The check row is the habit worth keeping: substitute an answer back until both sides balance, so a blind rearrangement cannot slip past. Infinite or missing solutions mean the equation itself is suspect — real problems usually pin x down once.

Frequently Asked Questions

What does no solution mean in this calculator?

The x terms cancelled but the constants disagree, so no number can satisfy the equation: 4x + 5 = 4x + 9 would require 5 = 9. Geometrically the two sides are parallel lines sharing a slope with different intercepts, so they never meet.

What does every value of x works mean?

Both sides of the equation are identical, so any x you pick makes it true: 2x + 6 = 2x + 6 holds for 0, for −3 or for a million. That is an identity rather than an equation to solve, and the calculator names it instead of dividing by zero.

How do I solve ax + b = cx + d by hand?

Move the x terms to one side and the constants to the other: (a − c)x = d − b, then divide by (a − c). For 3x + 7 = x + 19 that gives 2x = 12, so x = 6 — substitute it back and each side reads 25 to confirm.

Why does the calculator show a check row?

Because an answer only counts if it satisfies the original equation. The row evaluates both sides at your solution: for 3x + 7 = x + 19 at x = 6, each side equals 25. Had they disagreed, the rearrangement — or one of the coefficients — would be wrong.