πAI Math Solver

Learn

Combining Like Terms: Three Steps, Why It Works, and Worked Examples

At a grocery checkout, the scanner reads 3 apples, then 5 more, and the receipt prints a single line: apples, 8. No cashier ever merges apples with oranges — 3 apples plus 5 oranges stays two lines forever. Algebra works the same way. The terms 5x and 4x are the same kind of goods, so combining like terms joins them on one line; 5x and x² are not, and no swap can make them so. Combining like terms is the scanner that cleans up a messy expression.

How to Combine Like Terms: The Three-Step Method

Why can the cashier merge those lines? Because the items scanned are the same kind of goods: the counts add, and the item name rides along unchanged. Combining like terms copies that move.

An algebra expression is messier than a receipt: 5x, 3, x², 4x, −2, and 2x² all jumbled together. Before combining like terms, send each term home. The figure below shows those six terms sorted into piles.

With the piles set, every combining like terms problem reduces to three steps:

  1. Identify the like terms. Same letters, same exponent on every letter — that is one family. Plain numbers form their own family.
  2. Regroup. Use the commutative property of addition to move family members together — the sign travels with each term.
  3. Add the coefficients. Add only the numbers in front; copy the letter part exactly as it was — the whole arithmetic of combining like terms.

Run the smallest combining like terms case. Three x's plus five x's make eight x's: 3x+5x=(3+5)x=8x3x + 5x = (3+5)x = 8x.

In letters it reads ax+bx=(a+b)xax + bx = (a+b)x — the one-line heart of combining like terms. Substitute x=10x = 10 as a check: the left side gives 3×10+5×10=803\times10 + 5\times10 = 80, and the right side gives 8×10=808\times10 = 80. Equal, so the merge lost nothing. Sort, regroup, add the coefficients — combining like terms in one breath.

5x + 3 + x² + 4x − 2 + 2x²5x3x²4x−22x²5x + 4xx² + 2x²3 − 2= 9x= 3x²= 1

Six terms sorted into piles: one pile of x, one of x², one of constants. Only within a pile can combining like terms happen; the piles keep their distance.

What Are Like Terms — and What Are Not

An 1896 classic states it crisply. Hall and Knight's Elementary Algebra: "Like terms, or similar terms, do not differ, or differ only in their numerical coefficients." Either identical, or different only in the number out front — that is the membership rule for every combining like terms decision.

The test looks only at the variable part: same letters, and the same exponent on each letter.

Like termsWhy
3x3x and −5x-5xboth single powers of xx
4x24x^2 and x2x^2both x2x^2; the second has hidden coefficient 1
2xy2xy and 7xy7xyvariable part xyxy in both
77 and −4-4all constants are like terms
Not like termsWhere it breaks
4x4x and 33one has a letter, one is a plain number
4x4x and 3y3ydifferent letters
x2x^2 and x3x^3same letter, different exponents
4x4x and 3xy3xyxyxy carries an extra letter XMARKX Read the right-hand table as the do-not-enter list for combining like terms.

Two reminders for combining like terms: the coefficient of x is 1 (x=1⋅xx = 1 \cdot x), and the coefficient of −x is −1. The hidden 1 usually stays unwritten — but the arithmetic of combining like terms must still count it.

Why Only Like Terms Can Combine

Why may 3x+5x3x + 5x merge while 3x+2x23x + 2x^2 may not? The distributive law stands behind all combining like terms.

Factor the common xx out of 3x+5x3x + 5x: 3x+5x=(3+5)x=8x3x + 5x = (3+5)x = 8x. That is the distributive law run in reverse — distributing gives 3x3x, factoring returns 3x3x, and the two directions lock the equality shut. This is the license that combining like terms operates on.

The figure draws the same combining like terms fact. Three segments of x joined to five segments of x make one strip of eight. But three segments of x beside two blocks of x² do not splice — different length, different thickness, no single bar. Combining like terms can only join what matches.

Let numbers talk — substitution is the built-in lie detector of combining like terms. Suppose someone forces 3x+2x23x + 2x^2 into 5x35x^3. Test at x=2x = 2: the left side gives 3×2+2×4=143\times2 + 2\times4 = 14, the right side 5×8=405\times8 = 40. Not equal — the fake merge collapses on the spot. Test the real combining like terms merge, 3x+5x=8x3x + 5x = 8x, at x=10x = 10: left 80, right 80. Exact.

Combining like terms also pays in work saved. Durell's 1911 School Algebra works one example: simplify 3ab2+5ab2+2ab23ab^2 + 5ab^2 + 2ab^2 with a=2a = 2 and b=3b = 3. Substituting directly means three full computations: 54+90+36=18054 + 90 + 36 = 180. Combining like terms first gives 10ab210ab^2, and one step finishes: 10×2×9=18010\times2\times9 = 180. In the book's words, more than half the work is saved.

For unlike terms the old texts leave one sentence: the addition of dissimilar terms can only be indicated, never performed. So 3x+2x23x + 2x^2 is already in simplest form — combining like terms stops there.

3x5x3x + 5x = 8x3x2x²3x + 2x² = 3x + 2x²

Three segments of x joined to five segments of x make one strip of eight — the merge works. Three segments of x beside two blocks of x² stay separate: 3x + 2x² = 3x + 2x².

Example 1 · One Family, One Hidden Coefficient

Problem. Simplify 8x+5x+x+2x+6x8x + 5x + x + 2x + 6x — a one-family combining like terms drill.

Solution. Every term carries the letter part xx: one family. The third term writes no coefficient. Its coefficient is the hidden 1, since x=1xx = 1x — the detail that combining like terms quietly relies on.

Add the coefficients: 8+5+1+2+6=228 + 5 + 1 + 2 + 6 = 22.

Answer. 8x+5x+x+2x+6x=22x8x + 5x + x + 2x + 6x = 22x — combining like terms kept it to one term.

A row of negatives runs the same way: −3x−5x−7x−x-3x - 5x - 7x - x. The coefficient is −(3+5+7+1)=−16-(3+5+7+1) = -16, so the sum is −16x-16x. Signs never change who counts as like — in combining like terms they only ride along into the addition.

Example 2 · Mixed Signs: Two Piles, Then Cancel

Problem. Simplify 9a−5a+4a−2a9a - 5a + 4a - 2a — combining like terms with mixed signs.

Solution. All four terms contain aa: like terms, but the signs differ — the safe combining like terms habit is to split into two piles:

  • Positive pile: 9a+4a=13a9a + 4a = 13a;
  • Negative pile: −5a−2a=−7a-5a - 2a = -7a.

Inside 13a13a there is exactly 7a7a to cancel against −7a-7a — quantities equal in size and opposite in sign sum to 0. What remains: 13a−7a=6a13a - 7a = 6a.

Answer. 9a−5a+4a−2a=6a9a - 5a + 4a - 2a = 6a.

Check at a=1a = 1: the left side gives 9−5+4−2=69 - 5 + 4 - 2 = 6, and the right side gives 6×1=66 \times 1 = 6. Agreed — this combining like terms result survives the substitution test.

Example 3 · Three Polynomials in Columns, with a Check

Problem. Add (4x2+3x+2)+(3x2−4x−3)+(−2x2−x−5)(4x^2 + 3x + 2) + (3x^2 - 4x - 3) + (-2x^2 - x - 5) — full-width combining like terms.

Solution. Line up like terms in columns; combine each column on its own:

x2x^2 columnxx columnconstant column
First4x24x^23x3x22
Second3x23x^2−4x-4x−3-3
Third−2x2-2x^2−x-x−5-5
Column sums5x25x^2−2x-2x−6-6

The columns: 4+3−2=54 + 3 - 2 = 5; 3−4−1=−23 - 4 - 1 = -2; 2−3−5=−62 - 3 - 5 = -6.

Answer. 5x2−2x−65x^2 - 2x - 6.

Check (substitution, cheapest at x=1x = 1): first expression 4+3+2=94 + 3 + 2 = 9; second 3−4−3=−43 - 4 - 3 = -4; third −2−1−5=−8-2 - 1 - 5 = -8. The rows total 9−4−8=−39 - 4 - 8 = -3, and the answer expression gives 5−2−6=−35 - 2 - 6 = -3. Agreed — a cheap audit for any combining like terms work.

One more phenomenon from this combining like terms table: if a column's coefficients happen to total 0, that whole term vanishes from the result.

Problem 1

A school library corner sorts book donations. On Saturday it receives 4 boxes of math workbooks and 3 boxes of storybooks; on Sunday, 2 more boxes of math workbooks and 5 more boxes of storybooks. Each math box holds aa books and each story box holds bb books. Do the combining like terms step on the two-day total first; then, with a=12a = 12 and b=6b = 6, how many books arrived over the two days?

⏱ 00:00
Page 1
Problem 2

A community garden fences a rectangular flower bed. The length is (4x+3)(4x + 3) meters and the width is (2x+1)(2x + 1) meters, so the fence length is P=2(4x+3)+2(2x+1)P = 2(4x + 3) + 2(2x + 1) meters. Distribute first, then finish the combining like terms step; with x=2x = 2, how many meters of fence are needed?

4x + 32x + 1?

A rectangular flower bed labeled with algebraic side lengths 4x + 3 and 2x + 1; the perimeter is the unknown, marked ?.

⏱ 00:00
Page 1
Problem 3

A warehouse takes in (9x−7)(9x - 7) pallets on Monday. On Tuesday it ships out 2 truckloads of (3x−5)(3x - 5) pallets each. The current stock is (9x−7)−2(3x−5)(9x - 7) - 2(3x - 5) pallets. Distribute first, then combine like terms; with x=6x = 6, how many pallets remain in the warehouse?

⏱ 00:00
Page 1

Common Mistakes in Combining Like Terms

1. Forcing unlike terms together. Merging 3x+5x23x + 5x^2 into 8x38x^3? Never — the classic forbidden combining like terms move. The variable parts differ, so not one step may merge. 3x+5x23x + 5x^2 is already simplest.

2. Treating addition as multiplication: x+xx + x is not x2x^2. x×x=x2x \times x = x^2 is multiplication; x+x=2xx + x = 2x is addition. Combining like terms touches coefficients only, never exponents. The flip side too: x2+x2=2x2x^2 + x^2 = 2x^2, not x4x^4.

3. Forgetting the hidden coefficient. In 7x−x7x - x, the bare xx is 1x1x. The coefficient arithmetic reads 7−1=67 - 1 = 6, so the combining like terms answer is 6x6x — not 7x7x.

4. Dropping the sign while rearranging. 10a−3+4a10a - 3 + 4a regroups to (10a+4a)−3=14a−3(10a + 4a) - 3 = 14a - 3. Writing 14a+314a + 3 means the −3-3 moved but its minus sign stayed behind — in combining like terms, the sign always travels with its term.

5. Adding numbers to letter terms. In 3+4x3 + 4x, the 3 and the 4x4x are unlike — no 7x7x here. Constants combine only with constants, a boundary every combining like terms step respects.

Frequently asked questions

1

What are like terms?

Terms whose variable parts match exactly: same letters, same exponent on every letter — only the coefficients may differ. That is the membership rule for combining like terms. For instance, 3x and −5x are like terms, while 4x and 3y are not. All plain numbers are like terms with each other: 7 and −4 combine to 3.

2

How do you combine like terms, step by step?

Three steps: identify the like terms. Use the commutative property of addition to bring them together, with signs traveling along. Then add the coefficients and copy the variable part — that is all combining like terms ever asks. A full example: 3x + 7 + 4x + 5 = (3x + 4x) + (7 + 5) = 7x + 12.

3

Are x and x² like terms?

No — and no combining like terms trick can change that. Same letter but different exponents means different families: x is first degree, x² second. x² combines only with x², as in x² + 5x² = 6x². Same letter with different exponents never merges.

4

Can you combine 2x and 3y?

No. Different letters, so the addition can only be indicated: 2x + 3y is already the combining like terms final answer. In multi-variable expressions, combining like terms runs separately inside each letter family: 5x + 9y − 2x only merges 5x − 2x into 3x, leaving 3x + 9y.

5

Why is adding the coefficients legal?

Because the distributive law runs in reverse: 2x + 3x = x(2 + 3) = 5x. Three x's plus five x's is eight x's — you are counting objects, not changing them. That is also why every combining like terms result passes a substitution check: at x = 10, both sides give 50. The count of objects never changed, so combining like terms cannot lose information.

6

What is the coefficient of x? And of −x?

The coefficient of x is 1 (x = 1·x); the coefficient of −x is −1. The 1 usually goes unwritten, but combining like terms must count it: 5x + x = 6x, not 5x, and 7x − x = 6x, not 7x.

Related practice