LCM Calculator
Least common multiple of any set of numbers, with the working.
The greatest common factor, and how it was found.
Separate them with spaces or commas. Up to twenty.
| Number | As primes | Divided by the GCF |
|---|
| Pair | Running GCF |
|---|
GCF Calculator finds the greatest common factor -- also called the greatest common divisor or the highest common factor, three names for one thing -- of any set of whole numbers, and shows how it got there rather than only what it got.
There are two methods and the page does both, because which one is wanted depends on why you are asking. Euclid's algorithm, in the step-by-step table, takes the numbers two at a time and repeatedly replaces the larger with the remainder; it is fast and it is what a computer does. Prime factorisation, in the main table, writes each number as a product of primes and takes every prime to its lowest power; it is slower and it is what a textbook asks for, because it shows why the answer is what it is.
The commonest use is simplifying a fraction. Divide the top and the bottom by their GCF and the fraction is in lowest terms in one step -- 48/180 has a GCF of 12, so it is 4/15, and no further cancelling is possible. The column on the right of the table does that division for every number you enter.
If the GCF comes out as 1 the numbers are coprime: nothing above 1 divides all of them. That does not mean they are prime -- 8 and 9 are coprime and neither is prime -- it means they share no factor, which is what matters when reducing a fraction or choosing gear teeth that should not wear in the same place.
The page shows its working, not just its answer. Where there is a formula it is printed with your own numbers substituted in, so you can check the result rather than take it on trust -- which is the difference between a calculator you can use for something that matters and one you cannot.
Everything runs inside your browser. What you type is never uploaded, never logged and never stored, and the calculator keeps working if your connection drops after the page has loaded.
The GCF Calculator is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:
12. As primes, 48 is 2^4 x 3 and 180 is 2^2 x 3^2 x 5; the primes they share, each to its lowest power, are 2^2 x 3, which is 12.
Yes. Greatest common factor, greatest common divisor and highest common factor are three names for the same number. American textbooks tend to say GCF, British ones HCF, and computing says GCD.
Divide the numerator and the denominator by it. 48/180 has a GCF of 12, so it becomes 4/15, and because 4 and 15 are coprime it cannot be reduced further.
The numbers are coprime -- they share no factor above 1. They need not be prime: 8 and 9 are coprime and neither is a prime number.
Divide the larger by the smaller and keep the remainder; repeat with the smaller and the remainder until the remainder is zero. The last non-zero remainder is the GCF. The step table shows each pass.
If the GCF Calculator is not quite what you need, these other free tools solve closely related problems, and there are 35 more in math calculators.
Least common multiple of any set of numbers, with the working.
GCF and LCM of several numbers, with factorisations.
Every factor of a number, in pairs, with the prime factorisation.
Prime factors with exponents, the tree and every divisor.
Calculate with fractions and mixed numbers, simplified and explained.
Checked and rebuilt on 2026-10-18. The method this calculator uses is described in the section above, and corrections go through the contact page.