GCF Calculator
Type two or more whole numbers to get their greatest common factor as you type. Then switch between three methods to see the working: prime factors, listing factors, or the Euclidean algorithm step by step.
- No account needed
- Free, no limits
- Nothing is uploaded
How it works
- 01
Type the numbers
Two to ten positive whole numbers, one in each box, such as 48 and 180.
- 02
Read the GCF
The greatest common factor appears at once, with what it means: the largest number that divides each of them exactly.
- 03
Pick a method
See the working by prime factors, by listing factors, or by the Euclidean algorithm, whichever your class uses.
One answer, three methods
The greatest common factor, step by step
The greatest common factor of two or more whole numbers is the largest whole number that divides each of them with no remainder. It is called the GCF, the greatest common divisor (GCD) in many textbooks, and the highest common factor (HCF) in British and Indian schools: all three names mean the same number. For 48 and 180, the factors they share are 1, 2, 3, 4, 6 and 12, so the GCF is 12.
Prime factors: write each number as a product of primes, then multiply the primes they all share, each with its lowest power. 48 = 2⁴ × 3 and 180 = 2² × 3² × 5; both have 2² and 3, so the GCF is 2² × 3 = 12. Listing factors: write every factor of each number and pick the largest one in every list; it is clear for small numbers and slow for big ones. Euclidean algorithm: divide the larger number by the smaller and keep the remainder, then divide the last divisor by that remainder, until the remainder is 0: 180 = 3 × 48 + 36, 48 = 1 × 36 + 12, 36 = 3 × 12 + 0, so the GCF is 12. It works quickly even for numbers with 30 digits.
With more than two numbers, the GCF of all of them is found two at a time: the GCF of the first two, then the GCF of that and the third, and so on. If the only common factor is 1, the numbers are coprime (relatively prime), like 17 and 31, even when neither is prime itself, like 8 and 15. A common mistake is to take the highest powers of the primes: that gives the least common multiple, not the GCF.
The calculator takes positive whole numbers up to 30 digits; prime factors are shown for numbers up to 18 digits and factor lists for numbers up to 100,000. Zero, negative numbers and decimals get a message instead of an answer, because school definitions of the GCF use positive whole numbers. Everything runs in your browser and nothing is uploaded.
FAQ
Questions, answered
More free tools
Maths & science
LCM Calculator
The least common multiple, with the working.

Maths & science
Prime Factorization Calculator
Primes, factor tree and every factor.

AI study tools
AI Math Solver
Type or photograph a problem, get the steps and the answer.

AI study tools
AI Homework Helper
A homework question in, every step explained.

Keep reading
Go deeper into the science
Maths revision that sticks
PocketNote turns your maths notes into flashcards and practice questions you can study anywhere.