Polynomial Calculator (Add, Subtract, Multiply)

A polynomial calculator adds, subtracts and multiplies polynomials and writes the answer in standard form. For P(x) = x² + 3x − 4 and Q(x) = 2x − 1, the product is 2x³ + 5x² − 11x + 4, a polynomial of degree 3 with 4 terms.

Last updated · By · Runs in your browser, nothing is uploaded

Result

Step-by-Step Solution

Enter your values above to see the full working.

What Is a Polynomial?

A polynomial is an expression made of terms that each consist of a number (the coefficient) times a non-negative whole-number power of x, such as 3x², −4x or 7. The degree of a polynomial is the highest power that appears, so x² + 3x − 4 has degree 2 and 2x − 1 has degree 1.

Polynomials are the workhorses of algebra. They model curves, areas, volumes, trajectories and growth, and they are easy to calculate with because you only ever need to add, subtract and multiply. This calculator performs those three operations on any two polynomials and tidies the result into standard form, with terms ordered from the highest power to the lowest and like terms combined.

Names by Degree

DegreeNameExampleGraph shape
0Constant7Horizontal line
1Linear2x − 1Straight line
2Quadraticx² + 3x − 4Parabola
3Cubic2x³ + 5x² − 11x + 4S-shaped curve
4Quarticx⁴ − 5x² + 4W or U shape

Rules for Polynomial Arithmetic

Add / subtract: combine like terms (same power of x) Multiply: multiply every term of P by every term of Q, then combine like terms degree(P × Q) = degree(P) + degree(Q)
  • Like terms have the same power of x, so 3x² and −5x² combine to −2x², but 3x² and 3x do not.
  • When subtracting, change the sign of every term of the second polynomial before adding.
  • When multiplying, the number of raw products is (terms in P) × (terms in Q), which is then reduced by combining like terms.
  • The degree of a sum is at most the larger degree, while the degree of a product is the sum of the degrees.

For multiplying two simple brackets, see the FOIL calculator. To divide by a linear factor, use synthetic division.

How Is It Calculated? Worked Examples

Multiply (x² + 3x − 4)(2x − 1)

  1. Multiply each term of P by 2x: 2x³ + 6x² − 8x.
  2. Multiply each term of P by −1: −x² − 3x + 4.
  3. Add the two lines: 2x³ + 6x² − 8x − x² − 3x + 4.
  4. Combine like terms: 2x³ + 5x² − 11x + 4.
  5. The degree is 1 + 2 = 3, and there are 4 terms.

Checking by Evaluation

At x = 2, P(2) = 4 + 6 − 4 = 6 and Q(2) = 3, so P(2) × Q(2) = 18. The product polynomial gives 2(8) + 5(4) − 11(2) + 4 = 16 + 20 − 22 + 4 = 18 ✓. At x = 1, P(1) = 0, so the product must also be 0, which matches the calculator’s “value at x = 1”.

Add and Subtract

OperationResultDegree
P + Qx² + 5x − 52
P − Qx² + x − 32
P × Q2x³ + 5x² − 11x + 43

For P − Q, subtracting 2x − 1 means adding −2x + 1: x² + 3x − 4 − 2x + 1 = x² + x − 3.

Roots and Factors

P(x) = x² + 3x − 4 factors as (x − 1)(x + 4), so its roots are 1 and −4. Multiplying by Q adds the root x = 1/2, so the product has roots 1, −4 and 1/2.

How to Use This Polynomial Calculator

  1. Type the first polynomial P(x), for example x^2 + 3x - 4. Use ^ for powers.
  2. Type the second polynomial Q(x).
  3. Choose add, subtract or multiply.
  4. Read the result in standard form, its degree, the number of terms and its value at x = 1.

Write coefficients next to x without a multiplication sign, such as 3x, or with one, 3*x. Both work.

Where Polynomial Arithmetic Is Used

  • Algebra and calculus courses: expanding products before differentiating or integrating. See the polynomial derivative calculator.
  • Geometry: expressing areas and volumes, such as the area of a rectangle with sides (x + 3) and (x + 5).
  • Computer graphics and engineering: curves and splines are polynomial functions that are added and multiplied.
  • Signal processing and cryptography: polynomial multiplication underlies convolution and error-correcting codes.
  • Physics and economics: polynomial models for trajectories, cost and revenue.

What Are the Most Common Mistakes With the Polynomial Calculator (Add, Subtract, Multiply)?

  • Forgetting to distribute the minus sign when subtracting. P − Q changes every sign in Q.
  • Combining unlike terms. x² and x are different and cannot be added.
  • Missing cross terms in multiplication. Every term of P must multiply every term of Q.
  • Adding exponents incorrectly. x² × x³ = x⁵, not x⁶.
  • Not ordering terms. Standard form lists the highest power first.
  • Expecting division. This tool adds, subtracts and multiplies. For division by (x − r), use synthetic division.

Where Can You Verify These Formulas?

The definitions and formulas on this page follow standard references. Check them against these sources:

Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.

Frequently Asked Questions

What is a polynomial?

An expression that sums terms of the form a·xⁿ, where a is a number and n is a non-negative whole number. For example 2x³ + 5x² − 11x + 4.

How do you multiply two polynomials?

Multiply each term of the first by each term of the second, then combine like terms. (x² + 3x − 4)(2x − 1) = 2x³ + 5x² − 11x + 4.

What is the degree of a polynomial?

The highest power of x with a non-zero coefficient. The degree of a product is the sum of the degrees of the factors.

How do you subtract polynomials?

Change the sign of every term in the second polynomial, then add. P − Q = P + (−Q).

What are like terms?

Terms with the same power of x. They can be combined by adding their coefficients.

How can I check my result?

Substitute a value such as x = 2 into P, Q and the result. The product of P(2) and Q(2) should equal the value of the product polynomial at 2.