How to use the polynomial division calculator
- Type the dividend and the divisor. Use ^ for powers, as in 2x^3 − 3x^2 + 4x + 5. Terms can be in any order and missing powers are fine; fractions such as 1/2x work too.
- Choose a method. Long division works for any divisor. Synthetic division is a shortcut for a linear divisor such as x − 3 or 2x + 1.
- Read the result. The large figure is the quotient with any remainder after R. The layout under the inputs shows the work column by column, and the step list spells out each divide, multiply and subtract.
The preset is Example 2 from OpenStax College Algebra 2e (section 5.4): (6x³ + 11x² − 31x + 15) ÷ (3x − 2) = 2x² + 5x − 7, remainder 1. A remainder of 0 means the divisor is a factor of the dividend, which the results point out.
The Division Algorithm
Dividing polynomials works like dividing whole numbers. With numbers, 178 ÷ 3 is 59 with remainder 1, because 178 = 3 × 59 + 1. For polynomials the textbook states the same idea as the Division Algorithm:
The degree condition is what tells you when to stop: once what is left has a lower degree than the divisor, it is the remainder. You can also write the answer as one expression, dividend ÷ divisor = quotient + remainder ÷ divisor. For the preset that is 2x² + 5x − 7 + 1/(3x − 2). The “Check” card multiplies the divisor and quotient and adds the remainder to confirm the dividend comes back.
Polynomial long division, step by step
Each round has the same 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 bring down the next term. For the preset:
| Divide | Multiply by 3x − 2 | Subtract to get |
|---|---|---|
| 6x³ ÷ 3x = 2x² | 6x³ − 4x² | 15x² − 31x + 15 |
| 15x² ÷ 3x = 5x | 15x² − 10x | −21x + 15 |
| −21x ÷ 3x = −7 | −21x + 14 | 1 |
The quotient is the sum of the first column, 2x² + 5x − 7, and the last value, 1, has degree 0, lower than the divisor’s degree 1, so it is the remainder. Check: (3x − 2)(2x² + 5x − 7) = 6x³ + 11x² − 31x + 14, and adding 1 gives the dividend.
Most errors happen in the subtract step. Subtracting −4x² means adding 4x², which is how 11x² becomes 15x². The calculator’s layout writes each product with its signs already flipped, so every subtraction becomes an addition you can follow down the column.
Missing terms need a zero
Before dividing, write the dividend in descending powers with a 0 for every missing power. Otherwise the columns slip and the subtraction lines up the wrong terms. To divide x³ − 8 by x − 2, rewrite the dividend as x³ + 0x² + 0x − 8. The quotient is x² + 2x + 4 with remainder 0, which also confirms the difference-of-cubes pattern x³ − 8 = (x − 2)(x² + 2x + 4).
The calculator inserts the placeholders for you and shows them faintly in the layout. OpenStax’s Example 5, (−9x⁴ + 10x³ + 7x² − 6) ÷ (x − 1), has no x term, so its coefficient row is −9, 10, 7, 0, −6.
Synthetic division
Synthetic division is a shortcut for dividing by x − k. Write k and the coefficients of the dividend, bring the first coefficient down, multiply it by k, add it to the next coefficient, and repeat. The bottom row holds the quotient’s coefficients, one degree lower than the dividend, and the last number is the remainder. For Example 4, (4x³ + 10x² − 6x − 20) ÷ (x + 2), k = −2:
| k = −2 | x³ | x² | x | constant |
|---|---|---|---|---|
| Coefficients | 4 | 10 | −6 | −20 |
| Multiply by −2 | −8 | −4 | 20 | |
| Add | 4 | 2 | −10 | 0 |
So the quotient is 4x² + 2x − 10 and the remainder is 0. Note the sign: dividing by x + 2 means k = −2, the value that makes the divisor zero.
For a divisor like 3x − 2, divide by x − 2/3 instead (k = 2/3), then divide the bottom row by 3. On the preset, synthetic division gives 6, 15, −21 and a remainder of 1; dividing by 3 gives the same 2x² + 5x − 7 as long division. Synthetic division does not work for a divisor of degree 2 or more, such as x² + x + 1; use long division for those.
The Remainder and Factor Theorems
Section 5.5 of the same book adds a useful fact: the remainder from dividing f(x) by x − k equals f(k). For Example 5, f(1) = −9 + 10 + 7 − 6 = 2, the same remainder synthetic division gives, so the quotient is −9x³ + x² + 8x + 8 with remainder 2. When a divisor is linear, the calculator shows this check next to the remainder.
The Factor Theorem follows: x − k is a factor exactly when f(k) = 0. That is how the factoring polynomials calculator breaks down cubics and higher-degree polynomials: it finds a rational zero, divides it out, and factors what is left. Once a polynomial is down to a quadratic, the quadratic formula calculator finds the remaining roots.
Polynomial division versus long division of numbers
The two methods share their steps, but polynomials have no carrying or borrowing between columns: each power of x is its own column, and coefficients can be negative or fractional. That is why a quotient can have fractions even when every input has whole numbers, as in (x² + 1) ÷ (2x), which gives ½x with remainder 1. To divide whole numbers or decimals digit by digit, use the long division calculator.
Sources & assumptions
How this calculator gets its numbers. Full method: our methodology.
- Polynomials in one variable, up to degree 20, with whole-number, decimal or fraction coefficients kept as exact fractions.
- Long division repeats: divide the leading terms, multiply the divisor, subtract, until the remainder’s degree is lower than the divisor’s.
- Synthetic division is offered for a divisor ax + b: divide by x + b ÷ a, then divide the quotient by a. The remainder equals the dividend evaluated at x = −b ÷ a.
- Missing powers count as 0 coefficients.
Sources
- OpenStax (Rice University), College Algebra 2e, 5.4 Dividing Polynomials. The Division Algorithm, polynomial long division (Example 2: (6x³ + 11x² − 31x + 15) ÷ (3x − 2) = 2x² + 5x − 7, remainder 1) and synthetic division by x − k (Example 5: remainder 2 for (−9x⁴ + 10x³ + 7x² − 6) ÷ (x − 1)).
- OpenStax (Rice University), Intermediate Algebra 2e, 5.4 Dividing Polynomials. Long division with placeholder zeros for missing terms, synthetic division, and the Remainder and Factor Theorems.
- OpenStax (Rice University), College Algebra 2e, 5.5 Zeros of Polynomial Functions. The Remainder Theorem, the Factor Theorem and the Rational Zero Theorem (possible zeros p/q, p a factor of the constant term and q of the leading coefficient; 2x³ + x² − 4x + 1 has the zero 1).
Last reviewed . For dividing whole numbers or decimals, use the long division calculator.
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 that term, subtract, and repeat with what is left until its degree is lower than the divisor’s.
When can I use synthetic division?
When the divisor is linear, such as x − 3 or 2x + 1. For x − k, use k; for ax + b, use k = −b ÷ a and divide the quotient’s coefficients by a afterward.
What does a remainder of 0 mean?
The divisor divides the dividend evenly, so it is a factor. (5x² − 3x − 36) ÷ (x − 3) = 5x + 12 with remainder 0, so 5x² − 3x − 36 = (x − 3)(5x + 12).
How do I write the answer with a remainder?
Write quotient + remainder ÷ divisor. (6x³ + 11x² − 31x + 15) ÷ (3x − 2) = 2x² + 5x − 7 + 1/(3x − 2).
What do I do if a power of x is missing?
Insert it with a coefficient of 0. Divide x³ − 8 as x³ + 0x² + 0x − 8 so the columns line up; the quotient is x² + 2x + 4.
Can the quotient have fractions?
Yes. When the divisor’s leading coefficient does not divide the dividend’s coefficients evenly, fractions appear. (x² + 1) ÷ (2x) = ½x with remainder 1. The calculator keeps them as exact fractions.
How can I check a polynomial division?
Multiply the divisor by the quotient and add the remainder. The result should be the original dividend; if it is not, recheck the subtraction steps.