Greatest Common Factor CalculatorFree online math calculator — instant results, no sign-up
GCF of a list of integers.
Sign in to save results and favorites.
About the Greatest Common Factor Calculator
The Greatest Common Factor (GCF) Calculator determines the largest positive integer that divides evenly into every number in a user-provided list. It is commonly used by students, educators, and engineers to simplify fractions, factor algebraic polynomials, or solve scheduling and partitioning problems.
- Numbers
- A comma- or space-separated list of integers (for example, 24, 36, 60) for which you want to find the greatest common divisor.
Formula and method
GCF(n₁, n₂, n₃, ...) = gcd(gcd(n₁, n₂), n₃, ...) Where gcd(a, b) = gcd(b, a mod b) until b = 0, with gcd(a, 0) = |a|
- n₁, n₂, ...Individual integer values supplied in the input list
- gcd(a, b)The greatest common divisor of two integers, calculated via the Euclidean algorithm
- a mod bThe integer remainder after dividing a by b
The tool parses the input text into an array of integers and applies an iterative reduce function. It computes the greatest common divisor of the first two numbers using the Euclidean algorithm, then computes the GCD of that result with the next number, continuing through the entire list to find the overall GCF.
Worked example
These are the calculator's starting values and the results it actually produces for them.
Inputs
- Numbers24, 36, 60
Results
- GCF12
How to use the Greatest Common Factor Calculator
- 1Parse the input string into a list of individual integer values.
- 2Calculate the greatest common divisor of the first two numbers using Euclidean division (repeated remainder reduction).
- 3Take the resulting divisor and calculate its greatest common divisor with the next integer in the list.
- 4Repeat this reduction until all integers have been processed, returning the final common divisor as the GCF.
Reading your result
The result displays the highest integer that divides each input value with no remainder. For instance, an output of 12 for the inputs 24, 36, and 60 indicates that 12 is the largest integer factor shared by all three numbers.
Limitations
The calculator requires valid non-zero integer values; non-numeric entries or floating-point decimals are parsed or truncated to integer values. It calculates the greatest common factor only and does not output the least common multiple (LCM) or individual prime factor trees.
Common questions
What is the difference between GCF and GCD?+
There is no difference; Greatest Common Factor (GCF), Greatest Common Divisor (GCD), and Highest Common Factor (HCF) refer to the exact same mathematical concept.
What happens if two numbers share no common factors other than 1?+
The calculator returns 1. Numbers that have a greatest common factor of 1 are called relatively prime or coprime.
Can negative numbers be included in the list?+
Yes. The Euclidean algorithm operates on magnitudes, and the greatest common factor is always expressed as a positive integer.
Does the calculator save my information?+
Calculations run in your browser. While signed in, inputs and results are automatically recorded in account history; saving a result creates a separate saved record.
Further reading
You might also like
Scientific Calculator
Full scientific calculator with trig, logs, powers, memory and degree/radian modes.
Fraction Calculator
Add, subtract, multiply and divide fractions.
Percentage Calculator
Percent of a number, what percent, and percent change.
Random Number Generator
Generate random integers in a range.
Percent Error Calculator
Error between an observed and true value.
Exponent Calculator
Raise a base to any power.
Results are estimates for informational purposes and are not financial, medical or legal advice.