Common Factor Calculator
Find the Greatest Common Factor (GCF) and Least Common Multiple (LCM) of multiple numbers using prime factorization. Shows all common factors.
GCF (Greatest Common Factor)
6
LCM (Least Common Multiple)
72
Common Factors: 1, 2, 3, 6
12 = 2 × 2 × 3
18 = 2 × 3 × 3
24 = 2 × 2 × 2 × 3
About the Common Factor Calculator
A common factor calculator finds the Greatest Common Factor (GCF, also called Greatest Common Divisor or GCD) and the Least Common Multiple (LCM) of two or more numbers using prime factorization — the fundamental number theory operations underlying fraction simplification, least common denominators, and algebraic expressions. The GCF is the largest number that divides evenly into all given numbers; the LCM is the smallest number that all given numbers divide evenly into. These calculations appear constantly in arithmetic: simplifying fractions (divide numerator and denominator by GCF), adding fractions (find LCM of denominators as common denominator), scheduling problems (when will two repeating cycles coincide again?), and algebra (factoring polynomials). Our calculator handles two or more numbers simultaneously, shows the prime factorization of each input, displays all common factors (divisors shared by all inputs), computes GCF and LCM, and provides the mathematical relationships connecting them. The relationship GCF(a,b) × LCM(a,b) = a × b is a powerful shortcut that the calculator verifies for two-number inputs.
Formula
GCF = product of shared primes at minimum power | LCM = product of all primes at maximum power | GCF × LCM = a × b
How It Works
GCF using prime factorization: factorize each number into primes. GCF = product of all prime factors at their minimum exponent across all numbers. LCM = product of all prime factors at their maximum exponent. Example: GCF and LCM of 12, 18, 24. Factorizations: 12 = 2² × 3; 18 = 2 × 3²; 24 = 2³ × 3. GCF = 2^min(2,1,3) × 3^min(1,2,1) = 2¹ × 3¹ = 6. LCM = 2^max(2,1,3) × 3^max(1,2,1) = 2³ × 3² = 72. Verify: common factors of 12, 18, 24 are: 1, 2, 3, 6 (divisors of GCF = 6). Euclidean algorithm (for two numbers): GCF(18,12) = GCF(12,6) = GCF(6,0) = 6. This is significantly faster for large numbers than prime factorization. LCM(a,b) = a × b / GCF(a,b).
Tips & Best Practices
- ✓Adding fractions with different denominators: find LCM of all denominators as the common denominator. 1/4 + 1/6: LCM(4,6) = 12. Convert: 3/12 + 2/12 = 5/12. No further simplification since GCF(5,12) = 1.
- ✓Simplifying fractions: divide numerator and denominator by GCF. To simplify 36/48: GCF(36,48) = 12. 36/12 = 3; 48/12 = 4. Simplified: 3/4. If GCF = 1, the fraction is already in lowest terms.
- ✓Real-world LCM application — scheduling: a bus arrives every 12 minutes; a train every 18 minutes. Both arrive together at time 0. LCM(12,18) = 36 minutes. They next arrive together after 36 minutes — and every 36 minutes thereafter.
Who Uses This Calculator
Students simplifying fractions and finding common denominators for fraction arithmetic. Algebra students factoring expressions that require identifying GCF of coefficients and variables. Teachers generating examples and solutions for number theory curriculum. Software developers implementing fraction classes and rational number arithmetic. Anyone solving scheduling or cycle-coincidence problems.
Optimised for: USA · UK · Canada · Australia · Calculations run in your browser · No data stored
Frequently Asked Questions
How do I find the GCF (Greatest Common Factor)?
Method 1: list all factors of each number and find the largest shared factor. Method 2 (Euclidean algorithm): GCF(a,b) = GCF(b, a mod b). Example: GCF(12,18): 12 mod 18... GCF(12,18) = GCF(18,12) = GCF(12,6) = GCF(6,0) = 6.
How do I find the LCM (Least Common Multiple)?
LCM(a,b) = (a × b) / GCF(a,b). Example: LCM(12,18) = (12 × 18) / 6 = 216 / 6 = 36. For fractions: LCM of denominators is the common denominator needed for addition/subtraction.
What is the difference between GCF and LCM?
GCF is the largest number that divides both evenly. LCM is the smallest number that both divide into evenly. GCF(12,18) = 6; LCM(12,18) = 36. Note: GCF × LCM = product of the original numbers: 6 × 36 = 216 = 12 × 18.