Free Algebra Solver
Polynomial long division

Polynomial Long Division Calculator

Enter the division as (dividend) / (divisor). Any divisor works, including x² + 1. You get the quotient, the remainder, and every cycle.

Interpreted as: (x^3 - 2x^2 - 4) / (x - 3) (Long division) Ready
Examples
Solution

Worked example: (x^3 - 2x^2 - 4) / (x - 3)

Worked example. Edit the problem above and press Long division to solve your own.

Problem(x^3 - 2x^2 - 4) / (x - 3)
  1. Write both polynomials in descending order

    Order the powers from highest to lowest and use 0 for any missing power.

    Dividend: x^3 − 2x^2 + 0x − 4
    Include every power
    Divisor: x − 3
    Divisor

    Placeholder zeros keep each power in its own column.

  2. Cycle 1: divide, multiply, subtract

    Divide the leading term x³ by x to get x². Multiply the divisor by it and subtract.

    x³ ÷ x = x²
    Next term of the quotient
    x² × (x − 3) = x³ − 3x²
    Multiply
    (x³ − 2x² − 4) − (x³ − 3x²) = x² − 4
    Subtract

    Each cycle removes the highest remaining power, so the degree keeps dropping.

  3. Cycle 2: divide, multiply, subtract

    Divide the leading term x² by x to get x. Multiply the divisor by it and subtract.

    x² ÷ x = x
    Next term of the quotient
    x × (x − 3) = x² − 3x
    Multiply
    (x² − 4) − (x² − 3x) = 3x − 4
    Subtract

    Each cycle removes the highest remaining power, so the degree keeps dropping.

  4. Cycle 3: divide, multiply, subtract

    Divide the leading term 3x by x to get 3. Multiply the divisor by it and subtract.

    3x ÷ x = 3
    Next term of the quotient
    3 × (x − 3) = 3x − 9
    Multiply
    (3x − 4) − (3x − 9) = 5
    Subtract

    Each cycle removes the highest remaining power, so the degree keeps dropping.

  5. Check: divisor × quotient + remainder

    Multiply the divisor by the quotient and add the remainder. You should get the dividend back.

    (x − 3)(x² + x + 3) + (5)
    Rebuild the dividend
    x³ − 2x² − 4
    Matches the dividend, so it checks out
    (x³ − 2x² − 4)/(x − 3) = x² + x + 3 + (5)/(x − 3)
    Final form

    This is the division algorithm: dividend = divisor × quotient + remainder.

AnswerQuotient: x² + x + 3; Remainder: 5

Long division guide

How the polynomial long division calculator works

Type a division problem into the polynomial long division calculator above and it shows each step, the quotient, and the remainder. Here is the same process done by hand, with the checks that catch most errors.

How do you do polynomial long division?

Polynomial long division repeats one cycle. Divide the leading term of what is left by the leading term of the divisor. Multiply the divisor by that result, subtract, and bring down the next term. Stop when what is left has a lower degree than the divisor. That leftover is the remainder.

How does polynomial long division work?

It follows the same pattern as long division with numbers. You divide, multiply, subtract, and bring down, using the leading terms to decide each piece of the quotient.

The answer has two parts. The quotient is what you get on top, and the remainder is what is left at the bottom. You can write the result as quotient + remainder/divisor.

Why do you need placeholder zeros?

If a power is missing from the dividend, write it with a 0 coefficient so every column lines up. Skipping this is the most common reason long division goes wrong.

In x³ − 2x² − 4 there is no x term. Rewrite it as x³ − 2x² + 0x − 4 before you start. The calculator does this step for you and shows it in the first line of its working.

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

Here is the full divide, multiply, subtract cycle. Each line uses only the leading term of what is left.

Set up
(x³ − 2x² + 0x − 4) ÷ (x − 3)
Divide
x³ ÷ x = x²
Multiply and subtract
(x³ − 2x²) − (x³ − 3x²) = x²; bring down 0x
Divide
x² ÷ x = x
Multiply and subtract
(x² + 0x) − (x² − 3x) = 3x; bring down −4
Divide
3x ÷ x = 3
Multiply and subtract
(3x − 4) − (3x − 9) = 5
Result
Quotient x² + x + 3, remainder 5

Written as one expression, (x³ − 2x² − 4)/(x − 3) = x² + x + 3 + 5/(x − 3). The remainder 5 has degree 0, which is lower than the degree of x − 3, so the division stops there.

How do you check a polynomial division answer?

Multiply the divisor by the quotient and add the remainder. If you get the original dividend back, the division is right.

Rule
dividend = divisor × quotient + remainder
Multiply
(x − 3)(x² + x + 3) = x³ − 2x² − 9
Add remainder
x³ − 2x² − 9 + 5 = x³ − 2x² − 4

This matches the dividend, so the answer checks out. The calculator runs this same check as its last step on every problem.

The remainder also tells you something on its own. When you divide by x − c, the remainder equals the value of the polynomial at x = c. Plugging x = 3 into x³ − 2x² − 4 gives 27 − 18 − 4 = 5, the same remainder. A nonzero remainder means x − 3 is not a factor. This is the remainder theorem, and it is how you test possible roots.

How do you divide by a quadratic?

The steps are the same, but you keep going until the leftover has a degree lower than 2. That means the remainder can be a linear expression, not only a number.

For (x⁴ + 1) ÷ (x² + 1), write the dividend as x⁴ + 0x³ + 0x² + 0x + 1. Divide x⁴ by x² to get x², then subtract x⁴ + x² to leave −x² + 1. Divide −x² by x² to get −1, then subtract −x² − 1 to leave 2.

The quotient is x² − 1 and the remainder is 2. Check: (x² + 1)(x² − 1) + 2 = x⁴ − 1 + 2 = x⁴ + 1. Synthetic division cannot handle this divisor, which is why long division still matters.

What if the divisor has a leading coefficient other than 1?

Nothing changes in the method, but fractions can appear in the quotient. Each step still divides the leading term of what is left by the leading term of the divisor.

Take (2x³ − 3x² + 4x − 5) ÷ (2x − 1). The first step is 2x³ ÷ 2x = x². Subtracting 2x³ − x² leaves −2x² + 4x. Next, −2x² ÷ 2x = −x, and subtracting −2x² + x leaves 3x − 5. Then 3x ÷ 2x = 3/2, and subtracting 3x − 3/2 leaves −7/2.

So the quotient is x² − x + 3/2 and the remainder is −7/2. The calculator gives exactly this answer, written with fractions instead of rounded decimals.

When should you use the polynomial long division calculator instead of synthetic division?

Use synthetic division when the divisor is linear, like x − 3 or 2x − 1. Use long division for anything else.

DivisorLong divisionSynthetic division
x − cWorksWorks and is faster
ax − bWorksWorks with an extra step
Quadratic or higherWorksDoes not work

What mistakes happen in polynomial division?

The biggest one is subtracting only the first term. When you subtract (x³ − 3x²), you must change the sign of both terms, so −2x² − (−3x²) becomes x². Putting the subtracted line in parentheses helps.

Missing placeholder zeros and stopping too early are the other two. Keep dividing until the leftover has a lower degree than the divisor.

Frequently asked questions

Short answers to the questions people ask most about this topic.

How do I enter a problem in the dividing polynomials calculator?

Type the dividend and divisor in parentheses with a slash between them, like (x^3 - 2x^2 - 4) / (x - 3). The calculator adds placeholder zeros, shows each step, and gives the quotient and remainder.

Can the polynomial division calculator divide by any polynomial?

Yes. Long division works with any divisor, including quadratics like x² + 1. For a linear divisor you can also use the synthetic division calculator, which is shorter.

What does a remainder of 0 mean?

The divisor is a factor of the dividend. For example, if dividing by x − 2 leaves a remainder of 0, then x = 2 is a zero of the polynomial.

How do I write the final answer?

Write it as quotient + remainder/divisor. For the example above that is x² + x + 3 + 5/(x − 3).

Why do I need a 0x term?

A placeholder keeps the powers lined up in columns. Without it, you end up subtracting terms with different powers, which gives a wrong quotient.

When do I stop dividing?

Stop when the leftover has a lower degree than the divisor. With a linear divisor the remainder is a number, and with a quadratic divisor it can be a linear expression.

Is polynomial long division on the test the same as on the calculator?

Yes. The calculator follows the standard divide, multiply, subtract, bring down cycle taught in algebra classes, so its steps line up with what your teacher expects to see written out.

Math keypad

Long division mode

Use the keypad below or tap the expression to use your phone keyboard.

Keyboard tips

Ctrl + Enter
Run the selected operation
^
Enter a power, such as x^2
sqrt(
Calculate an exact or simplified square root
a:b
Separate quantities in a ratio
12, 18
Separate integers in an LCM and GCD calculation
@ x =
Assign x when evaluating an expression
y =
Enter a polynomial function to graph
|
Wrap an absolute-value expression