LCM
Free LCM calculator with clear step-by-step results.
About LCM
The least common multiple is the smallest number divisible by both inputs.
Formula
Formula
LCM = a×b ÷ GCD(a,b)
Worked example
With the default values below, LCM returns LCM of 36.00. Change any input above and every figure here is recalculated in your browser.
Inputs used
- First numberminimum 1
- 12
- Second numberminimum 1
- 18
Results
- LCM
- 36.00
- GCD
- 6.00
- Product a×b
- 216.00
Step by step
- 1Values used
- 2Formula
- 3LCM= 36
- 4GCD= 6
- 5Product a×b= 216
Assumptions and limits
- The result is derived only from the 2 inputs listed above. Anything not among them is not part of the calculation.
- In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.
Frequently Asked Questions
How does this calculator work?
The least common multiple is the smallest number divisible by both inputs.
Why does this matter?
Uses the GCD computed by Euclid's algorithm.
