About the Linear Equation Calculator
A linear equation is one where the variable appears only to the first power — no squares, no roots, no x in a denominator. 3x − 7 = 8 is linear. x² − 7 = 8 is not.
Graphed, a linear equation is a straight line, and that shape explains its behaviour completely. A straight line crosses any given horizontal level exactly once, which is why a linear equation has exactly one solution — never the pair a quadratic gives you.
Unless the line happens to be horizontal. Then it either never meets the level at all, or lies along it and meets it everywhere. Those are the two cases people find unsettling: no solution and infinitely many solutions. Both are genuine answers, and both are what this calculator will tell you when they apply, with an explanation rather than an error.
How to Use the Linear Equation Calculator
Pick the shape of your equation.
ax + b = c is the basic form. For 3x − 7 = 8, enter a = 3, b = −7, c = 8.
ax + b = cx + d has the variable on both sides. For 3x − 7 = x + 5, enter a = 3, b = −7, c = 1, d = 5.
Get your equation into one of those shapes first, moving every term to the right side of the right equals sign. Watch the signs when you do — a constant that was subtracted stays negative.
Press Calculate. You get the solution, the exact value as a fraction when it is not a whole number, and a substitution check.
How Linear Equations Are Solved
Solving means isolating the variable, and the whole technique rests on one principle: whatever you do to one side, do to the other. An equation is a statement that two things are equal; operating equally on both keeps it true.
The order that works reliably:
Collect the variable terms on one side. If x appears on both, subtract the smaller x term from both sides. 3x − 7 = x + 5 becomes 2x − 7 = 5.
Move the constants to the other side. Add or subtract to clear the constant from the variable's side. 2x − 7 = 5 becomes 2x = 12.
Divide by the coefficient. 2x = 12 becomes x = 6.
That is the entire method, and it never varies. Every linear equation, however messy, reduces to those three moves.
The two degenerate cases
Sometimes the x terms cancel completely. What is left then decides the answer.
No solution. Consider 2x + 3 = 2x + 5. Subtract 2x from both sides and you get 3 = 5, which is false. No value of x can make it true, because x has disappeared from the question entirely. Graphically the two sides are parallel lines — same slope, different intercept — so they never meet.
Infinitely many solutions. Consider 2x + 3 = 2x + 3. The same subtraction gives 3 = 3, which is always true. Every value of x works, because both sides were the same line all along. An equation like this is called an identity.
Neither case is a mistake. If your working leads to 3 = 5, the correct answer is "no solution", and writing that down is the complete response.
Linear Equation Formula
ax + b = c
x = (c - b) / a provided a is not zero
ax + b = cx + d
x = (d - b) / (a - c) provided a is not equal to c
When a = c (or a = 0):
b = d -> infinitely many solutions (an identity)
b ≠ d -> no solution (parallel lines)
The proviso is where the interesting cases live. Division by zero is undefined, and the coefficient becoming zero is exactly what happens when the x terms cancel. So the formula's restriction and the degenerate cases are the same phenomenon seen from two directions.
Step-by-Step Example
Solve 3x − 7 = 8.
Step 1 — clear the constant. Add 7 to both sides:
3x - 7 + 7 = 8 + 7
3x = 15
Step 2 — divide by the coefficient.
3x / 3 = 15 / 3
x = 5
Step 3 — check. 3(5) − 7 = 15 − 7 = 8. ✓
Now one with x on both sides. Solve 3x − 7 = x + 5.
Step 1 — collect the x terms. Subtract x from both sides:
3x - x - 7 = x - x + 5
2x - 7 = 5
Step 2 — clear the constant. Add 7:
2x = 12
Step 3 — divide. x = 6.
Step 4 — check. Left: 3(6) − 7 = 11. Right: 6 + 5 = 11. ✓
And one that has no answer. Solve 2x + 3 = 2x + 5.
Step 1: subtract 2x from both sides -> 3 = 5
The variable is gone and the statement is false. No solution. The two sides are lines with the same slope of 2, sitting two units apart forever.
Understanding Your Result
The solution is the value of x, or one of the two degenerate answers.
As a fraction gives the exact value when the answer is not whole. 2/3 is exact; 0.666667 is rounded. If the answer feeds into more algebra, use the fraction.
The check substitutes the solution back and reports what each side comes to. They should match. This is the same verification you would do by hand, and it is worth glancing at — it catches a sign error immediately.
For the degenerate cases, the check line explains the geometry: parallel lines for no solution, the same line twice for infinitely many.
One sanity check you can apply yourself: a linear equation with a non-zero coefficient always has exactly one solution. If you have found two, something has gone wrong — most likely the equation was not linear to begin with.
When Should You Use This Calculator?
Algebra homework. One-step and multi-step equations are the foundation of the subject, and the working here shows which step a hand attempt lost.
Rearranging formulas. Solving for a variable in a physics or finance formula is a linear equation whenever that variable appears to the first power.
Break-even problems. Fixed cost plus unit cost equals revenue is linear, and the solution is the break-even quantity.
Conversions with an offset. Fahrenheit to Celsius is linear with both a multiplier and a constant, so finding where two scales read the same is this calculation.
Rate problems. Distance at constant speed, filling at constant rate, earning at a fixed hourly rate — all linear.
Checking a degenerate case. If your working collapsed to 0 = 5 and you are unsure whether that means anything, it does: no solution.
Common Mistakes
Doing something to one side only. The most common error there is. Every operation applies to both sides, without exception.
Sign errors when moving terms. A term that was added becomes subtracted when it crosses the equals sign. 3x − 7 = 8 becomes 3x = 8 + 7, not 8 − 7.
Dividing before collecting. Divide by the coefficient last, once the variable term stands alone. Dividing early means dividing every term and usually introduces fractions for no reason.
Reading a cancelled variable as an error. If x disappears, you have reached one of the two degenerate answers. Look at what is left: false means no solution, true means infinitely many.
Forgetting to flip the inequality — in an inequality. This calculator solves equations, but if you are working with inequalities, dividing by a negative reverses the direction. Equations have no such rule.
Multiplying both sides by zero. Technically it keeps the equation true and destroys all its information, turning anything into 0 = 0. It is never a legitimate step.
Assuming one solution when the equation is not linear. If x appears squared, under a root, or in a denominator, the one-solution guarantee does not apply.