Greatest Common Factor (GCF) Calculator

The Greatest Common Factor (GCF), also known as the Greatest Common Divisor (GCD) or Highest Common Factor (HCF), is the largest positive integer that divides two or more numbers without leaving a remainder.


Step-by-Step Calculation:


How to Find the GCF

There are several methods to find the Greatest Common Factor:

  • Euclidean Algorithm: Repeatedly divide and take remainders until the remainder is 0.
  • Prime Factorization Method: Find prime factors and multiply the common ones.
  • Listing Factors Method: List all factors and find the greatest common one.

Common GCF Values

Here is a table of common GCF values:

Numbers GCF LCM
12 and 18 6 36
8 and 12 4 24
24 and 36 12 72
18 and 24 6 72
28 and 32 4 224
18 and 30 6 90
12 and 30 6 60
16 and 24 8 48
12 and 16 4 48
12 and 20 4 60
27 and 36 9 108
12 and 15 3 60
36 and 54 18 108
9 and 12 3 36
18 and 42 6 126
18 and 27 9 54
36 and 48 12 144
24 and 30 6 120
40 and 48 8 240
28 and 42 14 84
6 and 9 3 18
16 and 36 4 144
6 and 15 3 30
30 and 45 15 90
36 and 42 6 252
18 and 12 6 36
30 and 42 6 210
9 and 15 3 45
48 and 72 24 144
32 and 80 16 160
24 and 28 4 168
27 and 45 9 135
24 and 32 8 96
14 and 21 7 42
32 and 48 16 96
16 and 20 4 80
12 and 28 4 84
18 and 45 9 90
36 and 45 9 180
21 and 40 1 840
15 and 20 5 60
45 and 75 15 225
14 and 35 7 70
86 and 42 2 1806
60 and 72 12 360
30 and 75 15 150
25 and 90 5 450
8 and 10 2 40
32 and 36 4 288
8 and 24 8 24
28 and 70 14 140
20 and 30 10 60
12 and 32 4 96
18 and 36 18 36
54 and 32 2 864
45 and 60 15 180
72 and 18 18 72
72 and 90 18 360
10 and 15 5 30
72 and 36 36 72
36 and 90 18 180
63 and 81 9 567
48 and 64 16 192
16 and 48 16 48
16 and 28 4 112
48 and 84 12 336
21 and 35 7 105
24 and 18 6 72
55 and 77 11 385
54 and 27 27 54
12 and 24 12 24
24 and 72 24 72
75 and 30 15 150
15 and 35 5 105
32 and 45 1 1440
72 and 96 24 288
54 and 36 18 108
42 and 90 6 630
24 and 48 24 48
36 and 63 9 252
54 and 72 18 216
28 and 36 4 252
12 and 36 12 36
6 and 35 1 210
56 and 42 14 168
8 and 20 4 40
84 and 96 12 672
50 and 75 25 150
10 and 25 5 50
6 and 10 2 30
8 and 32 8 32
12 and 48 12 48
56 and 96 8 672
49 and 63 7 441
30 and 18 6 90
16 and 40 8 80
10 and 45 5 90
15 and 25 5 75
20 and 24 4 120
24 and 60 12 120
63 and 84 21 252
32 and 56 8 224
15 and 45 15 45
12 and 42 6 84
36 and 27 9 108
90 and 135 45 270
81 and 48 3 1296
15 and 30 15 30
60 and 45 15 180
24 and 40 8 120
14 and 49 7 98
24 and 64 8 192
25 and 35 5 175
18 and 32 2 288
42 and 63 21 126
28 and 35 7 140
48 and 16 16 48
7 and 9 1 63
81 and 36 9 324
63 and 42 21 126
9 and 27 9 27
48 and 60 12 240
6 and 18 6 18
9 and 36 9 36
56 and 21 7 168
24 and 54 6 216
9 and 16 1 144
45 and 81 9 405
16 and 12 4 48
24 and 42 6 168
10 and 12 2 60
4 and 8 4 8
24 and 56 8 168
24 and 16 8 48
8 and 16 8 16
21 and 28 7 84
72 and 24 24 72
15 and 6 3 30
26 and 39 13 78
18 and 48 6 144
48 and 80 16 240
20 and 8 4 40
48 and 56 8 336
56 and 35 7 280
14 and 28 14 28
60 and 75 15 300
16 and 56 8 112
5 and 10 5 10
40 and 56 8 280
45 and 18 9 90
12 and 9 3 36
4 and 6 2 12
75 and 90 15 450
9 and 6 3 18
40 and 63 1 2520
18 and 54 18 54
42 and 56 14 168
12 and 8 4 24
35 and 49 7 245
4 and 12 4 12
6 and 12 6 12
14 and 42 14 42
4 and 10 2 20
32 and 40 8 160
16 and 32 16 32
20 and 45 5 180
20 and 32 4 160
39 and 13 13 39
3 and 4 1 12
2 and 3 1 6
36 and 24 12 72
30 and 40 10 120
18 and 20 2 180
13 and 39 13 39
40 and 72 8 360
42 and 72 6 504
8 and 15 1 120
45 and 63 9 315
45 and 27 9 135
24 and 90 6 360
28 and 24 4 168
64 and 40 8 320
44 and 48 4 528
40 and 60 20 120
10 and 20 10 20
3 and 5 1 15
9 and 18 9 18
3 and 6 3 6
4 and 9 1 36
15 and 21 3 105
32 and 24 8 96
27 and 72 9 216
16 and 18 2 144
8 and 14 2 56
30 and 48 6 240
54 and 24 6 216
15 and 40 5 120
3 and 9 3 9
15 and 18 3 90
56 and 64 8 448
21 and 49 7 147
54 and 45 9 270
8 and 28 4 56
6 and 8 2 24
21 and 30 3 210
28 and 12 4 84
78 and 104 26 312
64 and 72 8 576
20 and 28 4 140
39 and 6 3 78
36 and 60 12 180
45 and 36 9 180
8 and 6 2 24
60 and 90 30 180
28 and 48 4 336
2 and 4 2 4
25 and 30 5 150
36 and 64 4 576
15 and 28 1 420
35 and 28 7 140
16 and 64 16 64
15 and 12 3 60
20 and 36 4 180
30 and 50 10 150
51 and 85 17 255
20 and 50 10 100
6 and 4 2 12
3 and 12 3 12
45 and 42 3 630
35 and 42 7 210
30 and 24 6 120
44 and 33 11 132
18 and 60 6 180
15 and 27 3 135
9 and 21 3 63
34 and 51 17 102
15 and 24 3 120
32 and 72 8 288
28 and 49 7 196
54 and 90 18 270
49 and 98 49 98
10 and 35 5 70
15 and 60 15 60
9 and 14 1 126
12 and 27 3 108
12 and 60 12 60
16 and 72 8 144
56 and 32 8 224
32 and 50 2 800
25 and 40 5 200
36 and 16 4 144
40 and 50 10 200
20 and 12 4 60
42 and 30 6 210
6 and 21 3 42
34 and 85 17 170
4 and 20 4 20
54 and 81 27 162
7 and 8 1 56
65 and 91 13 455
12 and 14 2 84
42 and 24 6 168
20 and 16 4 80
14 and 15 1 210
6 and 7 1 42
45 and 72 9 360
28 and 63 7 252
36 and 40 4 360
18 and 35 1 630
25 and 75 25 75
36 and 72 36 72
2 and 5 1 10

Understanding the Greatest Common Factor

The Greatest Common Factor is one of the most important concepts in elementary number theory. It plays a critical role in simplifying fractions, solving ratio problems, and working with algebraic expressions. The GCF of two numbers is always a positive integer, and it can never exceed the smaller of the two numbers. When the GCF of two numbers equals 1, those numbers are said to be relatively prime or coprime.

Step-by-Step Guide to Using This Calculator

Using our GCF calculator is simple. Enter the first number in the first input field and the second number in the second input field. Click the Calculate button to instantly see the result. The calculator also provides a step-by-step breakdown showing how the GCF was determined. You can use the Clear button to reset the fields and start a new calculation.

The Euclidean Algorithm Explained

The Euclidean algorithm is the most efficient method for computing the GCF. Named after the ancient Greek mathematician Euclid, this algorithm works by repeatedly applying the division algorithm. Given two numbers a and b where a is greater than b, divide a by b and find the remainder r. Then replace a with b and b with r. Repeat this process until the remainder is zero. The last non-zero value of b is the GCF. For example, GCF(48, 18): 48 mod 18 = 12, then 18 mod 12 = 6, then 12 mod 6 = 0, so GCF = 6.

Real-World Applications of GCF

The GCF appears in many practical situations. In cooking, it helps determine common serving sizes when scaling recipes. In construction and tiling, the GCF determines the largest square tile that fits evenly into a rectangular area. In scheduling, the GCF helps find recurring intervals. In computer science, the Euclidean algorithm is fundamental to RSA encryption and other cryptographic protocols that secure online communications.

Tips and Common Mistakes

A frequent mistake is confusing GCF with LCM. Remember that GCF finds the largest shared divisor while LCM finds the smallest shared multiple. Another common error is incomplete factor listing. Always double-check by verifying that your answer divides both original numbers without a remainder. Use the relationship GCF(a,b) x LCM(a,b) = a x b as a verification tool.

Conclusion

The GCF is a fundamental concept in mathematics used for simplifying fractions, solving ratio problems, and various other mathematical operations. Understanding how to calculate GCF efficiently helps in many practical applications from everyday arithmetic to advanced cryptography.

Frequently Asked Questions

The Greatest Common Factor of 12 and 18 is 6. The factors of 12 are 1, 2, 3, 4, 6, and 12. The factors of 18 are 1, 2, 3, 6, 9, and 18. The largest number appearing in both lists is 6.

Divide the larger number by the smaller number and note the remainder. Replace the larger number with the smaller number and the smaller number with the remainder. Repeat until the remainder is zero. The last non-zero divisor is the GCF.

The GCF (Greatest Common Factor) is the largest number that divides two or more numbers evenly, while the LCM (Least Common Multiple) is the smallest number that is a multiple of two or more numbers. They are related by the formula: GCF x LCM = product of the numbers.

No, the GCF can never be greater than the smaller of the two numbers. Since the GCF must divide both numbers evenly, it cannot exceed either number. The GCF is always less than or equal to the smallest number in the set.

If two different prime numbers are given, their GCF is always 1 because prime numbers have no divisors other than 1 and themselves. If the same prime number is used twice, the GCF equals that prime number.

To simplify a fraction, find the GCF of the numerator and denominator, then divide both by that GCF. For example, to simplify 12/18, find the GCF which is 6, then divide both parts: 12/6 = 2 and 18/6 = 3, giving the simplified fraction 2/3.

The GCF of 24 and 36 is 12. Using prime factorization: 24 = 2 x 2 x 2 x 3 and 36 = 2 x 2 x 3 x 3. The common prime factors are 2 x 2 x 3 = 12. You can verify that 24/12 = 2 and 36/12 = 3.

Yes, GCF (Greatest Common Factor) and GCD (Greatest Common Divisor) are exactly the same concept. Both terms refer to the largest positive integer that divides two or more numbers without leaving a remainder. HCF (Highest Common Factor) is another equivalent term.