GCD and LCM Calculator
CalculatorA GCD and LCM calculator finds the greatest common divisor and least common multiple of two integers.
What is it
The GCD is the largest integer that divides both numbers. The LCM is the smallest positive integer that is a multiple of both.
LCM(a,b) = |a×b| / GCD(a,b)
How to use
- 1Enter two integers.
- 2Run the calculation.
- 3Check the GCD and LCM.
Reference
| A | B | GCD | LCM |
|---|---|---|---|
| 24 | 36 | 12 | 72 |
| 8 | 12 | 4 | 24 |
Sources & standards
- MDN Web Docs: Client-side web APIs - MDN Web Docs
FAQ
What are the GCD and LCM of 24 and 36?
The GCD is 12 and the LCM is 72.
Is input sent to a server?
No. This tool runs in your browser and does not send input to a server.