Highest common factor calculator
Highest common factor calculator for two or three whole numbers. Get the HCF and LCM below, then see how the prime factors give both answers.
Enter whole numbers from 1 to 1,000,000.
Highest common factor
12The largest whole number that divides both exactly.
Lowest common multiple
72The first positive number in both times tables.
Build each number from primes
A prime tile is a number bigger than 1 with exactly two positive factors. Multiply the tiles in a row to rebuild its number.
Pair the prime tiles
Tap a prime that appears on both sides. Watch one tile from each side move into the middle as a pair.
See the calculations and check both answers
HCF. 2 × 2 × 3 = 12. Both divisions work exactly: 24 ÷ 12 = 2 and 36 ÷ 12 = 3.
LCM. 2 × 2 × 2 × 3 × 3 = 72. Keep every prime copy needed by either number, counting each pair once. Check: 24 × 3 = 36 × 2 = 72.