GCF Calculator

Find the Greatest Common Factor (GCF), also called Greatest Common Divisor (GCD), of two or more integers. Also shows LCM and Euclidean algorithm steps.

Input

GCF / GCD
12
of 48, 36, 24
LCM
144

Prime Factorizations

NumberPrime Factors
482^4 × 3
362^2 × 3^2
242^3 × 3
GCF = 122^2 × 3
TermMeaning
GCF / GCDLargest integer that divides all given numbers evenly
LCMSmallest positive integer divisible by all given numbers
Co-primeGCF = 1 (no common factors except 1)

Euclidean Algorithm Steps

Step-by-step for the first two numbers.

StepDivisionRemainder
148 = 1 × 36 + 1212
236 = 3 × 12 + 00
GCF(48, 36) = 12

Multi-number GCF Chain

StepCalculationResult
1GCF(48, 36)12
2GCF(12, 24)12

GCF × LCM Relationship

PropertyFormula
For two numbersGCF(a,b) × LCM(a,b) = a × b
LCM from GCFLCM = (a × b) / GCF(a,b)
Euclidean stepGCF(a,b) = GCF(b, a mod b)

Our free GCF calculator finds the Greatest Common Factor (also called the Greatest Common Divisor) and Least Common Multiple (LCM) of two or more numbers, showing step-by-step work using the Euclidean algorithm. It's a handy tool for students working on fraction simplification, factoring problems, and number theory homework.

How GCF and LCM Are Calculated

The Euclidean Algorithm finds the GCF of two numbers by repeated division: divide the larger number by the smaller, then replace the larger number with the smaller number and the smaller number with the remainder, repeating until the remainder is 0. The last non-zero remainder is the GCF.

For more than two numbers, the GCF is found by calculating the GCF of the first two numbers, then finding the GCF of that result with the next number, and so on.

LCM (Least Common Multiple) is calculated using the relationship: LCM(a, b) = (a × b) ÷ GCF(a, b), since the product of two numbers always equals the product of their GCF and LCM.

How to Use This Calculator

  1. Enter two or more numbers separated by commas or spaces
  2. Click Calculate to see the GCF and LCM of all entered numbers
  3. Review the step-by-step Euclidean algorithm work shown for the first two numbers
  4. Use the prime factorization breakdown to understand the result further

Frequently Asked Questions

What is the difference between GCF and LCM?

The Greatest Common Factor (GCF) is the largest number that divides evenly into all given numbers. The Least Common Multiple (LCM) is the smallest number that all given numbers divide into evenly. They're related but solve opposite problems.

Why is GCF useful for simplifying fractions?

Dividing both the numerator and denominator of a fraction by their GCF reduces the fraction to its simplest form. For example, 24/36 simplifies to 2/3 by dividing both numbers by their GCF, 12.

What is the fastest way to find the GCF of large numbers?

The Euclidean algorithm is by far the fastest method for large numbers, since it uses repeated division rather than listing every factor, making it efficient even for numbers with many digits.

Can GCF be found for more than two numbers?

Yes, the GCF of multiple numbers can be found by calculating the GCF of two numbers at a time, working through the list sequentially, since GCF is associative, the order doesn't affect the final result.