Jump to any fraction tool, practice drill, game, or guide.
Enter two numbers and get both answers at once: the Least Common Multiple (LCM) and the Greatest Common Factor (GCF, also called the GCD or HCF), with the Euclidean algorithm working shown step by step. If you only need one of them, jump straight to the section you want.
The least common multiple of two numbers is the smallest number that both of them divide into evenly. The LCM of 4 and 6 is 12: the multiples of 4 are 4, 8, 12, 16 and the multiples of 6 are 6, 12, 18, and 12 is the first number that appears in both lists.
LCM(a, b) = (a × b) ÷ GCF(a, b)
| Numbers | Product | GCF | LCM |
|---|---|---|---|
| 4 and 6 | 24 | 2 | 12 |
| 12 and 18 | 216 | 6 | 36 |
| 8 and 12 | 96 | 4 | 24 |
| 15 and 25 | 375 | 5 | 75 |
| 7 and 13 | 91 | 1 | 91 |
Reach for the LCM when you need a common denominator for adding or subtracting fractions, or when you need to know when two repeating cycles line up again: two buses leaving every 12 and 18 minutes next depart together after 36 minutes.
The greatest common factor of two numbers is the largest number that divides both of them with no remainder. It goes by three names that all mean the same thing: greatest common factor (GCF), greatest common divisor (GCD), and highest common factor (HCF).
For bigger numbers, use the Euclidean algorithm instead of listing factors. GCF of 180 and 48: 180 ÷ 48 = 3 remainder 36, then 48 ÷ 36 = 1 remainder 12, then 36 ÷ 12 = 3 remainder 0. The last non-zero remainder, 12, is the GCF.
| Numbers | Common factors | GCF |
|---|---|---|
| 12 and 18 | 1, 2, 3, 6 | 6 |
| 24 and 36 | 1, 2, 3, 4, 6, 12 | 12 |
| 15 and 25 | 1, 5 | 5 |
| 100 and 75 | 1, 5, 25 | 25 |
| 7 and 13 | 1 | 1 (coprime) |
Reach for the GCF when you are simplifying a fraction (divide the numerator and denominator by it) or splitting two quantities into the largest possible equal groups. Try the fraction simplifier if that is what you actually came for: it applies the GCF for you and shows the working.
The GCD (also called GCF or HCF) is the largest positive integer that divides two or more numbers without leaving a remainder. It represents the greatest common factor shared by the numbers.
Methods to Find the GCD:
Pro Tip:
The GCD is the key to simplifying fractions. Divide both the numerator and denominator by their GCD to get the fraction in its simplest form.
The Euclidean algorithm is one of the oldest and most efficient methods for finding the GCD. It was discovered by the ancient Greek mathematician Euclid around 300 BC.
How It Works:
Why It Works:
The algorithm relies on the fact that any common divisor of two numbers also divides their difference (and remainder). By repeatedly reducing the problem to smaller numbers, it efficiently finds the greatest common divisor.
The LCM is the smallest positive integer that is a multiple of both numbers. It is closely related to the GCD through a simple formula.
The LCM Formula:
LCM(a, b) = (a × b) ÷ GCD(a, b)
This formula shows the relationship between GCD and LCM. The product of two numbers always equals the product of their GCD and LCM.
Pro Tip:
When adding or subtracting fractions with different denominators, the LCM of the denominators gives you the least common denominator, making calculations simpler.
GCD and LCM are used in many practical situations beyond the classroom.
Common questions about GCD and LCM