LCM and HCF Calculator with Step-by-Step Working & Prime Factors
🔢 LCM & HCF (GCF) Step-by-Step Calculator
Enter 2 or 3 numbers to instantly find the Least Common Multiple and Highest Common Factor with working steps.
Understanding LCM and HCF: Definitions, Methods & Examples
In number theory and elementary arithmetic, finding the Lowest Common Multiple (LCM) and Highest Common Factor (HCF / GCF) are two of the most common mathematical procedures. Whether you are finding common denominators to add fractions or solving real-world pacing problems, mastering these two concepts is essential.
What is LCM?
The Least Common Multiple (LCM) of two or more numbers is the smallest positive integer that is divisible by all of those numbers without leaving a remainder. For instance, the multiples of 4 are 4, 8, 12, 16, 20... and the multiples of 6 are 6, 12, 18, 24.... The smallest number present in both lists is 12, so LCM(4, 6) = 12.
What is HCF / GCF?
The Highest Common Factor (HCF), also frequently called the Greatest Common Factor (GCF) or Greatest Common Divisor (GCD), is the largest positive integer that divides evenly into all given numbers. For example, the factors of 12 are 1, 2, 3, 4, 6, 12 and the factors of 18 are 1, 2, 3, 6, 9, 18. The greatest factor shared by both numbers is 6, so HCF(12, 18) = 6.
The Golden Formula Relating LCM and HCF
For any two positive integers a and b, their product always equals the product of their LCM and HCF:
LCM(a, b) × HCF(a, b) = a × b
This powerful property allows you to calculate one if you already know the other:
LCM(a, b) = (a × b) / HCF(a, b)HCF(a, b) = (a × b) / LCM(a, b)
