MATHEMATICS

LCM & GCD Calculator

Find the least common multiple and greatest common divisor for a list of whole numbers.

Free to use No sign-up Runs in your browser
COMMON FACTORS

Enter at least two whole numbers separated by commas or spaces.

Supports negative numbers and zero. Calculated locally in your browser.

GCD and LCM

The greatest common divisor (GCD) is the largest positive integer that divides every input. The least common multiple (LCM) is the smallest non-negative integer that is a multiple of every input.

Enter whole numbers

Enter between 2 and 100 integers separated by commas, spaces, semicolons or new lines. Negative inputs are treated by magnitude; a list containing zero has an LCM of zero.