Reducing fraction: 56/84
GCF(56, 84): 84 mod 56 = 28 → GCF(56, 28). 56 mod 28 = 0 → GCF = 28. Reduced fraction: 56/84 = 2/3.
Find the Greatest Common Factor (also called HCF or GCD) - the largest positive integer that divides every number in your list without a remainder. Essential for reducing fractions and simplifying ratios.
Enter two or more positive integers
GCF / HCF / GCD
12
Greatest common factor
LCM (also shown for reference)
72
Prime factorisation
一部のコンテンツはまだ英語で表示されます。
GCF (Greatest Common Factor), also called HCF (Highest Common Factor) or GCD (Greatest Common Divisor), is the largest integer that divides every number in a set without remainder. It's the inverse problem to LCM and equally fundamental to number theory. The most common use is reducing fractions: 18/24 reduces to 3/4 because GCF(18, 24) = 6. In Class 5-10 mathematics in India, GCF/HCF problems appear in nearly every chapter dealing with numbers, fractions, ratios, and prime factorisation.
Real-world applications go beyond schoolwork: dividing land into the largest equal-sized plots, cutting cloth into the most pieces of equal length, finding the largest box that can pack different-sized items, cryptographic key generation (RSA needs coprime numbers, established via GCF), and music theory (rhythm subdivision). This calculator uses the Euclidean algorithm - invented around 300 BCE by Euclid - which is among the oldest and most elegant algorithms still in widespread use. It computes GCF in logarithmic time, so even huge numbers (hundreds of digits) finish in milliseconds.
Enter two or more positive integers separated by commas.
See the GCF and prime factors of each number.
The Euclidean algorithm computes GCD(a, b) by repeatedly replacing the larger number with the remainder of dividing it by the smaller. For more numbers, fold pairwise: GCD(a, b, c) = GCD(GCD(a, b), c).
Euclidean: GCD(a, b) = GCD(b, a mod b) until b = 0 GCD(a, 0) = a
Euclidean algorithm: GCD(a, b) = GCD(b, a mod b) until b becomes 0; then the remaining a is the answer. Example for GCD(48, 18): 48 mod 18 = 12 → GCD(18, 12). 18 mod 12 = 6 → GCD(12, 6). 12 mod 6 = 0 → answer 6. The algorithm halves the larger number roughly every two steps, so it runs in O(log n) time - extraordinarily fast even for very large numbers.
Prime factorisation method (taught in schools): factor each number into primes, then multiply the common prime powers. 48 = 2⁴ × 3; 18 = 2 × 3². Common: 2¹ × 3¹ = 6. GCF = 6. This method is intuitive for small numbers but slow for large ones (factorisation is hard for big integers). The Euclidean algorithm is preferred for computation; prime factorisation is preferred for understanding.
For more than two numbers, GCF folds: GCF(a, b, c) = GCF(GCF(a, b), c). Order doesn't matter. GCF and LCM satisfy the beautiful identity: LCM(a, b) × GCF(a, b) = a × b. Knowing one gives you the other immediately for two-number cases. Numbers with GCF = 1 are called coprime or relatively prime - they share no common factor other than 1 (e.g., 8 and 15 are coprime).
GCF(56, 84): 84 mod 56 = 28 → GCF(56, 28). 56 mod 28 = 0 → GCF = 28. Reduced fraction: 56/84 = 2/3.
Need GCF(60, 84) = 12. Largest square plot side: 12m. Plots fit: 5 × 7 = 35 squares. Common Indian agricultural land-division problem.
GCF(17, 100) = 1, so 17 is coprime to 100. Useful in modular arithmetic and RSA key generation where coprimality is required for the encryption to work.
Yes. GCF (greatest common factor), GCD (greatest common divisor), HCF (highest common factor) all mean the same thing.
Divide numerator and denominator by their GCF. Example: 18/24 - GCF is 6, so reduced fraction is 3/4.
12. Both 24 = 2³ × 3 and 36 = 2² × 3² share 2² × 3 = 12.
GCF is 1. Numbers that share no common factor greater than 1 are called coprime - like 8 and 15.
Very. It runs in O(log min(a, b)) steps. Even for huge numbers (hundreds of digits) it finishes in milliseconds.
RSA key generation requires finding numbers coprime to a known value (φ(n)). Euclidean algorithm checks coprimality and the extended version finds modular inverses.
From simple percentages to scientific notation, statistics, geometry and big-number arithmetic - every common math problem you'd reach for a calculator for, runs in your browser with no installs. The fraction calculator preserves exact rationals, the big-number calculator uses BigInt for hundreds of digits without precision loss, and the scientific calculator's expression evaluator is a hand-written shunting-yard parser (no eval) that supports trig, log, factorial and parentheses.
If you're a student, double-check your work without paying for a graphing calculator. If you're a professional, use these tools as a sanity check on spreadsheet formulas. Every result is shown alongside its formula and inputs, so the math is always auditable.
The GCF Calculator is part of the Math suite on Online Calculator Tools, alongside 6 related calculators. All tools share the same UI patterns, the same privacy-first rendering (nothing is sent to a server), and the same commitment to showing the formula and assumptions behind every result.