Google Sheets
LCM function in Google Sheets
Returns the least common multiple of one or more integers.
=LCM(value1, [value2, ...])LCM syntax and parameters
Two arguments, one required.
- value1anyRequired
The first value or range whose factors to consider in a calculation to find the least common multiple.
- value2anyRepeating
[ OPTIONAL ] - Additional values or ranges whose factors to consider to find the least common multiple.
LCM examples
Formulas you'll actually reuse.
When two cycles line up again — every 12 and 18 days meet on day 36:
=LCM(B2, C2)Result
36A batch size that packs evenly into 4s, 6s, and 10s:
=LCM(4, 6, 10)Result
60
LCM in Excel
Same name — your formula ports as-is.
Try LCM in the playground
Edit the example — nothing to install.
Preloaded with the LCM formula from Example 1 — change anything and watch it respond.
Loading the editor…
Related functions
More ways Google Sheets gets this done.
- ABSReturns the absolute value of a number.MathExcel
- ACOSReturns the inverse cosine of a value, in radians.MathExcel
- ACOSHReturns the inverse hyperbolic cosine of a number.MathExcel
- ACOTReturns the inverse cotangent of a value, in radians. .MathExcel
- ACOTHReturns the inverse hyperbolic cotangent of a value, in radians. Must not be between -1 and 1, inclusive..MathExcel
- ASINReturns the inverse sine of a value, in radians.MathExcel