← All tools
GCD & LCM Calculator
Compute the greatest common divisor (GCD) and least common multiple (LCM) of two or more integers, separated by commas, spaces, or new lines. The GCD is the largest integer dividing all of them evenly; the LCM is the smallest integer they all divide evenly. All arithmetic uses big integers, so the results are exact even for large inputs, and for the first two numbers the Euclidean algorithm's division steps are shown. Everything runs locally in your browser.