Allday Education

Combining Like Terms

An expression like 7a+5b3a+b7a + 5b - 3a + b is built from terms — the pieces separated by plus and minus signs. Like terms are terms with the exact same variable part: 7a7a and 3a3a are like terms, and 5b5b and bb are like terms. Combining like terms means merging each matching group into a single term, shrinking the expression down to 4a+6b4a + 6b.

This is the basic cleanup move of algebra. You'll use it every time you simplify an expression, and it's the first step in solving most multi-step equations. The rule is short: same variable, same exponent — then add or subtract the coefficients.

What counts as a like term

Two terms are like terms when their variable parts match exactly — same variable, same exponent. 3x3x and 7x7x are like terms. 5x25x^{2} and 2x2x are not, because the exponents differ. 4a4a and 4b4b are not, because the variables differ. Plain numbers (constants) like 88 and 3-3 are like terms with each other.

The coefficients don't have to match — only the variable parts do. And a variable with no number in front has a coefficient of 11: the term bb means 1b1b, and x-x means 1x-1x. Forgetting that hidden 11 is the most common slip in this skill.

How to combine

Keep the variable part, and add or subtract the coefficients. 3x+7x=10x3x + 7x = 10x — three xx's plus seven more xx's is ten xx's. The variable never changes and the exponent never changes; only the count in front does. In particular, 3x+7x3x + 7x is not 10x210x^{2}.

The sign in front of a term belongs to that term and travels with it. In 9k54k+29k - 5 - 4k + 2, the terms are 9k9k, 5-5, 4k-4k, and +2+2. Group them: 9k4k=5k9k - 4k = 5k and 5+2=3-5 + 2 = -3, so the expression simplifies to 5k35k - 3.

More than one variable

When an expression has several variables, sort the terms into groups — all the aa-terms, all the bb-terms, all the constants — and combine within each group. The groups never mix: 4a+6b4a + 6b is fully simplified, and it does not become 10ab10ab. Unlike terms sit side by side in the final answer, connected by their signs.

Worked examples

Example 1: one variable

Combine like terms: 5x+3x5x + 3x.

Both terms have the same variable part, xx5x+3x5x + 3x
Add the coefficients and keep the variable(5+3)x=8x(5 + 3)x = 8x

Answer: 8x8x

Example 2: variable terms and constants

Simplify 8m+43m+68m + 4 - 3m + 6.

Start with the expression8m+43m+68m + 4 - 3m + 6
Group the mm-terms8m3m=5m8m - 3m = 5m
Group the constants4+6=104 + 6 = 10
Write the simplified expression5m+105m + 10

Answer: 5m+105m + 10

Example 3: two variables and a hidden 1

Simplify 6a+2ba+5b6a + 2b - a + 5b.

Start with the expression — remember a-a means 1a-1a6a+2ba+5b6a + 2b - a + 5b
Group the aa-terms6a1a=5a6a - 1a = 5a
Group the bb-terms2b+5b=7b2b + 5b = 7b
Write the simplified expression5a+7b5a + 7b

Answer: 5a+7b5a + 7b

Example 4: exponents must match

Simplify 4x2+3xx2+6x4x^{2} + 3x - x^{2} + 6x.

Start with the expression4x2+3xx2+6x4x^{2} + 3x - x^{2} + 6x
Group the x2x^{2}-terms4x21x2=3x24x^{2} - 1x^{2} = 3x^{2}
Group the xx-terms3x+6x=9x3x + 6x = 9x
The two groups are unlike, so they stay separate3x2+9x3x^{2} + 9x

Answer: 3x2+9x3x^{2} + 9x

Try one yourself

Common questions

Can I combine 5x5x and 5x25x^{2}?

No. Like terms need the same variable raised to the same power, and xx and x2x^{2} are different powers. Matching coefficients don't matter — 5x+5x25x + 5x^{2} is already as simple as it gets.

What happens to the sign in front of a term?

It belongs to the term and moves with it. In 9y+24y9y + 2 - 4y, the middle of the expression contains 4y-4y, not 4y4y — so the yy-terms combine to 9y4y=5y9y - 4y = 5y. Reading each term with its sign is the whole trick.

Are 77 and 7x7x like terms?

No. 77 is a constant and 7x7x has a variable, so they can never merge. An answer like 5y+75y + 7 is fully simplified — a variable term and a plain number always stay separate.

Ready for more practice? Print the Combining Like Terms worksheet with an answer key.

Want the video version?

Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.

Try it for $1