GCD & LCM Calculator

Calculate Greatest Common Divisor (GCD/HCF) and Least Common Multiple (LCM) for two or more numbers. Step-by-step. 100% private. 100% free and private.

Free GCD & LCM Calculator

Find the Greatest Common Divisor (GCD or HCF) and Least Common Multiple (LCM) of two or more positive integers. Useful for simplifying fractions, ratio problems, and scheduling.

Common Uses

  • Simplify fractions to lowest terms
  • Solve word problems on ratios and proportion
  • Plan repeating schedules and cycles
  • Verify number theory homework
  • Demonstrate the Euclidean algorithm

How It Works

GCD is computed with the Euclidean algorithm: gcd(a,b) = gcd(b, a mod b). For more than two numbers we reduce pairwise. LCM uses the identity lcm(a,b) = a*b / gcd(a,b), again reduced across the list.

Privacy

All computation is local. Your numbers stay on your device.

Related: Prime Number Checker, Scientific Calculator, Percentage Calculator.

, repeated until b = 0. For typical integers it finishes in microseconds; for 1000-digit numbers (RSA key sizes) it still completes in milliseconds. This is one of the few algorithms that has not been improved on in 2,300 years." }} />

LCM From GCD

Related free tools

Browse all free tools · Guides and tutorials · PDF tools · Developer tools · Text tools · SEO tools