Free online LCM and GCD calculator. Find the least common multiple and greatest common divisor of two or three numbers. Shows step-by-step calculation. Pure frontend.
LCM (Least Common Multiple) is the smallest positive integer that is divisible by all given numbers. Example: LCM(12, 18) = 36.
GCD (Greatest Common Divisor) is the largest positive integer that divides all given numbers without remainder. Example: GCD(12, 18) = 6.
For two numbers a and b: LCM(a,b) Γ GCD(a,b) = a Γ b. This relationship helps compute one from the other.
Yes! Enter up to 3 numbers. The tool calculates the LCM/GCD progressively across all numbers.
LCM is used in fractions (common denominator), scheduling (recurring events), and gear ratios. GCD is used in simplifying fractions and cryptography.