Maths notebook · number theory

GCF Calculator

A homework sheet asks for the greatest common factor of 48, 18 and 30, and wants the Euclidean steps written out. Enter two to ten positive integers to see the GCF, also called the GCD or HCF, with both a prime-factor method and the Euclidean algorithm. This free calculator runs in your browser; nothing is uploaded.

Find a greatest common factor

Separate values with commas or spaces. Each number must be a whole number from 1 to 1,000,000,000. GCF, GCD and HCF name the same result.

How it works

  1. Enter two to ten positive integers.
  2. Read the prime-factor method: keep the lowest power of every prime common to all of the numbers.
  3. Follow the Euclidean algorithm on successive pairs, using quotients and remainders until the last non-zero remainder appears.

Questions people ask

Is GCF the same as GCD or HCF?

Yes. GCF (greatest common factor), GCD (greatest common divisor) and HCF (highest common factor) are names for the same positive integer.

How does the Euclidean algorithm work?

Divide the larger number by the smaller one, replace the larger number with the smaller one and the smaller number with the remainder, and repeat until the remainder is 0. The last non-zero remainder is the GCF.

How many numbers can I enter?

Enter two to ten positive integers, each at most 1,000,000,000. Values can be separated by commas, spaces or new lines.

Does the calculator upload my numbers?

No. The calculation runs in your browser and nothing is uploaded.

Changelog

  • Nov 16, 2026: Added a GCF calculator with Euclidean and prime-factorization steps.

Keep learning

LCM Calculator · Fraction Calculator