GCD & LCM Calculator
Math
Works out the greatest common divisor (GCD) and least common multiple (LCM) of 2 to 6 whole numbers, with a table of prime factors.
12 = 2² × 3, 18 = 2 × 3²
GCD: lowest powers of the shared factors → 2 × 3 = 6
LCM: highest powers of all factors → 2² × 3² = 36
For two numbers: GCD × LCM = a × b
The GCD is used to simplify fractions; the LCM to find a common denominator or answer questions like "when do two schedules line up again?".
Numbers whose GCD is 1 are called coprime (for example 8 and 15).
Results are for information only. For tax, salary, loan or health decisions, check official sources or ask a professional.