1. Home
  2. Functions
  3. Math
  4. LCM

LCM function

Returns the least common multiple of whole numbers.

Syntax

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

Arguments

ArgumentRequiredDescription
number1RequiredThe first number or range
number2OptionalMore numbers or ranges

How to use LCM

LCM takes 1 required argument and 1 optional argument, and accepts more values in the same pattern. Type =LCM( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=LCM(5, 2)Result 10
=LCM(24, 36)Result 72

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.