Polynomial Long Division Calculator
Divide one polynomial by another and see the long division laid out line by line, with the quotient and remainder.
Your Values
Try an example
Visualization
Results
Step-by-Step Solution
How Polynomial Long Division Calculator Works?
The polynomial long division calculator divides the leading term of the dividend by the leading term of the divisor, multiplies the divisor by that term, subtracts, and repeats until the remainder has a lower degree than the divisor.
- Enter the dividend and the divisor
- Divide the leading terms
- Multiply the divisor by the new quotient term
- Subtract from the current remainder
- Repeat until deg R < deg D
- Check with D × Q + R
The layout lines up every column by power of x. Red lines are the products being subtracted, and the amber line at the bottom is the remainder. Missing powers, such as the x² term in x³ − 1, count as 0 automatically.
Polynomial Long Division Formula
The polynomial division formula is P(x) = D(x) · Q(x) + R(x), where the degree of the remainder R is less than the degree of the divisor D.
P(x) = D(x) · Q(x) + R(x)
- P(x)
- dividend
- D(x)
- divisor
- Q(x)
- quotient
- R(x)
- remainder, deg R < deg D
- P(r)
- remainder when D(x) = x − r
Worked Example: (2x³ − 3x² + 4x + 5) ÷ (x − 2)
- 2x³ ÷ x = 2x², and 2x³ − 3x² − (2x³ − 4x²) = x².
- x² ÷ x = x, and x² + 4x − (x² − 2x) = 6x.
- 6x ÷ x = 6, and 6x + 5 − (6x − 12) = 17.
- Quotient 2x² + x + 6, remainder 17. P(2) = 16 − 12 + 8 + 5 = 17 confirms the remainder theorem.
Polynomial Long Division Calculator FAQ
What Happens When a Power of x Is Missing From the Dividend?
A missing power counts as a 0 coefficient. x³ − 1 is treated as x³ + 0x² + 0x − 1, so the columns stay aligned.
What Is the Difference Between Long Division and Synthetic Division?
Synthetic division is a shortcut for divisors of the form x − r, and long division works for any divisor, including quadratics such as x² + 1.
How Do I Know if the Divisor Is a Factor?
The divisor is a factor when the remainder is 0. (x³ − 1) ÷ (x − 1) = x² + x + 1 with remainder 0.
How Do I Write the Answer With a Remainder?
Write quotient + remainder/divisor, for example 2x² + x + 6 + 17/(x − 2).
What Is the Remainder Theorem?
The remainder theorem states that dividing P(x) by x − r leaves the remainder P(r).