Polynomial Long Division Calculator
Divide one polynomial by another over the rationals and print the exact quotient and remainder.
Polynomial Long Division Calculator
Divide one polynomial by another over the rationals and print the exact quotient and remainder.
How this page computes
Coefficients are exact rationals, so a quotient coefficient such as one half is printed as a fraction. The page caps each polynomial at degree 12 and refuses a divisor of degree zero.
The calculation runs entirely in this browser tab; nothing is uploaded.
The page divides a polynomial by another using long division over the rationals. Dividing 2x squared plus 3x plus 1 by x plus 1 gives the quotient 2x plus 1 and a remainder of zero.
The quotient and remainder are exact, including fractional coefficients. A constant divisor is refused, because that is ordinary division rather than polynomial long division.
How to use the Polynomial Long Division Calculator
Enter the dividend's coefficients on one line and the divisor's on another, separated by a blank line or a line of three dashes, then press Run.
The first output line restates the division, the second is the quotient and the third is the remainder. A non-zero remainder is printed as a polynomial of lower degree than the divisor.
The rule this page applies
At each step the leading term of the remainder is divided by the leading term of the divisor, and that term times the divisor is subtracted. The process stops when the remainder's degree falls below the divisor's.
Coefficients are exact rationals, so a quotient coefficient such as one half is printed as a fraction. The page caps each polynomial at degree 12 and refuses a divisor of degree zero.
What to Expect
Best for
- Dividing one polynomial by another
- Checking a long-division exercise
- Getting an exact remainder
Not ideal for
- Dividing by a constant
- Degrees above 12
- Finding roots of the quotient
What this tool keeps
- Both coefficient lists and the exact quotient and remainder
What may need cleanup
- Nothing: the division is exact
Common errors
- A constant divisor is refused as ordinary division
- A zero leading coefficient is refused with the fix
Example use cases
- Divide 2x^2 + 3x + 1 by x + 1
- Divide x^3 + 2 by x + 1
Sample input
2 3 1 1 1
Sample output
(2x^2 + 3x + 1) ÷ (x + 1) quotient = 2x + 1 remainder = 0
Who this is for
- Algebra students
- Readers checking polynomial division
Frequently asked questions
What does a zero remainder mean?
The divisor divides the dividend exactly, so the dividend factors as the divisor times the quotient. The page prints zero rather than omitting the line, so the case is explicit.
Can the quotient have fractions?
Yes. Over the rationals a long division can produce fractional coefficients, and the page keeps them exact instead of rounding to a decimal.
Why is a constant divisor refused?
Dividing by a constant is ordinary scalar division, not the long-division algorithm. The page refuses it with that reason rather than printing a misleading quotient and remainder.
Is anything uploaded?
Nothing is uploaded. The numbers are read and the arithmetic runs in this browser tab with JavaScript, and reloading the page discards both the input and the result.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.