Polynomial Long Division

Polynomial long division breaks a fraction into quotient and remainder, letting you simplify rational expressions or test polynomial divisibility.

P(x)D(x)=Q(x)+R(x)D(x)\frac{P(x)}{D(x)} = Q(x) + \frac{R(x)}{D(x)}

Solve a problem with Polynomial Long Division

Type the problem. The solver will use Polynomial Long Division where Polynomial Long Division is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Polynomial Long Division takes
PP
DD
QQ
RR
xx
Polynomial Long Division
SymbolMeaning
PPThe numerator polynomial (the dividend)—the expression being divided.
DDThe denominator polynomial (the divisor)—the expression you are dividing by.
QQThe quotient polynomial—the main result, with degree equal to the difference between the degrees of PP and DD.
RRThe remainder polynomial—what is left after division, always of lower degree than DD.
xxThe variable—the letter representing the unknown in all the polynomials.

When to use it

Use polynomial long division when you need to divide one polynomial by another to find the quotient and remainder.

Level

Usually taught in: Algebra II

Worked examples

1. Divide a quadratic by a linear binomial with no remainder

Problem

Divide x2+5x+6x^2 + 5x + 6 by x+2x + 2.
  1. x2÷x=xx^2 \div x = x

    Divide the leading term of the dividend by the leading term of the divisor to start the quotient.

  2. x(x+2)=x2+2xx(x + 2) = x^2 + 2x

    Multiply the quotient term you found by the entire divisor.

  3. (x2+5x+6)(x2+2x)=3x+6(x^2 + 5x + 6) - (x^2 + 2x) = 3x + 6

    Subtract this product from the current dividend to get the new dividend.

  4. 3x÷x=33x \div x = 3

    Divide the leading term of the new dividend by the leading term of the divisor.

  5. 3(x+2)=3x+63(x + 2) = 3x + 6

    Multiply the new quotient term by the divisor.

  6. (3x+6)(3x+6)=0(3x + 6) - (3x + 6) = 0

    Subtract; the remainder is zero, so division is complete.

Answer: x+3x + 3

Since the remainder is zero, the polynomial divides evenly and (x+2)(x+2) is a factor of x2+5x+6x^2 + 5x + 6. We can verify: (x+2)(x+3)=x2+5x+6(x+2)(x+3) = x^2 + 5x + 6.

2. Divide a cubic by a linear binomial with a remainder

Problem

Divide x3+2x25x+1x^3 + 2x^2 - 5x + 1 by x1x - 1.
  1. x3÷x=x2x^3 \div x = x^2

    Divide the leading term of the dividend by the leading term of the divisor.

  2. x2(x1)=x3x2x^2(x - 1) = x^3 - x^2

    Multiply the quotient term by the divisor.

  3. (x3+2x25x+1)(x3x2)=3x25x+1(x^3 + 2x^2 - 5x + 1) - (x^3 - x^2) = 3x^2 - 5x + 1

    Subtract to find the new dividend; remember to distribute the negative sign.

  4. 3x2÷x=3x3x^2 \div x = 3x

    Divide the new leading term by xx.

  5. 3x(x1)=3x23x3x(x - 1) = 3x^2 - 3x

    Multiply by the divisor.

  6. (3x25x+1)(3x23x)=2x+1(3x^2 - 5x + 1) - (3x^2 - 3x) = -2x + 1

    Subtract; the degree of what remains is still at least 1.

  7. 2x÷x=2-2x \div x = -2

    Divide the leading term again.

  8. 2(x1)=2x+2-2(x - 1) = -2x + 2

    Multiply by the divisor.

  9. (2x+1)(2x+2)=1(-2x + 1) - (-2x + 2) = -1

    Subtract; the remainder is 1-1, a constant with degree less than the divisor's degree of 1.

Answer: x2+3x2+1x1x^2 + 3x - 2 + \frac{-1}{x - 1}

The remainder is 1-1, which is nonzero, so (x1)(x-1) does not divide this polynomial evenly. The complete answer is the quotient x2+3x2x^2 + 3x - 2 plus the fraction 1x1\frac{-1}{x-1}. We can verify: (x1)(x2+3x2)1=x3+2x25x+1(x-1)(x^2 + 3x - 2) - 1 = x^3 + 2x^2 - 5x + 1.

3. Distribute work hours evenly between construction crews

Problem

A construction company has a project requiring x2+8x+15x^2 + 8x + 15 total labor-hours and must be split evenly between two crews. Each crew is assigned (x+3)(x + 3) workers. How many hours should each worker perform?
  1. x2+8x+15x+3\frac{x^2 + 8x + 15}{x + 3}

    Set up the division: total hours divided by workers per crew gives hours per worker.

  2. x2÷x=xx^2 \div x = x

    Begin the quotient by dividing leading terms.

  3. x(x+3)=x2+3xx(x + 3) = x^2 + 3x

    Multiply the quotient term by the divisor.

  4. (x2+8x+15)(x2+3x)=5x+15(x^2 + 8x + 15) - (x^2 + 3x) = 5x + 15

    Subtract; the dividend is now 5x+155x + 15.

  5. 5x÷x=55x \div x = 5

    Divide the new leading term by xx.

  6. 5(x+3)=5x+155(x + 3) = 5x + 15

    Multiply by the divisor.

  7. (5x+15)(5x+15)=0(5x + 15) - (5x + 15) = 0

    Subtract; there is no remainder.

Answer: x+5x + 5

Each worker performs x+5x + 5 hours. This makes sense: if x=7x = 7, then total hours are 49+56+15=12049 + 56 + 15 = 120, and with (7+3)=10(7+3) = 10 workers per crew, each works 120÷10=12120 \div 10 = 12 hours, which matches 7+5=127 + 5 = 12.

Common mistakes

Where Polynomial Long Division usually goes wrong
Answer came out wrong
Writing x2÷x=1x^2 \div x = 1 instead of xx.
Always divide the entire leading term, not just its degree: x2÷x=xx^2 \div x = x because xx=x2x \cdot x = x^2.
Subtracting only part of the product from the dividend, such as forgetting to subtract the constant term.
After multiplying the quotient term by the entire divisor, subtract the full product—all terms—from the current dividend in one step.
Stopping division when there are still terms of degree equal to or greater than the divisor's degree.
Continue the division process until the remaining polynomial has a degree strictly less than the divisor.
The mistakeWhy it is wrongThe fix
Writing x2÷x=1x^2 \div x = 1 instead of xx.The leading coefficient matters; dividing the full leading term x2x^2 by xx gives xx, not 11.Always divide the entire leading term, not just its degree: x2÷x=xx^2 \div x = x because xx=x2x \cdot x = x^2.
Subtracting only part of the product from the dividend, such as forgetting to subtract the constant term.This leaves part of the dividend in place, which distorts every subsequent step and produces a wrong quotient and remainder.After multiplying the quotient term by the entire divisor, subtract the full product—all terms—from the current dividend in one step.
Stopping division when there are still terms of degree equal to or greater than the divisor's degree.If the degree of the remaining dividend is still at least as high as the divisor, you can divide further; stopping early means you missed quotient terms or didn't find the true remainder.Continue the division process until the remaining polynomial has a degree strictly less than the divisor.

Tips and when to use something else

  • Synthetic division is much faster when the divisor is a linear polynomial of the form (xa)(x - a) where aa is a constant. Use long division for any other divisor.
  • Write each step on a separate line and align your terms carefully. Misalignment causes you to lose terms or add them incorrectly.
  • Always check your work by multiplying: the original dividend should equal (D(x)Q(x))+R(x)(D(x) \cdot Q(x)) + R(x).
  • Remember that the quotient and remainder are both polynomials, not numbers. The remainder must always have degree strictly less than the divisor's degree.

Frequently asked questions

What does the remainder actually mean?
The remainder R(x)R(x) is the part of the dividend that doesn't divide evenly by the divisor. In the equation P(x)D(x)=Q(x)+R(x)D(x)\frac{P(x)}{D(x)} = Q(x) + \frac{R(x)}{D(x)}, the remainder is always a polynomial of lower degree than D(x)D(x). It can be zero, positive, negative, or contain any coefficients.
Is polynomial long division the same as regular long division?
Yes, the process is identical in structure. Instead of dividing numbers digit by digit, you divide polynomials term by term, comparing the degrees of terms rather than place values. You still divide, multiply, and subtract in the same sequence.
When should I use synthetic division instead of polynomial long division?
Use synthetic division when your divisor has the form (xa)(x - a), where aa is a constant. It is much faster than long division in this case. For any other divisor—whether linear like (2x+3)(2x + 3) or of higher degree—polynomial long division is the standard method.
Why does my quotient have a different degree than my dividend?
The quotient's degree is always the dividend's degree minus the divisor's degree. For example, if you divide a degree-3 polynomial by a degree-1 polynomial, the quotient is degree 31=23 - 1 = 2. This is because division reduces the degree of the polynomial.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18