gcd Polynomial GCD Calculator
Enter coefficients separated by commas.

Greatest Common Divisors

The greatest common divisor (GCD) of two polynomials is the highest-degree polynomial that divides both without leaving a remainder. If Px and Qx share factors, computing the GCD reveals them. Otherwise the result is simply 1. This concept generalizes the integer GCD to the polynomial ring.

Input Format

Specify each polynomial by listing coefficients from highest degree to constant term. For example, Px=x2-1 should be written as "1,0,-1". The Euclidean algorithm divides the higher-degree polynomial by the lower one, replacing it with the remainder, and repeats until no remainder remains. The last nonzero remainder is the GCD.

Normalization

After each step we scale the polynomial so the leading coefficient becomes 1. This keeps numbers manageable and mirrors the conventional monic GCD used in algebra.

Example

Suppose Px=x2-1 and Qx=x3-x. Factoring shows P divides Q, so the GCD is x2-1. Enter "1,0,-1" and "1,0,-1,0" to confirm.

Related Calculators

Immigration in 2025: Points-Based Systems in Canada, Australia, Singapore, the UK, and More

Career Skills Gap Analyzer - Identify Development Priorities

Measure the difference between required skills and your current abilities. Plan your professional development with a clear skills gap score.

career skills gap analyzer professional development calculator skills assessment

Lucas-Lehmer Test Calculator - Check Mersenne Primes

Apply the Lucas-Lehmer test to determine whether 2^p-1 is prime.

lucas lehmer calculator mersenne prime