Skip to content
2x2xKit

GCF & LCM Calculator

Find the greatest common factor and least common multiple of two or more numbers.

How this is calculated
GCF via the Euclidean algorithm; LCM = (a × b) ÷ GCF, extended across the full list

Assumptions used in this calculation

  • Algorithm: GCF is computed with the Euclidean algorithm; results are only defined for positive integers.

About this calculator

Finds the greatest common factor (GCF) and least common multiple (LCM) of two or more numbers, consolidating the master prompt's separate GCF and LCM calculators, since LCM is derived directly from GCF.

Worked example

12 and 18

Result: GCF = 6, LCM = 36

Was this helpful?

Frequently asked questions