Common Factor Calculator

Find common factors between two or more numbers. Free, fast, accurate — no signup, mobile-friendly, works in any browser

Number Input

Enter positive integers separated by commas (up to 10 numbers)

Options

Quick Reference

GCD: Largest number that divides all input numbers
LCM: Smallest number that all input numbers divide into
Property: For two numbers a, b: GCD(a,b) × LCM(a,b) = a × b
Coprime: Two numbers are coprime if GCD = 1

Numbers: 12, 18

Greatest Common Divisor (GCD)

6

Largest common factor

Least Common Multiple (LCM)

36

Smallest common multiple

Relationship Verification

GCD × LCM = 6 × 36 = 216
Product of numbers = 12 × 18 = 216
GCD × LCM = Product of numbers (fundamental relationship)

Prime Factorizations

12 =2^2 × 3
18 =2 × 3^2

All Factors

Factors of 12:
1, 2, 3, 4, 6, 12
Factors of 18:
1, 2, 3, 6, 9, 18

How it works

This calculator finds the factors two or more numbers share, and the greatest of them (the GCD or greatest common factor). The GCD is the largest number that divides all of them evenly — handy for simplifying fractions and ratios.

Greatest common divisor

GCD = largest number that divides every value with no remainder
a, b
the numbers to compare
GCD
greatest common factor

Worked example

  • Find the GCD of 12 and 18
  1. Factors of 12: 1,2,3,4,6,12
  2. Factors of 18: 1,2,3,6,9,18
  3. Shared: 1,2,3,6

GCD = 6.

Good to know

  • Dividing a fraction's top and bottom by their GCD reduces it to lowest terms in one step.
  • The Euclidean algorithm finds the GCD fast without listing all factors.
  • If the GCD is 1, the numbers are coprime (share no factor but 1).

Related Calculators