GCF Calculator
GCF calculator with a step-by-step Euclidean algorithm trace and prime factorization. Find the GCF, GCD or HCF plus LCM for fraction reduction and aspect ratios.
How to Calculate GCF?
The Greatest Common Factor (GCF), also known as the Greatest Common Divisor (GCD), is the largest positive integer that divides two or more numbers without leaving a remainder. It's useful for simplifying fractions and solving various mathematical problems.
Finding GCF of Multiple Numbers:
- Find the GCF of the first two numbers
- Use that result to find the GCF with the next number
- Continue until all numbers are processed
GCF(12, 18, 24) = 6
Finding GCF using Prime Factorization:
- Find the prime factors of each number
- Identify the common prime factors
- Multiply the common prime factors with the lowest exponents
48 = 2⁴ × 3
60 = 2² × 3 × 5
GCF(48, 60) = 2² × 3 = 12
Finding GCF with the Euclidean Algorithm:
The calculation steps box now prints the full Euclidean remainder chain, reducing each pair with a = q × b + r until the remainder reaches 0 — the canonical method that also underlies modular inverses and RSA setup. For two non-zero numbers it also reports the LCM via LCM = (a × b) / GCF, handy for fraction reduction and aspect ratios.
252 = 2 × 105 + 42; 105 = 2 × 42 + 21; 42 = 2 × 21 + 0 → GCF(252, 105) = 21
Common GCF examples
| Numbers | GCF |
|---|---|
| 12, 18 | 6 |
| 24, 36 | 12 |
| 15, 25 | 5 |
| 8, 12, 16 | 4 |
| 20, 30, 40 | 10 |
| 7, 11 | 1 |
| 100, 200 | 100 |
About this GCF calculator
This calculator accepts any list of two or more positive integers — comma-, space-, or newline-separated — and returns their greatest common factor along with the full Euclidean working. GCF, GCD and HCF are three names for the same thing; this tool uses GCF as the label but the result is identical whichever term your textbook uses. The step-by-step box prints both the Euclidean reduction (remainders chain) and the prime-factorization view, so the calculator works as both a quick answer and a study aid.
Frequently Asked Questions

