Common Factor calculator

List all positive factors shared by two or more integers.

Common factors
6 common factors

The common factors are exactly the divisors of 12.

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

Your inputs

Example values. Change any of them.

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

Reference checked November 22, 2026.