Common divisors of several numbers
Type two or more whole numbers. We list all the divisors they share.
Result
1, 2, 3, 4, 6, 12Common divisors
- GCD (the largest)
- 12
- How many common divisors
- 6
Inputs
- Your whole numbers
- 24; 36; 60
How it is calculated
The common divisors are exactly the divisors of the GCD.
Result
Common divisors
- GCD (the largest)
- 12
- How many common divisors
- 6
How it is calculated
- The common divisors are exactly the divisors of the GCD.
- The GCD comes from Euclid’s algorithm.
- Then the divisors of the GCD are listed from its prime factors.
Example
24, 36 and 60: GCD = 12, so the common divisors are 1, 2, 3, 4, 6, 12.
Good to know
- Minus signs are ignored. A 0 in the list changes nothing: every number divides 0.
- Whole numbers of at most 30 digits.
When to use it
- List the divisors shared by several whole numbers.
- Simplify fractions or check whether numbers are coprime.
- Find every possible equal group size, such as teams that split 24, 36 and 60 people with no one left out.
- If you only need the largest one, the GCD calculator (greatest common divisor) also shows Euclid’s steps.
Frequently asked questions
What if the only common divisor is 1?
The numbers are coprime. They can still be coprime as a group even when two of them share a factor, such as 6, 10 and 15.
How many common divisors can there be?
As many as the GCD has divisors. With a GCD of 12, there are 6: 1, 2, 3, 4, 6 and 12.
Why does a 0 in the list change nothing?
Every whole number divides 0, so 0 adds no new condition. A list made only of zeros is a different case, because it has no largest divisor.