GCF Calculator
Find the largest number that divides all your numbers evenly. Useful for simplifying fractions and ratios.
Updated November 2026 · How we build calculators
Result
Your result will appear here
Enter your numbers, then press Calculate.
How the GCF Calculator works
The calculator applies the Euclidean algorithm: repeatedly replace the larger number with the remainder of dividing by the smaller until the remainder is zero.
Formula used
gcd(a, b) = gcd(b, a mod b)
gcd(a, 0) = a
Step-by-step example
Using the default values in the calculator above:
- Whole numbers: 48, 180, 72
The calculator then applies the formula above and returns:
- Greatest common factor: 12
- Numbers ÷ GCF: 4, 15, 6
- Prime factors of GCF: 2^2 × 3
Notes on the inputs
- Whole numbers
- Separate numbers with commas, spaces or new lines.
Tips and background
To simplify a fraction, divide numerator and denominator by their GCF. Pair with the LCM calculator for adding fractions.
How to find the greatest common factor
List the factors of each number and pick the largest shared one, or use prime factorization: 48 = 2⁴ × 3 and 180 = 2² × 3² × 5, so the GCF is 2² × 3 = 12. The Euclidean algorithm is faster for large numbers: repeatedly replace the larger number with the remainder when dividing by the smaller.
Where GCF helps
Simplify fractions by dividing both parts by the GCF (18/24 becomes 3/4), split items into the largest equal groups, or reduce ratios. For the opposite problem, finding a common multiple, use the LCM calculator, and apply the result with the fraction calculator.
Using the GCF to simplify fractions and ratios
To simplify 48/180, find the GCF (12) and divide both parts: 48 ÷ 12 = 4 and 180 ÷ 12 = 15, so the fraction is 4/15. The same idea simplifies ratios such as 48:180 to 4:15. The GCF also tells you the largest square tiles that can cover a rectangle exactly: a 48 by 180 inch floor can be tiled with 12-inch squares and no cutting. If the GCF is 1, the numbers share no factors and the fraction is already in lowest terms.
What are some more GCF examples?
| Numbers | GCF | After dividing |
|---|---|---|
| 12 and 18 | 6 | 2 and 3 |
| 17 and 31 | 1 | 17 and 31 |
| 84, 126 and 210 | 42 | 2, 3 and 5 |
How can you solve a grouping problem?
Suppose you have 84 pencils, 126 erasers and 210 stickers and want identical packs with nothing left over. The GCF is 42, so you can make at most 42 packs, each with 2 pencils, 3 erasers and 5 stickers. A GCF of 1 means the numbers share no larger factor. Use the least common multiple instead when the question asks when repeating events will happen together.
Common mistakes to avoid with the GCF Calculator
- Confusing GCF with the least common multiple.
- Stopping at a common factor that isn't the greatest.
- Including zero or negative numbers.
Frequently asked questions
What is GCF used for?
Simplifying fractions and splitting items into equal groups.
What if the GCF is 1?
The numbers are relatively prime (coprime).
Is GCF the same as GCD?
Yes, greatest common divisor is another name for it.
What is the GCF of 12 and 18?
6.