Skip to content
Excel

LCM function in Excel

Returns the least common multiple

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

LCM syntax and parameters

Two arguments, one required.

  • number1numberRequired
  • number2numberRepeating

LCM examples

Formulas you'll actually reuse.

  1. When two cycles line up again — every 12 and 18 days meet on day 36:

    =LCM(B2, C2)

    Result36

  2. A batch size that packs evenly into 4s, 6s, and 10s:

    =LCM(4, 6, 10)

    Result60

LCM in Google Sheets

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…