GCF Calculator (Greatest Common Factor / GCD)

The greatest common factor (GCF) is the same as the greatest common divisor (GCD): the largest whole number that divides every number in your list. Find it for two or more numbers using the Euclidean algorithm.

Result

Fill in the fields above, then press Calculate.

A GCF calculator finds the greatest common factor (also called the greatest common divisor, GCD, or HCF) of two or more positive integers using the Euclidean algorithm and prime factorization.

Enter two or more positive integers, separated by commas or spaces. Click Calculate to find their greatest common divisor (GCD). The calculator shows the Euclidean algorithm steps and prime factorization, which can help when simplifying fractions.

Examples

GCD of 48 and 18

48 = 18×2 + 12; 18 = 12×1 + 6; 12 = 6×2 + 0. GCD is 6.

Frequently Asked Questions

What is the relationship between GCD and LCM?
For two numbers a and b, GCD(a, b) × LCM(a, b) = |a × b|.

Quick Tips

  • •Use the GCD to simplify fractions — divide both numerator and denominator by the result.
  • •Use the step-by-step breakdown to verify intermediate calculations.
  • •Remember the identity GCD(a,b) x LCM(a,b) = |a x b| to quickly find the LCM after computing the GCD.