Audited 05 Aug 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

Add Subtract Polynomials Calculator

Add or subtract two polynomials entered as coefficient lists, constant first: like powers combine term by term, then the result is evaluated at your x.

Add Subtract Polynomials Calculator

Operation
Result evaluated at x
31
The combined polynomial evaluated at the x you entered, equal to A(x) + B(x) or A(x) − B(x).
Result coefficients
5, 7, 3

Background.

Adding two polynomials is bookkeeping: terms with the same power of x combine, and nothing else interacts. In (3x² + 2x + 1) + (5x + 4) there is no x² term on the right to pair with, so 3x² carries over unchanged, while 2x + 5x gives 7x and 1 + 4 gives 5. The answer is 3x² + 7x + 5.

Hand-work mistakes usually come from misaligned powers — an x² coefficient added to an x coefficient because they sat in the same column — or from subtraction. A − B means subtracting every term of B, so the minus sign has to reach each coefficient, and a negative coefficient in B turns into an addition. (x² + 2x − 1) − (x² − 3x + 4) is 5x − 5; forget to carry the sign to the constant and you get 5x + 3, forget it on the x term and you get −x − 5.

Here each polynomial is entered as a list of coefficients starting with the constant, so 1 + 2x + 3x² is typed as 1, 2, 3, and 4 + 5x as 4, 5. Written that way, alignment is automatic: first numbers combine with first numbers, second with second, and a shorter list is padded with zeros. A missing power still needs an explicit 0 — x³ + 1 is 1, 0, 0, 1 — because a skipped position would shift every later coefficient down a power.

The combined polynomial is then evaluated at an x of your choosing, which doubles as a check on hand work: (A + B)(x) must equal A(x) + B(x). Two quirks are worth knowing. Each list needs at least two numbers, so a constant such as 7 goes in as 7, 0. And the result is not tidied, so if subtraction cancels the highest power, its 0 stays at the end of the list.

What is add subtract polynomials calculator?

The sum or difference of two polynomials is the polynomial whose coefficient for each power of x is the sum or difference of the two original coefficients for that power. Its degree is at most the larger of the two degrees, and it can be lower when subtraction cancels the leading terms. Evaluating it at a number x gives the same value as evaluating each polynomial separately and then adding or subtracting.

How to use this calculator.

  1. Write polynomial A in ascending powers and type its coefficients in that order, separated by commas or spaces: 1 + 2x + 3x² becomes 1, 2, 3. Put a 0 in place of any missing power.
  2. Enter polynomial B the same way. It may be shorter or longer than A; the shorter list is treated as having zeros for its missing higher powers.
  3. Choose Add, or Subtract B from A. For B − A, swap the two entries.
  4. Enter the x at which to evaluate the result — 1, 2 or 10 make easy mental checks — then read the value and the result's coefficients, constant first.

The formula.

(A +/- B)_k = a_k +/- b_k, matching equal powers

If A = a₀ + a₁x + a₂x² + … and B = b₀ + b₁x + b₂x² + …, then A ± B has coefficients c_k = a_k ± b_k for every power k, with a missing a_k or b_k taken as 0 past the end of the shorter list. This is the distributive law applied to like terms: a_k x^k + b_k x^k = (a_k + b_k) x^k, while terms with different powers never merge. The result is then evaluated as P(x) = c₀ + c₁x + c₂x² + …, each coefficient multiplied by x raised to its position in the list, counting from zero. Coefficients may be negative or decimal. Evaluation is the natural place to catch a typing slip: the value at any x must equal A(x) ± B(x), so if you work those two out separately by hand, the three numbers must agree. Choosing x = 1 is especially quick, since P(1) is just the sum of the coefficients.

A worked example.

Example

Add A = 1 + 2x + 3x² (entered as 1, 2, 3) and B = 4 + 5x (entered as 4, 5). B has no x² term, so it is padded to 4, 5, 0. Matching positions: constants 1 + 4 = 5, x terms 2 + 5 = 7, and x² terms 3 + 0 = 3. The result is 5 + 7x + 3x², shown as 5, 7, 3. Evaluated at x = 2 it is 5 + 7 × 2 + 3 × 4 = 5 + 14 + 12 = 31. As a check, A(2) = 1 + 4 + 12 = 17 and B(2) = 4 + 10 = 14, which also add to 31. Switching to Subtract gives −3, −3, 3, that is 3x² − 3x − 3, which is worth 3 at x = 2 — the same as 17 − 14.

polynomial B4,5
polynomial A1,2,3
evaluate At2
operationadd

Frequently asked questions.

How do I enter a polynomial with a gap, like x³ − 4?
Fill the gap with zeros. Constant first, then x, x² and x³, so x³ − 4 is entered as −4, 0, 0, 1. Leaving the zeros out would make the list read −4 + x, because a number's position in the list, not its size, decides which power it belongs to.
Can I type the polynomial as 3x^2 + 2x + 1?
No. The boxes read only numbers, separated by commas, spaces or semicolons. List the coefficients from the constant upward instead: 1, 2, 3. Typing them highest power first, the order most textbooks print, reverses the polynomial and gives a different answer.
Why does my result end with a 0?
Because subtraction cancelled the highest power and the trailing zero is left in place. Subtracting 0, 0, 3 from 1, 2, 3 gives 1, 2, 0, which is just 1 + 2x — the degree has dropped from 2 to 1. Read the degree from the last coefficient that is not zero.
Why won't it accept a single number such as 7?
Each list must contain at least two numbers. To add or subtract a constant, give it a zero x coefficient — 7, 0 — and the result is the same as changing the other polynomial's constant term by 7 and leaving everything else alone.
How do I get B − A instead of A − B?
Swap the two entries, or keep them and negate the answer: every coefficient of B − A is the negative of the matching coefficient of A − B. For the lists 1, 2, 3 and 4, 5, A − B is −3, −3, 3, so B − A is 3, 3, −3.
Can it multiply or divide polynomials?
No, only add and subtract. Multiplication mixes powers — every term of one polynomial meets every term of the other, so x times x² lands in the x³ slot — and cannot be done by matching positions. Division needs long division or synthetic division.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
(A +/- B)_k = a_k +/- b_k, matching equal powers
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon