Division Symbol

Polynomial Long Division Calculator

Divide one polynomial by another and see each divide, multiply and subtract step, the quotient, the remainder and a check that multiplies the answer back out.

Divide polynomials

Try:
Quotient: 2x2 + x + 6
Quotient2x2 + x + 6
Remainder7
Result2x2 + x + 6 + 7x − 2
Check(x − 2)(2x2 + x + 6) + (7) = 2x3 − 3x2 + 4x − 5

Step-by-step

  1. Divide the leading term 2x3 by x = 2x2. Multiply: 2x2 × (x − 2) = 2x3 − 4x2. Subtract: (2x3 − 3x2 + 4x − 5) − (2x3 − 4x2) = x2 + 4x − 5.
  2. Divide the leading term x2 by x = x. Multiply: x × (x − 2) = x2 − 2x. Subtract: (x2 + 4x − 5) − (x2 − 2x) = 6x − 5.
  3. Divide the leading term 6x by x = 6. Multiply: 6 × (x − 2) = 6x − 12. Subtract: (6x − 5) − (6x − 12) = 7.

Updated 2026-11-25

How to enter polynomials

  • Use ^ for powers: 3x^4 - x^2 + 7. You may leave out * between a number and x.
  • Terms can be in any order and you can skip terms whose coefficient is 0; the calculator sorts them and fills in the gaps.
  • Fractions and decimals are allowed as coefficients, for example 1/2x^2 + 0.5x, and the answer stays exact.
  • Use one letter for the variable in both boxes (x, y, t…).

Worked example: (2x³ − 3x² + 4x − 5) ÷ (x − 2)

Polynomial long division follows the same rhythm as long division with numbers: divide, multiply, subtract, bring down. If you want to compare it with an ordinary numeric problem, run 127 ÷ 3 through the long division calculator and you will see the same four moves.

  1. Divide the leading term of the dividend by the leading term of the divisor: 2x³ ÷ x = 2x². Write 2x² in the quotient.
  2. Multiply: 2x² × (x − 2) = 2x³ − 4x².
  3. Subtract: (2x³ − 3x²) − (2x³ − 4x²) = x². Bring down + 4x to get x² + 4x.
  4. Repeat: x² ÷ x = x; x × (x − 2) = x² − 2x; subtract to get 6x, bring down − 5: 6x − 5.
  5. Repeat: 6x ÷ x = 6; 6 × (x − 2) = 6x − 12; subtract: (6x − 5) − (6x − 12) = 7.
  6. The remainder 7 has a lower degree than x − 2, so stop.
2x³ − 3x² + 4x − 5 = (x − 2)(2x² + x + 6) + 7

So the quotient is 2x² + x + 6 and the remainder is 7, often written as 2x² + x + 6 + 7/(x − 2).

Most mistakes happen in the subtract step. Subtracting a polynomial changes the sign of every term: − (2x³ − 4x²) is −2x³ + 4x², which is why −3x² becomes +x².

Missing terms and zero placeholders

If the dividend skips a power, the columns no longer line up. On paper, write the missing term with a coefficient of 0. For (x³ − 8) ÷ (x − 2), rewrite the dividend as x³ + 0x² + 0x − 8:

  1. x³ ÷ x = x²; subtract x³ − 2x² to leave 2x² + 0x.
  2. 2x² ÷ x = 2x; subtract 2x² − 4x to leave 4x − 8.
  3. 4x ÷ x = 4; subtract 4x − 8 to leave 0.
x³ − 8 = (x − 2)(x² + 2x + 4)

The remainder is 0, so x − 2 is a factor. The calculator inserts the placeholders automatically, but writing them yourself is what teachers look for in the working.

Dividing by 2x + 3, x² + 1 and other divisors

The divisor does not have to be of the form x − c. With a leading coefficient other than 1, the quotient terms can be fractions; the calculator keeps them exact. Two examples you can load with the buttons above:

  • (6x³ + 5x² − 2x + 3) ÷ (2x + 3) = 3x² − 2x + 2, remainder −3.
  • (x⁴ + 3x³ − 2x + 1) ÷ (x² + 1) = x² + 3x − 1, remainder −5x + 2. With a quadratic divisor the remainder can be linear; you stop once its degree is less than 2.

For divisors of the form x − c, synthetic division gives the same quotient with much less writing.

The remainder theorem

When you divide P(x) by x − c, the remainder equals P(c). For the first example, P(2) = 2·8 − 3·4 + 4·2 − 5 = 16 − 12 + 8 − 5 = 7, the same remainder found by long division. If P(c) = 0, then x − c is a factor (the factor theorem). This gives a quick check of your answer and a fast way to test possible roots before factoring. The same idea, "what is left over after dividing", is behind the remainder calculator for whole numbers.

Polynomial long division is also used to simplify rational functions before integrating them, and to find slant (oblique) asymptotes: the quotient of a rational function whose numerator is one degree higher than its denominator is the asymptote's equation.

Frequently asked questions

How do you do polynomial long division?

Divide the leading term of the dividend by the leading term of the divisor, multiply the whole divisor by that result, subtract, and repeat with what is left until its degree is lower than the divisor's degree.

When do you stop polynomial long division?

Stop when the degree of what is left (the remainder) is less than the degree of the divisor. Dividing by a linear divisor leaves a constant remainder.

What do I do if a term is missing?

Write the missing power with a coefficient of 0, for example x³ − 8 becomes x³ + 0x² + 0x − 8, so every column lines up.

How do I write the answer with a remainder?

Write quotient + remainder/divisor, for example 2x² + x + 6 + 7/(x − 2). Or as dividend = divisor × quotient + remainder.

Is synthetic division the same as polynomial long division?

It gives the same result for divisors of the form x − c but only works with the coefficients. For other divisors such as x² + 1, use long division. See the synthetic division calculator.

What is the remainder theorem?

The remainder when P(x) is divided by x − c is P(c). If P(c) = 0, x − c is a factor of P(x).