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

12

The largest whole number that divides both exactly.

Lowest common multiple

72

The 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.

24= 2 × 2 × 2 × 3
36= 2 × 2 × 3 × 3

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.

First · 24
Shared
No tiles
Second · 36

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.

Lightbulb Learning is built by a parent, for his daughter — and now for every family facing GCSEs. These tools are free and need no account. Join the waitlist →