LCM and HCF (GCD) Calculator – With Steps for 2 or More Numbers

Find the LCM (least common multiple) and HCF (highest common factor, also called GCD) of two or more numbers. The calculator shows the prime factorization method and Euclid's division method step by step, just like school maths.

Prime factorization method

    Euclid's division method (HCF)

      How to find LCM and HCF

      1. Type two or more whole numbers, separated by commas.
      2. Read the HCF and LCM at the top.
      3. Follow the prime factorization method or Euclid's method to learn the working.

      Remember

      • HCF (or GCD) is the biggest number that divides all of them – used to simplify fractions.
      • LCM is the smallest number that all of them divide into – used to add fractions and solve "when will they meet again" problems.
      • For two numbers: HCF × LCM = a × b.
      Word problem: Two bells ring every 12 and 18 minutes. They ring together again after LCM(12, 18) = 36 minutes.

      Frequently asked questions

      Is GCD the same as HCF?

      Yes – HCF (highest common factor), GCD (greatest common divisor) and GCF are the same thing.