To calculate the LCM of two or more numbers, factorize each number into prime factors, write into the exponents form, multiply the factors with the highest powers to get the LCM.