GCD & LCM Calculator
Worked example result
| Greatest common divisor (GCD) | 6 |
| Least common multiple (LCM) | 36 |
| Product (a × b) | 216 |
For 12 and 18: the GCD is 6 and the LCM is 36. Check the identity: 6 × 36 = 216, and 12 × 18 = 216.
GCD(a, b) × LCM(a, b) = a × b, so LCM = (a × b) ÷ GCD · Powered by CalcHub — GCD & LCM Calculator