Free 1-to-1 assessment: meet the tutor before you decide anything.Book Free Assessment
Free calculator · Numbers and percentagesGrades 5 to 7

GCF and LCM calculator

Type two or more whole numbers to find their greatest common factor and least common multiple. The steps use prime factors, the method that works for any numbers.

Separate the numbers with commas or spaces, for example 12, 18, 30.

Answer

GCF = 6, LCM = 36

GCF:
6
LCM:
36

Step by step

  1. 12 = 2² × 3
  2. 18 = 2 × 3²
  3. GCF: take each prime the numbers share, with its smallest power: 2 × 3 = 6.
  4. LCM: take every prime that appears, with its largest power: 2² × 3² = 36.
  5. Check with Euclid's method: 18 = 1 × 12 + 6; 12 = 2 × 6 + 0. The last non-zero remainder is 6.
  6. And GCF × LCM = 6 × 36 = 216 = 12 × 18.

TaleemSquare GCF and LCM calculator · taleemsquare.com/math-calculators/gcf-lcm-calculator

Practice question

5632=

How to use it

  1. Type two or more whole numbers separated by commas or spaces.
  2. Read the GCF and the LCM, then the prime factors of each number.
  3. The GCF uses the primes every number shares (lowest power); the LCM uses every prime that appears (highest power).

Worked example

Numbers 12, 18.

GCF = 6, LCM = 36

  1. 12 = 2² × 3
  2. 18 = 2 × 3²
  3. GCF: take each prime the numbers share, with its smallest power: 2 × 3 = 6.
  4. LCM: take every prime that appears, with its largest power: 2² × 3² = 36.
  5. Check with Euclid's method: 18 = 1 × 12 + 6; 12 = 2 × 6 + 0. The last non-zero remainder is 6.
  6. And GCF × LCM = 6 × 36 = 216 = 12 × 18.

Where students meet this

Common factors and multiples are a Grade 6 standard. The GCF simplifies fractions; the LCM gives the common denominator for adding them.

Word problems about grouping things into equal sets use the GCF; problems about events that repeat until they line up use the LCM.

Common mistakes

  • Mixing up GCF and LCM

    The GCF can be no bigger than the smallest number; the LCM can be no smaller than the largest number. A quick size check catches the swap.

  • Multiplying the numbers for the LCM

    12 × 18 = 216 is a common multiple, but not the least one. The LCM of 12 and 18 is 36.

  • Missing a repeated prime

    12 = 2 × 2 × 3. Writing only 2 × 3 loses a factor of 2 and gives the wrong GCF and LCM.

WhatsApp