Use this free common factor calculator to find all the factors of each number you enter, and then the factors they share. It shows the greatest common factor (GCF), tells you if the numbers are coprime, and gives the steps. It works with two or more whole numbers. No signup needed.
Enter 2 to 10 positive whole numbers separated by commas, spaces, or new lines.
12, 18 or 30 45 60.You can enter up to 10 numbers. For decimals, multiply the numbers by a power of 10 first so they become whole numbers.
A factor (or divisor) of a number is a whole number that divides it exactly, with no remainder. Factors come in pairs.
The factors of 12 are 1, 2, 3, 4, 6, and 12, because 1 × 12, 2 × 6, and 3 × 4 all equal 12.
A common factor of two or more numbers is a number that is a factor of all of them. The greatest common factor (GCF), also called the greatest common divisor (GCD) or highest common factor (HCF), is the largest one.
For 12 and 18:
1 is a factor of every number, so it is always a common factor.
Every common factor is a factor of the GCF, and every factor of the GCF is a common factor. So:
The common factors of a set of numbers are exactly the factors of their GCF.
For 12 and 18, the GCF is 6, and the factors of 6 are 1, 2, 3, 6. These are the common factors.
To find gcd(a, b), repeat: replace (a, b) with (b, a mod b) until the remainder is 0. The last non-zero remainder is the GCF.
Numbers whose only common factor is 1 are called coprime (or relatively prime). They do not need to be prime themselves.
Simplify 18/24.
There are 36 boys and 48 girls. What is the greatest number of identical teams, using everyone?
A floor is 120 cm by 90 cm. What is the largest square tile that fits without cutting?
The number of common factors of a set of numbers equals the number of factors of their GCF.
| Number | Factors | How many |
|---|---|---|
| 12 | 1, 2, 3, 4, 6, 12 | 6 |
| 18 | 1, 2, 3, 6, 9, 18 | 6 |
| 24 | 1, 2, 3, 4, 6, 8, 12, 24 | 8 |
| 30 | 1, 2, 3, 5, 6, 10, 15, 30 | 8 |
| 36 | 1, 2, 3, 4, 6, 9, 12, 18, 36 | 9 |
| 45 | 1, 3, 5, 9, 15, 45 | 6 |
| 60 | 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60 | 12 |
| 64 | 1, 2, 4, 8, 16, 32, 64 | 7 |
| 84 | 1, 2, 3, 4, 6, 7, 12, 14, 21, 28, 42, 84 | 12 |
| 90 | 1, 2, 3, 5, 6, 9, 10, 15, 18, 30, 45, 90 | 12 |
| 100 | 1, 2, 4, 5, 10, 20, 25, 50, 100 | 9 |
A prime number has exactly two factors (1 and itself), like 7. Perfect squares (such as 36, 64, and 100) have an odd number of factors.
These quick checks help you find factors without dividing.
| Divisible by | Rule |
|---|---|
| 2 | The last digit is even |
| 3 | The sum of the digits is divisible by 3 |
| 4 | The last two digits form a number divisible by 4 |
| 5 | The last digit is 0 or 5 |
| 6 | Divisible by both 2 and 3 |
| 8 | The last three digits form a number divisible by 8 |
| 9 | The sum of the digits is divisible by 9 |
| 10 | The last digit is 0 |
| 11 | The alternating sum of the digits is 0 or divisible by 11 |
| Common factors | Common multiples | |
|---|---|---|
| What they are | Numbers that divide all the given numbers | Numbers that all the given numbers divide into |
| Size | At most the smallest number | At least the largest number |
| Key value | The greatest common factor (GCF) | The least common multiple (LCM) |
| Example (12, 18) | 1, 2, 3, 6 | 36, 72, 108, … |
| Used for | Simplifying fractions and splitting into equal groups | Common denominators and repeating schedules |
For two numbers: GCF × LCM = a × b.
A number that divides each of the given numbers exactly. The common factors of 12 and 18 are 1, 2, 3, and 6.
List all the factors of each number and pick the ones that appear in both lists. Or find the GCF, and list the factors of the GCF.
The largest number that divides all of the given numbers. It is also called the GCD or HCF. The GCF of 12 and 18 is 6.
1, 2, 3, and 6.
Yes. 1 divides every whole number.
Numbers whose only common factor is 1, such as 8 and 15.
Find the factors of each, and keep the ones in all three lists. For 30, 45, and 60, the common factors are 1, 3, 5, and 15.
The same number as the factors of their GCF. If the GCF is 6, there are 4 common factors (1, 2, 3, 6).
Divide the top and bottom by their GCF. 18/24 becomes 3/4 when divided by 6.
A factor divides a number. A multiple is the number times a whole number. 3 is a factor of 12, and 12 is a multiple of 3.
Repeatedly divide, and replace the pair with the divisor and the remainder, until the remainder is 0. The last non-zero remainder is the GCF.
Yes. It is free, with no registration and no limits.
It uses exact integer arithmetic, so the lists and the GCF are exact.
A few of the most-used tools in each hub.
This calculator is for general and educational use. Results are exact for positive whole numbers. Try the problem by hand first and use the calculator to check your work. Follow your teacher’s rules on the method and the form of the answer.