How to use the common factor calculator
Type between 2 and 20 positive whole numbers, separated by commas, spaces, semicolons or new lines. Each number can be as large as 1,000,000,000,000.
The result shows:
- Common factors: every whole number that divides all of your inputs, from smallest to largest
- Number of common factors
- Greatest common factor (GCF), the largest entry in that list, and its prime factorization
- A table of each number’s factors, so you can see where the shared values come from
If you type the same number twice it appears once in the table.
How common factors are found
Checking every candidate against every number would work, but it gets slow. There is a shortcut: a number divides all of your inputs exactly when it divides their greatest common factor. So the common factors are simply the factors of the GCF.
- Find the GCF with Euclid’s algorithm (the GCF calculator shows those steps).
- Write the GCF as a product of prime powers, p₁^a × p₂^b × …
- Build every factor by choosing an exponent from 0 to a for p₁, from 0 to b for p₂, and so on, and multiplying.
Step 3 also gives the count without listing anything: the number of common factors is (a + 1) × (b + 1) × … For example, a GCF of 72 = 2³ × 3² has 4 × 3 = 12 factors, so any list with GCF 72 has exactly 12 common factors.
The factor list of each individual number is built the same way from its own prime factorization. The prime factorization calculator shows that breakdown for a single number, and the factor calculator lists its factor pairs.
Worked example: 36, 48 and 60
This is the example loaded when the page opens.
| Number | Factors |
|---|---|
| 36 | 1, 2, 3, 4, 6, 9, 12, 18, 36 |
| 48 | 1, 2, 3, 4, 6, 8, 12, 16, 24, 48 |
| 60 | 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60 |
The values that appear in all three rows are 1, 2, 3, 4, 6 and 12. There are six of them, and the largest, 12, is the GCF.
The shortcut agrees. 12 = 2² × 3, so the count is (2 + 1) × (1 + 1) = 6, and the factors of 12 are exactly the six numbers above. Notice that 9 divides 36 but not 48, and 5 divides 60 but not 36, so neither makes the list.
Where this helps
- Sharing evenly. If 36 apples, 48 oranges and 60 pears must go into identical gift bags with nothing left over, the number of bags must be a common factor: 1, 2, 3, 4, 6 or 12.
- Choosing a grid or layout that divides two dimensions evenly.
- Simplifying fractions in stages, since dividing the top and bottom by any common factor gives an equal fraction. The fraction calculator does the full reduction for you.
- Practising number sense, by spotting shared factors before checking the answer.
When you need the smallest shared multiple rather than the shared factors, use the LCM calculator.
Limitations
- Only positive whole numbers are accepted. Zero is rejected because every number divides it, so it would have infinitely many factors.
- Each number must be at most one trillion, and you can enter up to 20 numbers at once.
- Very composite numbers can have thousands of factors. The table is collapsed when it gets long, but it still lists every factor.
Frequently asked questions
What is a common factor?
A common factor is a whole number that divides each number in a list with no remainder. For 12 and 18 the common factors are 1, 2, 3 and 6, because each of them goes into both 12 and 18 exactly.
Is 1 always a common factor?
Yes. One divides every whole number, so any list of positive integers has at least one common factor. When 1 is the only one, the numbers are called relatively prime or coprime.
How are common factors related to the GCF?
The common factors are exactly the factors of the greatest common factor. Find the GCF first, list its factors, and you have every common factor without checking each number separately.
Why is there a limit of one trillion?
The calculator lists every factor of every number you enter. A number near one trillion can have several thousand factors, so the limit keeps the tables readable and the page quick, while still covering any number you are likely to meet in schoolwork or everyday problems.
Last reviewed: