Free Algebra Solver
Combine like terms

Combine Like Terms Calculator

Enter an expression with several terms. The calculator groups terms with the same variable and power, then adds their coefficients.

Preview 4x^2 + 3x - x^2 + 8 - 5x (Simplify) Ready
Examples
Solution

Worked example: 4x^2 + 3x - x^2 + 8 - 5x

Worked example. Edit the problem above and press Simplify to solve your own.

Problem4x^2 + 3x - x^2 + 8 - 5x
  1. Combine like terms

    Apply exact algebraic identities and collect matching powers of x.

    4x^2 + 3x - x^2 + 8 - 5x
    Original expression
    3x² − 2x + 8
    Collect terms with the same power of x

    Expanding and collecting the result returns the same polynomial.

Answer3x² − 2x + 8

Like terms guide

Combine like terms calculator: how combining like terms works

Enter an expression in the combine like terms calculator and it groups matching terms and adds their coefficients. Below you'll learn what counts as a like term and how to combine them yourself.

What are like terms?

Like terms are terms with exactly the same variable raised to exactly the same power. 4x² and −x² are like terms, and so are 3x and −5x. Constants such as 8 and −2 are like terms with each other. To combine them, add or subtract the coefficients and keep the variable part unchanged.

How do you combine like terms?

Find the terms that share a variable and power, add their coefficients, and keep the variable part as it is. 5x + 2x is 7x because you add 5 and 2, while the x stays put.

Combining like terms works because of the distributive property: 5x + 2x = (5 + 2)x. You're adding counts of the same thing, the way 5 apples plus 2 apples is 7 apples.

  1. Underline or circle each group of like terms. Take the sign in front of each term with it.
  2. Add the coefficients within each group.
  3. Write the groups in standard form, highest power first.

Worked example: 4x² + 3x − x² + 8 − 5x

The answer is 3x² − 2x + 8. There are three groups here: x² terms, x terms, and a constant.

Start
4x² + 3x − x² + 8 − 5x
Group
(4x² − x²) + (3x − 5x) + 8
Combine
3x² − 2x + 8

Notice that −x² has a hidden coefficient of −1, so 4 − 1 = 3. The 3x and −5x give 3 − 5 = −2. The 8 has nothing to pair with, so it stays.

Why are x² and x not like terms?

They have the same letter but different powers, so they measure different things. Think of x as a length and x² as an area: adding a length to an area doesn't give you more of either one.

Try x = 3. Then x² + x = 9 + 3 = 12. If you wrongly wrote 2x², you'd get 18, and 2x would give 6. Neither matches, which is why x² + x is already as simple as it gets.

PairLike terms?Why
7x and −2xYesSame variable, same power
4x² and x²YesBoth are x²
3x² and 3xNoDifferent powers
6 and −11YesBoth are constants
5x and 5NoOne has a variable, one doesn't

Are constants like terms?

Yes. Every plain number is a like term with every other plain number, so 8 − 3 + 1 combines to 6. A constant never combines with a term that has a variable in it.

In 6 − 2(x − 1), the constants only appear after you distribute: 6 − 2x + 2. Then 6 + 2 = 8, and the answer is −2x + 8. Clear the brackets first or you'll miss constants hiding inside.

How do you combine like terms with fraction coefficients?

Add the fractions the usual way, with a common denominator, and keep the variable. (1/2)x + (1/3)x becomes (3/6 + 2/6)x, which is (5/6)x.

If the denominators already match, just add the tops: (3/4)x − (1/4)x = (2/4)x = (1/2)x. When you type these into the calculator, put the fraction in brackets, like (3/4)x, so it's clear which part is the coefficient.

What sign mistakes do students make when combining like terms?

The usual mistake is dropping the minus sign in front of a term. A term owns the sign directly before it, so in 3x − 5x the second term is −5x, not 5x.

A second trap is forgetting the invisible 1. On its own, x means 1x, and −x means −1x. So x² + 3x − 2x² + x has x² coefficients 1 and −2 (giving −x²) and x coefficients 3 and 1 (giving 4x). The result is −x² + 4x.

Third, watch a minus sign in front of brackets. In 5x − (2x − 3), the minus applies to both terms inside, giving 5x − 2x + 3 = 3x + 3.

How do you combine like terms when there are brackets?

Distribute first, then combine. Like terms often sit inside different brackets, and you can only see them once the brackets are gone.

Take 2(x² + 3x) − 3(x² − x + 1). The −3 multiplies all three terms in the second bracket, which flips each sign.

Start
2(x² + 3x) − 3(x² − x + 1)
Distribute
2x² + 6x − 3x² + 3x − 3
Group
(2x² − 3x²) + (6x + 3x) − 3
Combine
−x² + 9x − 3

A leading negative like −x² is fine to leave at the front. Standard form cares about the order of powers, not about the first sign being positive.

What can't this calculator combine?

It works with one variable at a time, so expressions mixing x and y, such as 3xy + 2x, aren't supported. It also doesn't accept a variable in a denominator.

Within those limits, it handles powers up to 6, fraction coefficients, and brackets. If your expression has brackets, the simplify calculator shows the distributing step in more detail.

Frequently asked questions

Short answers to the questions people ask most about this topic.

What is combining like terms in simple words?

It means adding together terms that are the same kind. 2x and 5x are both x terms, so together they make 7x. Terms of different kinds, like 2x and 5, stay separate.

Can you combine 3x and 3x²?

No. The powers differ, so they are not like terms. 3x² + 3x is already simplified. You could factor it as 3x(x + 1), but that is factoring, not combining.

Do like terms need the same coefficient?

No. The coefficients can be anything; only the variable and its power must match. 9x and −4x are like terms even though 9 and −4 differ.

What happens if like terms cancel out?

Their sum is zero and they disappear from the answer. For example, 4x + 7 − 4x leaves just 7. That is a normal result, not an error.

How do I enter an expression in the combine like terms calculator?

Type it as you'd write it, using ^ for powers, for example 4x^2 + 3x - x^2 + 8 - 5x. The calculator returns 3x² − 2x + 8 and shows the grouping step.

Is combining like terms the same as simplifying?

It is one part of simplifying. Full simplification also clears brackets and puts the answer in standard form, and combining like terms is the step in the middle.

How do I combine like terms with a missing coefficient?

Treat it as 1 or −1. In x² + 2x − 3x² + 4 − 7x + 1, the x² terms are 1 and −3, the x terms are 2 and −7, and the constants are 4 and 1. The result is −2x² − 5x + 5.

Math keypad

Simplify mode

Use the keypad below or tap the expression to use your phone keyboard.

Keyboard tips

Ctrl + Enter
Run the selected operation
a/b key
Select part of the problem first to wrap it in a fraction, root, power, or bars
sin(30)
Scientific functions work in Calculate mode; angles are in degrees unless you use π
^
Enter a power, such as x^2
sqrt(
Calculate an exact or simplified square root
a:b
Separate quantities in a ratio
12, 18
Separate integers in an LCM and GCD calculation
@ x =
Assign x when evaluating an expression
y =
Enter a polynomial function to graph
|
Wrap an absolute-value expression