Enter Numbers
Results
Numbers vs LCM
Prime Factorization
| Number | Prime Factorization |
|---|
How GCF and LCM Are Calculated
The Greatest Common Factor (GCF), also called the Greatest Common Divisor, is the largest number that divides every number in the list without a remainder. The Least Common Multiple (LCM) is the smallest number that all the numbers in the list divide into evenly.
Why GCF takes the lowest power, and LCM the highest
GCF can only use as many copies of a shared prime factor as the number with the fewest has ā otherwise it wouldn't divide that number cleanly. LCM needs enough copies of each prime to cover whichever number needs the most ā otherwise that number wouldn't divide it evenly. That's why GCF is built from the lowest shared power of each prime, and LCM from the highest.
The shortcut formula for LCM
LCM(a, b) = (a Ć b) Ć· GCF(a, b)
Multiplying a Ć b counts every shared prime factor twice ā once from each number. Dividing by GCF(a, b) removes exactly one of those duplicate copies, leaving each prime factor at its highest needed power, which is the LCM. This avoids factoring both numbers into primes by hand.
Worked example
For the default list 12, 18, 30: their prime factorizations are 12 = 2² à 3, 18 = 2 à 3², and 30 = 2 à 3 à 5. The GCF takes the lowest power of each shared prime: 2¹ à 3¹ = 6. The LCM takes the highest power of every prime that appears: 2² à 3² à 5¹ = 180.
How to find GCF and LCM, step by step
- Enter two or more whole numbers, separated by commas.
- Click Calculate to see the Greatest Common Factor (GCF) and Least Common Multiple (LCM).
- Check the prime factorization breakdown to see exactly how the GCF and LCM were derived.
Common uses
- Finding a common denominator when adding or comparing fractions.
- Scheduling problems ā e.g. when two repeating events will next coincide.
- Simplifying ratios and dividing quantities into equal groups.