A

Online GCD & LCM Calculator

Enter multiple integers to get the greatest common divisor, least common multiple and prime factorization at once

Separate integers with commas, spaces or newlines, e.g. 12, 18, 24

GCD (Greatest Common Divisor)

6

LCM (Least Common Multiple)

72

Prime factorization

122^2 Γ— 3
182 Γ— 3^2
242^3 Γ— 3

FAQ

The greatest common divisor (GCD) is the largest integer dividing all inputs; the least common multiple (LCM) is the smallest integer divisible by all inputs. For two numbers, GCD Γ— LCM = product.

No limit - GCD and LCM are computed for the whole list. The factorization panel shows up to 12 unique numbers.

Yes. Absolute values are used for calculation, e.g. gcd(-12, 18) = 6. Factorization is shown for positive numbers only.

No. All calculations run locally in your browser and your data never leaves your device.

It helps explain how GCD/LCM are computed and is commonly used for fraction reduction and math education.

Completely free. This is a pure frontend online tool - no registration required, no payment needed, just open and use.