Divisor Calculator (Factors, Prime Factorization, GCD & LCM with Steps)

List every factor of a number with its count and sum, get the prime factorization and a prime check, and find the GCD and LCM of several numbers with worked steps.

72 = 23 × 32

72 is composite. Its smallest prime factor is 2.

Number of divisors12(3+1) × (2+1) = 12
Sum of divisors195
Prime factorization23 × 32
Divisors (12)
  • 1
  • 2
  • 3
  • 4
  • 6
  • 8
  • 9
  • 12
  • 18
  • 24
  • 36
  • 72
Factor ladder (repeated division)

Divide by the smallest prime each time until the quotient is prime. Multiply the left column and the last number to get back the original.

Factor pairs
  • 1 × 72
  • 2 × 36
  • 3 × 24
  • 4 × 18
  • 6 × 12
  • 8 × 9

Factors and prime factorization

Enter a whole number from 1 to one trillion (10¹²) to see all of its divisors in order, how many there are, their sum, its prime factorization and whether it is prime. For 72 you get 72 = 2³ × 3², twelve divisors (1, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36, 72) and a divisor sum of 195. Factor pairs such as 2 × 36 and 3 × 24 are listed too.

Counting divisors from the exponents

Add 1 to each exponent in the prime factorization and multiply. For 72 = 2³ × 3² that is (3+1) × (2+1) = 12; for 360 = 2³ × 3² × 5 it is 4 × 3 × 2 = 24, with a divisor sum of 1,170. One trillion = 2¹² × 5¹² has 13 × 13 = 169 divisors.

The factor ladder

The repeated-division ladder (sometimes called the "upside-down division" method) divides by the smallest prime each time until the quotient is prime: 72 → 36 → 18 → 9 → 3. Multiply the primes on the left with the last number to get 72 back.

GCD and LCM with working

Enter 2–10 numbers separated by commas. The Euclidean algorithm is shown step by step — for 1071 and 1029: 1071 = 1029 × 1 + 42, 1029 = 42 × 24 + 21, 42 = 21 × 2 + 0, so the GCD is 21 and the LCM is 1071 × 1029 ÷ 21 = 52,479. A common-factor ladder shows the same result another way: 12, 18 and 30 share 2 and then 3, leaving 2, 3 and 5, so the GCD is 6 and the LCM is 2 × 3 × 2 × 3 × 5 = 180. For simplifying fractions with these numbers, continue in the fraction calculator.