Greatest common factor & divisor
Greatest Common Factor Calculator
Find the greatest common factor of two or more positive integers (also called the greatest common divisor); show your work with prime factorization or the Euclidean algorithm. Positive integers only.
By Jeff Beem
Updated
Numbers
Enter two or more positive integers separated by commas. The greatest common factor (GCF) is the largest positive integer that divides all of them.
Show your work
Each number as a product of primes. The GCF is the product of the lowest power of each prime common to all.
- 16=2^4
- 88=2^3 × 11
- 104=2^3 × 13
Common primes (min exponent):2^3 = 8
How to use this calculator
Enter comma-separated positive integers in Numbers (default 16, 88, 104). The results card shows the greatest common factor (GCF). Under Show your work, switch between Prime factorization method and Euclidean algorithm to see steps; both views match the headline value. Non-numeric text is ignored; zero and duplicates are skipped.
Reading your GCF result
The dark results card prints the greatest common factor (also called the greatest common divisor). Expand Show your work and switch between prime factorization and Euclidean views; both methods must agree on the final number.
Worked examples at the defaults
Pairwise Euclidean trace (two or more numbers)
What the parser ignores
Greatest Common Factor Calculator: GCF & GCD Solver
This calculator finds the greatest common factor (GCF), also called the greatest common divisor (GCD), of two or more positive integers using prime factorization or the Euclidean algorithm in Show your work. Positive integers only; runs locally in your browser.
What this calculator does
- Prime method:
- Euclidean (two numbers):
- Three or more:
How the math works
Limits of the model
Greatest Common Factor Calculator FAQ
Is GCF the same as GCD?
What is the Euclidean algorithm in Show your work?
Can you find GCF for three or more numbers?
How does the prime factorization method work for GCF?
Why only positive integers?
How is GCF used to simplify fractions?
What if I enter only one number?
Do both work methods always agree?
Mathematical Reference Note
Calculation Logic: This tool uses standard mathematical algorithms. While we strive for accuracy, errors in logic or user input can result in incorrect data.
Verification: Results should be cross-checked if used for important academic, professional, or personal calculations.
Standard Terms: This tool is provided free of charge and as-is. CalcRegistry provides no warranty regarding the accuracy or fitness of these results for your specific needs.