Collecting Like Terms Equation Solver with Worked Examples

To collect like terms, add or subtract the numbers in front of the same letter: . Type an expression such as and the solver simplifies it.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

  • what a term is
  • adding and subtracting negatives
  • the difference between x and x²

What Collecting like terms means

Like terms have exactly the same letters, such as and , or and . Terms with different letters, such as and , cannot be combined.

Add the coefficients (the numbers in front) and keep the letter: .

Keep each term’s sign with it: in , the second term is . Collecting terms often follows expanding a single bracket, is undone by factorising a common factor, and is the first step in solving ax + b = cx + d and in cancelling a common factor.

This page is part of Expressions, brackets and factorising in Algebra. Topics that work alongside it: Expanding a single bracket, Factorising: common factor, Solving ax + b = cx + d, Product of two linear factors, Expanding double brackets, Perfect square (difference) and Expanding (a + b)³.

What is it used for?

Like terms have the same letters raised to the same powers. Adding them together makes an expression shorter and easier to work with.

How to use collecting like terms

  1. Circle or group the like terms, with their signs.
  2. Add or subtract the coefficients.
  3. Write the answer with the letters.
  4. Check by substituting a number.

Graph

3x + 5x − 2x = 6x for x = 0 to 5x = 3: 1800.511.522.533.544.550510152025303x + 5x − 2x = 6x for x = 0 to 5xvalue6xGraph with x from 0 to 5 and y from 0 to 32. Shows the curve 6x; point x = 3: 18 at (3, 18).

Collecting like terms adds the coefficients: 3 + 5 − 2 = 6.

Worked examples

The examples marked with a button were worked out by the solver on this page. You can try each one yourself.

Example 1: one letter

Simplify .

Simplify
Answer
6x6 x
  1. The expression
  2. Result
    The expression is already in its simplest form.

Example 2: two letters

Simplify .

Simplify
Answer
3a+5b3 a+5 b
  1. The expression
  2. Result
    The expression is already in its simplest form.

Example 3: two different letters

Simplify 7y + 2z − 3y + 5z.

Simplify
Answer
4y+7z4 y+7 z
  1. The expression
  2. Result
    The expression is already in its simplest form.

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

One letter

3x + 5x − 2x = 6x

Add the coefficients: 3 + 5 − 2.

Two letters

4a + 3b − a + 2b = 3a + 5b

Collect a terms and b terms separately.

Numbers and letters

5x + 3 − 2x + 4 = 3x + 7

Numbers collect with numbers.

Unlike terms

x² and x do not combine

Different powers are different terms.

Word problems

Collect like terms by adding or subtracting their coefficients. Terms are alike only if the letter part is the same.

One letter

Simplify 3x + 5x − 2x.

  1. Add the coefficients3 + 5 − 2 = 6
  2. Write6x
  3. Check: put x = 2: 6 + 10 − 4 = 12 and 6 × 2 = 12 ✓6x.

Two letters

Simplify 4a + 3b − a + 2b.

  1. a terms4a − a = 3a
  2. b terms3b + 2b = 5b
  3. Write3a + 5b
  4. Check: a = 2, b = 1: 8 + 3 − 2 + 2 = 11 and 6 + 5 = 11 ✓3a + 5b.

With numbers Higher

Simplify 5x + 3 − 2x + 4.

  1. x terms5x − 2x = 3x
  2. Numbers3 + 4 = 7
  3. Write3x + 7
  4. Check: x = 2: 10 + 3 − 4 + 4 = 13 and 6 + 7 = 13 ✓3x + 7.

A perimeter Higher

A triangle has sides 2x + 1, x + 4 and 3x − 2. Find its perimeter.

  1. Add the x terms2x + x + 3x = 6x
  2. Add the numbers1 + 4 − 2 = 3
  3. Write6x + 3
  4. Check: x = 1: 3 + 5 + 1 = 9 and 6 + 3 = 9 ✓6x + 3.

Common mistakes

Combining unlike terms

3x + 2 = 5x ✗

3x + 2 cannot be simplified ✓

x and numbers are different.

Dropping a sign

4a + 3b − a = 4a + 3b + a ✗

4a + 3b − a = 3a + 3b ✓

The minus belongs to the term.

Adding the powers

x + x = x² ✗

x + x = 2x ✓

Adding does not change the power.

Forgetting the invisible 1

a − a... treating a as 0 ✗

a means 1a ✓

Count the coefficient 1.

Exam tips

  1. Like terms have the same letters.
  2. Keep the sign with each term.
  3. x means 1x.
  4. Test with a number.
  5. Write in a tidy order.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. Simplify 2x + 5x. What is the coefficient of x? Foundation

7

2. Simplify 9a − 4a. What is the coefficient of a? Foundation

5

3. Simplify 3x + 2y + 4x. What is the coefficient of x? Foundation

7

4. Simplify 5x + 3 − 2x + 4. What is the constant term? Higher

7

5. Simplify 6a + 2b − 3a − b. What is the coefficient of b? Higher

1

6. Simplify 4x − 7 − 6x + 2. What is the coefficient of x? Higher

−2

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Term
A number, letter or product in an expression.
Like terms
Terms with the same letters and powers.
Coefficient
The number multiplying the letter.
Expression
Terms joined by + and −.
Simplify
Write in the shortest form.
Constant
A term without a letter.

Frequently asked questions

What are like terms?

Terms with the same letter part.

How do I collect like terms?

Add or subtract their coefficients.

Can I add x and x²?

No, they are unlike.

What is the coefficient of x?

It is 1.

Which page covers brackets?

expanding a single bracket.

Which page covers factorising?

factorising a common factor.

More in Algebra and the formula sheets.