Updated · Built and checked by the PlinzoTools team, formulas tested against published sources
Calculate the Least Common Multiple and Highest Common Factor of two numbers.
This tool calculates both the Least Common Multiple (LCM) and Highest Common Factor (HCF, also called GCD) of two whole numbers, using the Euclidean algorithm for HCF and the relationship LCM = (a × b) ÷ HCF.
Enter two whole numbers. Both the LCM and HCF appear instantly.
The tool has two fields, First number and Second number, and returns two large results: the LCM and the HCF. Both numbers must be greater than zero. If either is zero or negative, the tool does not show a result. Decimal inputs are rounded to the nearest whole number before the calculation, since HCF and LCM are defined for integers. Results are displayed with comma grouping for readability.
Use 24 and 36 as hypothetical inputs. The Euclidean algorithm repeatedly replaces the larger number with the remainder of dividing the two:
You can confirm: 72 is a multiple of both 24 (3 times) and 36 (2 times), and no smaller number is. Also 12 divides both 24 and 36 evenly, and no larger number does.
For any two positive integers, the product of the two numbers equals the product of their LCM and HCF. Using the example, 24 × 36 = 864 and 72 × 12 = 864. If your own calculation does not satisfy this identity, one of the values is wrong. Note that the identity works for two numbers only; it does not extend directly to three or more.
Suppose you want to simplify the ratio 45 to 60. Enter 45 and 60: the HCF is 15, so dividing both parts by 15 gives the simplest ratio 3 to 4. Suppose you then want to add 1/45 and 1/60: the LCM is 180, so the fractions become 4/180 and 3/180, which add to 7/180. Working through both values on one screen is a fast way to avoid the common error of using the product of the denominators, which gives a correct but needlessly large common denominator.
They're the same thing -- HCF (Highest Common Factor) and GCD (Greatest Common Divisor) are two names for the same value, just different regional terminology.
Then the HCF is 1 and the LCM equals the product of the two numbers.
Not directly. Calculate the LCM or HCF of two, then use that result with the third number in a second run.
The tool requires both numbers to be greater than zero, so it shows no answer otherwise.
Use HCF when splitting things into equal groups or the biggest common size. Use LCM when finding when repeating events meet or a common denominator.
Reference: NIST Weights and Measures