How to Solve a Linear Equation
A linear equation is one in which the unknown variable appears only to the first power — no squares, no roots, no variables multiplied together. The standard form is ax + b = c, and the goal is to find the value of x that makes the statement true.
The method is to apply the same operation to both sides of the equals sign until x sits by itself. Whatever you do to one side you must do to the other, so the equation stays balanced.
Open the matching Linear Equation Solver
For ax + b = c: subtract b from both sides → ax = c − b → divide by a → x = (c − b) ÷ a
Isolating the variable
First distribute any parentheses and combine like terms on each side. Then move constant terms to one side and x terms to the other by adding or subtracting. Finally, divide both sides by the coefficient of x to leave x by itself.
The order is "peel away" whatever is attached to x, working from the outside in. Addition and subtraction come off first, then multiplication and division.
Special cases: no solution and infinite solutions
Two special cases arise when the x terms cancel. If both sides are identical after simplifying (2x + 1 = 2x + 1), every value of x works and there are infinitely many solutions. If the x terms cancel but the constants differ (2x + 1 = 2x + 3), no value of x can satisfy the equation and there is no solution.
A linear equation with one variable has either one solution, infinitely many solutions, or no solution. The Linear Equation Solver detects the special cases automatically and reports them clearly.
Verifying your answer
Always verify a unique solution by substituting it back into the original equation. If the left and right sides match, the answer is correct. This catches arithmetic slips that are easy to make when moving terms across the equals sign.
The solver performs this verification for you and shows it in the steps panel, so you can confirm the working is correct rather than trusting a bare number.
What “the same operation on both sides” is protecting
An equation is a balance. Adding 7 on the left only produces a different statement. The legal moves are the ones that keep the same solutions: add or subtract the same number, multiply or divide by the same non-zero number, and simplify either side on its own.
“Move the term across and change the sign” is not a separate rule. It is subtracting that term from both sides. If you cannot name the operation, you are more likely to flip a sign that should have stayed.
Worked example
Solve 3x + 7 = 28
- 1Subtract 7 from both sides to isolate the x term: 3x = 28 − 7 = 21.
- 2Divide both sides by 3 to isolate x: x = 21 ÷ 3 = 7.
- 3Verify by substituting back: 3 × 7 + 7 = 21 + 7 = 28, which matches the right-hand side.
Answer: x = 7
Another worked example
Solve 2(x − 3) = 4x + 6
- 1Distribute on the left: 2x − 6 = 4x + 6.
- 2Subtract 2x from both sides: −6 = 2x + 6.
- 3Subtract 6 from both sides: −12 = 2x.
- 4Divide by 2: x = −6.
- 5Check in the original equation. Left: 2(−6 − 3) = −18. Right: 4(−6) + 6 = −18. They match.
Answer: x = −6
How to read the result
A unique solution is a claim you can test by substitution: both sides must match. “No solution” means the equation simplified to a contradiction, such as 1 = 3. “Infinitely many solutions” means it simplified to a statement that is always true, such as 0 = 0. Those are answers, not failures.
The written form can hide the case. 2(x + 1) = 2x + 2 looks as if it has an unknown to find, but after distributing it is true for every x. Read the case label before copying a number into an answer.
Limits of this method
A term with x², a product of two unknowns, or a variable in a denominator is outside this method. Dividing by the coefficient of x will not find those solutions. Use the quadratic solver for an x² term.
Dividing both sides by an expression that contains x can discard a solution. This tool’s equations use numeric coefficients, so that trap does not arise here. It does arise as soon as the divisor itself depends on x.
Common mistakes
- Doing an operation to only one side — whatever you do to the left you must do to the right, or the equation stops being balanced.
- Forgetting to distribute a negative sign across parentheses — −(x − 3) is −x + 3, not −x − 3.
- Dividing only one term by the coefficient — when dividing 3x + 6 by 3, every term divides: x + 2.
- Trying to solve a quadratic with this tool — for x² terms, use the Quadratic Equation Solver instead.
Frequently asked questions
What is a linear equation?
An equation in which the unknown variable appears only to the first power, such as 3x + 7 = 28. There are no squared terms, roots, or variables multiplied together.
What does "no solution" mean?
It means no value of x can make the equation true, usually because the x terms cancel but the constants differ — for example 2x + 1 = 2x + 3 simplifies to 1 = 3, which is never true.
How do I check my answer?
Substitute your value of x back into the original equation. If both sides are equal, the answer is correct. The solver does this automatically and shows the check.
Can a linear equation have two answers?
Not while it stays linear in one variable. Two answers usually means the equation was quadratic, or that an identity was mistaken for a pair of solutions. The linear cases are one solution, no solution, or every number.
Why did the sign of the answer flip?
A term was usually moved without being subtracted from both sides, or a negative was distributed only onto the first term in parentheses. −(x − 3) equals −x + 3. Substitution catches a sign error immediately.
Try it yourself
Put the method into practice with the matching calculator.
Open the Linear Equation Solver