Polynomial arithmetic is the algebra that everything else is built on: factorising, solving, curve fitting and calculus all reduce to adding, multiplying or dividing expressions in one variable. This polynomial arithmetic calculator parses two polynomials from ordinary typed notation, performs addition, subtraction, multiplication or long division, and shows the intermediate terms rather than only the tidy final answer.
This is a single-variable tool by design. It reads one letter — x by default, though you can change it — and rejects anything with a second variable rather than guessing what you meant. Arb Digital chose that limit deliberately: multivariable arithmetic needs a different notion of degree and a term ordering convention, and a calculator that silently improvises one produces answers that look plausible and are wrong.
What This Polynomial Calculator Does
It parses expressions written the way you would write them by hand: coefficients attached directly to the variable, powers with a caret, terms separated by plus and minus signs. It then adds, subtracts, multiplies or long divides, and reports the degree, the number of non-zero terms, the leading coefficient and the value of the result at a test point of your choosing. For multiplication it lists the products term by term before they are collected; for division it lists each step of the long division alongside the running remainder.
Division is included here, but if it is the only operation you need, our polynomial division calculator is the dedicated page for it; this tool exists to cover addition, subtraction and multiplication alongside it in one place, so you can chain operations without switching pages. Parentheses and nested expressions are not supported — expand them yourself first, or multiply the factors here.
How to Use It
- Type each polynomial on one line. Something like 3x^2 - 5x + 2 parses exactly as written; spaces around the signs are optional.
- Choose the operation. Division treats P as the dividend and Q as the divisor, in that order.
- Change the variable letter if you use something else. Set it to t or n and the parser expects that letter throughout.
- Set the evaluation point. Substituting the same value into your hand working and comparing is the fastest error check available.
- Read the working panel. For division it shows the term brought down and subtracted at each step, which is where hand errors accumulate.
The Rules and How It's Calculated
Addition and subtraction collect like terms: coefficients of the same power are added or subtracted, and powers never change. Multiplication distributes every term of P across every term of Q, adding exponents and multiplying coefficients, then collects the results. A polynomial of degree m times one of degree n always has degree m + n, which is an instant check on any product.
Long division mirrors the numerical algorithm. Divide the leading term of the remainder by the leading term of the divisor to get the next quotient term, multiply the whole divisor by it, subtract, and repeat until the remainder has a lower degree than the divisor. The result satisfies the division algorithm: P = Q × quotient + remainder, with deg(remainder) < deg(Q).
Work through the defaults. Dividing x³ − 2x² − 4 by x − 3 starts with x³ ÷ x = x². Multiplying back gives x³ − 3x², and subtracting leaves x² − 4. Next, x² ÷ x = x; multiplying gives x² − 3x, and subtracting leaves 3x − 4. Then 3x ÷ x = 3; multiplying gives 3x − 9, and subtracting leaves 5. Since 5 has degree 0 and the divisor has degree 1, the division stops: the quotient is x² + x + 3 with remainder 5. Check it by multiplying back — (x − 3)(x² + x + 3) = x³ − 2x² − 9, and adding the remainder 5 gives x³ − 2x² − 4, the original. The division algorithm and Horner's scheme behind it are stated formally in section 1.11 of the NIST Digital Library of Mathematical Functions.
The Remainder Theorem Turns Division Into Substitution
When the divisor is a linear factor x − a, the remainder is always just P(a). Our default confirms it: dividing by x − 3 left a remainder of 5, and substituting x = 3 into x³ − 2x² − 4 gives 27 − 18 − 4 = 5. No division needed. That shortcut is the remainder theorem, and it turns a page of long division into one substitution.
The factor theorem follows immediately: if P(a) = 0 then the remainder is zero, so x − a divides P exactly. This is the standard way to find a first root of a cubic by hand — try small integer values of a until one gives zero, then divide out that factor and solve the remaining quadratic with our quadratic equation solver. Every rational root has a numerator dividing the constant term and a denominator dividing the leading coefficient, which keeps the list of candidates short.
Where Sign Errors Actually Come From
Almost every hand error in polynomial arithmetic is a sign error, and almost all of them happen at a subtraction. In long division you subtract the product from the current remainder, which means every term of that product changes sign — not just the first. Writing the product on its own line and then negating every term before adding is slower and vastly more reliable than subtracting in your head.
Subtracting polynomials has the same trap: P − Q negates every term of Q, including the ones that were already negative and therefore become positive. A missing term is the other frequent cause. If your polynomial has no x² term, write 0x² explicitly when setting out a division; the column alignment is what keeps the algorithm honest, and a skipped power silently shifts everything after it. This parser inserts those zero coefficients for you, which is why a sparse polynomial like x³ − 4 divides correctly here.
Degree Tells You What to Expect Before You Start
Degrees behave predictably, and checking them first catches structural errors that no amount of arithmetic care will. A product has degree equal to the sum of the two degrees. A sum has degree equal to the larger of the two, except in the one case where the leading terms cancel exactly — (x² + 3x) + (−x² + 1) is linear, not quadratic, and that cancellation is worth noticing because it usually means something in the problem.
Division of a degree m polynomial by a degree n one gives a quotient of degree m − n and a remainder of degree at most n − 1. If your quotient has the wrong degree, the error is structural rather than arithmetical, and recomputing the coefficients will not fix it. Where the divisor has the higher degree, the quotient is zero and the whole dividend is the remainder — which is a correct answer, not a failure.
Why Multiplication Is the Reverse of Factorising
Expanding is mechanical; factorising is a search. That asymmetry is why multiplication is a good way to check a factorisation but a poor way to find one. If you believe x² − 5x + 6 factors as (x − 2)(x − 3), multiplying takes five seconds and settles it. Going the other way requires finding two numbers with the right product and sum, and for higher degrees there is no general procedure at all.
For quadratics the search is short enough to do by inspection, and our factoring trinomials calculator handles the standard cases. Above degree four, no formula in radicals exists for the roots — a fact proved in the nineteenth century, not a gap waiting to be filled — so numerical methods take over. This is the practical reason polynomial division matters so much: each root you find lets you divide the polynomial down by one degree until what remains is small enough to solve outright.
Where Polynomial Arithmetic Turns Up in Practice
Curve fitting is the common one. Fitting a quadratic or cubic through measured points and then evaluating, differentiating or dividing it is routine in forecasting and in any diminishing-returns model. Because polynomials are closed under addition, subtraction and multiplication, combining fitted models keeps you inside the same family and the arithmetic on this page applies directly.
Division shows up more narrowly but more crucially: deflating a polynomial after finding a root, converting an improper rational expression into a polynomial plus a proper fraction before integrating, and setting up partial fractions all start with exactly the long division this tool performs. The formal grounding, including the fundamental theorem that a degree n polynomial has exactly n roots counted with multiplicity, sits in the dividing polynomials section of Paul's Online Math Notes at Lamar University, which covers both long and synthetic division.
Arb Digital fits models that describe how spend actually behaves, and says plainly where the fitted curve stops being trustworthy.
Browse All Free Tools Talk To Our TeamCommon Mistakes to Avoid
- Negating only the first term when subtracting — every term of the second polynomial changes sign, and this single slip causes most wrong answers.
- Skipping missing powers in a long division — write 0x² explicitly, or the column alignment shifts and everything after it is wrong.
- Adding exponents when adding terms — exponents add during multiplication only; addition just combines coefficients of matching powers.
- Stopping the division too early or too late — you stop when the remainder's degree drops below the divisor's, not when it looks small.
- Mixing two variables — this calculator is single-variable and will say so rather than guessing how to order terms in x and y.
Related Free Tools From Arb Digital
Divide with a dedicated layout using the polynomial division calculator, factor a quadratic with the factoring trinomials calculator, handle powers on their own with the exponent calculator, or work through numerical long division with the long division calculator. The full free online tools hub lists every mathematics tool we publish.
Frequently Asked Questions
Write it the way you would on paper, using a caret for powers: 3x^2 - 5x + 2. Spaces are optional, coefficients can be decimals or negative, and missing powers are filled in as zero automatically.
No. It is single-variable by design, using whichever letter you set. A second variable is rejected with a message rather than guessed at, because multivariable arithmetic needs a term ordering this tool does not define.
It is what is left when the divisor no longer fits, and its degree is always lower than the divisor's. The identity dividend equals divisor times quotient plus remainder is the check that the division was done correctly.
When you divide by x minus a, the remainder equals the polynomial evaluated at a. That turns a long division into a single substitution, and a zero remainder means x minus a is a factor.
A product has the sum of the two degrees. A sum or difference has the larger of the two, unless the leading terms cancel exactly. A quotient has the dividend's degree minus the divisor's.
In long division the columns must line up by power. A skipped x squared term shifts everything after it and corrupts the result, so this parser inserts the zero coefficients for you.
Not in the input fields. Expand any brackets first, or enter the two factors separately and use the multiplication option to expand them here.
This page explains a mathematical method for study and for checking your own working. It is not a substitute for showing your method, and it is not medical, legal, or financial advice.