Skip to main content
Calculator Fractions

Greatest Common Factor Calculator

Find the GCF of numbers.

Factors & Denominators

Use the Greatest Common Factor Calculator

Result
—

How Greatest Common Factor Calculator Works?

The Greatest Common Factor Calculator works in 4 steps: it reads 2 whole numbers, divides the larger by the smaller, repeats the division on the remainder, and returns the last non-zero remainder as the greatest common factor (GCF). The GCF is the largest number that divides both inputs exactly.

  1. Enter the 2 numbers

    Type the first number in the first numerator box and the second number in the second numerator box. Leave each denominator at any non-zero value, for example 36/1 and 48/1.

  2. Divide the larger number by the smaller

    The calculator computes 48 ÷ 36 = 1 remainder 12.

  3. Repeat with the remainder

    The tool divides 36 by 12: 36 ÷ 12 = 3 remainder 0. The process stops at a remainder of 0.

  4. Read the GCF

    The last non-zero remainder, 12, is the GCF. The result panel prints GCF = 12, and 36 = 12 × 3 and 48 = 12 × 4 confirm the result.

Greatest Common Factor Calculator Formula

The greatest common factor formula is GCF(a, b) = GCF(b, a mod b), repeated until the remainder is 0. The prime factor method and the factor list method give the same answer.

Euclidean rule

GCF(a, b) = GCF(b, a mod b); GCF(a, 0) = a

Replace the larger number with the remainder of the division. GCF(84, 60) → GCF(60, 24) → GCF(24, 12) → GCF(12, 0) = 12.

Prime factor rule

GCF = product of shared primes at the lowest exponent

54 = 2 × 3³ and 90 = 2 × 3² × 5 share 2 and 3², so the GCF is 2 × 9 = 18.

Factor list rule

GCF = largest value in factors(a) ∩ factors(b)

List every factor of both numbers and pick the largest shared value. This rule suits numbers below 100.

LCM link

GCF(a, b) = (a × b) / LCM(a, b)

Divide the product by the least common multiple (LCM). For 24 and 40, 960 ÷ 120 = 8.

Worked example: GCF of 30 and 75

  1. List the factors of 30: 1, 2, 3, 5, 6, 10, 15, 30.
  2. List the factors of 75: 1, 3, 5, 15, 25, 75.
  3. Mark the shared factors: 1, 3, 5, and 15.
  4. Pick the largest shared factor: 15.
  5. Check: 30 ÷ 15 = 2 and 75 ÷ 15 = 5, and GCF(2, 5) = 1, so no larger common factor exists.

Greatest Common Factor Calculator Conversion Table

The greatest common factor conversion table lists 12 number pairs with every shared factor, the GCF, and the reduced pair after division by the GCF.

NumbersCommon FactorsGCFNumbers ÷ GCF
24, 401, 2, 4, 883 : 5
27, 451, 3, 993 : 5
32, 801, 2, 4, 8, 16162 : 5
42, 561, 2, 7, 14143 : 4
54, 901, 2, 3, 6, 9, 18183 : 5
60, 841, 2, 3, 4, 6, 12125 : 7
72, 1081, 2, 3, 4, 6, 9, 12, 18, 36362 : 3
35, 641135 : 64
100, 1501, 2, 5, 10, 25, 50502 : 3
81, 1261, 3, 999 : 14
96, 1441, 2, 3, 4, 6, 8, 12, 16, 24, 48482 : 3
120, 2001, 2, 4, 5, 8, 10, 20, 40403 : 5

What is Greatest Common Factor Calculator?

A Greatest Common Factor Calculator is a tool that finds the largest whole number that divides 2 numbers with no remainder. The greatest common factor (GCF) of 42 and 56 is 14.

The GCF has 3 standard names: greatest common factor, highest common factor (HCF), and greatest common divisor (GCD). All 3 names describe the same number. US school textbooks use GCF, and UK textbooks use HCF.

Two numbers with a GCF of 1 are coprime. 35 and 64 are coprime: 35 = 5 × 7 and 64 = 2⁶ share no prime. A fraction such as 35/64 is already in lowest terms for that reason.

What are the uses of Greatest Common Factor Calculator?

The Greatest Common Factor Calculator has 6 main uses, including fraction simplification, equal grouping, and tile layouts.

  • Fraction simplification

    Dividing 72/108 by the GCF 36 gives 2/3 in 1 step.

  • Equal grouping

    A teacher splits 54 pencils and 90 erasers into identical kits. The GCF 18 gives 18 kits with 3 pencils and 5 erasers each.

  • Tile layouts

    A floor of 120 cm by 200 cm (47.24 in by 78.74 in) takes square tiles of 40 cm with no cuts, as GCF(120, 200) = 40.

  • Ratio reduction

    A ratio of 100:150 reduces to 2:3 after division by the GCF 50.

  • Algebra factoring

    Students pull the GCF out of 27x + 45 to write 9(3x + 5).

  • Board cutting

    A carpenter cuts 32 in and 80 in boards into equal pieces with no waste. The GCF 16 gives pieces of 16 in (406.4 mm).

Related Factors & Denominators Tools

View all 270 tools →