Combining Like Terms

Combining like terms merges coefficients of identical variables to simplify expressions and solve equations more efficiently.

ax+bx=(a+b)xax + bx = (a + b)x

Solve a problem with Combining Like Terms

Type the problem. The solver will use Combining Like Terms where Combining Like Terms is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Combining Like Terms takes
aa
bb
xx
Combining Like Terms
SymbolMeaning
aaThe numerical coefficient of the first term—the number multiplying xx; if confused with an exponent, you might incorrectly write (a+b)x(a+b)^x instead of (a+b)x(a+b)x.
bbThe numerical coefficient of the second term—the number multiplying the same variable xx; terms can only combine if bb multiplies an identical variable and exponent as aa does.
xxThe variable (the letter) that appears in both terms; the exponents must be identical—for example, 3x23x^2 and 5x5x cannot be combined because the exponents differ.

When to use it

Reach for this when you have multiple terms containing the same variable and exponent, and you want to simplify the expression.

Level

Usually taught in: Algebra I

Worked examples

1. Simplify two like terms with small positive integers

Problem

Simplify 3x+2x3x + 2x.
  1. 3x+2x3x + 2x

    Write both terms; notice that each contains the variable xx with the same exponent (implicitly 1).

  2. =(3+2)x= (3 + 2)x

    Apply the distributive property: factor out xx and group the coefficients together.

  3. =5x= 5x

    Add the coefficients: 3+2=53 + 2 = 5.

Answer: 5x5x

Both terms share the variable xx, making them like terms. The distributive property lets us factor out xx and add the coefficients, simplifying to 5x5x.

2. Combine three terms with negative coefficients

Problem

Simplify 4x+7x2x-4x + 7x - 2x.
  1. 4x+7x2x-4x + 7x - 2x

    Write all three terms, each containing xx; note that the first coefficient is negative and the third is being subtracted.

  2. =(4+72)x= (-4 + 7 - 2)x

    Factor out xx by grouping all coefficients, keeping track of their signs: 4-4, +7+7, and 2-2.

  3. =(32)x= (3 - 2)x

    First, combine 4+7=3-4 + 7 = 3; now we must compute 323 - 2.

  4. =x= x

    Complete the arithmetic: 32=13 - 2 = 1, and a coefficient of 1 is written as just xx, not 1x1x.

Answer: xx

With three like terms and negative coefficients, we combine all coefficients by adding them (treating signs as part of each) to get 1. A coefficient of 1 is not written explicitly.

3. Real-world problem: revenue from a bake sale

Problem

At a bake sale, brownies sell for xx dollars each. On Monday you sold 12 brownies, on Tuesday 8 brownies, and on Wednesday 15 brownies. Write and simplify an expression for your total revenue.
  1. 12x+8x+15x12x + 8x + 15x

    Represent revenue for each day: 12 brownies at xx dollars each, plus 8 at xx each, plus 15 at xx each.

  2. =(12+8+15)x= (12 + 8 + 15)x

    All three terms are like terms because each has the variable xx; factor out xx by grouping the quantities.

  3. =35x= 35x

    Add the coefficients: 12+8=2012 + 8 = 20, then 20+15=3520 + 15 = 35.

Answer: 35x35x

Each day's revenue has the same variable xx (the price per brownie), so we combine them by adding the quantities. The simplified expression 35x35x represents selling 35 brownies total at xx dollars each.

Common mistakes

Where Combining Like Terms usually goes wrong
Answer came out wrong
3x+2y=5xy3x + 2y = 5xy
3x+2y3x + 2y cannot be simplified; the terms must stay separate.
2x2+3x=5x22x^2 + 3x = 5x^2
2x2+3x2x^2 + 3x remains unchanged; the terms cannot be combined.
5x+3=8x5x + 3 = 8x
5x+35x + 3 stays as written; the constant and variable term remain separate.
The mistakeWhy it is wrongThe fix
3x+2y=5xy3x + 2y = 5xyThe variables xx and yy are different, so these are not like terms and cannot be combined.3x+2y3x + 2y cannot be simplified; the terms must stay separate.
2x2+3x=5x22x^2 + 3x = 5x^2Although both terms contain xx, the exponents differ (x2x^2 versus x1x^1), so 2x22x^2 and 3x3x are not like terms.2x2+3x2x^2 + 3x remains unchanged; the terms cannot be combined.
5x+3=8x5x + 3 = 8xThe term 3 is a constant with no variable, so it is not a like term with 5x5x and cannot be combined with it.5x+35x + 3 stays as written; the constant and variable term remain separate.

Tips and when to use something else

  • Always check that variables and exponents match before combining—3x23x^2 and 5x5x look similar but cannot be combined because the exponents differ.
  • Treat subtraction as adding a negative: 6x2x=6x+(2x)=4x6x - 2x = 6x + (-2x) = 4x, so the second coefficient carries its negative sign.
  • If you have parentheses like 3(x+2)+2x3(x + 2) + 2x, use the Distributive Property first to expand, then combine like terms.
  • If a coefficient becomes 1, omit it: 1x=x1x = x. If a coefficient becomes 0, the term vanishes: 3x3x=03x - 3x = 0.

Frequently asked questions

Can I combine 3x3x and 2x22x^2?
No. Even though both contain the variable xx, the exponents are different: x1x^1 versus x2x^2. You can only combine terms that have the same variable with the same exponent (called like terms). 3x3x and 2x22x^2 must stay separate.
Why do we combine like terms?
Combining like terms simplifies an expression, making it shorter and easier to work with. For example, 5x+3+2x+75x + 3 + 2x + 7 is much easier to solve once you simplify it to 7x+107x + 10. Simpler expressions mean fewer chances for mistakes in later steps.
What if a coefficient is negative?
Negative coefficients combine just like positive ones. The expression 5x3x5x - 3x means 5x+(3x)=(53)x=2x5x + (-3x) = (5 - 3)x = 2x. Always keep the sign attached to each coefficient as you add them together.
What happens when I combine xx and x-x?
These terms have coefficients of 11 and 1-1. When combined: 1x+(1x)=(11)x=0x=01x + (-1x) = (1 - 1)x = 0x = 0. The two terms cancel out completely, and the entire expression becomes zero.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18