How to use the calculator
- Replace the example inputs with your values. Use the units shown beside each field.
- Select Calculate to update the answer and breakdown. Select Reset to bring back the example.
Formula
GCF is the largest common divisor. When either number is zero, LCM is zero. Otherwise LCM = (A ÷ GCF) × B.
Worked example
For 12 and 18, GCF = 6 and LCM = 36.
Assumptions and limits
Use nonnegative whole numbers up to one million. At least one number must be positive.