- Common factors
- 1, 2, 3, 6
- Greatest common factor
- 6
How it works

Shared group sizes offer different choices
For 24 and 36 items, both 6 and 12 are common group sizes. Groups of 12 minimize the total group count; groups of 6 create more smaller groups. The full factor list preserves both options.
Which box sizes divide both orders evenly?
- Order quantities
- 18, 30

| Items per box | Calculation | Boxes for each order |
|---|---|---|
| A 3 | (18 ÷ 3, 30 ÷ 3) | 6, 10 |
| B 6 | (18 ÷ 6, 30 ÷ 6) | 3, 5 |
Reading the complete list of common factors
Common factors are whole-number divisors shared by the entered values. The largest item has a special role as the greatest common factor, but smaller factors may be useful when choosing a grouping size. Check the original values when verifying the list: each reported factor should divide every relevant input without a remainder. Common factors should not be confused with common multiples.
Find every positive divisor shared by the whole list
Enter two or more integers separated by commas, spaces or line breaks. A common factor must divide every entered integer without a remainder. The result is a list, not only its largest member.
Conceptually, first find the greatest common factor and then list all positive factors of that value. Adding another input can remove shared factors but cannot introduce a positive common factor that failed to divide an earlier input.
Check the shared factors of 18, 30 and 42
The factors common to all three numbers are 1, 2, 3 and 6. Although 9 divides 18, it does not divide 30 or 42. Although 5 divides 30, it does not divide the other two. Testing every input is what distinguishes a common-factor list from one number’s factors.
| Candidate | 18 ÷ candidate | 30 ÷ candidate | 42 ÷ candidate | Common? |
|---|---|---|---|---|
| 2 | 9 | 15 | 21 | Yes |
| 3 | 6 | 10 | 14 | Yes |
| 5 | Not whole | 6 | Not whole | No |
| 6 | 3 | 5 | 7 | Yes |
Use common factors to compare valid grouping sizes
Imagine 18 red, 30 blue and 42 green counters, with every group required to contain the same composition and no leftovers. One, two, three or six identical groups are possible; six is the largest count. With six groups, each contains 3 red, 5 blue and 7 green counters.
That interpretation uses a count of groups. If the problem instead asks for the largest equal item size or a repeat interval, identify the units before deciding whether GCF or LCM is the right operation.
Understand zero and negative-input conventions
Signs do not change the positive divisor list: −18 and 18 have the same positive divisors. Every nonzero integer divides 0, so adding a zero to a list with nonzero integers does not remove their common factors.
If every input is zero, there are infinitely many positive common divisors and no finite list to show. The calculator rejects that case. Entries must still be whole numbers within the stated numeric limits.
Whole numbers: formula and assumptions
gcd(a,b) = gcd(b, a mod b); lcm(a,b) = |a × b| / gcd(a,b).
The Euclidean algorithm finds the greatest common divisor. Factor lists contain positive factors.
Worked example
Using the Whole numbers example:
- Whole numbers
- 12, 18, 24
gcd(a,b) = gcd(b, a mod b); lcm(a,b) = |a × b| / gcd(a,b).
Example result
Common factors: 1, 2, 3, 6
Greatest common factor: 6
These are illustrative inputs. Change the values to explore a different scenario.
Formula references
References explain the underlying methods; they do not imply endorsement or individual professional review of Finflo.
Common questions
How are common factors related to the GCF?
Every common positive factor divides the greatest common factor. Listing the divisors of the GCF identifies the shared factors.
What are the common factors of 12 and 18?
They are 1, 2, 3 and 6. The greatest common factor is 6.
Is 1 always a common factor?
Yes for integer inputs when a finite common-factor list exists. A result containing only 1 means the numbers have no larger shared positive divisor.
Can I include zero in the list?
A zero alongside nonzero integers does not change their positive common divisors. An all-zero list has infinitely many divisors and is rejected.
Why did adding another number shorten the list?
A factor must divide every input. The new number can exclude candidates that divided the previous numbers.
See our methodology and editorial policy.
