Free Algebra Solver
Combine like terms

Combine like terms calculator

Collect matching powers of x while keeping coefficients exact.

Interpreted as: 4x^2 + 3x - x^2 + 8 - 5x (Simplify) Ready
Examples
Solution

Step-by-step working

Your solution will appear here

Choose an operation and run it to see exact working, verification, and available visuals.

Like terms guide

Combine coefficients only when the variable parts match

This combine like terms calculator identifies matching powers, adds their coefficients, keeps unlike terms separate, and checks the resulting polynomial. The guide below explains how to recognize like terms and why the method preserves the expression’s value.

What are like terms?

Like terms contain the same variables raised to the same powers. In 5x², −3x², and x², the variable part x² matches, so the terms are like. Their coefficients are 5, −3, and 1. Constants such as 8 and −2 are also like because they have no variable part.

Terms such as 4x² and 4x are unlike because their exponents differ. Likewise, x and y are unlike, and x²y is different from xy². The coefficient does not determine whether terms match; the complete variable part does.

How to combine like terms step by step

The commutative and associative properties allow terms joined by addition to be reordered and regrouped. Once each subtraction sign is attached to the term that follows it, matching groups can be collected safely.

  1. Separate the expression into terms, keeping each plus or minus sign attached.
  2. Identify the variable part and exponent of every term.
  3. Group terms with identical variable parts; group constants together.
  4. Add or subtract only the numerical coefficients in each group.
  5. Keep the shared variable part unchanged and write the result in descending-power order.
  6. Compare the original and final polynomial coefficients to verify equivalence.

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

Group matching powers: (4x² − x²) + (3x − 5x) + 8. For the quadratic terms, 4 − 1 = 3, so they become 3x². For the linear terms, 3 − 5 = −2, so they become −2x. The constant remains 8.

The simplified polynomial is 3x² − 2x + 8. Notice that x² and x stayed separate. If x = 2, the original and simplified forms both evaluate to 16, giving a quick numerical check in addition to the symbolic coefficient check.

Matching power
axⁿ + bxⁿ = (a + b)xⁿ
Unlike powers
ax² + bx cannot be combined
Implicit coefficient
xⁿ = 1xⁿ and −xⁿ = −1xⁿ

Distribute before collecting hidden like terms

Some like terms are hidden inside parentheses. In 3(x + 2) − 2x, distribute first to get 3x + 6 − 2x. Now the x-terms are visible and combine to x, giving x + 6.

A negative sign before a group also distributes. For 5x − (2x − 4), rewrite the subtracted group as −2x + 4, then combine to obtain 3x + 4. Skipping this sign change creates the wrong constant.

Coefficients, powers, and zero groups

A missing written coefficient is 1, and a leading minus without a number means −1. If a coefficient group sums to zero, that whole term disappears: 6x³ − 6x³ = 0. A missing power in the final polynomial therefore has coefficient zero.

Combining terms uses addition, so the exponent stays unchanged. Exponents are added only when multiplying powers with the same base. Keeping these two rules separate prevents mistakes such as turning x² + x² into x⁴.

Common mistakes when collecting terms

Do not combine based only on a shared letter if the exponents differ. Do not ignore negative coefficients, and do not change the variable power after adding coefficients. Constants can combine with constants but not with variable terms.

When checking your work, list the coefficient for every power before and after. Equivalent polynomials have matching coefficients across the supported domain, even if their terms were originally arranged differently.

Frequently asked questions

Concise answers about the method, notation, checks, and calculator limits.

What makes two algebra terms alike?

They must have exactly the same variable part, including every variable and exponent.

Can 3x and 3x² be combined?

No. The exponents differ, so the terms represent different powers.

What is the coefficient of x?

It is 1. The coefficient of −x is −1.

Do I add exponents when combining like terms?

No. Add the coefficients and keep the shared exponent unchanged. Exponents add during multiplication, not addition.

Should I distribute before combining terms?

Yes when parentheses hide terms that may match terms elsewhere in the expression.

How can I check the combined result?

Compare coefficients by power or evaluate both forms at the same sample values.

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
^
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