๐Ÿ‡บ๐Ÿ‡ธ USC
Math & Conversion
๐Ÿ”ข

Polynomial Calculator

Add, subtract or multiply two polynomials in standard form

๐Ÿ”ข Polynomials

Use ^ for exponents, e.g. 3x^3 - 2x + 7. Whitespace is optional.

โœ…

Last updated June 2026

Method: Each polynomial is parsed into a coefficient list (highest degree first). Addition and subtraction combine like terms; multiplication convolves the coefficients. The answer is returned in standard form, ordered by decreasing exponent.

Included: Addition, subtraction and multiplication of two single-variable polynomials; negative and decimal coefficients; a term-by-term breakdown and the degree of the result.

Not included: Polynomial division, factoring, root-finding, and multivariable expressions. Results are computed in your browser; nothing is sent to a server.

Polynomial calculator: add, subtract and multiply step by step

A polynomial calculator takes two expressions like 2x^2 + 3x - 5 and x^2 - x + 4 and returns their sum, difference, or product in standard form. Adding the two above gives 3x2 + 2x - 1; subtracting gives x2 + 4x - 9; multiplying gives 2x4 + x3 + 0x2 + 17x - 20 (which simplifies to 2x4 + x3 + 17x - 20). This tool does the bookkeeping - lining up like terms and keeping track of signs and exponents - so you can check your work instantly.

How polynomial arithmetic works

Internally, every polynomial is just a list of coefficients indexed by the power of x. For example 2x^2 + 3x - 5 is the list [2, 3, -5] (highest degree first). The three operations are simple rules on these lists:

Add / subtract: combine coefficients of matching powers (a·xi) ± (b·xi) = (a ± b)·xi Multiply: ck = Σ ai · bj   for all i + j = k

The multiplication rule is a convolution: each coefficient of the product is the sum of every pair of input coefficients whose exponents add to that power. It is the same calculation you do by hand with the distributive property (or FOIL for two binomials), just organized so nothing is missed.

A worked example: addition

Add (2x2 + 3x - 5) and (x2 - x + 4). Group the like terms:

  • x2 terms: 2x2 + 1x2 = 3x2
  • x terms: 3x + (-1x) = 2x
  • constants: -5 + 4 = -1

Putting them in order gives 3x2 + 2x - 1. The degree stays at 2 because the leading terms did not cancel.

A worked example: multiplication

Multiply (x + 2) by (x - 3). Distribute every term of the first across the second: x·x + x·(-3) + 2·x + 2·(-3) = x2 - 3x + 2x - 6. Combining the two x terms gives x2 - x - 6. Notice the result is degree 2 - the sum of the two degree-1 inputs - which is always the case for multiplication.

A bigger multiplication: trinomial times binomial

Two-term products are easy enough to do in your head, but the bookkeeping grows fast once either polynomial has three or more terms. Multiply (x2 + 2x - 1) by (3x - 4). Every one of the three terms in the first factor must hit both terms in the second, giving six partial products before any cleanup:

  • x2·3x = 3x3 and x2·(-4) = -4x2
  • 2x·3x = 6x2 and 2x·(-4) = -8x
  • -1·3x = -3x and -1·(-4) = +4

Now collect like terms: the x2 column is -4x2 + 6x2 = 2x2, and the x column is -8x - 3x = -11x. The standard-form answer is 3x3 + 2x2 - 11x + 4, degree 3 (2 + 1, exactly as expected). This is precisely the kind of nine-or-fewer-product expansion where a sign or a like-term gets dropped by hand, so it is worth letting the calculator confirm your result.

FOIL and why it is just the distributive property

FOIL - First, Outer, Inner, Last - is a memory aid for multiplying two binomials, and nothing more. For (2x + 3)(x - 5) it tells you to take the First terms (2x·x = 2x2), the Outer terms (2x·-5 = -10x), the Inner terms (3·x = 3x), and the Last terms (3·-5 = -15), then combine: 2x2 - 10x + 3x - 15 = 2x2 - 7x - 15. The catch is that FOIL only works when both factors have exactly two terms. The moment you have a trinomial, FOIL has no "Outer" or "Inner" to point at, and you fall back on the general rule: multiply every term by every term. That general rule is what this calculator applies, so it never runs out of letters the way FOIL does.

Special products worth recognizing

A few products show up so often that memorizing their patterns saves time and helps you spot factoring opportunities later. You can verify each one with this calculator:

  • Difference of squares: (a + b)(a - b) = a2 - b2. The middle terms cancel, so (x + 4)(x - 4) = x2 - 16.
  • Perfect-square trinomial: (a + b)2 = a2 + 2ab + b2, so (x + 3)2 = x2 + 6x + 9. The middle term is twice the product of the two parts - forgetting it ("freshman's dream") is a classic error.
  • Square of a difference: (a - b)2 = a2 - 2ab + b2, so (2x - 1)2 = 4x2 - 4x + 1.
  • Sum and difference of cubes: these come from products like (x + 2)(x2 - 2x + 4) = x3 + 8, useful when you later need to factor a cubic.

Because the calculator squares a binomial by multiplying it by itself, you can confirm any of these expansions in a couple of seconds rather than trusting the pattern blindly.

Naming polynomials by terms and degree

Polynomials are classified two ways, and the vocabulary turns up constantly in algebra and pre-calculus. By the number of terms: a monomial has one term (5x2), a binomial has two (x + 3), and a trinomial has three (x2 - x + 6); beyond that it is simply "a polynomial." By degree: degree 0 is a constant, degree 1 is linear, degree 2 is quadratic, degree 3 is cubic, degree 4 is quartic, and degree 5 is quintic. These labels matter because the degree predicts a polynomial's shape and behavior - a quadratic graphs as a parabola, while higher-degree polynomials can wiggle up and down more times. When you need the roots of a quadratic specifically, the Quadratic Formula Calculator takes the standard-form output of this tool and solves it.

Where polynomial arithmetic shows up in the real world

Combining and expanding polynomials is not just classroom busywork - it underpins a lot of everyday quantitative work:

  • Area and volume: if a rectangle is (x + 5) wide and (x + 2) tall, its area is the product (x + 5)(x + 2) = x2 + 7x + 10. Adding a border or stacking shapes turns into adding polynomials.
  • Finance and growth: compound-interest and annuity formulas expand into polynomials in the growth factor, and economists model cost, revenue, and profit as polynomial functions of quantity produced.
  • Physics and motion: the height of a thrown object over time is a quadratic, and combining several motion equations means adding their polynomial pieces.
  • Engineering and graphics: curves used in design and computer graphics (splines and Bezier curves) are built from polynomials that get added and multiplied to blend shapes smoothly.
  • Statistics: fitting a trend line or a curve to data (polynomial regression) produces a polynomial you then evaluate and compare - related to the work the Average Calculator and Slope Calculator handle for simpler cases.

Why standard form matters

Writing the answer from the highest power down to the constant is not just a tidiness rule. Standard form lets you read the degree and leading coefficient at a glance, which together tell you the polynomial's end behavior - whether the graph rises or falls on the far left and right. It also makes two answers directly comparable: lined up by power, you can see instantly whether they are equal, and you can add or subtract them column by column without re-sorting. Most textbooks, graders, and software expect standard form, so the calculator always returns its result that way, even if you typed the terms out of order or with gaps. If you need to raise a single quantity to a power while you work, the Exponent Calculator handles that piece.

How to use this calculator

  1. Enter the first polynomial using ^ for exponents, e.g. 3x^3 - 2x + 7. Spaces are optional.
  2. Pick the operation: add, subtract, or multiply.
  3. Enter the second polynomial in the same format.
  4. Press Calculate. The big result at the top is the answer in standard form; below it you get the degree, a side-by-side of both inputs, and a term-by-term table.

You can leave off a coefficient of 1 (type x rather than 1x), use negative and decimal coefficients, and write the constant term as a plain number.

Who this is for

  • Algebra 1 and 2 students checking homework on combining like terms and multiplying binomials.
  • Pre-calculus and calculus students simplifying expressions before differentiating or integrating.
  • Teachers and tutors who want a fast way to generate or verify answers in standard form.
  • Anyone who needs to expand a product like (x + 2)(x - 3) without slips in sign or exponent.

Key terms explained

  • Term: a single piece of a polynomial, such as 3x2, made of a coefficient and a power of x.
  • Coefficient: the number multiplying the variable - the 3 in 3x2.
  • Degree: the highest exponent with a non-zero coefficient.
  • Like terms: terms with the same power of x, which can be combined by adding their coefficients.
  • Standard form: terms written from highest to lowest exponent.
  • Leading coefficient: the coefficient of the highest-degree term.

Three quick scenarios

  • Simplifying before a derivative: expand (2x - 1)(x + 4) = 2x2 + 7x - 4, then differentiate the simpler form.
  • Combining areas: if two regions have areas x2 + 2x and 3x + 5, their total area is the sum x2 + 5x + 5.
  • Checking a factoring answer: multiply your factors back together; if (x + 2)(x - 3) gives x2 - x - 6, the factoring matches the original.

What affects the result

  • Signs: a single dropped negative changes the whole answer - subtraction in particular flips every term of the second polynomial.
  • Matching exponents: only terms with the same power combine; x2 and x are not like terms.
  • The operation: addition and subtraction keep (or lower) the degree, while multiplication adds the degrees together.
  • Cancellation: opposite terms can vanish, sometimes dropping the degree of the answer.

Tips for working by hand

  • Always rewrite subtraction as adding the opposite before combining terms.
  • Stack like terms in columns so nothing is skipped, especially with missing powers (treat them as 0).
  • After multiplying, double-check the degree equals the sum of the two input degrees.
  • Finish by writing the answer in standard form, highest power first.

Limitations and assumptions

  • It handles a single variable (x). Expressions like xy or x + y are not supported.
  • Exponents must be whole numbers of 0 or greater - polynomials do not have fractional or negative powers.
  • It performs add, subtract and multiply only - not division, factoring or solving.
  • Decimal coefficients are kept, with tiny rounding applied only to remove floating-point noise.

How it compares to related calculators

This page handles polynomial arithmetic. For other algebra tasks, a sister tool fits better:

โš ๏ธ Common mistakes & edge cases

Only flipping the first term when subtracting

Subtraction distributes the minus sign across every term of the second polynomial. (3x - 5) - (x - 2) is 3x - 5 - x + 2 = 2x - 3, not 3x - 5 - x - 2.

Combining unlike terms

You can only add coefficients of the same power. 2x2 and 3x do not combine into 5x3 or anything else - they stay as separate terms.

Adding exponents during addition

Exponents only add when you multiply terms. When adding, x2 + x2 = 2x2, not x4. Mixing these rules is the most common slip.

Forgetting missing powers

If a polynomial skips a power (say x3 + 1 has no x2 or x term), treat those as 0 when lining up columns so a term is not accidentally dropped.

Note: This calculator is for learning and checking work. On graded assignments, show your own steps - the answer alone usually is not enough for full credit.

❓ Frequently asked questions

How do you add two polynomials?

To add polynomials you combine like terms - terms that have the same variable raised to the same power. Line up the x^2 terms, the x terms, and the constants, then add their coefficients. For example (2x^2 + 3x - 5) + (x^2 - x + 4) = 3x^2 + 2x - 1. The calculator does this automatically and returns the answer in standard form.

How do you subtract polynomials?

Subtracting is the same as adding the opposite: distribute the minus sign across every term of the second polynomial, then combine like terms. So (2x^2 + 3x - 5) - (x^2 - x + 4) = 2x^2 + 3x - 5 - x^2 + x - 4 = x^2 + 4x - 9. A common mistake is forgetting to flip the sign of every term in the second polynomial, not just the first.

How do you multiply two polynomials?

Multiply every term of the first polynomial by every term of the second (the distributive property, sometimes called FOIL for two binomials), then combine like terms. Mathematically this is a convolution of the two coefficient lists: each output coefficient is the sum of products whose exponents add up to that power. The degree of the product equals the sum of the two input degrees.

What is standard form of a polynomial?

Standard form lists the terms in order of decreasing exponent, from the highest power of x down to the constant. For example x^2 + 4x - 9 is in standard form, while -9 + 4x + x^2 is the same polynomial out of order. The leading term (highest degree) determines the polynomial's degree and end behavior. This calculator always outputs standard form.

What is the degree of a polynomial?

The degree is the highest exponent of the variable that appears with a non-zero coefficient. In 5x^3 - 2x + 1 the degree is 3. When you add or subtract, the result's degree is at most the higher of the two inputs (it can drop if the leading terms cancel). When you multiply, the degree is exactly the sum of the two degrees.

How do I type a polynomial into the calculator?

Write it the way you would on paper, using ^ for exponents: for example 2x^2 + 3x - 5 or 3x^3 - x + 7. Spaces are optional, a coefficient of 1 can be left off (write x instead of 1x), and the constant term is just a number. The calculator accepts +, -, x, digits, decimal points and ^.

Can this calculator handle negative or decimal coefficients?

Yes. Coefficients can be negative (e.g. -4x^2) and decimal (e.g. 1.5x - 0.25). The result keeps decimal coefficients where they occur and rounds only to clean up floating-point noise. Exponents, however, must be whole numbers of zero or greater, because polynomials by definition use non-negative integer powers.

Does it divide polynomials or factor them?

No. This tool covers the three core operations - addition, subtraction and multiplication of two polynomials. Polynomial long division, factoring, and finding roots are separate operations. For solving a degree-2 equation, use the Quadratic Formula Calculator; for evaluating powers, use the Exponent Calculator.

Why does my multiplied result have a higher degree?

Multiplication adds exponents. When you multiply x^2 by x^2 you get x^4, so the product of two quadratics is generally a degree-4 polynomial. The number of terms can also grow before like terms are combined - two trinomials produce up to nine products that then collapse into a single standard-form answer.

Can like terms cancel to zero?

Yes. If two polynomials are identical and you subtract them, every term cancels and the result is 0. Likewise, opposite terms can cancel during addition - for instance the x terms in (3x + 2) + (-3x + 5) cancel, leaving 7. The calculator shows the simplified result after all cancellation.

What is FOIL and when can I use it?

FOIL (First, Outer, Inner, Last) is a memory aid for multiplying two binomials, such as (2x + 3)(x - 5) = 2x^2 - 10x + 3x - 15 = 2x^2 - 7x - 15. It only works when both factors have exactly two terms. For trinomials or longer expressions there is no Outer or Inner term, so you must use the general rule - multiply every term by every term - which is exactly what this calculator does.

What is the difference between a monomial, binomial and trinomial?

These names count the terms. A monomial has one term (like 5x^2), a binomial has two terms (like x + 3), and a trinomial has three terms (like x^2 - x + 6). Polynomials are also named by degree: degree 1 is linear, 2 is quadratic, 3 is cubic, 4 is quartic, and 5 is quintic. The two naming systems are independent - x^2 + 3 is a binomial that is also quadratic.

๐Ÿ’ก Good to know

Standard form makes everything easier

Writing a polynomial from highest power to lowest lets you read the degree and leading coefficient at a glance and makes adding, subtracting and comparing answers far less error-prone.

Multiplication grows the degree

The product of a degree-2 and a degree-3 polynomial is degree 5. If your multiplied answer has the wrong degree, you likely missed a pair of terms - the degrees of the inputs always add.

Use it to check factoring

After you factor a polynomial, multiply the factors back together here. If you land on the original expression, your factoring is correct - a quick, reliable self-check.

Related Calculators