Algebra & Calculus
Add and Subtract Polynomials Calculator
Enter two polynomials in x, choose add or subtract, and see the like terms combined degree by degree. The result is written in standard form with its degree and leading coefficient.
- Degree 2
- Leading coefficient 4
Step-by-step working 3 steps
- 1Write the polynomials in standard form
P(x) = 3x² + 2x − 5 Q(x) = x² − 4x + 7
- 2Add like terms
x² terms: 3 + 1 = 4 x terms: 2 + (−4) = −2 constants: −5 + 7 = 2
Only terms with the same power of x can be combined.
- 3Result in standard form
P(x) + Q(x) = 4x² − 2x + 2
How to use the add and subtract polynomials calculator
- Type each polynomial using x and ^ for powers.
- Choose add or subtract.
- Read the coefficients combined for each power.
- Copy the standard-form result.
Rules
Like terms have the same power of x Add or subtract only the coefficients P − Q = P + (−1)·Q: change every sign in Q Standard form lists terms from highest to lowest power
The degree of a polynomial is its highest power of x.
Worked examples
Each example below is generated by the same calculator you used above, so the working always matches the answer.
(3x²+2x−5) + (x²−4x+7)
- Degree 2
- Leading coefficient 4
Step-by-step working 3 steps
- 1Write the polynomials in standard form
P(x) = 3x² + 2x − 5 Q(x) = x² − 4x + 7
- 2Add like terms
x² terms: 3 + 1 = 4 x terms: 2 + (−4) = −2 constants: −5 + 7 = 2
Only terms with the same power of x can be combined.
- 3Result in standard form
P(x) + Q(x) = 4x² − 2x + 2
(3x²+2x−5) − (x²−4x+7)
- Degree 2
- Leading coefficient 2
Step-by-step working 3 steps
- 1Write the polynomials in standard form
P(x) = 3x² + 2x − 5 Q(x) = x² − 4x + 7
- 2Subtract like terms (distribute the minus sign)
x² terms: 3 − 1 = 2 x terms: 2 − (−4) = 6 constants: −5 − 7 = −12
Subtracting Q(x) changes the sign of every term in Q(x), then like terms are combined.
- 3Result in standard form
P(x) − Q(x) = 2x² + 6x − 12
(x³−2x) + (4x²+x)
- Degree 3
- Leading coefficient 1
Step-by-step working 3 steps
- 1Write the polynomials in standard form
P(x) = x³ − 2x Q(x) = 4x² + x
- 2Add like terms
x³ terms: 1 + 0 = 1 x² terms: 0 + 4 = 4 x terms: −2 + 1 = −1
Only terms with the same power of x can be combined.
- 3Result in standard form
P(x) + Q(x) = x³ + 4x² − x
(x+1)² − (2x)
- Degree 2
- Leading coefficient 1
Step-by-step working 3 steps
- 1Write the polynomials in standard form
P(x) = x² + 2x + 1 Q(x) = 2x
- 2Subtract like terms (distribute the minus sign)
x² terms: 1 − 0 = 1 x terms: 2 − 2 = 0 constants: 1 − 0 = 1
Subtracting Q(x) changes the sign of every term in Q(x), then like terms are combined.
- 3Result in standard form
P(x) − Q(x) = x² + 1
Where you will use this
- Algebra 1 and 2 polynomial worksheets
- Combining like terms in a geometry perimeter expression
- Checking sign errors when subtracting
Common mistakes to avoid
Not distributing the minus sign
In (3x² + 2x − 5) − (x² − 4x + 7), every term of the second polynomial changes sign, including the −4x and +7.
Combining unlike terms
3x² and 2x cannot be combined because their powers differ.
Forgetting missing terms
If a power is missing, its coefficient is 0 — line up columns by degree.
Frequently asked questions
How do you add polynomials?
Add the coefficients of terms with the same power of x and leave the other terms as they are.
How do you subtract polynomials?
Change the sign of every term in the second polynomial, then add like terms.
What is the degree of the sum?
Usually the larger of the two degrees, unless the leading terms cancel.
Related calculators
Quadratic Equation Solver
Discriminant, roots, vertex and factored form with a check.
Linear Equation Solver
Solve for x with variables on both sides, then check it.
Derivative Calculator
Differentiate with the rule named at every step.
Matrix Calculator
Add, multiply, invert and find determinants exactly.
Exponent Calculator
Whole, negative and fractional exponents.
Scientific Calculator
Brackets, powers, trig and logs — reduced one step at a time.
Browse everything in Algebra & Calculus or the full calculator list.