Polynomial Long Division Calculator
Divide one polynomial by another step by step: the quotient and remainder with exact fractions, plus a table of every divide, multiply and subtract step.
Polynomial long division works like long division with numbers: divide the leading terms, multiply back, subtract, and repeat until what is left has a lower degree than the divisor. This solver does every step with exact fractions, then gives the quotient, the remainder and the answer written as quotient + remainder/divisor. Missing powers, such as the absent x term in x³ − 2x² − 4, are handled automatically.
How to use this tool
- Type the dividend — the polynomial being divided.
- Type the divisor; it can be linear like x - 3 or longer like x^2 + 1.
- Read the quotient, the remainder and the combined answer.
- Follow the steps table: each row shows the new quotient term, what was subtracted and what was left.
Formula
P(x) = D(x) · Q(x) + R(x), with deg R < deg D
P is the dividend, D the divisor, Q the quotient and R the remainder. At each step the next quotient term is (leading term of what is left) ÷ (leading term of D), and that term times D is subtracted. When D is linear, x − a, the remainder equals P(a) — the remainder theorem — so a remainder of 0 means x − a is a factor.
Example
(x³ − 2x² − 4) ÷ (x − 3): x³ ÷ x = x²; subtract x³ − 3x² to leave x² − 4. Then x² ÷ x = x; subtract x² − 3x to leave 3x − 4. Then 3x ÷ x = 3; subtract 3x − 9 to leave 5. Quotient x² + x + 3, remainder 5, so the answer is x² + x + 3 + 5/(x − 3). The remainder theorem agrees: P(3) = 27 − 18 − 4 = 5.
Frequently asked questions
What if the divisor has a higher degree than the dividend?
Then no step is possible: the quotient is 0 and the remainder is the whole dividend.
Can the answer contain fractions?
Yes. When the divisor's leading coefficient does not divide evenly, quotient terms become fractions and are shown exactly — for example (x² + 1) ÷ (2x) gives quotient (1/2)x and remainder 1.
Is synthetic division the same thing?
Synthetic division is a shortcut for dividing by a linear divisor x − a. It gives the same quotient and remainder, but long division also works for divisors such as x² + 1.
How do I check the answer?
Multiply the divisor by the quotient and add the remainder; you should get the dividend back exactly. The calculator prints this check under the results.
Last updated: 2026-10-30