LCM Calculator

Calculate lcm instantly in your browser.

Loading calculator…

What this tool does

Calculate lcm instantly in your browser. Safe whole-integer values only.

How to use the LCM Calculator

  1. Enter or select first whole number.
  2. Enter or select second whole number.
  3. Read the calculated result; change any measurement to compare alternatives.

Formula

GCF uses Euclid's algorithm; LCM=abs((a/GCF)×b); LCM with zero is zero
a
First whole number
b
Second whole number

Safe whole-integer values only.

Worked example

For lcm calculator, the following measurements illustrate the exact method: First whole number: 12; Second whole number: 18.

Inputs

  • First whole number12
  • Second whole number18

Result

  • Least common multiple36

Results explained

Least common multiple
Least common multiple from the formula above. Safe whole-integer values only.

Frequently asked questions

GCF uses Euclid's algorithm; LCM=abs((a/GCF)×b); LCM with zero is zero

Safe whole-integer values only.

Where mathematically meaningful, yes. Fields specify permitted ranges and undefined operations display an error.

Exact integer calculations use safe integers; decimal calculations use browser floating point, so small rounding differences can occur.

All values remain in your browser and are never uploaded.