Finds all roots of a polynomial with their multiplicity, factors it exactly, and divides, multiplies, adds or subtracts two polynomials, with synthetic division and P(a) shown row by row.
Polynomial Calculator - Roots, Factoring, Long Division
Finds all roots of a polynomial with their multiplicity, factors it exactly, and divides, multiplies, adds or subtracts two polynomials, with synthetic division and P(a) shown row by row.
Parameters
Enter data for calculations
💡 Fill in all required fields to unlock the calculate button
Roots, factors and long division of any polynomial
Type x^3 - 6x^2 + 11x - 6 and the answer comes back as (x - 1)(x - 2)(x - 3), with the roots 1, 2 and 3 listed in a table. This polynomial calculator finds every root with its multiplicity, factors the polynomial as far as exact arithmetic allows, and also divides, multiplies, adds and subtracts two polynomials. Division prints the quotient, the remainder and, when the divisor is linear, the full synthetic division table. Everything rational stays a fraction: a remainder of 15/2 is shown as 15/2, not 7.4999999.
It accepts the notation you would write on paper. Multiplication signs can be left out (2x, 3(x - 1)), powers go after ^ or as ² and ³, fractions can sit in front of x (1/2x^2), and a product such as (x - 1)^3(x + 2)^2 is expanded before anything else happens. The degree can go up to 30.
Four boxes, filled in order
- 1Polynomial P(x) - the polynomial you want to solve or the dividend. Use a period for decimals (0.5) and no thousands separators: a comma is rejected, because 1,000 would mean one thousand to some readers and one point zero to others.
- 2Operation - left empty, the calculator finds roots and factors. The other four choices (divide, multiply, add, subtract) need a second polynomial.
- 3Second polynomial D(x) - the divisor when you divide, the other operand otherwise. A divisor of degree 1, such as x - 2 or 2x + 1, also gets a synthetic division table and a line from the remainder theorem.
- 4Evaluate at x = - optional. A number such as 3, -1/2 or 1.5; the value P(x) is worked out by synthetic substitution, row by row. A result of 0 means the number is a root.
Every result ends with a "Copy and paste" line in plain text (x^2 - 4x + 3), which you can drop straight back into the first box to keep going, for example to factor a quotient further.
Long division or synthetic division: which one you are looking at
Both give the same quotient and remainder. The table below shows where each one applies and what the calculator prints for it.
| Point | Long division | Synthetic division |
|---|---|---|
| Divisor it handles | Any degree: x^2 + x, x^3 - 1 | Degree 1 only: x - a, or ax + b after rescaling |
| What you write down | Whole terms with x | Coefficients only, one row |
| Missing powers | Easy to skip by mistake | Must be written as 0 (4x^3 - 2x + 7 is 4, 0, -2, 7) |
| Remainder | A polynomial of lower degree than the divisor | One number, the last entry, equal to P(a) |
| Shown by the calculator | Quotient, remainder, P = D·Q + R and a check | All of that plus the table and the remainder theorem line |
| Use it when | The divisor is quadratic or higher | You are testing a possible root or evaluating P(a) |
How the roots are found, shown on three polynomials
The calculator first removes repeated factors (squarefree factorization), then tries every candidate from the rational root theorem: a rational root p/q in lowest terms must have p dividing the constant term and q dividing the leading coefficient. Each candidate is tested exactly, on fractions, and each hit is divided out. A quadratic left over is solved with the discriminant Δ = b² - 4ac. Anything of degree 3 or more with no rational root goes to a numeric method (Aberth-Ehrlich), and a Sturm sequence settles exactly how many of those roots are real.
Some other results checked with the same engine:
| Input | Operation | Result |
|---|---|---|
| x^2 - 2x - 1 | Roots | 1 ± √2, Δ = 8, about -0.4142135624 and 2.414213562 |
| x^2 + 4x + 13 | Roots | -2 ± 3i, Δ = -36, no real factors |
| (x-1)^3(x+2)^2 | Roots | Expanded to x^5 + x^4 - 5x^3 - x^2 + 8x - 4; roots -2 (multiplicity 2) and 1 (multiplicity 3) |
| x^5 - x - 1 | Roots | One real root, about 1.167303978, and two complex pairs |
| 2x^3 - 5x^2 + x + 2 and x - 2 | Divide | Quotient 2x^2 - x - 1, remainder 0, so 2 is a root |
| x^3 - 7x - 6 and x^2 + x | Divide | Quotient x - 1, remainder -6x - 6 |
| 3x^2 - x + 4 and x^2 + 2 | Multiply | 3x^4 - x^3 + 10x^2 - 2x + 8 |
Slips that give a wrong quotient or a missing root
Polynomial questions students send in
Related tools
Beaufort Scale Calculator
Wind speed in mph, knots, km/h or m/s to its Beaufort force, wave height and hurricane category - See the calculator
Dog Body Condition Score Calculator
A 1-9 body score from ribs, waist and belly, with body fat and an ideal weight in lb - See the calculator
Quadratic Equation Calculator
Solves ax² + bx + c = 0 with the discriminant shown step by step - See the calculator
Quadratic Function Calculator
Vertex, zeros and the shape of a parabola - See the calculator
Derivative Calculator
Derivatives of any function with every rule named and the tangent line - See the calculator
Binomial Expansion Calculator
Expands (a + b)^n term by term with the binomial coefficients - See the calculator
System of Equations Calculator
Two or three linear equations solved by elimination, substitution or Cramer's rule - See the calculator
Fraction Calculator
Adds, subtracts, multiplies and divides fractions in lowest terms - See the calculator