Skip to content

Three methods, explained

How to Find the GCF

There are three standard ways to find the greatest common factor (GCF) of two or more whole numbers by hand: listing every factor and comparing the lists, breaking each number down into prime factors, and the division method (also called the Euclidean algorithm). Each one gets you to the same correct answer; they differ in how fast and practical they are depending on how large your numbers are. This page walks through all three with full worked examples, so you can pick the method that fits the problem in front of you, or check your own by-hand work against the calculator.

Method 1: Listing factors

This is the most direct method and the easiest to understand for small numbers, which is why it's usually taught first. List every factor of each number (every whole number that divides it evenly), then find the factors that appear in every list, and pick the largest one. You can check your answer any time on the GCF calculator, or look up a small pair directly on the GCF reference chart.

Worked example: find the GCF of 24 and 36.

When listing factors gets impractical

Listing factors works well for numbers you can factor in your head, roughly up to two-digit numbers, but it breaks down fast for anything larger. Finding every factor of a number like 840 or 1,260 by hand means checking dozens of possible divisors, and it's easy to accidentally miss one, which silently gives you a wrong (too small) GCF. For numbers that size, prime factorization or the division method below are both faster and less error-prone, because neither one requires you to find and list every single factor first.

Method 2: Prime factorization

Break every number down into a product of prime numbers (numbers only divisible by 1 and themselves, like 2, 3, 5, 7, 11...). Then, for each prime that appears in every number's factorization, take the lowest power it appears with, and multiply those together. That product is the GCF.

Worked example: find the GCF of 60 and 84.

Why prime factorization is worth learning even though it's more steps

Prime factorization takes an extra step compared to the division method below, but it has a real advantage: it shows you why the answer is what it is, in a way you can double-check visually, and it's the same technique you need for finding the LCM (multiply every prime that appears anywhere, at its highest power, the mirror image of the GCF rule). If a problem asks for both the GCF and the LCM of the same numbers, doing the prime factorization once and reading off both answers is often faster overall than two separate calculations.

Method 3: The division method (Euclidean algorithm)

This is the fastest method for large numbers, and it's the method this site's calculator uses internally. Divide the larger number by the smaller number and note the remainder. Then divide the previous smaller number by that remainder. Keep repeating, replacing the pair of numbers each time, until you reach a remainder of 0. The last non-zero remainder is the GCF.

Worked example: find the GCF of 252 and 105, numbers large enough that listing every factor would be tedious.

Which method should you actually use?

For small numbers you can factor in your head (roughly anything under 50), listing factors is fine and often fastest since there's no setup. For medium numbers, or when you also need the LCM, prime factorization is usually the clearer choice because it's easy to check by eye. For large numbers, or any time you want a guaranteed-fast method that never requires finding a full factor list, use the division (Euclidean) method, or simply use the calculator above, which runs the same Euclidean method and shows the prime factorization as well, so you get the speed of one method and the visual check of the other in a single result.

Frequently asked questions

Which method for finding the GCF is fastest?
The division method (Euclidean algorithm) is fastest for large numbers because it never requires listing every factor or finding every prime factor; it just repeats a division step a small number of times regardless of how big the numbers are. For small numbers under about 50, listing factors by hand is often just as fast in practice.
Do all three methods always give the same answer?
Yes, always, they're three different ways of arriving at the same mathematically defined value. If you get different answers from two methods on the same numbers, one of the calculations has an arithmetic mistake somewhere, not a real disagreement between the methods themselves.
How do I find the GCF of numbers that are hard to factor, like large primes?
The division method handles this case just as easily as any other, since it never requires factoring at all, just repeated division and remainders. If either number happens to be a large prime, the GCF will be 1 (unless one number is a multiple of the other), and the division method reaches that answer in the same handful of steps.
Is there a shortcut if one number is a multiple of the other?
Yes: if the larger number divides evenly by the smaller one, the smaller number is automatically the GCF. For example, since 48 is exactly 4 times 12 (48 divided by 12 leaves no remainder), the GCF of 12 and 48 is simply 12, with no further calculation needed.
Does using the calculator instead of doing this by hand send my numbers anywhere?
No. The GCF calculator runs entirely in your browser; nothing you enter is sent to a server. See the privacy policy for details.

Skip the manual work

Enter your numbers and get the GCF, LCM and prime factorization instantly.

Open the GCF calculator

Free. No sign-up.