Polynomial Long Division Calculator
Divide one polynomial by another of any degree — not just x − a — with exact rational arithmetic. Get the quotient, remainder, and the full step-by-step subtraction table.
Input
Comma- or space-separated coefficients, from the highest-degree term down to the constant term.
Same format — the divisor can be any degree, not just linear.
Output
| Step | Quotient term | Remainder after this step |
|---|---|---|
| No data yet | ||
Guides
Long division works on polynomials the same way it works on numbers — repeatedly cancel the leading term, subtract, and bring down the next one — but it's easy to lose track of a sign partway through, especially once the divisor is more than just x − a. This calculator runs the whole process for you against a divisor of any degree and shows every subtraction step, with exact fraction arithmetic so a non-evenly-dividing leading coefficient never gets rounded.
How to use it
- Enter the dividend's coefficients, highest degree first — for x⁴ − 4x² + 3, enter
1, 0, -4, 0, 3(the missing x³ and x terms are zeros, and they matter: don't skip them). - Enter the divisor's coefficients the same way — for x² − 1, enter
1, 0, -1. - Read off the quotient, the remainder, and the step-by-step table.
The divisor can be any degree, not just linear — for a divisor of exactly x − a, Synthetic Division Calculator is the faster shorthand route to the same answer.
The method
At each step:
- Divide the remainder's leading term by the divisor's leading term to get the next quotient term.
- Multiply the divisor by that term and subtract the result from the remainder.
- Repeat until the remainder's degree drops below the divisor's degree.
FAQ
What if the coefficients don't divide evenly?
The quotient term is still computed exactly as a fraction (e.g. a leading coefficient of 2 divided by 3 becomes 2/3, not a rounded decimal) — the arithmetic never loses precision, even when the final remainder isn't zero.
What does a non-zero remainder mean?
The divisor isn't a factor of the dividend. dividend = divisor × quotient + remainder always holds — a non-zero remainder is the leftover after taking out as many full copies of the divisor as possible.
Do I need to write zero coefficients for missing terms?
Yes — the coefficient list is positional (each entry is one degree, highest to lowest), so a missing x-term still needs a 0 placeholder or every following term shifts to the wrong power.
Related tools
For the fast shorthand version when the divisor is exactly x − a, see the Synthetic Division Calculator. To multiply factors back out instead of dividing, see the Expand Polynomials Calculator.
Privacy
All calculations run entirely in your browser — the coefficients you enter are never sent to a server.
More ways to use this tool
REST API
curl -X POST https://api.iotools.cloud/v1/tool/polynomial-long-division-calculator \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"dividend": "1, -3, 3, -1",
"divisor": "1, -1"
}'Swap in your own key from your account. The tool's fields are the body — no wrapper.
Ask an AI agent
Use the IOTools `polynomial-long-division-calculator` tool (Polynomial Long Division Calculator) on this input:
YOUR_INPUT_HEREPaste this at any agent connected to the IOTools MCP server, then add your input.
Embed widget
<iframe
src="https://iotools.cloud/embed/polynomial-long-division-calculator/"
width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
title="Polynomial Long Division Calculator — iotools.cloud"
sandbox="allow-scripts allow-forms allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox"
allow="clipboard-write"
style="width:100%;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden"></iframe>
<script src="https://iotools.cloud/embed.js" async></script>Drop this into your own page — free, no key required, just a link back.
| Cost per call | From 5 credits |
|---|