Math calculator

Least Common Multiple Calculator

Find the smallest positive multiple shared by two whole numbers.

✓ Tested formula✓ Instant result✓ Private by design
01
Enter your valuesResults update instantly as you type.

Your numbers stay on this device.

Understand the answer

Formula and method

Formulalcm(a,b) = |a × b| ÷ gcd(a,b).

The greatest common divisor removes duplicated factors from the product, leaving the smallest shared multiple.

Worked example

lcm(12,18) = 36.

How to use this calculator

  1. Enter the values using the labels and units shown.
  2. Review the live result and supporting details.
  3. Check the formula, example and assumptions before using the answer.

Assumptions and limits

  • Inputs are treated as integers.

Reference

Formula reviewed 2026-07-15

↑↓ Navigate · Enter Open · Esc Close