Math calculator

Polynomial Division Calculator

Long division for any divisor, synthetic for a linear one — and an honest line about which is which.

Divide one polynomial by another

Long division for any divisor; synthetic when it is linear.

Missing powers are handled — you do not have to write the zeros yourself

Any degree; synthetic division needs degree 1

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

2x² + x + 6 + (7) / (x − 2)

Remainder 7, which has lower degree than the divisor as it must.

Quotient

2x² + x + 6

Degree 2 — the dividend's degree minus the divisor's

Remainder

7

Degree 0, below the divisor's 1

P(2) — the remainder theorem

7

Equals the remainder, as the theorem says

Factor theorem: P(2) = 7, which is not zero, so x − 2 is not a factor and 2 is not a root.

Long division, stage by stage

  1. 1Set it up in descending order, with no gaps2x³ − 3x² + 4x − 5 ÷ x − 2Both in descending powers, and a missing power written as a zero term. A gap is what makes the columns line up wrongly, and long division is entirely a matter of columns.
  2. 2Stage 1: quotient term 2x²2x³ ÷ x = 2x² 2x² × (x − 2) = 2x³ − 4x² subtract: x² + 4x − 5Subtract the WHOLE product. Every one of its signs flips, not just the first — that is the error this method is famous for.
  3. 3Stage 2: quotient term xx² ÷ x = x x × (x − 2) = x² − 2x subtract: 6x − 5
  4. 4Stage 3: quotient term 66x ÷ x = 6 6 × (x − 2) = 6x − 12 subtract: 7Nothing left of degree 1 or higher, so the division stops. What remains is the remainder.
  5. 5The answer2x² + x + 6 + (7) / (x − 2)The remainder always has lower degree than the divisor — if it does not, the division stopped early.
  6. 6Check by multiplying back(x − 2)(2x² + x + 6) + (7) = 2x³ − 3x² + 4x − 5Which is the dividend you started with.

divisor × quotient + remainder = 2x³ − 3x² + 4x − 5, which is the dividend.

What this tool shows

The same algorithm you use on numbers, with one extra hazard: what gets subtracted is a whole polynomial, and all of its signs flip.

  • Long division stage by stage, with the whole product subtracted each time
  • Synthetic division, refused by name when the divisor is not linear
  • The remainder theorem: the remainder equals P(c), verified against the division
  • The factor theorem, and what a zero remainder actually tells you
Long division for any divisor Synthetic division where it genuinely applies Remainder and factor theorems checked Free, no signup

Free, no signup — every answer multiplied back to the dividend.

Updated 6 September 2026 · Works in any browser, no installation

Dividing polynomials gives a quotient and a remainder, exactly as dividing whole numbers does. (2x³ − 3x² + 4x − 5) ÷ (x − 2) is 2x² + x + 6 + (7) / (x − 2) — and the remainder 7 is also what you get by substituting 2 into the dividend, which is the remainder theorem.

At a glance

Formula shown
P(x) = D(x)·Q(x) + R(x), with the degree of R below the degree of D. For a linear divisor (x − c), R = P(c).
Scenario support
Any dividend and divisor; synthetic division additionally requires the divisor to be linear.
Educational estimate
Planning support from the values you enter — not professional advice.

Quotient and remainder, and how big each one is

Division does not usually come out exactly, and the answer has two parts. (2x³ − 3x² + 4x − 5) ÷ (x − 2) has quotient 2x² + x + 6 and remainder 7, written 2x² + x + 6 + (7) / (x − 2).

Two facts about their sizes are worth holding, because both catch errors:

  • The quotient’s degree is the dividend’s minus the divisor’s. A cubic divided by a linear gives a quadratic: 31 = 2. A quotient of the wrong degree means a stage was skipped.
  • The remainder’s degree is strictly below the divisor’s. Dividing by a linear leaves a constant; dividing by (x² − 4) can leave a linear remainder. If your remainder is still as big as the divisor, the division stopped one stage early — and it always goes one stage further than it feels like it should.

When the remainder is zero the division is exact and the divisor is a factor: (x³ − 1) ÷ (x − 1) = x² + x + 1 with nothing left over. That case is the whole content of the factor theorem below.

Long division, and the subtraction that goes wrong

Each stage is four moves: divide the leading term of what is left by the leading term of the divisor, multiply the whole divisor by that result, subtract, and repeat. Nothing about the pattern is unusual — it is the algorithm you already use on numbers.

The hazard is the subtraction. What you subtract is a whole polynomial, so every one of its signs flips, and forgetting that from the second term onwards is the classic failure of the method. Subtracting 2x³ − 4x² means subtracting the 2x³ and adding the 4x². Some people avoid it entirely by negating the product and adding instead, which is the same trick the Adding and Subtracting Polynomials Calculator makes explicit — write the flipped version down as its own line, then add.

The other quiet error is multiplying only the leading term of the divisor rather than all of it. The product at each stage is a full polynomial with as many terms as the divisor has, and a short product leaves a remainder that is too large, which then produces an extra quotient term that should not exist.

Missing powers, and why the zeros matter

3x⁴ − 2x² + 1 has no x³ term and no x term. Written out for division it needs both written in as zeros, because the method is entirely about keeping like terms in the same column, and a gap shifts every column after it.

Dividing it by x + 2 gives 3x³ − 6x² + 10x − 20 with remainder 41. The quotient has all four terms present; nothing about the answer hints that the dividend had gaps, which is exactly why the gaps have to be handled at setup rather than noticed later.

x² + 1 divided by x − 3 is the smallest version of the same thing: no x term in the dividend, and the answer x + 3 + (10) / (x − 3) depends on that column being kept. The calculator inserts the placeholders for you, but on paper they are yours to write.

Synthetic division, and the sentence most sources leave out

Synthetic division drops the variables entirely and works with the coefficients in a row, which makes it fast. It is a genuine shortcut and it has a genuine limit: it only works when the divisor is linear. (x⁴ − 16) ÷ (x² − 4) cannot be done this way at all, and the tool above says so rather than showing an empty table.

Two details cause most of the trouble with it. The first is the sign: dividing by (x − 2) means c = 2, the value that makes the divisor zero, which is the negative of the constant you see written. Dividing by x + 2 means c = −2, not +2.

The second is almost never mentioned. When the divisor is not monic — (2x − 1), say — every coefficient is divided through first, which makes the quotient come out right but leaves the last cell as the remainder of the scaled problem. It has to be multiplied back: −5/2 × 2 = −5. Skipping that step gives a remainder that is wrong by exactly the factor you divided by, and long division on the same problem would disagree with it.

The remainder theorem: skip the division entirely

If you only want the remainder after dividing by (x − c), you do not have to divide at all. The remainder is P(c) — substitute c into the polynomial and that is the answer.

For (2x³ − 3x² + 4x − 5) ÷ (x − 2), substituting 2 gives 7, which is the remainder the long division produced. For 3x⁴ − 2x² + 1 at −2 it is 41, again matching.

The reason is one line of algebra. Writing P(x) = (x − c)·Q(x) + R and putting x = c makes the first term vanish, whatever Q happens to be, leaving P(c) = R. Nothing about Q matters, which is precisely why the shortcut works — and why it applies only to a linear divisor, since only then is the remainder a constant.

The factor theorem: a root and a factor are the same fact

Take the remainder theorem and set the remainder to zero. P(c) = 0 exactly when (x − c) divides P with nothing left over — so c is a root if and only if (x − c) is a factor. Two ideas that are taught separately turn out to be one idea seen from two sides.

P(1) = 0, so by the factor theorem x − 1 divides x³ − 1 exactly, and 1 is a root.

P(2) = 7, which is not zero, so x − 2 is not a factor and 2 is not a root.

This is what makes division useful rather than merely possible. Find one root of a cubic by any means — the rational root candidates are usually the fastest — divide it out, and you are left with a quadratic that the quadratic formula finishes. That pairing is how most higher-degree polynomials actually get solved by hand, and division is the step in the middle.

Related calculators

What division is usually a step towards:

Multiplying PolynomialsMultiply polynomials of any size in any number of variables, by grid, vertical or term-by-term layout, with the product count that catches a dropped term.
Factoring TrinomialsFactor a trinomial by the AC method with every factor pair of ac listed, the common factor taken out first, and the answer multiplied back out to check it.
Adding and Subtracting PolynomialsAdd or subtract polynomials with the sign flip shown as its own step, like terms aligned in columns, and a visible gap wherever a power is missing.
Quadratic FormulaSolve any quadratic with exact roots — surds stay surds and a negative discriminant gives the complex pair — plus the vertex, the factored form and every step of the working.
DiscriminantEvaluate b² − 4ac, the cubic and quartic discriminants, or D = f_xx·f_yy − (f_xy)² for the second-derivative test, in exact arithmetic so the sign is never a rounding artefact.
ScientificTrigonometry, logarithms, powers, roots, and factorials with correct order of operations, memory registers, history, and keyboard entry.

More in Math, or browse all calculators.

Sources and methodology

The division algorithm and both theorems are proved in a line each above rather than asserted — the remainder theorem in particular is short enough that citing it would be less convincing than showing it. What is cited is the standard reference statement.

Method. Every figure on this page comes from src/lib/polynomial-division.ts over the exact-rational polynomial core in src/lib/algebra/poly.ts. No answer is asserted: the engine multiplies the divisor by the quotient, adds the remainder, and compares the result with the dividend coefficient by coefficient before anything is displayed. The synthetic table’s scaled remainder is reconciled with the long-division remainder rather than left as the raw bottom-row value, which is the detail most implementations get wrong on a non-monic divisor. That engine is verified on every change against 77 hand-written assertions, including that the two methods agree on every linear-divisor case swept and that the remainder always equals P(c). The count and the per-case breakdown are published on the formula verification page.

Read the guide

Division is the last of four operations and the one that depends most on the other three being solid. Adding, Multiplying and Dividing Polynomials — the Four Operations puts them together: the sign flip that subtraction needs and that appears again inside every stage of long division, the product count that catches a dropped term, the placeholder zeros, and the two checks that work on all four.

Educational use disclaimer

This calculator divides one polynomial by another, by long division for any divisor and by synthetic division where the divisor is linear. Coefficients are held as exact fractions, so a remainder is reported as zero only when it genuinely is — which is the whole content of the factor theorem. It is a study and checking aid; the working is printed because the method, not the answer, is usually what is being examined.

How we calculate · Found an error? email us

Authorship & verification

Written and maintained by , a business operator who builds spreadsheet-based calculators.

What's changed (3 updates)

Published 6 September 2026

  1. Published the polynomial division page: long division for any divisor, synthetic division for a linear one, with the synthetic tab labelled unavailable rather than silently empty when the divisor is not linear.
  2. Handles the detail most implementations get wrong — with a non-monic divisor the synthetic bottom row holds the remainder of the SCALED problem, and it is reconciled with the long-division remainder rather than printed raw.
  3. Reports the remainder theorem and the factor theorem against the division itself, so P(c) and the remainder are shown agreeing rather than asserted to agree.

Add this calculator to your site

Responsive embed — and private: nothing your visitors type leaves their browser.