LCM & GCF Calculator
Find the least common multiple (LCM) and greatest common factor (GCF, also called GCD) of two or more numbers.
Calculator
Was this tool useful?
About this tool
About LCM & GCF Calculator
Useful for adding fractions, scheduling and number theory homework.
How it works
GCD uses Euclid’s algorithm: gcd(a, b) = gcd(b, a mod b). LCM(a, b) = |a × b| ÷ gcd(a, b).
Example
GCD(12, 18) = 6 and LCM(12, 18) = 36.
How to use this tool
- Enter two or more whole numbers.
- Click Calculate.
- See the GCD (HCF) and LCM.
Frequently asked questions
Is GCD the same as HCF?
Yes. Greatest common divisor and highest common factor mean the same thing.
How many numbers can I enter?
Up to 50.
Can I use the LCM & GCF Calculator for homework?
Yes. The LCM & GCF Calculator shows the answer and, where possible, the method, so you can check your own working. Teachers usually want to see the steps, so use it to learn the method rather than only copying the answer.