Polynomial Long Division & Synthetic Division Calculator

Divide one polynomial by another and see the working written out the way you would on paper. Use long division for any divisor, or switch to synthetic division when the divisor is linear, such as \(x – 2\).

Your division

Type powers with ^, like x^3. Fractions and decimals are fine: 3/4x^2, 0.5x. Missing powers are filled in for you.

Method

Answer

Written working

Step-by-step explanation

How to use the polynomial division calculator

  1. Type the dividend, the polynomial you are dividing, in the first box. For example 2x^3 - 3x^2 + 4x - 5.
  2. Type the divisor in the second box. For example x - 2.
  3. Choose long division or synthetic division. Synthetic division is available when the divisor has degree 1.
  4. Read the quotient and remainder, then follow the written working and the explanation of each step.

How to do polynomial long division

Polynomial long division follows the same four moves as long division with numbers: divide, multiply, subtract, bring down.

  1. Write both polynomials in order from the highest power to the lowest. Put in a 0 term for any missing power.
  2. Divide the first term of the dividend by the first term of the divisor. Write the answer above the line.
  3. Multiply the whole divisor by that answer and write the result underneath.
  4. Subtract. Be careful with the signs: subtracting changes the sign of every term.
  5. Repeat with what is left, until its degree is lower than the degree of the divisor. That last piece is the remainder.

Worked example: divide \(2x^3 – 3x^2 + 4x – 5\) by \(x – 2\). First \(2x^3 \div x = 2x^2\); multiply to get \(2x^3 – 4x^2\) and subtract, leaving \(x^2 + 4x – 5\). Next \(x^2 \div x = x\); multiply to get \(x^2 – 2x\) and subtract, leaving \(6x – 5\). Then \(6x \div x = 6\); multiply to get \(6x – 12\) and subtract, leaving \(7\). The quotient is \(2x^2 + x + 6\) and the remainder is 7.

Write the answer as the quotient plus the remainder over the divisor:

\[ 2x^2 + x + 6 + \frac{7}{x – 2} \]

How to do synthetic division

Synthetic division is a shortcut for dividing by a linear divisor of the form \(x – c\). It uses only the coefficients, so there is much less to write.

  1. Write \(c\) on the left. For the divisor \(x – 1\), \(c = 1\). For \(x + 3\), \(c = -3\).
  2. Write the coefficients of the dividend in a row, with 0 for any missing power.
  3. Bring the first coefficient straight down.
  4. Multiply it by \(c\), write the result under the next coefficient, and add.
  5. Repeat across the row. The last number is the remainder. The others are the coefficients of the quotient, which is one degree lower than the dividend.

Worked example: divide \(x^3 – 6x^2 + 11x – 6\) by \(x – 1\). Write 1 on the left and the coefficients 1, −6, 11, −6. Bring down 1. Then \(1 \times 1 = 1\) and \(-6 + 1 = -5\). Then \(-5 \times 1 = -5\) and \(11 – 5 = 6\). Then \(6 \times 1 = 6\) and \(-6 + 6 = 0\). The bottom row is 1, −5, 6, 0, so the quotient is \(x^2 – 5x + 6\) and the remainder is 0.

Long division or synthetic division?

Long divisionSynthetic division
Works forAny divisorLinear divisors only, such as \(x – 3\) or \(2x + 1\)
What you writeFull terms with variablesCoefficients only
SpeedSlowerFaster
Best forDividing by \(x^2 + 1\), \(x^2 – x + 1\) and other higher-degree divisorsTesting possible zeros and factoring polynomials

If the divisor is \(ax + b\) with \(a\) not equal to 1, synthetic division still works. Divide using \(c = -\dfrac{b}{a}\), then divide the quotient by \(a\). The remainder does not change. The calculator does this for you and shows the extra step.

The remainder theorem and the factor theorem

The remainder theorem says that when a polynomial \(f(x)\) is divided by \(x – c\), the remainder is \(f(c)\). In the first example, \(f(2) = 2(8) – 3(4) + 4(2) – 5\) \(= 7\), which matches the remainder.

The factor theorem follows from it: if the remainder is 0, then \(x – c\) is a factor of the polynomial and \(c\) is a zero. In the second example the remainder is 0, so \(x – 1\) is a factor and \(x^3 – 6x^2 + 11x – 6\) \(= (x – 1)(x^2 – 5x + 6)\).

Common mistakes when dividing polynomials

  • Forgetting missing terms. Write \(x^3 – 8\) as \(x^3 + 0x^2 + 0x – 8\) so the columns line up.
  • Sign errors when subtracting. Change the sign of every term in the row you are subtracting, then add.
  • Using the wrong sign for \(c\). For the divisor \(x + 3\), use \(c = -3\), not 3.
  • Stopping too early. Keep going until what is left has a lower degree than the divisor.

Frequently asked questions

How do you divide polynomials using long division?

Divide the leading term of the dividend by the leading term of the divisor, multiply the divisor by the result, subtract, and repeat with what is left. Stop when the degree of what is left is lower than the degree of the divisor.

When can you use synthetic division?

When the divisor is linear, meaning its highest power is 1, such as x − 3 or 2x + 1. For a divisor of degree 2 or more, use long division.

What does a remainder of 0 mean?

It means the divisor is a factor of the dividend, so the division is exact. For a divisor x − c it also means c is a zero of the polynomial.

How do you write the answer when there is a remainder?

Write the quotient plus the remainder over the divisor. For example, (2x³ − 3x² + 4x − 5) ÷ (x − 2) = 2x² + x + 6 + 7/(x − 2).

What do you do about missing terms?

Fill them in with a coefficient of 0. For example, write x³ − 8 as x³ + 0x² + 0x − 8. In synthetic division, put a 0 in the row of coefficients.

How do you check a polynomial division?

Multiply the divisor by the quotient and add the remainder. The result should be the dividend you started with.

Related tools and practice