Greatest Common Factor Calculator

GCF calculator

Find the greatest common factor

Enter two or more integers. The largest factor that divides every number with no remainder will appear first, followed by the method.

Input

Numbers to compare

Separate values with commas, spaces, or new lines.

Use 2–100 integers. Signs are ignored when finding the positive GCF.2 entries
Try an example
Result

Greatest common factor

The answer stays prominent; the proof follows below.

GCF(24, 36)
12

12 divides all 2 entered integers exactly.

Method

See why the answer works

Prime factorization

Keep the factors shared by every number

  • 242³ × 3
  • 362² × 3²

Shared prime factors: 2² × 3 = 12.

Exact division check

Every quotient is a whole number, so every remainder is zero.

  • |24| ÷ 12 = 2No remainder
  • |36| ÷ 12 = 3No remainder
Euclidean algorithm steps

Reduce one pair at a time; the previous GCF is compared with the next number.

  1. gcd(24, 36) = 12
    24 = 36 × 0 + 2436 = 24 × 1 + 1224 = 12 × 2 + 0

Example result loaded. GCF(24, 36) = 12.

Important limitations

Greatest Common Factor Calculator is limited to the finite inputs, modes, and outputs stated for the Greatest common factor of integers method. Check integers, validation messages, the equation, and the stated display precision before relying on greatest common factor and integer count.

This formula passed its registered engineering tests and is published under an explicit site-owner policy authorization. No independent expert, QA, editorial, legal, or third-party review is claimed. Verify consequential results with a qualified professional.