UTILS.
Private by default
÷

GCD & LCM Calculator

Find the greatest common divisor and least common multiple of a list of integers.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →

About this tool

Enter two or more whole numbers to find their greatest common divisor (GCD) and least common multiple (LCM). It uses BigInt and the Euclidean algorithm, so very large integers stay exact — all in your browser.

Frequently asked questions

How many numbers can I enter?
At least two are required, but you can enter as many as you like — the GCD and LCM are computed across the whole list.
How are they computed?
The GCD uses the Euclidean algorithm; the LCM is derived as a divided by the GCD, times b, reduced across all numbers using exact BigInt math.

More tools