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.
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/1and48/1.Divide the larger number by the smaller
The calculator computes 48 ÷ 36 = 1 remainder 12.
Repeat with the remainder
The tool divides 36 by 12: 36 ÷ 12 = 3 remainder 0. The process stops at a remainder of 0.
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
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
54 = 2 × 3³ and 90 = 2 × 3² × 5 share 2 and 3², so the GCF is 2 × 9 = 18.
Factor list rule
List every factor of both numbers and pick the largest shared value. This rule suits numbers below 100.
LCM link
Divide the product by the least common multiple (LCM). For 24 and 40, 960 ÷ 120 = 8.
Worked example: GCF of 30 and 75
- List the factors of 30: 1, 2, 3, 5, 6, 10, 15, 30.
- List the factors of 75: 1, 3, 5, 15, 25, 75.
- Mark the shared factors: 1, 3, 5, and 15.
- Pick the largest shared factor: 15.
- 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.
| Numbers | Common Factors | GCF | Numbers ÷ GCF |
|---|---|---|---|
| 24, 40 | 1, 2, 4, 8 | 8 | 3 : 5 |
| 27, 45 | 1, 3, 9 | 9 | 3 : 5 |
| 32, 80 | 1, 2, 4, 8, 16 | 16 | 2 : 5 |
| 42, 56 | 1, 2, 7, 14 | 14 | 3 : 4 |
| 54, 90 | 1, 2, 3, 6, 9, 18 | 18 | 3 : 5 |
| 60, 84 | 1, 2, 3, 4, 6, 12 | 12 | 5 : 7 |
| 72, 108 | 1, 2, 3, 4, 6, 9, 12, 18, 36 | 36 | 2 : 3 |
| 35, 64 | 1 | 1 | 35 : 64 |
| 100, 150 | 1, 2, 5, 10, 25, 50 | 50 | 2 : 3 |
| 81, 126 | 1, 3, 9 | 9 | 9 : 14 |
| 96, 144 | 1, 2, 3, 4, 6, 8, 12, 16, 24, 48 | 48 | 2 : 3 |
| 120, 200 | 1, 2, 4, 5, 8, 10, 20, 40 | 40 | 3 : 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/108by 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 + 45to write9(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).