Skip to content

Polynomial Calculator

Operation

Highest power first, separated by commas or spaces. 3, 0, -5 means 3x^2 – 5.

Highest power first; write 0 for a missing power.

Result —
Degree
—
Coefficients (highest power first)
—
Non-zero terms
—

Enter each polynomial as its coefficients from the highest power down, pick an operation, and the result appears as a simplified polynomial with its degree. For example, multiplying 1, 1 by 1, -1 gives x^2 – 1, and evaluating 2x^3 – 6x^2 + 2x – 1 at x = 3 gives 5.

About this tool

Students checking algebra homework, teachers preparing answer keys and engineers expanding a characteristic equation all need the same small set of polynomial operations done without arithmetic slips. This calculator takes two polynomials as coefficient lists, highest power first, and returns their sum, difference or product in standard form, together with the degree, the coefficient list and the count of non-zero terms. In evaluate mode it computes P(x) at a chosen value using Horner's scheme and lists every multiply-and-add stage, which is handy for checking a hand evaluation line by line. The limit: it works with one variable and real coefficients up to degree 20; it does not divide, factor or find roots, so long division and solving need a different tool.

How to use it

  1. Choose the operation

    Pick P + Q, P − Q, P × Q, or P(x) at a value. The second polynomial box only appears for the first three.

  2. Type the coefficients of P

    List them from the highest power down, separated by commas or spaces. Use 0 for any power that is missing, so x^3 + 1 is 1, 0, 0, 1.

  3. Type Q or the value of x

    For the arithmetic operations enter Q the same way; for evaluation enter the x at which P should be computed.

  4. Read the result and the working

    The result shows in standard form, with its degree and coefficients beside it and each stage of the working listed below.

Examples

(x + 1)(x − 1)

Operation
P × Q
Polynomial P coefficients
1, 1
Polynomial Q coefficients
1, -1

Result Result: x^2 – 1
Degree: 2
Coefficients (highest power first): 1, 0, -1
Non-zero terms: 2

  1. P(x) = x + 1
  2. Q(x) = x – 1
  3. Multiply every term of P by every term of Q and add the products with equal powers.
  4. Result = x^2 – 1

The cross terms +x and −x cancel, leaving the difference of squares x² − 1.

2x³ − 6x² + 2x − 1 at x = 3

Operation
P(x) at a value
Polynomial P coefficients
2, -6, 2, -1
Value of x
3

Result Result: 5
Degree: 3
Coefficients (highest power first): 2, -6, 2, -1
Non-zero terms: 4

  1. P(x) = 2x^3 – 6x^2 + 2x – 1
  2. Horner: start with the leading coefficient 2
  3. 2 × 3 + -6 = 0
  4. 0 × 3 + 2 = 2
  5. 2 × 3 + -1 = 5
  6. P(3) = 5

Horner's scheme runs 2 → 0 → 2 → 5, so the polynomial equals 5 at x = 3.

(3x² + 2x + 1) + (x² − 4)

Operation
P + Q
Polynomial P coefficients
3, 2, 1
Polynomial Q coefficients
1, 0, -4

Result Result: 4x^2 + 2x – 3
Degree: 2
Coefficients (highest power first): 4, 2, -3
Non-zero terms: 3

  1. P(x) = 3x^2 + 2x + 1
  2. Q(x) = x^2 – 4
  3. Add the coefficients of equal powers: 3 + 1, 2 + 0, 1 + -4
  4. Result = 4x^2 + 2x – 3

Like powers combine: 3 + 1 for x², 2 + 0 for x, and 1 − 4 for the constant.

How it is calculated

(P ± Q)_k = p_k ± q_k; (P × Q)_k = Σ p_i · q_(k−i); P(x) = (…((a_n·x + a_(n−1))·x + a_(n−2))…)·x + a_0

p_k, q_k
coefficients of x^k in P and Q
a_n … a_0
coefficients of P from the highest power to the constant
x
the value at which P is evaluated

Addition and subtraction line the two coefficient lists up by power, padding the shorter one with leading zeros, and combine them term by term. Multiplication is a discrete convolution: every term of P meets every term of Q, and products landing on the same power are summed, so degrees add. Evaluation uses Horner's nested form, which needs only n multiplications and n additions for a degree-n polynomial and avoids computing large powers separately. Leading zeros in a result are removed, so cancelling the top term lowers the reported degree.

When not to use it

  • It cannot divide, factor or find roots of polynomials.
  • Use a long-division tool or an equation solver for those jobs.
  • Expressions in two variables, such as x^2 + xy, are outside its scope.

Common mistakes

  • A skipped power is the most frequent slip.
  • Enter x^3 – 2 as 1, 0, 0, -2, not as 1, -2.
  • Listing coefficients lowest power first reverses the polynomial.

Frequently asked questions

How do I enter a polynomial like 4x^3 – x + 7?

Write one coefficient per power from x^3 down to the constant: 4, 0, -1, 7. The zero stands for the missing x^2 term. Commas, spaces or semicolons all work as separators.

Why is the degree of my difference lower than either input?

When the leading coefficients are equal, subtraction cancels the top term. For example (x + 2) − (x + 0) leaves just 2, a degree-0 constant. The calculator strips leading zeros before reporting the degree.

What degree does a product have?

The degree of P × Q is the sum of the two degrees, provided neither polynomial is zero. Multiplying a cubic by a quadratic therefore gives a degree-5 polynomial with up to six coefficients.

Why use Horner's method to evaluate?

Horner's method rewrites the polynomial in nested form so a degree-n evaluation takes n multiplications and n additions. It is faster than computing each power separately and usually loses less precision, and each intermediate value it produces is the coefficient you would get from synthetic division by (x − value).

Can the coefficients be decimals or negative numbers?

Yes. Any real number up to one billion in size is accepted, including negatives such as -3.5 and scientific notation such as 2e3. Fractions like 1/2 must be typed as decimals, 0.5.

Is there a limit on the degree?

Each polynomial can have up to 21 coefficients, which is degree 20. A product of two degree-20 polynomials reaches degree 40, still computed exactly for integer coefficients of moderate size.