Common Factor Calculator

About this calculator

Enter two or more positive whole numbers separated by commas and this calculator lists every factor they all share, along with the greatest common factor.

The factors of each individual number are shown too, so you can see where the overlap comes from.

Positive whole numbers, up to 18 digits each.
Embed this calculator

Paste this code into a Custom HTML block on your site. The calculator fits the width of the block. Adjust the height in the code if you want more room for results.

Find this widget in the publisher directory

What is a factor?

A factor of a whole number is another whole number that divides it with nothing left over. The factors of 12 are 1, 2, 3, 4, 6 and 12, because each of those divides 12 evenly. Factors come in pairs: 1 × 12, 2 × 6 and 3 × 4 all give 12.

What is a common factor?

A common factor of two or more numbers is a number that is a factor of every one of them. Take 16 and 12. The factors of 16 are 1, 2, 4, 8 and 16. The factors of 12 are 1, 2, 3, 4, 6 and 12. The values on both lists are 1, 2 and 4, so those are the common factors of 16 and 12. The biggest of them, 4, is the greatest common factor.

The number 1 is always a common factor of any set of whole numbers, so the list is never empty.

A shortcut: everything comes from the GCF

Here is the neat part. Every common factor of a set of numbers is itself a factor of their greatest common factor, and the reverse is also true. So you never need to compare long lists. Find the GCF, then list its factors:

Common factors of a, b, c = factors of GCF(a, b, c)

For 330, 75, 450 and 225 the GCF is 15, and the factors of 15 are 1, 3, 5 and 15. Those four numbers are exactly the common factors. This is how the calculator copes with numbers far too big to list by hand.

Step by step by hand

  1. Write out the factors of each number, in pairs, working up from 1 until the pairs meet.
  2. Cross out every factor that is missing from at least one list.
  3. What remains is the set of common factors. The largest is the GCF.

Examples

NumbersCommon factorsGCF
12, 161, 2, 44
18, 241, 2, 3, 66
7, 1511
20, 40, 1001, 2, 4, 5, 10, 2020

Where common factors are used

  • Reducing fractions: divide top and bottom by a common factor, ideally the greatest one.
  • Splitting items into equal groups: 18 apples and 24 oranges can be shared into 1, 2, 3 or 6 identical bags.
  • Factoring algebraic expressions, where you pull out the greatest common factor of the coefficients.
  • Tiling a rectangle with square tiles: the side lengths that fit both dimensions are the common factors.

Related ideas

Two numbers whose only common factor is 1 are called coprime. For example, 8 and 15 share nothing but 1. If you need the opposite concept, the smallest number that both divide into, look at the least common multiple.

Why the list is symmetrical

Because common factors are exactly the divisors of the GCF, the list has the same pairing structure as any other factor list. If 20 is the GCF, the common factors pair up as 1 and 20, 2 and 10, 4 and 5. The count of common factors follows from the prime factorization of the GCF: add one to each exponent and multiply. A GCF of 36 = 22 × 32 gives 3 × 3 = 9 common factors.

Quick check

To confirm a result, divide every number you entered by each claimed common factor. Every division should come out exact. The largest common factor you list should also divide all the others, which is a good sanity test: in the 16 and 12 example, 4 is divisible by both 1 and 2.

Remember that a negative number has the same factors as its positive counterpart, and that zero is divisible by everything, so this tool sticks to positive whole numbers where the answer is unambiguous.

Frequently asked questions

What are the common factors of 16 and 12?

1, 2 and 4. The greatest of these, 4, is the GCF of 16 and 12.

Do all numbers have a common factor?

Yes, at least 1. If 1 is the only one, the numbers are coprime.

Is a common factor the same as a common multiple?

No. Common factors divide into the numbers and are never larger than the smallest one. Common multiples are divisible by the numbers and are never smaller than the largest one.

How do I find the common factors of three numbers?

Find the GCF of all three, then list every factor of that GCF. Each one divides all three numbers.

Formulas and sample results on this page were checked against independent references. Page last reviewed or updated . How we verify calculators. Project led by Shaun Connell.