GCF Calculator

Multi-Number
Formula & Quick Reference
Euclidean Algorithm: gcd(a, b) = gcd(b, a mod b)
  • Multi-number: Supports 2, 3, or more comma-separated integers
  • Common divisors: Lists every whole number that divides all inputs
  • Fraction use: Divide numerator & denominator by GCF to simplify

Interactive Graph

What Is the Greatest Common Factor?

The Greatest Common Factor, or GCF, is the largest whole number that divides evenly into two or more numbers without leaving any remainder. You might also hear it called the Greatest Common Divisor (GCD) or Highest Common Factor (HCF) in different textbooks, though all three names mean the exact same thing.

Finding the GCF is one of the fastest ways to simplify fractions, reduce ratios, or split items into equal groups. If you have 24 apples and 36 oranges and want to pack identical gift baskets with nothing left over, the GCF of 24 and 36 tells you the maximum number of baskets you can make—12 baskets, each holding 2 apples and 3 oranges.

Using the Multi-Number GCF Calculator

Type two or more whole numbers separated by commas or spaces into the input box—for example, 24, 36, 60. You can enter just two numbers for a quick fraction check or a longer list for larger problems.

The tool immediately displays the GCF at the top, lists every common divisor shared by all your numbers, and also calculates their Least Common Multiple (LCM) below. The bar chart compares your input numbers right next to their GCF so you can see the scale at a glance.

Two Ways to Find the GCF

Listing Factors (Best for Small Numbers)

For smaller numbers, you can write down all the whole numbers that divide evenly into each input and pick the biggest match. Take 24 and 36: The factors of 24 are 1, 2, 3, 4, 6, 8, 12, 24. The factors of 36 are 1, 2, 3, 4, 6, 9, 12, 18, 36. The numbers that appear in both lists are 1, 2, 3, 4, 6, 12, and the biggest one is 12.

The Euclidean Algorithm (Best for Big Numbers)

Listing factors gets slow once numbers reach the hundreds or thousands. Instead, this calculator uses the Euclidean algorithm, a clever method invented over two thousand years ago. You divide the larger number by the smaller number and look at the remainder. Then you replace the larger number with the smaller number, and the smaller number with the remainder, repeating until the remainder hits zero. The last non-zero divisor is your GCF.

Let us try 48 and 180. First, 180 ÷ 48 = 3 with a remainder of 36. Next, 48 ÷ 36 = 1 with a remainder of 12. Finally, 36 ÷ 12 = 3 with a remainder of 0. Because 12 was the last divisor before hitting zero, the GCF of 48 and 180 is 12.

Real-World Uses and Tips

In math class, the GCF is your best friend when reducing fractions to lowest terms. Take the fraction 48/180. Dividing both the top and bottom by their GCF of 12 reduces it straight to 4/15 in a single step, instead of dividing by 2 three or four times.

A couple of quick rules help you check your answers fast. First, the GCF can never be larger than the smallest number in your list. If you are finding the GCF of 15, 45, 90, the answer cannot be bigger than 15—and here it happens to be 15 itself. Second, if two numbers share no common factor other than 1—like 8 and 15—their GCF is 1, and mathematicians call them “coprime.”

Finding the GCF Using Prime Factorization

Another reliable way to find the Greatest Common Factor on paper is breaking each number down into prime numbers—numbers like 2, 3, 5, 7, 11, which cannot be divided further. Suppose you want the GCF of 36 and 54. Break 36 down into 2 × 2 × 3 × 3, and break 54 down into 2 × 3 × 3 × 3. Now circle the prime factors that appear in both lists: one 2 and two 3s. Multiply those shared primes together (2 × 3 × 3), and you get 18.

Prime factorization is especially helpful when you have three or four numbers to compare, because you can line up their factor trees side by side and immediately spot what they share. Even if one number is 120 and another is 84, seeing 2 × 2 × 3 in both lists confirms the GCF is 12 without testing dozens of divisors.

Everyday Ways GCF Helps Outside Math Class

Beyond simplifying homework fractions, GCF shows up in event planning, carpentry, and tiling. If you are tiling a rectangular hallway that is 84 inches wide by 120 inches long and want to use the largest possible square tiles without cutting a single tile, the GCF of 84 and 120 tells you the answer: 12-inch square tiles fit cleanly (7 tiles across by 10 tiles down) with zero waste.

When you finish simplifying a fraction or dividing items into groups, you can double-check your GCF in seconds by multiplying your reduced numbers back by the GCF. If 24 / 12 = 2 and 36 / 12 = 3, then 12 × 2 = 24 and 12 × 3 = 36, confirming your factor is exact.