InfyCalculator
➗

Polynomial Long Division Calculator

Divide one polynomial by another of any degree with long division: quotient, remainder, every divide-multiply-subtract step, and the check D(x)·Q(x) + R(x) = P(x).

Dividend P(x)
Divisor D(x)
Loading calculator…

How it works

P(x) = D(x) · Q(x) + R(x), with degree R < degree D · each step: next quotient term = (leading term of remainder) ÷ (leading term of D)

Polynomial long division works like numeric long division. Divide the leading term of what is left by the leading term of the divisor to get the next term of the quotient, multiply the whole divisor by that term, subtract, and repeat until the remainder has a lower degree than the divisor. Unlike synthetic division it works for divisors of any degree. Exact fractions are kept throughout.

Worked example

(2x³ + 3x² − 5x + 6) ÷ (x² + 2x − 1): 2x³ ÷ x² = 2x; 2x · (x² + 2x − 1) = 2x³ + 4x² − 2x; subtracting leaves −x² − 3x + 6. Then −x² ÷ x² = −1; −1 · (x² + 2x − 1) = −x² − 2x + 1; subtracting leaves −x + 5. Quotient 2x − 1, remainder −x + 5.

Sources: OpenStax College Algebra 2e — 5.4 Dividing Polynomials · Paul’s Online Math Notes — Dividing Polynomials

Frequently asked questions

When do I stop dividing polynomials?

When the degree of the remainder is smaller than the degree of the divisor. Dividing by a quadratic, you stop once the remainder is linear or a constant.

What if a power of x is missing?

Treat it as a 0 coefficient. x³ − 8 is x³ + 0x² + 0x − 8; the calculator inserts those placeholders automatically.

How do I write the answer with a remainder?

As Q(x) + R(x)/D(x). Here: 2x − 1 + (−x + 5)/(x² + 2x − 1).

When should I use synthetic division instead?

Only when the divisor is linear, x − c. For anything else, such as x² + 1 or 2x² − x + 3, use long division.

Related calculators

This calculator is for educational purposes. Double-check important results before acting on them.