Common Factor calculator

List all positive factors shared by two or more integers.

Common factors
Example result
6 common factors
Result details

The common factors are exactly the divisors of 12.

Greatest common factor
12
Common factors
1, 2, 3, 4, 6, 12
Estimates only.

Your inputs

How it’s worked out

See how we got 6 common factors

Use the Euclidean algorithm gcd(a,b) = gcd(b, a mod b). Common factors are precisely the factors of the greatest common divisor.

  1. Compute the greatest common factor, 12.
  2. List its positive divisors.

About this calculator

Enter positive integers. The greatest common factor limit is one trillion for listing factors.

Worked example

Common factors · 6 common factors

Use the Euclidean algorithm gcd(a,b) = gcd(b, a mod b). Common factors are precisely the factors of the greatest common divisor.

  1. Compute the greatest common factor, 12.
  2. List its positive divisors.

Formula sources