Two or more numbers
Not limited to a pair — add as many whole numbers as you like and the GCF and LCM are computed across all of them.
Greatest common factor and least common multiple of two or more numbers.
Loading tool…
The tool is loading its code on your device. This happens once and is cached for later visits.
Processed entirely on your device
Overview
Find the greatest common factor (GCF) and least common multiple (LCM) of two or more whole numbers, with the prime factorisation of each shown.
The greatest common factor and least common multiple are the two workhorses of fraction arithmetic. Enter any set of whole numbers and this calculator returns both, plus the prime factorisation of each input so you can see the shared factors directly.
GCF(12, 18) = 6 → the largest number dividing both
LCM(12, 18) = 36 → the smallest number both divide intoFor two numbers the identity GCF × LCM = a × b always holds — here 6 × 36 = 216 = 12 × 18.
The GCF uses Euclid's algorithm, repeatedly replacing the larger number by the remainder until one reaches zero. The LCM is then a × b ÷ GCF, extended across the whole list. Prime factorisation is shown for verification.
All of it runs in your browser with exact integer arithmetic. Nothing is uploaded.
Step by step
Enter two or more whole numbers, separated by commas or spaces.
Read the greatest common factor and the least common multiple.
Check the prime factorisation table to see where they come from.
Why use it
What this tool is good for, and what it deliberately does not try to do.
Not limited to a pair — add as many whole numbers as you like and the GCF and LCM are computed across all of them.
A table breaks each number into its prime factors, which makes the common factors and multiples easy to verify by hand.
Uses Euclid's algorithm, so even large numbers resolve instantly without rounding.
Questions
Short, honest answers about quality, limits and privacy.