GCD and LCM calculator

Find the greatest common divisor and least common multiple of two or more integers.

Enter 2 to 20 integers separated by spaces or commas (each up to 1,000,000,000,000,000).

Calculated in this browser. Nothing is sent anywhere.

Integers only — decimals and fractions are rejected. The least common multiple is reported up to 10²⁴; beyond that it is too large to be useful and the tool says so.

How to use

  1. Enter integers separated by spaces or commas.
  2. Calculate.
  3. Read the GCD and LCM.

What it supports

Integers only — up to 20 values, each up to 10¹⁵. The LCM is reported up to 10²⁴; decimals and fractions are rejected.

Related tools

Related guides