Linear Equations In One Variable: Rules & Examples

#Algebra
TL;DR
Linear equations in one variable can be written in the form ax+b=0ax + b = 0. If a≠0a \neq 0 there is exactly one solution, x=−bax = -\frac{b}{a}; if a=0a = 0, there is no solution (b≠0b \neq 0) or every number is a solution (b=0b = 0).
RS
Ruchi Shah&Madhukar VLast updated on October 13, 202611 min read

What Is a Linear Equation in One Variable?

A linear equation in one variable is an equation with a single unknown that appears only to the first power: no squares, no square roots of the unknown, and no unknown in a denominator. The unknown is a variable, usually written xx, and 2x+3=112x + 3 = 11 is a typical example.

The name comes from graphs: an expression such as 2x+32x + 3, graphed as y=2x+3y = 2x + 3, is a straight line.

Equation

Linear in one variable?

Reason

2x+3=112x + 3 = 11

Yes

One variable, first power

x4−1=2\frac{x}{4} - 1 = 2

Yes

Dividing by a number is fine

x2=9x^{2} = 9

No

The variable is squared

x=3\sqrt{x} = 3

No

The variable is under a root

1x=5\frac{1}{x} = 5

No

The variable is in a denominator

2x+3y=112x + 3y = 11

No

Two variables

Standard Form: ax+b=0ax + b = 0

The standard form of a linear equation in one variable is ax+b=0ax + b = 0, where aa and bb are real numbers and a≠0a \neq 0. The number aa is the coefficient of xx, the number multiplying it.

Solving the standard form takes two steps:

ax+b=0ax + b = 0

ax=−b(subtract b from both sides)ax = -b \quad (\text{subtract } b \text{ from both sides})

x=−ba(divide both sides by a, allowed because a≠0)x = -\frac{b}{a} \quad (\text{divide both sides by } a, \text{ allowed because } a \neq 0)

Any linear equation can be moved into this shape. For 3x+4=x+123x + 4 = x + 12, subtract xx and 1212 from both sides to get 2x−8=02x - 8 = 0, so a=2a = 2, b=−8b = -8 and x=−−82=4x = -\frac{-8}{2} = 4. The page on the standard form of linear equations covers the form in more detail.

How Many Solutions Can a Linear Equation in One Variable Have?

After you collect all the xx terms on one side and all the numbers on the other, every equation of this kind becomes ax+b=0ax + b = 0 for some numbers aa and bb. What happens next depends on aa:

  • If a≠0a \neq 0: exactly one solution, x=−bax = -\frac{b}{a}.

  • If a=0a = 0 and b≠0b \neq 0: the xx terms cancel and you are left with a false statement such as −1=0-1 = 0. No number works, so there is no solution.

  • If a=0a = 0 and b=0b = 0: the xx terms cancel and you are left with 0=00 = 0. Every number works.

Strictly, the standard form needs a≠0a \neq 0, so the last two cases are equations that look linear until the xx terms cancel. Many textbooks still treat all three as types of linear equation in one variable: OpenStax College Algebra 2e, section 2.2 calls them conditional, inconsistent and identity equations.

Type

After simplifying

Number of solutions

Example

Conditional

x=x = one value

Exactly one

2x+3=112x + 3 = 11 gives x=4x = 4

Inconsistent

A false statement

None

x+1=x+2x + 1 = x + 2 gives 1=21 = 2

Identity

A true statement

Every number

2(x+1)=2x+22(x + 1) = 2x + 2 gives 2=22 = 2

The graph shows the same three cases. Move everything to one side and graph y=ax+by = ax + b: the solutions are the points where this line meets the x-axis. A slanted line (a≠0a \neq 0) crosses the x-axis exactly once, at x=−bax = -\frac{b}{a}; a horizontal line (a=0a = 0) either runs parallel to the x-axis and never meets it, or lies on it.

How Many Solutions Can a Linear Equation in One Variable Have

You can also graph each side of the original equation as its own line; the solution is where the two lines meet. Lines with different slopes meet once, parallel lines (same slope, different intercept) never meet, and two copies of the same line meet everywhere. To try this, type y=2x−8y = 2x - 8 into the Desmos graphing calculator and change the numbers.

How to Solve a Linear Equation in One Variable

An equation is a balance: the two sides are equal, and they stay equal as long as you do the same thing to both sides. That rule comes from the properties of equality.

  1. Clear brackets by multiplying them out.

  2. Clear fractions by multiplying every term by the lowest common denominator.

  3. Collect the xx terms on one side and the numbers on the other.

  4. Divide both sides by the coefficient of xx.

  5. Check the answer by substituting it into the original equation.

How to Solve a Linear Equation in One Variable

For one-step and two-step cases, see two-step equations and how to solve for x.

Examples of Linear Equations in One Variable

Example 1

Solve 5x−7=2x+85x - 7 = 2x + 8.

5x−7=2x+85x - 7 = 2x + 8

3x−7=8(subtract 2x from both sides)3x - 7 = 8 \quad (\text{subtract } 2x \text{ from both sides})

3x=15(add 7 to both sides)3x = 15 \quad (\text{add } 7 \text{ to both sides})

x=5(divide both sides by 3)x = 5 \quad (\text{divide both sides by } 3)

Check: 5(5)−7=185(5) - 7 = 18 and 2(5)+8=182(5) + 8 = 18.

Final answer: x=5x = 5

Example 2

Solve 4−2(x−3)=124 - 2(x - 3) = 12.

A first attempt often multiplies out the bracket as 4−2x−6=124 - 2x - 6 = 12. That gives −2−2x=12-2 - 2x = 12, so −2x=14-2x = 14 and x=−7x = -7. Check it: 4−2(−7−3)=4+20=244 - 2(-7 - 3) = 4 + 20 = 24, not 1212, so something went wrong.

The −2-2 multiplies both terms in the bracket, and (−2)×(−3)=+6(-2) \times (-3) = +6:

4−2(x−3)=124 - 2(x - 3) = 12

4−2x+6=12(multiply out the bracket)4 - 2x + 6 = 12 \quad (\text{multiply out the bracket})

10−2x=12(combine 4+6)10 - 2x = 12 \quad (\text{combine } 4 + 6)

−2x=2(subtract 10 from both sides)-2x = 2 \quad (\text{subtract } 10 \text{ from both sides})

x=−1(divide both sides by −2)x = -1 \quad (\text{divide both sides by } -2)

Check: 4−2(−1−3)=4+8=124 - 2(-1 - 3) = 4 + 8 = 12.

Final answer: x=−1x = -1

Examples of Linear Equations in One Variable

Example 3

Solve x3−14=x6\frac{x}{3} - \frac{1}{4} = \frac{x}{6}.

The lowest common denominator of 3, 4 and 6 is 12, so multiply every term by 12.

12×x3−12×14=12×x612 \times \frac{x}{3} - 12 \times \frac{1}{4} = 12 \times \frac{x}{6}

4x−3=2x4x - 3 = 2x

2x−3=0(subtract 2x from both sides)2x - 3 = 0 \quad (\text{subtract } 2x \text{ from both sides})

2x=3(add 3 to both sides)2x = 3 \quad (\text{add } 3 \text{ to both sides})

x=32(divide both sides by 2)x = \frac{3}{2} \quad (\text{divide both sides by } 2)

Check: 32÷3=12\frac{3}{2} \div 3 = \frac{1}{2}, and 12−14=14\frac{1}{2} - \frac{1}{4} = \frac{1}{4}; also 32÷6=14\frac{3}{2} \div 6 = \frac{1}{4}.

Final answer: x=32x = \frac{3}{2}

Example 4

Solve 3(x+2)=3x+53(x + 2) = 3x + 5.

3(x+2)=3x+53(x + 2) = 3x + 5

3x+6=3x+5(multiply out the bracket)3x + 6 = 3x + 5 \quad (\text{multiply out the bracket})

6=5(subtract 3x from both sides)6 = 5 \quad (\text{subtract } 3x \text{ from both sides})

The xx terms cancelled and left a false statement. Here a=0a = 0 and b=1b = 1, so no value of xx can make the two sides equal.

Final answer: no solution

Solving Word Problems With Linear Equations

A word problem becomes a linear equation once each phrase is translated into algebra. Say what the variable stands for before you write anything else.

English phrase

Algebra

"is", "equals", "gives"

==

"the sum of", "more than", "increased by"

++

"less than", "decreased by"

−- (watch the order)

"twice", "times", "the product of"

multiply, for example 2x2x

"per", "for each"

a rate: multiply by the number of units

Example 5

A taxi charges a fixed 50 rupees plus 12 rupees for each kilometre. A ride costs 146 rupees. How long was the ride?

Let xx be the distance in kilometres.

50+12x=14650 + 12x = 146

12x=96(subtract 50 from both sides)12x = 96 \quad (\text{subtract } 50 \text{ from both sides})

x=8(divide both sides by 12)x = 8 \quad (\text{divide both sides by } 12)

Check: 50+12×8=50+96=14650 + 12 \times 8 = 50 + 96 = 146.

Final answer: 8 kilometres

Example 6

Five less than twice a number is 17. Find the number.

Let xx be the number. "Five less than twice a number" means start with 2x2x and take 5 away, so it is 2x−52x - 5, not 5−2x5 - 2x.

2x−5=172x - 5 = 17

2x=22(add 5 to both sides)2x = 22 \quad (\text{add } 5 \text{ to both sides})

x=11(divide both sides by 2)x = 11 \quad (\text{divide both sides by } 2)

Check: 2×11−5=172 \times 11 - 5 = 17.

Final answer: 11

Solving Word Problems With Linear Equations

More real situations, such as costs, speeds and mixtures, are worked through on the applications of linear equations page.

Common Mistakes With Linear Equations in One Variable

Mistake 1: Moving a term without changing its sign

Where it slips in: Moving a number across the equals sign, as in 4x+5=214x + 5 = 21.

Don't do this: Writing 4x=21+54x = 21 + 5, which gives x=6.5x = 6.5.

The correct way: Subtract 5 from both sides: 4x=164x = 16, so x=4x = 4. "Moving" a term is shorthand for doing the opposite operation to both sides, which is why its sign changes.

Mistake 2: Losing the sign when dividing by a negative coefficient

Where it slips in: The last step, when the coefficient is negative, as in −2x=2-2x = 2.

Don't do this: Dividing by 2 instead of −2-2 and writing x=1x = 1.

The correct way: Divide by the whole coefficient, sign included: x=2−2=−1x = \frac{2}{-2} = -1. Substituting back catches this at once, because −2×1=−2-2 \times 1 = -2, not 22.

Mistake 3: Combining unlike terms

Where it slips in: Simplifying one side before solving, as in 2x+3+2x2x + 3 + 2x.

Don't do this: Writing 7x7x, as if the 33 were 3x3x.

The correct way: Add only the xx terms: 2x+3+2x=4x+32x + 3 + 2x = 4x + 3. The 3 stays a plain number.

Mistake 4: Writing x=0x = 0 when the xx terms cancel

Where it slips in: Equations such as 3(x+2)=3x+53(x + 2) = 3x + 5, where both sides have the same xx term.

Don't do this: Deciding that x=0x = 0, or that an arithmetic error must have happened. When the xx terms vanish, the usual reaction is to go back and hunt for a mistake that is not there.

The correct way: Read the statement that is left. A false statement such as 6=56 = 5 means no solution; a true statement such as 0=00 = 0 means every number is a solution.

Practice Problems

  1. Solve 7x−4=3x+87x - 4 = 3x + 8.

  2. Solve 5(x+4)=2x+115(x + 4) = 2x + 11.

  3. Solve 6x+1=2x+46x + 1 = 2x + 4.

  4. Solve x2+1=x3+3\frac{x}{2} + 1 = \frac{x}{3} + 3.

  5. Solve 2(3x−1)=6x+42(3x - 1) = 6x + 4.

  6. Solve 4(x−2)+3=4x−54(x - 2) + 3 = 4x - 5.

  7. A number is tripled and then decreased by 7, giving 20. Find the number.

Answers

  1. 4x=124x = 12, so x=3x = 3. Check: 7(3)−4=177(3) - 4 = 17 and 3(3)+8=173(3) + 8 = 17.

  2. 5x+20=2x+115x + 20 = 2x + 11, so 3x=−93x = -9 and x=−3x = -3. Check: 5(1)=55(1) = 5 and 2(−3)+11=52(-3) + 11 = 5.

  3. 4x=34x = 3, so x=34x = \frac{3}{4}. Check: 6×34+1=1126 \times \frac{3}{4} + 1 = \frac{11}{2} and 2×34+4=1122 \times \frac{3}{4} + 4 = \frac{11}{2}.

  4. Multiply by 6: 3x+6=2x+183x + 6 = 2x + 18, so x=12x = 12. Check: 6+1=76 + 1 = 7 and 4+3=74 + 3 = 7.

  5. 6x−2=6x+46x - 2 = 6x + 4 leaves −2=4-2 = 4, which is false, so there is no solution.

  6. 4x−5=4x−54x - 5 = 4x - 5 is true for every xx, so every number is a solution (an identity).

  7. 3x−7=203x - 7 = 20, so 3x=273x = 27 and x=9x = 9. Check: 3×9−7=203 \times 9 - 7 = 20.

Key Takeaways

  • Linear equations in one variable can be written as ax+b=0ax + b = 0; when a≠0a \neq 0 the only solution is x=−bax = -\frac{b}{a}.

  • If the xx terms cancel, a false statement means no solution and a true statement means every number is a solution.

  • Solving keeps the balance: do the same thing to both sides until xx is alone, then check in the original equation.

  • The most common errors are sign errors: when moving a term, multiplying out a bracket after a minus sign, and dividing by a negative coefficient.

What to Learn Next

  1. Graphing linear equations: see where y=ax+by = ax + b crosses the x-axis.

  2. Linear inequalities: replace the equals sign with << or >> and the answer becomes a range of numbers.

  3. Practice the seven problems above without looking at the answers. If a sign goes wrong, return to Example 2.

Want a live Bhanzu trainer to walk through more linear equation problems? Book a free demo class, online, or in person at our McKinney, TX center.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is a linear equation in one variable?
It is an equation with a single unknown raised only to the first power, such as 2x+3=112x + 3 = 11, that can be written in the standard form ax+b=0ax + b = 0 with a≠0a \neq 0. It always has exactly one solution.
How many solutions do linear equations in one variable have?
Exactly one, as long as the equation is a genuine conditional equation. Special cases reduce to an identity (infinitely many solutions) or an inconsistent statement (no solution).
What is the standard form of a linear equation in one variable?
The standard form is ax+b=0ax + b = 0, where aa and bb are real numbers and a≠0a \neq 0. Solving it gives x=−bax = -\frac{b}{a}.
Is x2+3=7x^{2} + 3 = 7 a linear equation in one variable?
No. The variable is squared, which makes it a quadratic equation. Linear equations keep the variable to the first power only.
How are linear equations in one variable different from those in two variables?
A one-variable equation like 2x=82x = 8 has a single number as its answer. A two-variable equation like 2x+3y=122x + 3y = 12 has infinitely many solution pairs and is drawn as a line on a graph rather than a single point.
How do you check your answer?
Substitute the value back into the original equation and confirm both sides give the same number.
✍️ Written By
Ruchi Shah
Ruchi Shah
Mathematics Educator
Ruchi Shah is a mathematics educator and curriculum designer with over 12 years of experience. She joined Bhanzu in 2022 as a full-time Mathematics Trainer, teaching live classes and working with students and parents. She has since moved into curriculum design where she builds curricula, academic planners and learning pathways for different grade levels.
LinkedIn
Madhukar V
Madhukar V
Math Columnist & Analyst
I see mathematics as more than just numbers and formulas—it is a way of thinking, questioning, and understanding the world around us. I work at the intersection of mathematics, EdTech, technology, and AI-powered learning, I enjoy exploring how mathematical ideas can be made simple, meaningful, and relatable. Through my articles, I aim to present mathematics with curiosity and a practical perspective, helping readers see the beauty and relevance behind every concept in a Bhanzu way.
LinkedIn
Related Articles
Book a FREE Demo ClassBook Now →