Step by step
- Write each number as a product of primes.
- LCM: every prime, highest power, multiplied.
- GCF: only shared primes, lowest power, multiplied.
At a glance
| Numbers | LCM | GCF |
|---|---|---|
| 12, 18 | 36 | 6 |
| 12, 18, 30 | 180 | 6 |
| 8, 12, 20 | 120 | 4 |
Related questions
Which method is faster?
For small numbers, listing multiples or factors; for larger ones, prime factorization or the division table.
Can the GCF be 1?
Yes, then the numbers are relatively prime, like 8 and 15.
How many numbers can the calculator take?
Up to 15 at once.
More questions: lcm and gcf calculator
- What are LCM and GCF in maths?
- What is the difference between LCM and GCF?
- When to use LCM or GCF in word problems
- LCM and GCF examples with solutions
- How to find the LCM using the GCF (shortcut formula)
Open the full lcm and gcf calculator →
Updated November 14, 2026.