How to use this calculator
Type the polynomial you want to divide into the dividend field, then
type the divisor below it. A polynomial is made from terms such as a
number, a variable, or a coefficient multiplied by a variable power.
You can write ordinary powers with a caret, as in
x^3 + 2x^2 - 5x + 6, or use superscripts, as in
x³ + 2x² − 5x + 6. Spaces are optional.
Press Divide polynomials. The calculator first rewrites both expressions in descending degree order. It fills every missing power with a zero coefficient, performs exact fraction arithmetic, and reports both the quotient and the remainder. Keep Show full steps enabled when you need to compare the work with pencil-and-paper long division. Turn it off when you only need the answer.
Input rules
- Use one variable in both expressions.
- Use
+and-between expanded terms. - Fraction coefficients may be written as
1/2x^2. - Do not enter an expression whose divisor simplifies to zero.
If you need to divide ordinary numbers rather than algebraic terms, use the long division calculator. It applies the same general division cycle to place-value digits.
Worked example: (x³ + 2x² − 5x + 6) ÷ (x − 2)
Begin with the dividend in descending order:
x³ + 2x² − 5x + 6. The divisor is
x − 2. Divide the first terms:
x³ ÷ x = x²
Write x² in the quotient. Multiply it by the entire
divisor:
x²(x − 2) = x³ − 2x²
Subtract that product from the current polynomial:
(x³ + 2x² − 5x + 6) − (x³ − 2x²) = 4x² − 5x + 6
The leading term is now 4x². Divide it by the divisor's
leading term:
4x² ÷ x = 4x
Multiply and subtract again:
4x(x − 2) = 4x² − 8x
(4x² − 5x + 6) − (4x² − 8x) = 3x + 6
Repeat the process with 3x:
3x ÷ x = 3
3(x − 2) = 3x − 6
(3x + 6) − (3x − 6) = 12
The remaining polynomial is the constant 12. Its degree
is lower than the degree of x − 2, so division stops.
The quotient is x² + 4x + 3 and the remainder is
12.
x³ + 2x² − 5x + 6 = (x − 2)(x² + 4x + 3) + 12
What are the quotient and the remainder?
The quotient is the result written above a polynomial long division
bar. In the example above, it is the quadratic polynomial
x² + 4x + 3. The remainder is what is left when no
additional term can be divided. Here, the remainder is the nonzero
constant 12.
A completed polynomial division satisfies a relationship similar to
whole-number division. If the dividend is P(x), the
divisor is D(x), the quotient is Q(x), and
the remainder is R(x), then:
P(x) = D(x)Q(x) + R(x)
The remainder must be either zero or a polynomial with a smaller degree than the divisor. If division by a linear divisor leaves a nonzero constant, that value is the remainder. A quadratic divisor can leave a constant or a linear remainder, but not another quadratic term. This degree condition tells you when to stop and provides a useful check on the final answer.
How to check the answer by multiplying back
A finished division can be checked without repeating the whole algorithm. Multiply the quotient by the divisor, then add the remainder. The result should equal the original dividend. For a number problem, this is the familiar relationship:
quotient × divisor + remainder = dividend
Polynomial division uses the same check with terms instead of single
values. If the dividend is P(x), the divisor is
D(x), the quotient is Q(x), and the
remainder is R(x), the completed answer should satisfy
P(x) = D(x)Q(x) + R(x).
For the worked example, multiply
x² + 4x + 3 by x − 2. Multiply every term
of the quotient by each term of the divisor:
(x² + 4x + 3)(x − 2)
= x³ + 4x² + 3x − 2x² − 8x − 6
= x³ + 2x² − 5x − 6
Now add the remainder, 12. The constant terms become
−6 + 12 = 6, so the recovered dividend is
x³ + 2x² − 5x + 6. Because this matches the original
expression, the quotient and remainder are consistent.
If the check does not match, inspect the subtraction signs first. Subtracting a polynomial changes the sign of every term in the product. Next, verify that missing powers were aligned with zeros and that the remainder was added rather than subtracted. This quick multiplication check catches most sign and coefficient mistakes without redoing all the division rows.
Polynomial long division with steps, explained
Polynomial long division follows the same broad idea as numerical long division. Each pass handles the largest remaining term. First, divide the leading term of the current polynomial by the leading term of the divisor. Second, multiply the full divisor by the new quotient term. Third, subtract the product. Fourth, continue with the terms that remain.
The word “bring down” may look slightly different from a numerical problem because polynomial terms are already separated by plus and minus signs. After subtraction, the remaining polynomial becomes the next working row. Its highest term is used for the next division, and the other terms stay available for later subtraction.
One reliable cycle
- Divide the highest term of the working polynomial by the highest term of the divisor.
- Place the result in the quotient above the matching degree.
- Multiply the complete divisor by that quotient term.
- Subtract the product from the working polynomial.
- Carry down every remaining term and repeat.
The calculator labels each of these actions so a difference and a multiplication cannot disappear inside an unexplained final answer. If a line is difficult to follow on a small screen, the labels let you identify whether the line is selecting a quotient term, multiplying, subtracting, or carrying terms into the next row.
Answers only: using the without-steps mode
Sometimes the quotient and remainder are all you need. Switch off Show full steps and the worked rows disappear while the answer remains visible. This is useful for checking homework, confirming a result you calculated by hand, or trying the problem again before looking at the process.
The answer panel always distinguishes quotient from remainder. A zero remainder means the divisor divides the dividend exactly. A nonzero remainder still represents a valid answer; it is not discarded or rounded into a decimal.
Polynomial division calculator: when a shortcut works
Long division is a general method, so it works when the divisor has a
degree greater than one. Synthetic division is a shorter shortcut
for division by a linear factor in the form x − c. If
the divisor is quadratic or higher, ordinary polynomial long division
is usually the safer method.
A calculator should not hide the distinction. Dividing by
x − 2 is a situation where synthetic division could
apply, while dividing by x² + 1 requires a method such as
long division. This page uses the general division algorithm so the
same process can handle both examples.
Why missing terms need a zero placeholder
Suppose the dividend is x³ − 1. Written this way, it
looks as though the polynomial jumps directly from a cubic term to a
constant. In descending order, however, the full structure is:
x³ + 0x² + 0x − 1
The zeros do not change the value of the polynomial. They preserve degree alignment. When each quotient term is multiplied by the divisor, the product has to be subtracted from the correct term. A missing placeholder makes it obvious where that product belongs and prevents a cubic term from being accidentally combined with a linear term.
Missing terms are especially important when a quotient skips a degree. Without aligned columns, the final quotient can look correct while still having coefficients attached to the wrong powers. The normalized dividend shown with each result exposes these zeros before they disappear into the shorter final notation.
Want the reasoning behind the algorithm? Read the Polynomial Long Division Tutorial with six fully worked examples.
FAQ
What is polynomial long division?
Polynomial long division is a method for dividing one polynomial by another. It repeatedly divides leading terms, multiplies, subtracts, and carries the remaining terms forward until the remainder has a lower degree than the divisor.
How do you choose each term in the quotient?
At each step, divide the leading term of the current polynomial by the leading term of the divisor. That quotient term is placed above the matching degree, then the entire divisor is multiplied by it before subtraction.
What are the quotient and remainder?
The quotient is the polynomial written above the division bar. The remainder is the polynomial left after no more terms can be divided; its degree is lower than the divisor's degree.
Why must missing terms be written as zero?
Missing terms must be written with zero coefficients so place values remain aligned. For example, x³ − 1 becomes x³ + 0x² + 0x − 1.
Can a non-linear polynomial be the divisor?
Yes. The divisor can have any positive degree as long as it is not the zero polynomial. A quadratic divisor leaves a remainder whose degree is zero or one.
Does the calculator show fractional coefficients?
Yes. Coefficients are handled as exact reduced fractions, so x² + 1 divided by 2x − 1 can produce one-half and one-quarter without floating-point rounding.
Does the calculator send polynomials to a server?
No. Parsing and division happen in your browser with JavaScript; no network request is made to calculate the answer.
Can I hide the step-by-step work?
Yes. Turn off the Show full steps switch to hide the worked rows. The quotient and remainder remain visible.