GCD and LCM Calculator
Find the greatest common divisor and least common multiple for a list of integers in your browser.
Greatest common divisor
6
Least common multiple
180
GCD finds the largest shared divisor across a list of integers.
LCM finds the smallest shared multiple across the same list.
Use integers
Whole numbers are required for divisor and multiple calculations.
Paste lists freely
Commas, spaces, semicolons, and new lines are accepted.
Example
12, 18, and 30 have GCD 6 and LCM 180.
Assumption
Inputs are intended as integer values.
Limitation
Very large lists or huge integers can become harder to read and verify manually.
Fractions
Simplify fractions and common denominators.
Scheduling
Find when repeating cycles align.
Classroom math
Check GCD and LCM exercises.
Ratios
Find common factors for simplification.
What is GCD?
GCD means greatest common divisor, the largest integer that divides all entered numbers.
What is LCM?
LCM means least common multiple, the smallest positive integer that is a multiple of all entered numbers.
Can I enter more than two numbers?
Yes. Paste any list of integers separated by commas, spaces, semicolons, or lines.
Does this handle decimals?
No. This tool is for integers.
Suggested workflow
Common factor workflow
Find divisors, reduce fractions, then simplify ratios.