Math calculator

GCD & LCM Calculator

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

Enter your values

Results are calculated in your browser.

How this calculation works

GCD uses Euclid’s algorithm; LCM(a,b) = |a × b| ÷ GCD(a,b). Use the calculator above to enter your values. Inputs are checked before a result is shown, and calculations run locally in your browser.

Example: GCD(12, 18) = 6; LCM = 36 Results are rounded for display where needed.

Keep calculating

Related math calculators

All Math Calculators →