Calqpro

GCF & LCM Calculator

Enter two integers to instantly find their GCF (greatest common divisor) and LCM (least common multiple).

The Greatest Common Factor (GCF) is the largest number that divides both integers evenly. The Least Common Multiple (LCM) is the smallest number that both integers divide evenly into. This calculator finds both using the Euclidean algorithm and prime factorization.

Advertisement

Last reviewed: April 2026Report an error

GCF / LCM

GCF = 12 · LCM = 144

GCF(36, 48) = 12. LCM(36, 48) = 144.

GCF (Greatest Common Factor)

12

LCM (Least Common Multiple)

144

Prime factors of 36

2 × 2 × 3 × 3

Prime factors of 48

2 × 2 × 2 × 2 × 3

Advertisement

The Formula

GCF × LCM = A × B
  • GCF = Greatest Common Factor (via Euclidean algorithm)
  • LCM = Least Common Multiple = A × B / GCF

Source: Khan Academy — GCF & LCM

How we verify our formulas →

How to Use This GCF / LCM Calculator

  1. Enter the first integer.
  2. Enter the second integer.
  3. Read the GCF and LCM instantly.
  4. See the prime factorizations of both numbers.

Frequently Asked Questions

Advertisement

</> Embed this calculator on your website
<iframe src="https://calqpro.com/calculators/gcf-lcm-calculator" width="100%" height="600" frameborder="0" title="Calqpro Calculator" loading="lazy"></iframe>
<p>Powered by <a href="https://calqpro.com">Calqpro</a></p>

Advertisement