# Polynomial Calculator: Add, Multiply, Divide and Factor

Dividing (x³ − 6x² + 11x − 6) by (x − 1) gives: Quotient x² − 5x + 6, remainder 0. The remainder is 0, so x − 1 is a factor and x = 1 is a root; the full factorization is (x − 1)(x − 2)(x − 3). Type any polynomial in x with whole-number, decimal or fraction coefficients and pick an operation: the working appears below, in exact fractions.

Canonical page: https://ponderloop.com/tools/polynomial-calculator/
Updated: 2026-11-14

## How to use

How to use the Polynomial Calculator

1. **Choose the operation**: Pick add, subtract, multiply, divide, evaluate, derivative, roots or factor.
2. **Type the polynomial**: Write polynomial A in x, for example 3x^2 - 2x + 1/2. Add B for the four arithmetic operations, or the value of x for evaluation.
3. **Read the result and the working**: For the example, the headline reads “Quotient x² − 5x + 6, remainder 0” and the steps and the table show each stage of the long division.

## Reference tables and worked examples

### Worked examples

Each result is the calculator’s own answer for the input shown.

| Operation | Input | Result |
| --- | --- | --- |
| Add | (3x² − 2x + 1) + (x − 4) | 3x² − x − 3 |
| Subtract | (3x² − 2x + 1) − (x − 4) | 3x² − 3x + 5 |
| Multiply | (2x + 3) × (x² − x + 4) | 2x³ + x² + 5x + 12 |
| Divide | (2x³ + 3x² − x + 5) ÷ (x + 2) | Quotient 2x² − x + 1, remainder 3 |
| Evaluate at x = 1/2 | 2x³ − 3x + 1 | −1/4 |
| Derivative | 3x⁴ − 2x² + 5x − 7 | 12x³ − 4x + 5 |
| Roots | 2x³ − 3x² − 3x + 2 | Real roots: x = −1, x = 1/2, x = 2 |
| Roots with an irrational pair | x² − 2 | Real roots: x ≈ −1.414214, x ≈ 1.414214 |
| Factor | 6x² + x − 2 | (3x + 2)(2x − 1) |

### Polynomial identities

The product column is multiplied out and then factored back by the calculator, so each row shows both directions.

| Identity | General form | Example product | Expanded | Factored again |
| --- | --- | --- | --- | --- |
| Difference of squares | a² − b² = (a − b)(a + b) | (x+5)(x−5) | x² − 25 | (x + 5)(x − 5) |
| Square of a sum | (a + b)² = a² + 2ab + b² | (x+3)(x+3) | x² + 6x + 9 | (x + 3)² |
| Square of a difference | (a − b)² = a² − 2ab + b² | (x−4)(x−4) | x² − 8x + 16 | (x − 4)² |
| Sum of cubes | a³ + b³ = (a + b)(a² − ab + b²) | (x+3)(x²−3x+9) | x³ + 27 | (x + 3)(x² − 3x + 9) |
| Difference of cubes | a³ − b³ = (a − b)(a² + ab + b²) | (x−2)(x²+2x+4) | x³ − 8 | (x − 2)(x² + 2x + 4) |
| Cube of a sum | (a + b)³ = a³ + 3a²b + 3ab² + b³ | (x+1)³ | x³ + 3x² + 3x + 1 | (x + 1)³ |
| Product of two binomials | (x + p)(x + q) = x² + (p + q)x + pq | (x+2)(x+7) | x² + 9x + 14 | (x + 7)(x + 2) |
| Sum of squares | a² + b² has no real factors | x²+9 | x² + 9 | x² + 9 |

## How it works

Coefficients are exact fractions of two whole numbers, so sums, products, long division and evaluation never round. Rational roots come from the Rational Root Theorem applied to the integer form of the polynomial. Repeated factors are separated exactly with Yun’s square-free decomposition. Real roots of the part that has no rational root are located between the turning points (the real roots of its derivative) and refined by bisection in double precision, shown to six decimal places and always marked ≈. For x³ − 6x² + 11x − 6 the factorization is (x − 1)(x − 2)(x − 3) with x = 1, x = 2, x = 3.

## FAQ

### How do I type a polynomial?

Use x as the variable, ^ or ** for powers and / for fractions: 3x^2 - 2x + 1/2 is read as 3x² − 2x + 1/2. Spaces are optional, 2x means 2 times x, and brackets work, so 2(x+1)(x-3) is read as 2x² − 4x − 6. Superscripts such as x² also work.

### How does polynomial long division work?

Divide the leading term of what is left by the leading term of the divisor, write that as the next quotient term, multiply it back by the divisor and subtract. Repeat until what is left has a lower degree than the divisor. For (2x³ + 3x² − x + 5) ÷ (x + 2) the result is quotient 2x² − x + 1, remainder 3.

### What does the remainder tell me?

By the remainder theorem, dividing by x − c leaves the value of the polynomial at c. Dividing 2x³ + 3x² − x + 5 by x + 2 leaves 3, and evaluating it at x = −2 gives 3. A remainder of 0 means x − c is a factor and c is a root.

### How are the roots found?

Rational roots are found exactly with the Rational Root Theorem: a rational root p/q has p dividing the constant term and q dividing the leading coefficient, and each candidate is tested in exact arithmetic. For 2x³ − 3x² − 3x + 2 the result is real roots: x = −1, x = 1/2, x = 2. What is left has no rational root, so its real roots are approximations, always marked ≈: x² − 2 gives real roots: x ≈ −1.414214, x ≈ 1.414214, and x³ − 2 gives real roots: x ≈ 1.259921.

### Why is a factor left as it is, and is it really irreducible?

Factoring here uses the common factor, the rational roots and repeated-factor splitting. A quadratic or cubic with no rational root is irreducible over the rationals, so it is shown as it is. A part of degree 4 or more with no rational root can still split into quadratics: x⁴ + 4 has no rational root, and the tool shows x⁴ + 4 and marks it “may split further”.

### What are the limits?

Inputs can have degree up to 40, exponents up to 60 and up to 400 characters. Results can be a little larger: x^40 times x is x⁴¹. The numeric search for real roots runs when the part left after the rational roots has degree 6 or less; above that only the rational roots are listed. Very large coefficients skip the rational root search and say so.

### Can I use decimals and fractions?

Yes. Decimals are converted to exact fractions: 0.5x^2 + 0.25x is read as (1/2)x² + (1/4)x. Nothing is rounded during the working, so a coefficient like 1/3 stays 1/3.

### Is the derivative a full derivative calculator?

No. It applies the power rule term by term to a polynomial: 3x⁴ − 2x² + 5x − 7 becomes 12x³ − 4x + 5. It does not handle products of functions, quotients, trigonometric functions or the chain rule.

### Is anything I type sent to a server?

No. Polynomials are worked out by your browser alone: the text you type is never sent anywhere or saved.

## Sources

- [OpenStax, Algebra and Trigonometry 2e: Dividing Polynomials (long division, the remainder theorem)](https://openstax.org/books/algebra-and-trigonometry-2e/pages/5-4-dividing-polynomials)
- [OpenStax, Algebra and Trigonometry 2e: Zeros of Polynomial Functions (Rational Zero Theorem)](https://openstax.org/books/algebra-and-trigonometry-2e/pages/5-5-zeros-of-polynomial-functions)
- [D. Y. Y. Yun, On square-free decomposition algorithms, SYMSAC ’76 (1976)](https://doi.org/10.1145/800205.806320)

---

Cite as: Polynomial Calculator: Add, Multiply, Divide and Factor, ponderloop, https://ponderloop.com/tools/polynomial-calculator/, updated 2026-11-14
