LCM and GCD Calculator
Find the least common multiple (LCM) and greatest common divisor (GCD / HCF) of a list of whole numbers.
Updated · Free · No sign-up
Copy this code into your website or blog to show this tool there, free:
How to use the LCM and GCD Calculator
Enter numbers. The result updates as you type, so you can try different figures and compare them straight away.
Formula
GCD by the Euclidean algorithm; LCM(a, b) = a × b ÷ GCD(a, b)
Worked example
With numbers (comma separated) = 12, 18, 30:
| LCM | 180 |
| GCD / HCF | 6 |
Frequently asked questions
What does the LCM and GCD Calculator do?
Find the least common multiple (LCM) and greatest common divisor (GCD / HCF) of a list of whole numbers.
What formula does the LCM and GCD Calculator use?
GCD by the Euclidean algorithm; LCM(a, b) = a × b ÷ GCD(a, b)
Is the LCM and GCD Calculator free to use?
Yes. It is free, needs no sign-up and works on phones, tablets and computers. Everything is calculated in your browser, so what you enter is not sent to or stored on a server.