Enter the coefficients of your x terms to combine them into one simplified expression, with the constant kept correctly separate.

Like Terms Calculator

Add the coefficients, keep the constant apart: combine like terms correctly and see the simplified expression, not just a total.

Free to use Simplified expression Constant kept separate Save PDF · PNG · Share

Enter your values

Fill in the fields below — the result appears with every step shown.

Shown on the printed, PDF and PNG copies of your result. Leave blank to stay anonymous.

Enter a valid value for coefficients of the x terms.

Signed coefficients, comma-separated. A lone x counts as 1.

Enter a valid value for constant term.

The term with no variable (0 if none).

Local browser calculation

Review your inputs and the tool’s supported scope before using the result.

Calculator loading… If this message stays, this view is not running the calculator's script — open this file in a full browser tab, then press Calculate.

Your result will appear here

Enter your values above, then press Calculate — or press Enter in any field.
TinyExe Like Terms Calculator tinyexe.comFree online calculators

TinyExe · Like Terms Result

Calculated locally in your browser

Calculated on
—

–
—

Name

—

Coefficients of the x terms

—

Constant term

—

Result

—

How this was calculated

    What to do next

      TinyExe · tinyexe.com — Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.

      Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      Embed this tool

      Add this Like Terms Calculator to your own page — copy the code below and paste it where you want the tool to appear.

      The embed loads the live calculator in a frame, so it stays up to date automatically. Choose a width, check the code, then copy it. When you publish on WordPress, keep the src pointing at your live tool URL.

      Works in WordPress (Custom HTML block), HTML pages, and most site builders.

      The short answer

      Like terms combine by adding their coefficients while the variable stays unchanged. Three x plus five x minus two x equals six x, because three plus five minus two equals six. Constants are not like terms with variables, so a constant such as plus four stays separate in the simplified expression.

      • ax + bx = (a+b)x - only coefficients change
      • A lone x has coefficient 1; -x has coefficient -1
      • Constants combine only with other constants

      Which terms are like terms?

      Reference values for this calculator.

      PairLike?Why
      3x and 5xYesSame variable and power
      3x and 3x^2NoDifferent powers
      4x and -7NoVariable vs constant
      2y and 5yYesSame variable (y)

      The formula

      The exact formula this calculator uses — every variable in it is explained in the card below.

      The formula

      Like terms (same variable, same power) combine by adding their coefficients: ax + bx = (a+b)x. Constants combine only with constants. Example: 3x + 5x - 2x = 6x.

      Enhancement: separates the x-coefficient total from the constant instead of collapsing everything into one number, teaching the actual rule - only like terms merge - and prints the simplified expression in standard form.

      Worked examples

      Worked examples with the full working shown — try them in the calculator to check.

      Example 1

      Three x terms and a constant

      Coefficients 3, 5, -2; constant 4

      CalculationSteps
      3 + 5 - 2 = 6, so the x terms become 6x. The constant 4 stays separate: 6x + 4.Combined coefficient 6; expression 6x + 4.

      Result

      Example 2

      Perfect cancellation

      Coefficients 7, -7; constant 0

      CalculationSteps
      7 + (-7) = 0, so the x terms vanish entirely and the expression simplifies to 0.Combined coefficient 0; expression 0.

      Result

      Example 3

      Decimal coefficients

      Coefficients 1.5, 2.25, -0.75; constant -3

      CalculationSteps
      1.5 + 2.25 - 0.75 = 3.0, giving 3x, with the constant -3 kept apart.Expression 3x - 3.

      Result

      How to use this calculator

      Step 1

      Write down every term containing x and note its coefficient (a term written as just x has coefficient 1, and -x has -1).

      Step 2

      Enter those coefficients in order, separated by commas, using minus signs for subtracted terms.

      Step 3

      Enter the constant term on its own (0 if the expression has none).

      Step 4

      Press Calculate to add the coefficients into one combined x term.

      Step 5

      Read the simplified expression: combined x term plus the untouched constant.

      In short: Like terms are algebraic terms with the same variable raised to the same power; they can be combined by adding or subtracting their coefficients.

      Frequently asked questions

      What counts as a like term?

      Terms with exactly the same variable raised to exactly the same power: 3x and -5x are like terms, but 3x and 3x-squared are not, and neither are 3x and 3y. Only like terms can be added or subtracted.

      What is the coefficient of just 'x'?

      One. A lone x means 1x, and -x means -1x. Forgetting the invisible 1 is the most common combining error; enter 1 or -1 for such terms here.

      Why doesn't the constant join the x total?

      Because it is not a like term - it has no x. Adding it to the coefficient would change the expression's value for every x except 0. The calculator keeps it separate and shows it in the simplified expression.

      How do I handle terms in y or x-squared?

      Combine each family separately by hand and use this calculator once per family: once for the x coefficients, once for the y coefficients, and so on. Each run handles one family correctly.

      Can combining like terms change an equation's solution?

      No - combining like terms rewrites an expression into an equal, simpler one. 3x + 5x and 8x are the same for every value of x, which is why the step is always safe in solving equations.

      About this calculator

      A like terms calculator simplifies an algebraic expression by merging every term that shares the same variable and power into a single term. You supply the coefficients of the x terms and the constant; it adds the coefficients, leaves the constant untouched, and prints the simplified expression.

      Combining like terms is the distributive property run in reverse: 3x + 5x is (3 + 5) copies of x, which is 8x. The variable part is a label that says what is being counted - counting x's - so coefficients add exactly the way counts of any object add. Terms with different labels (x versus x-squared, x versus a plain number) are counting different things and cannot merge.

      Two traps account for most errors. The first is the invisible coefficient: a term written as x is 1x, and -x is -1x, so x + x + x is 3x, not just x written three times. The second is the subtracted term: in 10x - 4x the second coefficient is -4 once you move it into a sum, which is why this calculator asks you to enter signed coefficients explicitly.

      Keeping the constant separate is not pedantry. 6x + 4 and 10x agree only when x happens to equal about 0.67; as expressions they are different functions with different graphs. A calculator that merged everything into one number would be teaching a rule that breaks equations - this one shows the constant standing apart in the result, exactly as a teacher would write it.

      Use it when simplifying expressions before solving equations, checking algebra homework, or reducing a long collected expression from a word problem into a form you can work with.

      How to calculate it yourself

      Step 1

      Identify every term with the same variable and power (here, x to the first power).

      Step 2

      Write each term's coefficient, including its sign and the invisible 1 where needed.

      Step 3

      Add the coefficients together.

      Step 4

      Write the sum in front of the variable.

      Step 5

      Append the constant term unchanged.

      Real-life examples

      Homework check before solving

      A student must solve 3x + 5x - 2x + 4 = 22 and wants the left side simplified before moving terms.

      Coefficients 3 + 5 - 2 = 6, constant stays 4: the equation becomes 6x + 4 = 22, so 6x = 18 and x = 3.

      Simplified to 6x + 4 = 22, one step from the solution x = 3.

      Tallying a market stall's takings

      A stallholder models the day's profit as x from drinks sold three times in different quantities: 12x from morning, 8x midday and -5x of costs allocated per unit, plus a fixed 20 stall credit.

      12 + 8 - 5 = 15, giving 15x + 20 as the compact profit expression to evaluate for any unit margin x.

      Profit model simplified to 15x + 20.

      Ideas & use cases

      • Pre-solve simplification: always combine each side of an equation first - most 'hard' school equations shrink to one or two terms.
      • Error hunting: if your hand simplification and the calculator disagree, the culprit is almost always a sign or a missing invisible 1 - recheck those first.
      • One family at a time: for expressions with x, y and constants, run the calculator three times, once per family, and assemble the result.

      Limitations & sources

      • Combines one family of like terms per run (the x terms) plus a single constant. It does not parse full typed expressions, handle multiple variables or powers in one pass, or simplify fractions and radicals.

      Sources: Standard elementary algebra: combining like terms via the distributive property (OpenStax Elementary Algebra, combining like terms)

      Like Terms Calculator · TinyExe calculator suite Free to use · No sign-up · Instant results