# Excel LCM Function

Summary

The Excel LCM function returns the least common multiple of integers. The least common multiple is the smallest positive integer that is a multiple of all supplied numbers. For example, =LCM(25,40) returns 200.

Purpose

Get the least common multiple or two or more numbers

Return value

A number that represents the least common multiple of all numbers

Syntax

=LCM (number1, [number2], ...)

Arguments

**number1**- The first number.**number2**- [optional] The second number.

Usage notes

Use the LCM function when you want to calculate the least common multiple of integers. The least common multiple is the smallest positive integer that is a multiple of all of the numbers supplied as arguments. A common use of the LCM function is to add fractions that have different denominators.

For example, =LCM(3,4) returns 12, since 12 is the smallest multiple of both 3 and 4. However, =LCM(3,4,5) returns 60, since 60 is the smallest multiple of all three numbers.