HCF and LCM Calculator
Enter two whole numbers to find their HCF (GCD) and LCM. The prime factorization of each number and the working are shown.
HCF and LCM
—
✉ Email me this result
</> Embed this calculator
Paste this into any website or blog post. It is free — the small "powered by" link must stay visible.
How it works
HCF × LCM = a × b. HCF is the product of common prime factors, LCM of all prime factors to the highest power.Frequently Asked Questions
What is the difference?
The HCF is the largest number that divides both. The LCM is the smallest number both divide into.