LCM Calculator
Calculate the least common multiple (LCM) of two whole numbers.
- Free to use
- No registration required
- Works on all devices
- Last updated
- 12-09-2026
Enter two whole numbers to calculate their least common multiple (LCM) and greatest common factor (GCF).
Your result
12
Least common multiple
Greatest common factor2
AI explanation
Formula
LCM = (a × b) / GCF, where GCF is computed via the Euclidean algorithmWorked example
4 and 6
| Field | Value |
|---|---|
| First number | 4 |
| Second number | 6 |
| Least common multiple | 12 |
| Greatest common factor | 2 |
Assumptions
- Both numbers must be positive whole numbers.
Frequently asked questions
What is the least common multiple?
It's the smallest positive whole number that both input numbers divide into evenly — the smallest number that's a multiple of both.
How is LCM calculated?
LCM = (a × b) / GCF, where GCF is the greatest common factor of the two numbers, computed via the Euclidean algorithm.
What is LCM used for?
LCM is commonly used to find a common denominator when adding or subtracting fractions, and in scheduling problems where events repeat at different intervals.