Home/Math & Statistics/GCD and LCM

GCD and LCM

Find Greatest Common Divisor (GCD) and Least Common Multiple (LCM) for integers.

Enter values

—
—
Export to Studio →
Show formula
Advanced · Smart Compare A/B/C
Advanced · 1D & 2D Simulation Lab

About this calculator

Find Greatest Common Divisor (GCD) and Least Common Multiple (LCM) for integers.

Inputs

  • Positive integers (comma-separated)

Example with default values

  • Positive integers (comma-separated): 24, 36, 60

GCD: 12

Formula: Euclidean algorithm gcd(a, b); lcm(a, b) = (a × b) ÷ gcd(a, b)