Skip to main content

LCM & GCD Calculator

Compute the LCM and GCD of any set of numbers. Enter two or more integers and this calculator returns their greatest common divisor and least common multiple, with the working method shown.

How to Use the LCM & GCD Calculator

  1. Enter two or more positive integers separated by commas.
  2. Click Calculate to see the GCD and LCM.
  3. Use the GCD to simplify fractions and the LCM to find common denominators.

How It Works

GCD: Euclidean algorithm   |   LCM(a,b) = a ร— b / GCD(a,b)

Example: For 12 and 18 โ†’ GCD = 6, LCM = (12ร—18)/6 = 36.

Frequently asked questions

Everything you need to know about this calculator.

Advertisement

Advertisement ยท 320ร—50