Skip to content
LoveToCalc

Polynomial division calculator

Type two polynomials and see the quotient, the remainder and the long division worked out one step at a time.

Write powers as x^2 or x². The multiplication sign can be left out: 2x, 3(x + 1).

Try:

Result and working

Quotient
x²+x+3
Remainder
5

Working

Left to divideQuotient termSubtractedLeft after
Step 1x³−2x²−4x²x²(x−3) = x³−3x²x²−4
Step 2x²−4xx(x−3) = x²−3x3x−4
Step 33x−433(x−3) = 3x−95

How to use the calculator

Type the polynomial you want to divide in the first field and the one you divide by in the second, the way you would on a calculator: x^3 - 2x^2 - 4 and x - 3. The multiplication sign is optional, so 2x and 3(x + 1) work. The quotient, the remainder and the working appear as you type.

Both polynomials have to use the same letter. A plain number is fine in either field, but x in one and y in the other cannot be divided. The address bar keeps both polynomials, so a link opens the same division again.

Long division, step by step

Polynomial division works like ordinary long division, with powers of x instead of tens and units. At each step you look only at the leading terms: what does the divisor’s first term need to be multiplied by to make the dividend’s? That is the next term of the quotient. Multiply the whole divisor by it, subtract the product and carry on with what is left. You are done when what is left has a lower degree than the divisor. What is left is the remainder.

Dividing x³ − 2x² − 4 by x − 3:

Step Left to divide New quotient term Subtract Left after
1 x³ − 2x² − 4 x² x²(x − 3) = x³ − 3x² x² − 4
2 x² − 4 x x(x − 3) = x² − 3x 3x − 4
3 3x − 4 3 3(x − 3) = 3x − 9 5

The quotient is x² + x + 3 and the remainder 5. That means x³ − 2x² − 4 = (x² + x + 3)(x − 3) + 5, and multiplying out the right-hand side gives the dividend back. That is the easiest way to check the answer. The method and more examples are on the polynomial division formula page.

When the division comes out even

A remainder of 0 means the divisor is a factor of the dividend. x² − 1 divided by x − 1 is x + 1 with nothing left over, so x² − 1 = (x + 1)(x − 1). The calculator says so instead of showing a remainder.

This is how you factor a cubic. Find a root by trying values such as x = 1 or x = −2. If p(a) = 0, then x − a is a factor by the factor theorem. Divide it out, and what is left is a quadratic the equation solver can finish.

The remainder without dividing

When the divisor is x − a you do not need to divide to find the remainder. The remainder theorem says it is p(a). In the example above a = 3, and p(3) = 27 − 18 − 4 = 5, the same remainder the division gave. The calculator does the whole division anyway, because the quotient is usually what you need.

Common mistakes

Common questions

What happens if I divide by zero? It cannot be done, any more than with numbers. The calculator says so instead of calculating, even when the divisor only becomes zero after simplifying, as with x − x.

Can the quotient contain fractions? Yes. Divide x + 1 by 2x + 1 and the quotient is ½ with remainder ½. The calculator shows fractions exactly, never as rounded decimals.

What if the dividend has a lower degree than the divisor? Then the quotient is 0 and the whole dividend is the remainder, just as 3 divided by 7 is 0 remainder 3.

Last reviewed September 24, 2026 ·How pages are reviewed

The formula behind this

All math calculators

Put this calculator on your site

Copy the code into your page where the calculator should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.