Homeโ€บ Math & Scienceโ€บ GCF & LCM Calculator

GCF & LCM Calculator

Find the Greatest Common Factor (GCF, also called GCD) and Least Common Multiple (LCM) of two or more integers. Handles negative numbers and lists.

Inputs

Two or more integers.
GCF (Greatest Common Factor)
โ€”
LCM (Least Common Multiple)
โ€”
Prime factors of GCF
โ€”

About GCF & LCM Calculator

GCF vs LCM

GCF: largest number that divides all inputs evenly. LCM: smallest number that all inputs divide into evenly. GCF(a,b) ร— LCM(a,b) = a ร— b for two numbers.

How itโ€™s calculated

GCF uses the Euclidean algorithm: repeatedly replace (a, b) with (b, a mod b) until b = 0; the remaining a is the GCF. LCM is then computed from GCF using the identity above.

Where you use these

Simplifying fractions (divide by GCF). Finding common denominators (LCM). Scheduling repeating events. Cryptographic algorithms (RSA, modular arithmetic).