Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Linear Equations






First-Degree Equations and the Foundation of Solving

A linear equation in one variable is the simplest type of algebraic equation: the unknown appears only to the first power, and — provided the coefficient is nonzero — exactly one solution exists. The methods used to solve linear equations are elementary, but they are not trivial. Every technique for handling more complex equations relies on the same core logic: transform the equation into a simpler equivalent form by applying reversible operations. Mastering that logic here makes everything that follows possible.

Key Terms

Equation Basics

Equation— a statement that two expressions are equal
Solution— the value of the variable that makes both sides equal
Variable— the unknown quantity being solved for

Classification

Degree of an Equation— linear equations have degree 11
Standard Form— ax+b=0ax + b = 0
Coefficient— the numerical factor aa multiplying the variable
Conditional Equation— has exactly one solution when a≠0a \neq 0
Identity— arises when variable terms cancel leaving a true statement
Contradiction— arises when variable terms cancel leaving a false statement
Equivalent Equations— solving produces a chain of equivalent equations

See All Algebra Definitions →


Definition and Standard Form

Six equations in one unknown. Which of them belong to the simplest family of equations?
A: 3x−7=2x+53x - 7 = 2x + 5 \quad B: x4+1=3\frac{x}{4} + 1 = 3 \quad C: x2=9x^2 = 9 \quad D: 2x=6\frac{2}{x} = 6 \quad E: 5(x−2)=3x5(x - 2) = 3x \quad F: x=4\sqrt{x} = 4
Collecting everything on one side settles it: in A, B and E, x appears only to the first power; in C, D and F it does not.
equationafter collecting termshow x appearslinear?
Ax − 12 = 0to the first poweryes
Bx/4 − 2 = 0to the first power — 4 is a numberyes
Cx² − 9 = 0squaredno
D2/x − 6 = 0in a denominatorno
E2x − 10 = 0to the first poweryes
F√x − 4 = 0under a rootno
C, D and F involve x in some other way: squared, in a denominator, or under a root.
Not every linear equation arrives in standard form. The equation 3x−7=2x+53x - 7 = 2x + 5 is linear because, after collecting terms, it reduces to x−12=0x - 12 = 0. The equation x4+1=3\frac{x}{4} + 1 = 3 is also linear — the fraction involves only a numerical denominator, not a variable one. Recognition matters: any equation where the variable appears solely to the first power, with no products or compositions involving the variable, is linear regardless of how it is initially presented.
The definition
A linear equation in one variable is an equation that can be rewritten as ax+b=0ax + b = 0 with a≠0a \neq 0, so that xx appears only to the first power.
A linear equation in one variable is any equation that can be written as
Definition and Standard Form
ax+b=0ax + b = 0
where aa and bb are real constants and a≠0a \neq 0. The variable xx appears only to the first power — no x2x^2, no x\sqrt{x}, no xx in a denominator. The word "linear" reflects the geometric fact that the graph of y=ax+by = ax + b is a straight line, and the solution of ax+b=0ax + b = 0 is the point where that line crosses the horizontal axis.
So A, B and E are linear equations; C, D and F are not.
Every linear equation has exactly one solution, x = −b/a — the point where a straight line crosses the axis.
The solution is immediate from standard form. Subtracting bb and dividing by aa gives x=−bax = -\frac{b}{a}.
THEOREM
This single value is the only solution, and it always exists when a≠0a \neq 0. Linear equations never produce two solutions, infinitely many solutions, or no solutions — as long as the coefficient of xx is genuinely nonzero.
y0510n = 0x-8-7-6-5-4-3-2-10123456785−x + 5 = 0
−x + 5 = 0: the line crosses the axis at x = 5

The standard form ax + b = 0 asks where the line y = ax + b meets the x-axis, and for −x + 5 that is x = 5, the single marked crossing. The condition a ≠ 0 is what keeps the line from being horizontal, which is what guarantees the crossing exists. Tilt the line by changing a on the equation visual explorer.

Solving is the algebra that locates this crossing without drawing it.
The definition needs a ≠ 0: when the x terms cancel, something different happens.
3x+1=3x+43x + 1 = 3x + 4 collapses to 1=41 = 4 and has no solution, while 2x+6=2(x+3)2x + 6 = 2(x + 3) holds for every xx. These cases are treated in special cases.
The rest of the page covers the properties of equality, solving single-step and multi-step equations, equations with parentheses, fractions and decimals, special cases, and literal equations.

Properties of Equality

Solving a linear equation means transforming it into an equivalent equation where the variable stands alone. Two properties of equality make this possible, and they are the only tools required.

RULEAddition property
The addition property states that adding or subtracting the same quantity on both sides of an equation produces an equivalent equation.

If x+5=12x + 5 = 12, then subtracting 55 from both sides gives x=7x = 7. The solution set has not changed — it has only become visible. This property works because equality is preserved when identical operations are applied symmetrically.

RULEMultiplication property
The multiplication property states that multiplying or dividing both sides by any nonzero constant also produces an equivalent equation.

If 3x=213x = 21, then dividing both sides by 33 gives x=7x = 7. The restriction to nonzero multipliers is critical: multiplying both sides by zero collapses every equation to 0=00 = 0, destroying all information about the original solution.

These two properties generate every valid algebraic step in the solution of a linear equation. Combining them in sequence — first clearing additive terms, then clearing the coefficient of xx — isolates the variable systematically.
Property Operation Note
Addition add or subtract the same quantity on both sides preserves the solution set
Multiplication multiply or divide both sides by a nonzero constant multiplier ≠ 0 essential — multiplying by 0 destroys the equation
Each legal step does the same thing to both sides, so the solution set never changes; it only comes into view.

Solving Single-Step and Multi-Step Equations

Fact: Algebra is named after this step
The word algebra comes from al-jabr, Arabic for restoring, in al-Khwarizmi's ninth-century book on equations. It named exactly this move: a subtracted term is removed from one side by adding it to both sides.

A single-step equation requires exactly one application of the properties of equality. The equation x−9=4x - 9 = 4 is solved by adding 99 to both sides, yielding x=13x = 13. The equation −5x=40-5x = 40 is solved by dividing both sides by −5-5, yielding x=−8x = -8. In each case, one operation undoes the one operation binding the variable.

Multi-step equations demand a sequence of operations. Consider 4x−7=2x+114x - 7 = 2x + 11. The variable appears on both sides and constants are mixed in. The strategy proceeds in stages: gather all variable terms on one side and all constant terms on the other, then isolate the variable.

Solving Single-Step and Multi-Step Equations
4x−7=2x+114x - 7 = 2x + 11

Subtract 2x2x from both sides:

Solving Single-Step and Multi-Step Equations
2x−7=112x - 7 = 11

Add 77 to both sides:

Solving Single-Step and Multi-Step Equations
2x=182x = 18

Divide both sides by 22:

Solving Single-Step and Multi-Step Equations
x=9x = 9

Pitfall: Moving a term without changing its sign
Carrying −7-7 across unchanged turns 2x−7=112x - 7 = 11 into 2x=11−7=42x = 11 - 7 = 4, so x=2x = 2. Adding 77 to both sides gives 2x=182x = 18 and x=9x = 9.

The order of these steps is flexible — subtracting 2x2x first or adding 77 first both reach the same result — but the underlying logic is rigid: every step must preserve equivalence, and each step must bring the equation closer to the form x=valuex = \text{value}.

To solve your own linear equation with each step shown, use the linear equation solver.
Step Action Example
1 clear parentheses (distribute) 3(x − 2) → 3x − 6
2 clear fractions or decimals (multiply by LCD or power of 10) x/3 + 1 = 5 → ×3 → x + 3 = 15
3 gather variable terms on one side 4x − 7 = 2x + 11 → 2x − 7 = 11
4 gather constants on the other side 2x − 7 = 11 → 2x = 18
5 isolate the variable 2x = 18 → x = 9

Equations with Parentheses

When an equation contains parentheses, the distributive property clears them before any collecting or isolating takes place. The equation 3(2x−5)=4x+13(2x - 5) = 4x + 1 begins with distribution on the left:

Equations with Parentheses
6x−15=4x+16x - 15 = 4x + 1

From here, the procedure is identical to any multi-step equation. Subtract 4x4x from both sides to get 2x−15=12x - 15 = 1, add 1515 to get 2x=162x = 16, and divide by 22 to reach x=8x = 8.

Nested parentheses require working from the innermost grouping outward.

Example
The equation 2[3(x+1)−4]=102[3(x + 1) - 4] = 10 simplifies as follows: first distribute the 33 inside the brackets to get 2[3x+3−4]=102[3x + 3 - 4] = 10, then simplify inside the brackets to 2[3x−1]=102[3x - 1] = 10, then distribute the 22 to obtain 6x−2=106x - 2 = 10, and finally solve to get x=2x = 2.

A persistent source of error is the negative sign preceding parentheses. In the expression −(x+4)-(x + 4), the negative distributes to every term inside, producing −x−4-x - 4. Writing −x+4-x + 4 instead is one of the most common algebraic mistakes, and it changes the solution entirely.

Pitfall: Distributing a minus sign to the first term only
Opening 5x−(2x+4)=115x - (2x + 4) = 11 as 5x−2x+4=115x - 2x + 4 = 11 gives 3x=73x = 7, so x=73x = \frac{7}{3}. Both terms change sign: 5x−2x−4=115x - 2x - 4 = 11, so x=5x = 5.

Subtracting a whole bracket is where this matters in practice. In 5x−(2x+4)=115x - (2x + 4) = 11, the bracket is removed first and its terms are combined with 5x5x; only then do the usual steps of collecting and isolating begin. Substituting the result into the original equation, with the bracket still in place, confirms the value of xx.

Parentheses add one step, not a new method: distribute fully, signs included, then solve as usual.

Equations with Fractions

Fractional coefficients do not change the type of an equation, but they complicate arithmetic. Clearing all fractions at once simplifies the process. The technique is to multiply every term on both sides by the least common denominator of all fractions present.

Consider the equation x3+x−24=5\frac{x}{3} + \frac{x - 2}{4} = 5. The LCD of 33 and 44 is 1212. Multiplying every term by 1212 gives:

Equations with Fractions
4x+3(x−2)=604x + 3(x - 2) = 60

Distributing and collecting:

Equations with Fractions
4x+3x−6=604x + 3x - 6 = 60
Equations with Fractions
7x=667x = 66
Equations with Fractions
x=667x = \frac{66}{7}

Pitfall: Multiplying only the fractions by the LCD
Multiplying the two fractions by 1212 but leaving the 55 gives 4x+3(x−2)=54x + 3(x - 2) = 5, so x=117x = \frac{11}{7}. The 55 becomes 6060 too, and x=667x = \frac{66}{7}.

The multiplication by 1212 is valid because 1212 is a nonzero constant — it does not depend on xx. The solution set is preserved exactly. After clearing, the equation is a standard multi-step linear equation with integer coefficients.

A crucial distinction separates these equations from rational equations.

RULE
When the denominators are numerical constants (like 33, 44, 1212), clearing them is safe and changes nothing about the solution set. When the variable itself appears in a denominator, the equation is no longer linear — it is rational, and clearing that denominator introduces domain restrictions and the possibility of extraneous solutions.

Equations with Decimals

Decimal coefficients are fractions in disguise, and the same clearing strategy applies. Multiplying both sides by an appropriate power of 1010 converts every coefficient to an integer.

The equation 0.3x+1.25=0.8x−0.50.3x + 1.25 = 0.8x - 0.5 has decimals extending to the hundredths place. Multiplying every term by 100100 produces:

Equations with Decimals
30x+125=80x−5030x + 125 = 80x - 50

Collecting variable terms on the right and constants on the left:

Equations with Decimals
175=50x175 = 50x
Equations with Decimals
x=17550=72x = \frac{175}{50} = \frac{7}{2}

The choice of multiplier depends on the finest decimal present. If the most decimal places in any coefficient is one, multiply by 1010. If two, multiply by 100100. This is equivalent to rewriting each decimal as a fraction and clearing denominators, compressed into a single step.

Special Cases

The procedure for solving a linear equation assumes that the variable survives the simplification process. When it does not, two outcomes are possible, and neither produces a finite solution set.

An identity arises when simplification eliminates the variable and leaves a true numerical statement.

Example
The equation 2(x+3)=2x+62(x + 3) = 2x + 6 distributes to 2x+6=2x+62x + 6 = 2x + 6. Subtracting 2x2x from both sides gives 6=66 = 6, which is true regardless of xx. Every real number satisfies the original equation, and the solution set is R\mathbb{R}.

The equation was not conditional — it was a restatement of an algebraic identity.

A contradiction arises when simplification eliminates the variable and leaves a false numerical statement.

Example
The equation 3(x+1)=3x+83(x + 1) = 3x + 8 distributes to 3x+3=3x+83x + 3 = 3x + 8. Subtracting 3x3x from both sides gives 3=83 = 8, which is false for every value of xx. No real number satisfies the equation, and the solution set is empty.

RULE
Both situations are recognizable during solving: the variable terms cancel completely, and the remaining constant equation decides between identity and contradiction. If the constants match, every value works. If they clash, nothing does.

Pitfall: Taking an identity for no solution
Reading 6=66 = 6 as no solution, because xx has cancelled, discards every answer. 2(x+3)=2x+62(x + 3) = 2x + 6 holds for every xx, for example x=1x = 1 gives 8=88 = 8. The solution set is R\mathbb{R}.

In both examples the working ends on a line with no xx in it, after the same distribute-and-subtract steps used throughout the page. The answer is then a whole solution set rather than a single number, so it is written as R\mathbb{R} or as the empty set instead of x=valuex = \text{value}.
Outcome When it occurs Solution set Example
Conditional a ≠ 0 after simplification one value: x = −b/a 2x = 18 → x = 9
Identity variable terms cancel, true constant remains all real numbers 2(x + 3) = 2x + 6 → 6 = 6
Contradiction variable terms cancel, false constant remains empty 3(x + 1) = 3x + 8 → 3 = 8
y024n = 3x-8-7-6-5-4-3-2-10123456782 = 3
2 = 3: a horizontal line that never reaches the level

When the variable cancels the left side is a constant, a horizontal line, and either it coincides with the level line, every x a solution, or, as here with 2 = 3, it runs parallel below it and there is no solution at all. No crossing, no marble. Compare the two degenerate cases on the equation visual explorer.

Both outcomes are legitimate answers, and the picture shows why neither is a mistake.

Literal Equations and Formulas

A literal equation contains multiple variables, and the task is to solve for one of them in terms of the others. The same properties of equality apply — the only difference is that the "constants" being manipulated are themselves variables.

Consider the equation d=rtd = rt, which relates distance, rate, and time. Solving for tt means isolating it on one side. Dividing both sides by rr (assuming r≠0r \neq 0) gives t=drt = \frac{d}{r}. The variable rr is treated as a nonzero constant throughout, just as a numerical coefficient would be.

More involved formulas demand the same multi-step approach used for numerical linear equations. To isolate rr in the formula A=P(1+rt)A = P(1 + rt), begin by dividing both sides by PP:

Literal Equations and Formulas
AP=1+rt\frac{A}{P} = 1 + rt

Subtract 11:

Literal Equations and Formulas
AP−1=rt\frac{A}{P} - 1 = rt

Divide by tt:

Literal Equations and Formulas
r=1t(AP−1)r = \frac{1}{t}\left(\frac{A}{P} - 1\right)

Each step is a reversible operation that preserves equivalence, applied to letters instead of numbers. The logic is identical to solving 7=2(1+3x)7 = 2(1 + 3x) — only the symbols differ.

To rearrange a formula for any variable with each step shown, use the literal equation solver.

Summary of Linear Equation Forms

The forms covered above all reduce to the same standard multi-step procedure once a single preparation step is applied. The table below collects each form, an example, the preparation that converts it to a clean multi-step equation, and the technique that finishes it.
Form Example Preparation step Then solve as
Single-step x − 9 = 4 none apply one property of equality
Multi-step 4x − 7 = 2x + 11 none (already simplified) gather, then isolate
With parentheses 3(2x − 5) = 4x + 1 distribute multi-step
With fractions x/3 + (x−2)/4 = 5 multiply every term by the LCD multi-step
With decimals 0.3x + 1.25 = 0.8x − 0.5 multiply by 10ⁿ to clear decimals multi-step
Literal A = P(1 + rt), solve for r treat other letters as constants multi-step

Common Pitfalls

Four mistakes account for most wrong answers to linear equations. Each one is marked where it happens in the sections above; here each is worked through in full, with the wrong and the right working side by side.
DownloadPNG2×PDF
1Moving a term without changing its sign
A constant is carried to the other side of the equation, but its sign is left as it was. "Moving" a term is shorthand for adding or subtracting it on both sides, and the shorthand hides which of the two was used.
Start
2x−7=112x - 7 = 11
Wrong turn
Error here
  ⟹  2x=11−7=4\implies 2x = 11 - 7 = 4
  ⟹  x=2\implies x = 2
Right path
Add 77 to both sides.
2x−7+7=11+72x - 7 + 7 = 11 + 7
  ⟹  2x=18\implies 2x = 18
  ⟹  x=9\implies x = 9
Why it happensThe phrase "move it to the other side" says where the term goes but not what happens to it, so the addition property is replaced by a picture of the term jumping across the equals sign.
How to checkSubstitute into the original equation 4x−7=2x+114x - 7 = 2x + 11. x=2x = 2 gives 11 on the left and 1515 on the right. x=9x = 9 gives 2929 on both sides.
2Distributing a minus sign to the first term only
A bracket with a minus sign in front of it is opened, and only the first term inside changes sign.
Start
5x−(2x+4)=115x - (2x + 4) = 11
Wrong turn
Error here
  ⟹  5x−2x+4=11\implies 5x - 2x + 4 = 11
  ⟹  3x=7\implies 3x = 7
  ⟹  x=73\implies x = \frac{7}{3}
Right path
The minus sign is a factor of −1-1 for the whole bracket, so −(2x+4)=−2x−4-(2x + 4) = -2x - 4.
5x−2x−4=115x - 2x - 4 = 11
  ⟹  3x=15\implies 3x = 15
  ⟹  x=5\implies x = 5
Why it happensThe minus sign is written right next to the first term, so it looks as though it belongs to that term alone.
How to checkSubstitute with the bracket still in place. x=5x = 5 gives 25−(10+4)=1125 - (10 + 4) = 11. x=73x = \frac{7}{3} gives 353−263=3\frac{35}{3} - \frac{26}{3} = 3, not 1111.
3Multiplying only the fractions by the LCD
To clear the fractions, each fraction is multiplied by the LCD, but the whole-number term on the other side is left as it was. The two sides are then multiplied by different numbers, and the equation changes.
Start
x3+x−24=5\frac{x}{3} + \frac{x - 2}{4} = 5
Wrong turn
Error here
  ⟹  4x+3(x−2)=5\implies 4x + 3(x - 2) = 5
  ⟹  7x=11\implies 7x = 11
  ⟹  x=117\implies x = \frac{11}{7}
Right path
Multiply every term on both sides, including the 55, by 1212.
4x+3(x−2)=604x + 3(x - 2) = 60
  ⟹  7x−6=60\implies 7x - 6 = 60
  ⟹  7x=66\implies 7x = 66
  ⟹  x=667\implies x = \frac{66}{7}
Why it happensThe attention is on the denominators, so a term without one seems to need nothing.
How to checkSubstitute into the original equation. x=667x = \frac{66}{7} gives 227+137=5\frac{22}{7} + \frac{13}{7} = 5. x=117x = \frac{11}{7} gives 512\frac{5}{12} on the left, exactly 1212 times too small.
4Taking an identity for no solution
The variable terms cancel, and the disappearance of xx is taken to mean that no number solves the equation.
Start
2(x+3)=2x+62(x + 3) = 2x + 6
  ⟹  2x+6=2x+6\implies 2x + 6 = 2x + 6
  ⟹  6=6\implies 6 = 6
Wrong turn
Error here
  ⟹  no solution\implies \text{no solution}
Right path
6=66 = 6 is true and contains no xx, so it is true whatever xx is. The solution set is R\mathbb{R}. "No solution" belongs to a false statement such as the 3=83 = 8 of 3(x+1)=3x+83(x + 1) = 3x + 8.
Why it happensIn a conditional equation the working ends with x=valuex = \text{value}, so a last line without xx looks like a dead end rather than an answer.
How to checkSubstitute any two numbers. x=1x = 1 gives 8=88 = 8; x=−10x = -10 gives −14=−14-14 = -14.
Common pitfalls in linear equations·/algebra/equations/linearLearn Math Class
Three of the four slips turn the equation into a different one: a sign is lost when a term moves, a minus reaches only part of a bracket, or the clearing step skips the term on the right. Substituting the answer into the original equation exposes each of them, because the two sides stop agreeing. The fourth is a slip in reading the result: when the variable cancels, a true statement such as 6=66 = 6 means every number is a solution, and only a false one such as 3=83 = 8 means none.

Linear Equations FAQ

What does it mean when the variable disappears while solving?

+
The constants left behind decide. If they agree, as when 2(x+3)=2x+62(x + 3) = 2x + 6 reduces to 6=66 = 6, the equation was an identity and every real number solves it. If they clash, as when 3(x+1)=3x+83(x + 1) = 3x + 8 reduces to 3=83 = 8, it is a contradiction and nothing solves it. Cancelling variables is not an error.Read more →

Why can't you multiply both sides by zero?

+
Because it destroys the information you are trying to extract. Multiplying by zero turns any equation into 0=00 = 0, which is true for every value of the variable, so the original solution vanishes rather than being preserved. The multiplication property of equality holds for any nonzero constant precisely to rule this out.Read more →

Why is −(x+4)-(x + 4) equal to −x−4-x - 4 rather than −x+4-x + 4?

+
Because the minus sign is a factor of −1-1 distributed across the whole bracket, reaching every term inside rather than only the first. So −(x+4)=−x−4-(x + 4) = -x - 4, and likewise −(x−4)=−x+4-(x - 4) = -x + 4. Getting the second term's sign wrong changes the solution outright, which makes this one of the most common algebra errors.Read more →

Why is it called a linear equation?

+
Because of its graph. The standard form ax+b=0ax + b = 0 comes from the expression ax+bax + b, and y=ax+by = ax + b is a straight line. Solving the equation finds where that line crosses the xx-axis, at x=−bax = -\frac{b}{a}; for −x+5=0-x + 5 = 0 the crossing is x=5x = 5. The condition a≠0a \neq 0 keeps the line from being horizontal, which is why exactly one crossing exists.Read more →

Is an equation with fractions still linear?

+
Yes, as long as every denominator is a number. In x4+1=3\frac{x}{4} + 1 = 3 the 44 is a constant, so multiplying through by it gives x+4=12x + 4 = 12, an ordinary linear equation with solution x=8x = 8. Once xx itself sits in a denominator, as in 2x=6\frac{2}{x} = 6, the equation is rational instead, and clearing that denominator brings domain restrictions and the chance of extraneous solutions.Read more →

Where does the word algebra come from?

+
From al-jabr, Arabic for restoring, in al-Khwarizmi's ninth-century book on equations. The word named one move: a subtracted term is removed from one side by adding it to both sides, as when x−9=4x - 9 = 4 becomes x=13x = 13. That move is the addition property of equality, still the first tool used to solve a linear equation.Read more →

Do you multiply by 10 or 100 to clear decimals?

+
It depends on the decimal with the most places: one place needs 1010, two places need 100100. In 0.3x+1.25=0.8x−0.50.3x + 1.25 = 0.8x - 0.5 the 1.251.25 has two places, so multiplying every term by 100100 gives 30x+125=80x−5030x + 125 = 80x - 50, all integers, and then x=72x = \frac{7}{2}. Multiplying by 1010 would leave 12.512.5 behind.Read more →