Prime Factorization Calculator
Prime factors with exponents, the tree and every divisor.
Greatest common factor and lowest common multiple of any list.
Two or more whole numbers, separated by commas, spaces or new lines.
| Number | Prime factorisation | Divided by the GCF |
|---|
GCF and LCM Calculator finds the greatest common factor and the lowest common multiple of any list of whole numbers, and shows the prime factorisation of each one so you can see where both answers come from. The greatest common factor, also called the highest common factor, is the product of the primes they all share at the lowest power each appears to; the lowest common multiple takes every prime at its highest power.
Those two definitions are why the pair of numbers matters. Forty-eight is 2^4 x 3 and thirty-six is 2^2 x 3^2. They share 2^2 x 3, which is twelve, so that is the GCF. Taking the higher power of each gives 2^4 x 3^2, which is 144, the LCM. The factorisation table makes this checkable rather than something to accept.
For exactly two numbers there is a useful identity: the GCF times the LCM equals the product of the two numbers. It is shown when you enter a pair, both as a check on the answer and because it is the fastest way to get the LCM once you have the GCF.
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.
Looking for something this does not cover? FreeToolStation.com is a second collection of the same kind of everyday tools, and it is worth a look if gcf and lcm calculator is only part of what you are working on.
The gcf and lcm calculator is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:
Yes. Greatest common factor, highest common factor and greatest common divisor are three names for the same thing.
That the numbers share no factor other than one, so their GCF is 1. Seven and thirteen are coprime; so are eight and nine, even though neither is prime.
Yes. Factors and multiples are taken on the absolute values, which is the standard convention, so the GCF is always positive.
If the gcf and lcm calculator is not quite what you need, these other free tools solve closely related problems, and there are 25 more in math calculators.
Prime factors with exponents, the tree and every divisor.
Check whether a number is prime and find its factors.
Calculate with fractions and mixed numbers, simplified and explained.
Simplify a ratio, solve for a missing term, or scale to a new total.
Remainder and quotient, with negative numbers handled.
Checked and rebuilt on 2026-10-14. The method this calculator uses is described in the section above, and corrections go through the contact page.