Online LCM & GCF Calculator

Find the Least Common Multiple (LCM) and Greatest Common Factor (GCF / GCD) of two or more numbers.

What Are LCM and GCF?

The Greatest Common Factor (GCF), also known as the Greatest Common Divisor (GCD), is the largest positive integer that divides evenly into two or more numbers. The Least Common Multiple (LCM) is the smallest positive integer that is a multiple of all the numbers in the set.

How to Use the Lcm Gcf Calculator

  1. Enter two or more integers separated by commas (e.g., 12, 18 or 24, 36, 48).
  2. Click "Calculate LCM & GCF".
  3. View the LCM, GCF, prime factorization trees, and Euclidean algorithm steps.

Formula & How the Calculation Works

For two numbers a and b:
LCM(a, b) = |a × b| ÷ GCF(a, b)
Euclidean Algorithm: GCF(a, b) = GCF(b, a mod b)

The product of two positive integers always equals the product of their LCM and GCF.

Worked Calculation Example

Scenario: Find LCM and GCF of 12 and 18.

Key Considerations & Common Mistakes to Avoid

Frequently Asked Questions

What is the relationship between LCM and GCF?

For any two positive integers a and b, LCM(a, b) × GCF(a, b) = a × b.

What is the Euclidean algorithm?

It is an efficient method for computing the greatest common divisor of two integers by repeatedly taking remainders until the remainder is zero.

Where are LCM and GCF used in real life?

GCF is used to simplify fractions and divide items into equal groups. LCM is used to find common denominators when adding fractions and to schedule recurring cycles.