GCF and LCM Calculator
Enter two or more whole numbers separated by commas or spaces.
How it works
Factor each number
Write each number as a product of primes.
GCF
Multiply the primes they all share, each to the lowest power it appears with.
LCM
Multiply every prime that appears, each to the highest power it appears with.
Common questions
Is GCF the same as GCD or HCF?
Yes. Greatest common factor, greatest common divisor and highest common factor are three names for the same thing.
When do I need the LCM?
Most often to find a common denominator when adding or subtracting fractions.
More free calculators
Quadratic formulaRoots, discriminant and vertexSlope calculatorSlope, line equation, distance, midpointPrime factorizationPrime factors and all divisorsPercentage calculatorPercent of, percent change, reverse percentFraction calculatorAdd, subtract, multiply, divide, simplifyScientific calculatorTrig, logs, powers and rootsMean, median, modeAverage, range and sum of a data setFinal grade calculatorWhat you need on the final exam