p÷q

Polynomial Division Calculator

Divide one polynomial by another by long division, with every step shown, or by synthetic division for a linear divisor. Gives the quotient and remainder as exact fractions and checks the answer with the remainder theorem.

Math & AlgebraRuns in your browser

Result…

Like 2x^4 - 3x^2 + x - 5. Use ^ for powers; fractions (1/2x) and decimals are kept exact. Missing powers count as 0.

Like x - 3, 2x + 1 or x^2 + 1, in the same letter.

Method

Synthetic division works when the divisor is linear (like x − 3 or 2x + 1).

 

…

How it's calculated

p(x) = d(x) × q(x) + r(x), with the degree of r below the degree of d
Long division: divide leading terms, multiply back, subtract, repeat
Synthetic division by x − r: bring down, multiply by r, add, repeat
Remainder theorem: dividing by x − r leaves p(r)

Polynomial long division works like long division of numbers: divide the leading term of what is left by the divisor's leading term, multiply the whole divisor by that, subtract, and repeat until what is left has a lower degree than the divisor. That last piece is the remainder. Synthetic division is a shortcut for a linear divisor x − r: only the coefficients are written, and each step is a multiplication by r and an addition. For a divisor like 2x + 1 it uses r = −1/2 and divides the quotient by 2 at the end. All arithmetic is exact with fractions, so 1/3 stays 1/3. By the remainder theorem, the remainder on dividing by x − r is p(r), and when it is 0, x − r is a factor.

Your numbers, step by step

    About the Polynomial Division calculator

    This polynomial division calculator divides one polynomial by another and shows every step. Long division works for any divisor, such as x − 3, 2x + 1 or x² + 1. Synthetic division is the quick table method for a linear divisor. You get the quotient, the remainder and the whole result written as one expression. For a linear divisor it also checks the answer with the remainder theorem and tells you whether the divisor is a factor. Type polynomials the way you write them, like x^3 - 2x^2 + 4. Missing powers are filled with zeros, and fractions and decimals are kept as exact fractions, so 1/3 never turns into 0.3333. Algebra students use it to check homework and to factor polynomials once one root is known. To find the roots themselves, use the equation solver.

    How to use it

    1. Type the “Dividend”, the polynomial being divided, using ^ for powers: 2x^3 - 5x^2 + 3x - 7.
    2. Type the “Divisor” in the same letter, like x - 2 or x^2 + 1.
    3. Choose the “Method”: “Long division” for any divisor, or “Synthetic division” when the divisor is linear.
    4. Read the quotient and remainder, follow the steps, and use the remainder theorem line to see whether the divisor is a factor.

    Worked example

    Divide 2x^3 − 5x^2 + 3x − 7 by x − 2 with synthetic division. The divisor's root is 2 and the coefficients are 2, −5, 3, −7. Bring down 2. Then 2 × 2 = 4, and −5 + 4 = −1. Next −1 × 2 = −2, and 3 − 2 = 1. Last, 1 × 2 = 2, and −7 + 2 = −5. The quotient is 2x^2 − x + 1 and the remainder is −5. The remainder theorem agrees: p(2) = 16 − 20 + 6 − 7 = −5, so x − 2 is not a factor.

    Updated

    Questions people ask

    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, and subtract. Repeat with what is left until its degree is lower than the divisor's. That last piece is the remainder.

    When can I use synthetic division?

    Only when the divisor is linear, x − r or ax + b. For ax + b, use r = −b ÷ a in the table, then divide the quotient's coefficients by a. For x² + 1 or any higher divisor, use long division.

    What does the remainder theorem say?

    When a polynomial p(x) is divided by x − r, the remainder equals p(r). So if p(r) = 0, x − r divides exactly and r is a root.

    What is the most common mistake in polynomial division?

    Leaving out a missing power. In x^3 − 2x^2 + 4 there is no x term, so it needs a 0 in its place (1, −2, 0, 4). Otherwise the columns shift and every later step is wrong. The calculator adds the zeros for you.

    Can the quotient have fractions?

    Yes. When the divisor's leading coefficient doesn't divide the others evenly, as in dividing by 2x + 1, the quotient and remainder can have fractions. They are shown exactly, like −1/2, not as rounded decimals.

    More in Math & Algebra