Skip to main content

Polynomial Calculator

Try an example:

This polynomial calculator adds, subtracts, multiplies and divides polynomials, and it solves polynomial equations. Type an operation or an equation and read each step. It is free and belongs to our math solver.

How to Use the Polynomial Calculator

Enter an Operation

Type (x+3)(x^2-2x+1) to multiply or (x^3+1)/(x-2) to divide. Keep each polynomial inside parentheses.

Enter an Equation

Type an equals sign, such as x^3-6x^2+11x-6=0, and it finds the roots.

Read the Steps

Division shows each line of long division. Equations show the factors and a check.

Parts of a Polynomial

Take 4x3−7x+24x^3-7x+2.

PartIn this example
Terms4x34x^3, −7x-7x and 22
Degree (highest power)3
Leading coefficient4
Constant term2

Names by degree: 1 is linear, 2 is quadratic, 3 is cubic and 4 is quartic. Names by number of terms: 1 is a monomial, 2 a binomial and 3 a trinomial. Standard form lists the powers from highest to lowest.

Polynomial Operations

Adding and Subtracting

Combine terms with the same power. When you subtract, change the sign of every term in the second bracket. For example, (4x3−x)−(x3+2x−5)=3x3−3x+5(4x^3-x)-(x^3+2x-5)=3x^3-3x+5.

Multiplying

Multiply each term in the first bracket by each term in the second, then combine like terms. The degrees add.

Polynomial Long Division

Divide the leading terms, multiply, subtract, bring down, and repeat until the remainder has a smaller degree than the divisor. Put in a zero for any missing power. You can use this page as a polynomial long division calculator whenever one bracket is divided by another.

When the divisor is x−cx-c, synthetic division is a shortcut that uses only the coefficients. It gives the same quotient and remainder, but this tool shows long division.

How the Polynomial Solver Finds Roots

A root is a value that makes the polynomial zero. The usual plan is:

  1. Move everything to one side.
  2. Take out any common factor.
  3. Try to factor by a pattern or by grouping.
  4. If that fails, use the rational root theorem: test fractions whose top divides the constant and whose bottom divides the leading coefficient.
  5. Divide out each root you find. Finish the quadratic that is left with the quadratic formula.

Roots can be real, complex or repeated. The number of times a root repeats is its multiplicity. On a graph, a root of multiplicity 1 crosses the xx-axis, and one of multiplicity 2 touches it and turns back.

Which method should you choose? Factor when you can see a pattern. Test rational roots when you can't. Use the quadratic formula calculator once you are down to degree 2.

Polynomial calculator graph of a cubic that crosses the x-axis at 1, 2 and 3

Worked Examples

Example 1: Multiply Two Polynomials

Multiply (2x−1)(x2+x+1)(2x-1)(x^2+x+1).

  1. 2x2x times each term: 2x3+2x2+2x2x^3+2x^2+2x.
  2. −1-1 times each term: −x2−x−1-x^2-x-1.
  3. Combine: 2x3+x2+x−12x^3+x^2+x-1.

Example 2: Divide With a Remainder

Divide x3+1x^3+1 by x−2x-2. Write x3+0x2+0x+1x^3+0x^2+0x+1 first.

  1. x3÷x=x2x^3\div x=x^2. Multiply and subtract: 2x2+0x2x^2+0x is left.
  2. 2x2÷x=2x2x^2\div x=2x. Multiply and subtract: 4x+14x+1 is left.
  3. 4x÷x=44x\div x=4. Multiply and subtract: 9 is left.

The quotient is x2+2x+4x^2+2x+4 and the remainder is 9, so the answer is x2+2x+4+9x−2x^2+2x+4+\dfrac{9}{x-2}.

Example 3: Solve a Cubic

Solve x3−6x2+11x−6=0x^3-6x^2+11x-6=0.

  1. Possible rational roots divide 6. Test 1: 1−6+11−6=01-6+11-6=0, so x=1x=1 is a root.
  2. Divide by x−1x-1: x2−5x+6x^2-5x+6 is left.
  3. Factor: (x−2)(x−3)(x-2)(x-3).

The roots are x=1x=1, x=2x=2 and x=3x=3.

Common Mistakes to Check

Skipping a Missing Power

In Example 2, leaving out 0x20x^2 and 0x0x puts the columns out of line and spoils the answer.

Losing a Root

In x3−4x=0x^3-4x=0, dividing both sides by xx throws away the root 0. Factor instead: x(x−2)(x+2)=0x(x-2)(x+2)=0.

Practice Problems

  1. Add (3x2+2x−1)+(x2−5x+4)(3x^2+2x-1)+(x^2-5x+4).
  2. Multiply (x+3)(x2−2x+1)(x+3)(x^2-2x+1).
  3. Divide (2x3−x2+4)÷(x−1)(2x^3-x^2+4)\div(x-1).
  4. Solve x3−4x=0x^3-4x=0.
  5. Solve x3−3x2+4=0x^3-3x^2+4=0.
Show the answers
  1. 4x2−3x+34x^2-3x+3
  2. x3+x2−5x+3x^3+x^2-5x+3
  3. 2x2+x+1+5x−12x^2+x+1+\dfrac{5}{x-1}
  4. x=0x=0, x=2x=2 or x=−2x=-2
  5. x=2x=2 (a repeated root) or x=−1x=-1

Related Calculators

Learn More

FAQ

What Is the Degree of a Polynomial?

The highest power of the letter. 4x3−7x+24x^3-7x+2 has degree 3.

What Is the Remainder Theorem?

When you divide P(x)P(x) by x−cx-c, the remainder is P(c)P(c). In Example 2, P(2)=23+1=9P(2)=2^3+1=9, which matches the remainder.

How Many Roots Does a Polynomial Have?

As many as its degree, if you count complex roots and repeats. x4+5x2+4=0x^4+5x^2+4=0 has four: ii, −i-i, 2i2i and −2i-2i. This result is called the fundamental theorem of algebra.

What Is Not a Polynomial?

Anything with a letter in a denominator, under a root or in an exponent, such as 1x\frac{1}{x}, x\sqrt{x} or 2x2^x.

Is Zero a Polynomial?

Yes. It is called the zero polynomial, and most books leave its degree undefined.

Can It Factor a Polynomial Too?

A polynomial equation calculator factors as part of solving. If you only want the factored form, use the factoring calculator.


Next step: do one long division on paper, check it with the remainder theorem, then confirm it with the polynomial calculator above.