How it works
Enter whole numbers separated by commas. The greatest common factor is the largest number dividing them all, found by the Euclidean algorithm; the least common multiple is the smallest number they all divide. The factors of the first number are listed in full, so you can see the answer instead of trusting it.
Formula
LCM(a, b) = a x b / GCD(a, b), extended across the list.
Example
Example in plain words. 48 and 180.
Greatest common factor: 12. Least common multiple: 720.
Factors of 48: 1, 2, 3, 4, 6, 8, 12, 16, 24, 48, and 12 is indeed the largest that 180 shares.
Frequently asked questions
What are these for?
Fractions: reducing them needs the GCD, adding them needs the LCM. Both also appear in gear ratios, tiling patterns and scheduling cycles.
Why does the factor list sometimes disappear?
For numbers above one million the page shows only the GCD and LCM, because printing every factor would bury the answer.