Polynomial Calculator

Reviewed by CalcMulti Editorial Team·Last updated: ·Algebra Hub

A polynomial is an algebraic expression with one or more terms of the form axⁿ where n is a non-negative integer. This calculator performs addition, subtraction, and multiplication of two polynomials up to degree 4, collecting like terms and presenting the result in standard form (highest degree first).

Polynomial arithmetic is a core algebra skill used in factoring, calculus (integration by parts, partial fractions), and computer science (polynomial hashing, error-correcting codes).

Adding and subtracting polynomials: combine like terms — terms with the same variable and exponent. For example, (3x² + 2x − 5) + (x² − 4x + 1) = 4x² − 2x − 4. Subtraction distributes the negative sign to every term in the second polynomial: (3x² + 2x − 5) − (x² − 4x + 1) = 3x² + 2x − 5 − x² + 4x − 1 = 2x² + 6x − 6.

Multiplying polynomials: use the distributive property — multiply every term in the first polynomial by every term in the second, then collect like terms. For (2x + 3)(x² − x + 4): distribute 2x to get 2x³ − 2x² + 8x, and distribute 3 to get 3x² − 3x + 12. Add: 2x³ + x² + 5x + 12. The degree of the product equals the sum of the degrees: degree(A) + degree(B). The FOIL method is a shortcut for multiplying two binomials specifically.

Key polynomial identities you should recognize instantly: (a + b)² = a² + 2ab + b² (perfect square), (a − b)² = a² − 2ab + b² (perfect square), (a + b)(a − b) = a² − b² (difference of squares), (a + b)³ = a³ + 3a²b + 3ab² + b³ (cube of a binomial). Recognizing these patterns allows you to expand or factor in one step instead of distributing term by term.

Formula

P(x) = aₙxⁿ + aₙ₋₁xⁿ⁻¹ + … + a₁x + a₀

n
degree of the polynomial (highest power of x)
aₙ
leading coefficient (coefficient of the highest-degree term)
a₀
constant term (value when x = 0)

Polynomial Operations

P(x)

Q(x)

Polynomial Operations Reference

OperationRuleExampleResult
AdditionCombine like terms(3x²+2x−5)+(x²−4x+3)4x²−2x−2
SubtractionDistribute negative, combine(3x²+2x−5)−(x²−4x+3)2x²+6x−8
FOIL (binomials)(a+b)(c+d)=ac+ad+bc+bd(x+3)(x−2)x²+x−6
Distribute (trinomial)Each term × each term(x+1)(x²+x+1)x³+2x²+2x+1
Square of binomial(a+b)²=a²+2ab+b²(x+4)²x²+8x+16
Difference of squares(a+b)(a−b)=a²−b²(x+5)(x−5)x²−25

Polynomial Degree Reference

DegreeNameStandard FormExample
0Constanta7
1Linearax + b3x − 2
2Quadraticax² + bx + cx² − 5x + 6
3Cubicax³ + bx² + cx + d2x³ − x + 4
4Quarticax⁴ + bx³ + cx² + dx + ex⁴ − 3x² + 1
5Quinticax⁵ + …x⁵ − x³ + 2x

Disclaimer

This calculator is for educational purposes only and does not constitute professional advice. Results are based on standard mathematical formulas. Always verify critical calculations with a qualified professional before making important decisions.

Frequently Asked Questions