🧮
🧮 Math & statistics

Adding and Subtracting Polynomials Calculator (combine like terms)

Results update as you type.

Your numbers

Understanding the polynomial addition and subtraction — concept and principle

This calculator adds or subtracts two polynomials in x by combining like terms. It tidies each input, shows the second polynomial with its signs changed when subtracting, lines up the like terms, and gives the result with its degree and a quick check at x = 1.

Polynomial subtractionLine up like termsfirst− secondsumx³3−12x³x²2+46x²x−50−5x17−612x³ + 6x² − 5x + 1
Flip every sign of the second polynomial, then add column by column.

How it is calculated

Like terms have the same power of x. To add, add their coefficients and keep the power: 3x³ + x³ = 4x³.

To subtract, change the sign of every term of the second polynomial, then add:

(P) − (Q) = P + (−Q)

The principle

A polynomial is a sum of terms, each a number times a power of x. Terms with different powers cannot be merged, just as metres and square metres cannot be added. Combining like terms is the distributive law in reverse: 3x³ + x³ = (3 + 1)x³. Subtraction distributes the minus sign over every term in the brackets, which is where most mistakes happen. Evaluating at x = 1 turns every power into 1, so it reduces each polynomial to the sum of its coefficients, a fast check.

Worked example

Default inputs: (3x³ + 2x² − 5x + 7) − (x³ − 4x² + 6).

  1. Change the signs of the second polynomial: −x³ + 4x² − 6.
  2. x³ terms: 3x³ − x³ = 2x³.
  3. x² terms: 2x² + 4x² = 6x².
  4. x terms: −5x stays −5x; constants: 7 − 6 = 1.
  5. Result: 2x³ + 6x² − 5x + 1, degree 3, 4 terms. Check at x = 1: (3 + 2 − 5 + 7) − (1 − 4 + 6) = 7 − 3 = 4, and 2 + 6 − 5 + 1 = 4.

How to read the result

Write the result in descending powers, as shown. If the degree is lower than both inputs, the leading terms cancelled, which is correct, not an error. The x = 1 check catches most sign slips; a second check at x = −1 or x = 2 catches the rest.

Common mistakes

Keep in mind: Type powers with ^ or superscripts and whole-number exponents. Check that the tidied input matches what you meant before trusting the result.

Frequently asked questions

How do you subtract polynomials?

Change the sign of every term in the polynomial being subtracted, then combine like terms.

What are like terms?

Terms with the same variable raised to the same power, such as 4x² and −x².

What is the degree of a polynomial?

The highest power of x with a non-zero coefficient.

Sources: OpenStax, Elementary Algebra 2e (2020), §6.1 Add and Subtract Polynomials

Checked 9 Nov 2026. OpenStax, Elementary Algebra 2e (2020), §6.1 Add and Subtract Polynomials (like terms have the same variables and exponents; combine them; degree of a polynomial = highest degree of its terms).

🧮 All math & statistics tools →🌍 Calculators by country →