Home›Student Tools›LCM and HCF Calculator

LCM & HCF Calculator

Find the LCM and HCF of any set of numbers, with the prime factors shown.

Also searched as: lcm calculator · hcf and lcm calculator · gcd calculator

LCM and HCF by prime factorisation

Example with 12, 18 and 30:

HCF = product of factors common to all = 2 × 3 = 6.
LCM = each prime at its highest power = 2² × 3² × 5 = 180.

Useful facts

Word problem

Two bells ring every 12 and 18 minutes. When do they ring together again? LCM(12, 18) = 36 minutes.

Frequently asked questions

What is the LCM of 12 and 18?

36. The HCF is 6, and 6 × 36 = 216 = 12 × 18.

What is the difference between LCM and HCF?

HCF is the largest number that divides all given numbers; LCM is the smallest number that all of them divide into.

Can I find LCM and HCF of more than two numbers?

Yes — enter as many numbers as you like, separated by commas.

More free tools

🗓️Attendance CalculatorCheck your % and how many classes you can bunkStudent Tools🔁CGPA to PercentageConvert CGPA with VTU, JNTU, AKTU, Anna, CBSE formulasStudent Tools↩️Percentage to CGPATurn your percentage into CGPA (÷10, ÷9.5, VTU, JNTU…)Student Tools📈SGPA to PercentageConvert semester SGPA to percentage instantlyStudent Tools🧮SGPA CalculatorFind SGPA from credits and gradesStudent Tools🎯CGPA CalculatorCombine semester SGPAs into your CGPAStudent Tools