TOOLS.GAMESLOOP234 Free Online Tools

LCM and HCF Calculator

Find the lowest common multiple and highest common factor.

Two or more whole numbers, separated by commas or spaces.

LCM (lowest common multiple)

72

HCF is 6

HCF / GCD

6

LCM

72

Product of all numbers

5184

Coprime

No

HCF and LCM are computed pairwise across all values.

  • HCF simplifies fractions and reduces ratios; LCM finds common denominators and answers "when do these cycles coincide".
Prime factorisation of each input, followed by the Euclidean algorithm steps for the first pair.
NumberPrime factorisation
122^2 × 3
182 × 3^2
242^3 × 3
18 = 12 × 1 + 6remainder 6
12 = 6 × 2 + 0remainder 0

What does LCM and HCF Calculator do?

Calculate the LCM and HCF (also called GCD) of two or more numbers, with the prime factorisation and Euclidean algorithm steps shown so the method is clear, not just the answer.

How to Use LCM and HCF Calculator

  1. 1
    Enter your numbersSeparated by commas or spaces.
  2. 2
    Read both resultsLCM and HCF together.
  3. 3
    Expand the workingFactorisation and algorithm steps are shown.

Key Features

  • Two or more numbers at once
  • Prime factorisation of each input
  • Euclidean algorithm steps shown for the HCF
  • Verification that LCM × HCF equals the product, for two numbers
  • Exact BigInt arithmetic for very large integers

Frequently Asked Questions

What is the difference between LCM and HCF?

HCF is the largest number that divides all of them; LCM is the smallest number they all divide into. For 12 and 18, the HCF is 6 and the LCM is 36.

How does the Euclidean algorithm work?

Repeatedly replace the larger number with the remainder of dividing it by the smaller, until the remainder is zero. The last non-zero value is the HCF. It is over two thousand years old and still the fastest general method.

How do I find the LCM from the HCF?

For two numbers, LCM = (a × b) ÷ HCF. That identity does not extend to three or more, which must be done pairwise or from the prime factorisations.

Where is this actually used?

HCF simplifies fractions and reduces ratios. LCM finds common denominators and answers "when do these two cycles coincide" — buses at 12 and 18 minute intervals meet every 36 minutes.