Enter two numbers in the input boxes and press Calculate. The tool finds both the GCF and LCM instantly. You also see the prime factorization of each number, which shows exactly how the answer was reached. This is helpful for checking your own work.
The GCF (Greatest Common Factor) is the largest number that divides evenly into both numbers. Use the GCF when you want to simplify a fraction or split something into equal groups as large as possible.
The LCM (Least Common Multiple) is the smallest number that both numbers divide into evenly. Use the LCM when you need a common denominator for fractions, or when you need to find when two repeating events will happen at the same time again.
To find GCF(24, 36) step by step:
GCF(24, 36) = 12
The fastest way uses the GCF. Once you have the GCF, you can find the LCM with: LCM = (a x b) / GCF. For 24 and 36: LCM = (24 x 36) / 12 = 864 / 12 = 72. You can check: 72 / 24 = 3 (whole number) and 72 / 36 = 2 (whole number). Both pass, so 72 is correct.
| Pair | GCF | LCM |
|---|---|---|
| 4 and 6 | 2 | 12 |
| 8 and 12 | 4 | 24 |
| 9 and 15 | 3 | 45 |
| 12 and 18 | 6 | 36 |
| 15 and 20 | 5 | 60 |