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
- Enter the values using the labels and units shown.
- Review the live result and supporting details.
- Check the formula, example and assumptions before using the answer.
Assumptions and limits
- Inputs are treated as integers.
Reference
Formula reviewed 2026-07-15