GCD & LCM Calculator
Greatest common divisor and least common multiple.
Inputs
Results
Greatest common divisor12
Least common multiple360
Everything runs locally in this browser tab. Nothing is uploaded.
How to use GCD & LCM Calculator
Enter two or more integers separated by commas or spaces.
Inspect Greatest Common Divisor (GCD) and Least Common Multiple (LCM) powered by BigInt.
Copy either output.
Frequently asked questions
Does GCD & LCM handle arbitrary integer sizes?
Yes. Euclidean GCD and LCM run using BigInt so intermediate products never lose integer precision.