Polynomial Multiplication Calculator & Term Ledger

Enter two polynomials, including binomials and trinomials. Expand the product, choose an output power and see every signed coefficient product contributing to it. The ledger keeps powers whose contributions cancel so you can check why a term disappeared.

Exact polynomial arithmetic

Multiply polynomials and trace each coefficient

Expand two expressions in x, then inspect how the term pairs combine at each power.

6 term pairs · degree 3 product

Exact product
2x^3 + x^2 − 5x + 2

Use x, whole-number exponents and exact fractions. Enter each factor in its own box.

Signed contributions to x^2

Green bars extend right from zero. Amber bars extend left. Each bar represents one signed coefficient product.

Add the signed contributions for this power. Coefficient after combining: 1.

Every pair contributing to the selected power
Left termRight termCoefficient product
2x^224
−3xx-3
Open all powers and coefficients
Output powers with nonzero cross terms before combining
PowerTerm pairsCombined coefficient
x^312
x^221
x2-5
constant12
Open selectable CSV

How to use this calculator

  1. Enter the expressions in x in the two factor boxes.
  2. Calculate the product and read its expanded expression.
  3. Choose an output power. Read the signed contributions and note any exact cancellation.
  4. Open the full coefficient ledger or download the term-pair evidence as CSV.

The Formula

The mathematical logic powering this calculation is:

First simplify each factor as a polynomial in x by combining its like powers. Then apply the distributive property. For each pair aᵢxⁱ and bⱼxʲ, multiply the coefficients aᵢbⱼ and add the exponents i + j. For output power k, add the signed products from every pair whose exponents sum to k. The coefficients are exact fractions.

FOIL describes the four term pairs from multiplying two binomials. The same distribution works for any supported factor size. A touched power can cancel to zero after combining. Such a power appears in the ledger even though the final expression omits its zero term. If a factor simplifies to zero, there are no nonzero pairs and the result is the zero polynomial.

The same expression parser used by Polynomial Division accepts x, parentheses, explicit or supported implied multiplication, decimals, scientific notation and division by nonzero constants. Factors have degree at most 20 after each parsed operation and can have at most 12 nonzero simplified terms. Reduced input coefficient numerators and denominators each support up to 120 digits. The product can have degree up to 40. The bar lengths are approximate for readability and exact values remain in the ledger.

Worked Example

If you input:

  • Left factor: 2x² − 3x + 1
  • Right factor: x + 2

Result:

The product is 2x³ + x² − 5x + 2. The x² coefficient is 4 − 3 = 1 from two contributing term pairs.

Frequently Asked Questions

How do you multiply two polynomials?

Multiply each term in the first factor by each term in the second. Add exponents within each pair, and sum coefficients that land at the same power.

Can I use FOIL with more than two terms per factor?

FOIL names the four pairs in a binomial product. For larger factors, distribute each left term over every right term.

Why is a power missing from the result?

It can have no contributing pair, or the pairs can sum to zero. The ledger identifies exact cancellations among the touched powers.

Do decimal coefficients round during multiplication?

The parser treats a decimal or fraction as an exact rational number. The product and exported coefficient ratios retain the same exact arithmetic.

Similar Calculators