Adding and Subtracting Polynomials Calculator

Add and subtract polynomials with our calculator. Simply type your polynomials, and the calculator gives you accurate results with clear, step-by-step solutions that help you understand each step.

In this lesson, you will learn

  • how to add polynomials by grouping and combining like terms
  • how to subtract polynomials by changing the sign of every term in the second polynomial
  • how to check your own answers with the calculator

Interactive Polynomial Calculator

Type each polynomial the way you would write it, like 4x^3 - 2x^2 + 7. Any degree works, terms can be in any order, and you can use fractions, decimals and more than one variable. Choose Add or Subtract for each polynomial after the first.

Try an example:

More tools: Algebra calculators

How to Add Polynomials

Definition

Like terms have the same variable raised to the same power. For example, 3x3 and βˆ’2x3 are like terms, but 3x3 and βˆ’4x2 are not.

Worked example: Add 3x3 βˆ’ 4x2 + 2x βˆ’ 2 and βˆ’2x3 + x2 + 2x + 3
  1. Write the polynomials side by side.(3x3 βˆ’ 4x2 + 2x βˆ’ 2) + (βˆ’2x3 + x2 + 2x + 3)
  2. Rearrange terms by like degrees.(3x3 + (βˆ’2x3)) + (βˆ’4x2 + x2) + (2x + 2x) + (βˆ’2 + 3)
  3. Combine like terms.x3 βˆ’ 3x2 + 4x + 1

Answer: x3 βˆ’ 3x2 + 4x + 1

Common mistake

When you combine like terms, add only the coefficients. The exponent stays the same: βˆ’4x2 + x2 = βˆ’3x2, not βˆ’3x4.

Add (2x2 + 5x βˆ’ 1) + (x2 βˆ’ 3x + 4).

Show answer

3x2 + 2x + 3. Combine the x2 terms (2 + 1 = 3), the x terms (5 βˆ’ 3 = 2) and the numbers (βˆ’1 + 4 = 3).

How to Subtract Polynomials

Rule

To subtract a polynomial, add its opposite: change the sign of every term in the polynomial you are subtracting, then combine like terms.

Worked example: Subtract βˆ’2x3 + x2 + 2x + 3 from 3x3 βˆ’ 4x2 + 2x βˆ’ 2
  1. Write the polynomials side by side.(3x3 βˆ’ 4x2 + 2x βˆ’ 2) βˆ’ (βˆ’2x3 + x2 + 2x + 3)
  2. Distribute the minus sign to the second polynomial.(3x3 βˆ’ 4x2 + 2x βˆ’ 2) + (2x3 βˆ’ x2 βˆ’ 2x βˆ’ 3)
  3. Rearrange terms by like degrees.(3x3 + 2x3) + (βˆ’4x2 + (βˆ’x2)) + (2x + (βˆ’2x)) + (βˆ’2 + (βˆ’3))
  4. Combine like terms.5x3 βˆ’ 5x2 βˆ’ 5

Answer: 5x3 βˆ’ 5x2 βˆ’ 5

Remember

When like terms add up to 0, leave them out of the answer. Here 2x + (βˆ’2x) = 0, so the answer has no x term.

Common mistake

Changing only the sign of the first term. The minus sign in front of the parentheses changes every term: βˆ’(βˆ’2x3 + x2 + 2x + 3) = 2x3 βˆ’ x2 βˆ’ 2x βˆ’ 3.

Subtract (5x2 βˆ’ 2x + 7) βˆ’ (3x2 βˆ’ 6x + 2).

Show answer

2x2 + 4x + 5. Change every sign in the second polynomial to get 5x2 βˆ’ 2x + 7 βˆ’ 3x2 + 6x βˆ’ 2, then combine: 5 βˆ’ 3 = 2, βˆ’2 + 6 = 4 and 7 βˆ’ 2 = 5.

Summary

  • Like terms have the same variable raised to the same power. Only like terms can be combined.
  • To add polynomials, group like terms and add their coefficients. The exponents do not change.
  • To subtract polynomials, change the sign of every term in the second polynomial, then add.
  • Leave out any like terms that add up to 0, and write the answer from the highest power down.
  • The calculator accepts any polynomial, so you can use it to check your own work step by step.

Test Yourself: Interactive 10-Question Quiz

Now check what you learned. Every answer is explained, and each time you play you get new questions.

Question 1 of 10Score: 0