HCF and LCM calculators

Highest common factor and lowest common multiple for any list of numbers — with the prime factorisation shown next to the answer.

The HCF and Euclid’s algorithm

The quickest route to the highest common factor is Euclid’s algorithm: divide the larger number by the smaller and repeat with the remainder until the remainder is zero. The last non-zero divisor is the HCF.

The LCM via the HCF

The lowest common multiple follows from LCM(a, b) = (a · b) ÷ HCF(a, b). That is why both calculators print the other value beside the answer — each one follows from the other.

Frequently asked questions

Factorise both into primes and multiply the shared factors, or use Euclid’s algorithm. The HCF of 12 and 18 is 6.

Divide the product of the numbers by their HCF. For 12 and 18: (12 · 18) ÷ 6 = 36.

Chiefly for simplifying fractions — dividing the numerator and denominator by the HCF puts the fraction into lowest terms in one step.

Unlock the Mathema lesson library

Leave your email and phone — we will take you through to the Mathema platform and open up the preparation library: problem sets, quizzes and lesson plans written by teachers.

We use your details only to set up the account and get in touch about a lesson. No spam.

HCF and LCM to master?

Book a free introductory lesson with a Mathema tutor. 30 minutes online, no commitment — we find the gap and the plan to close it.