GCD & LCM Calculator

Use commas or spaces to separate up to 32 integers.

Paste a list of integers to find their greatest common divisor via Euclid’s algorithm and the least common multiple via successive reduction.

Inne języki: ja | en | zh-CN | es | pt-BR | id | vi | ko | fr | de | it

Input integers

Use commas or spaces to separate up to 32 integers.

Example: 12, 18, 24 or 64 48 16. Negative values and zeros are allowed.

Results

Greatest common divisor (GCD)
--
Least common multiple (LCM)
--

FAQ

How many integers can I enter at once?

You can enter up to 32 integers separated by commas or spaces.

Can I include negative numbers or zero?

Yes. Zero yields an LCM of zero and signs are ignored when calculating the GCD and LCM.