GCF of 12 and 40

The greatest common factor of 12 and 40 is 4 — the largest number that divides both.

GCF is 4.

GCF of 12, 404
LCM120
Relatively prime?No

Step by step

  1. Prime factorize each number (table). The GCF uses each prime that appears in all of them, with its smallest power: 22 = 4
  2. Check with the Euclidean algorithm on 12 and 40:
    40 = 3 × 12 + 4
    12 = 3 × 4 + 0
    The last non-zero remainder is 4.
  3. Listing method: factors of 12: 1, 2, 3, 4, 6, 12; 40: 1, 2, 4, 5, 8, 10, 20, 40. The largest one they share is 4.
Numberpower of 2power of 3power of 5Prime factorization
1221022 × 3
4030123 × 5

Quick answer

12 = 22 × 3, 40 = 23 × 5. The primes they share, at the lowest power, multiply to 4.

The LCM of 12 and 40 is 120. Simplify the fraction 12/40: divide by 4 → 3/10.

Related

factors of 12, factors of 40; GCF calculator for any numbers.

GCF of 12 and 40: questions

What is the GCF of 12 and 40?

4.

How do you find the GCF of 12 and 40?

Prime factorize: 2² × 3 and 2³ × 5; multiply the shared primes at their lowest power.