Greatest Common Factor Calculator

Find the greatest common factor of multiple integers with Euclidean steps and reduced ratios.

Your numbers

Live

Instant result. Updates while you type.

Your result

Updated now
—

Enter your numbers.

GCF calculator with Euclidean steps and reduced ratio

Paste 2 to 20 integers. HitEquals returns their greatest common factor, reduced ratio, common divisors and the successive Euclidean steps.

Editorial checkMulti-value Euclidean reduction, zero handling and factor audit tested against OpenStax definitions. Flagship guide, worked checks and page-specific explanatory diagram reviewed September 13, 2026.Updated September 13, 2026Read the publication standard

Inputs used by this calculator

Greatest Common Factor Calculator uses the fields below. The starting values reproduce the page example; replace them with values from the same units and time period before using the result.

Field-by-field reference for Greatest Common Factor Calculator.
InputStarting exampleAccepted valueHow it is used
Whole numbers separated by commas, spaces or lines84, 126, 210Text or a list in the format shownSupplies the whole numbers separated by commas, spaces or lines quantity used by the published equation or result breakdown.
The GCF is the largest divisor shared by every inputFactor overlap explains the answer; the Euclidean algorithm finds it efficiently.factors of 84factors of 12642greatest shared factor
The GCF is the largest divisor shared by every inputFactor overlap explains the answer; the Euclidean algorithm finds it efficiently.

What GCF means

The greatest common factor, also called greatest common divisor, is the largest positive integer that divides every input without remainder.

Euclidean algorithm

Divide and keep the remainder. Replace the pair with the divisor and remainder until the remainder is zero.

GCD(a,b)=GCD(b,a mod b)

More than two integers

Find the GCF of the first pair, then combine that result with each remaining input.

Worked ratio example

84, 126 and 210 share 42. Dividing every term by 42 yields the simplest whole-number ratio 2:3:5.

Zeros and signs

Absolute values determine divisibility. GCD(a,0)=|a|, while an all-zero list has no positive greatest divisor in this tool.

Uses of a common factor

GCF reduces fractions and ratios, groups objects into equal largest sets and factors common coefficients from expressions.

GCF by listing factors versus Euclid

Listing factors is intuitive for small numbers, but the Euclidean algorithm is faster for large inputs because it repeatedly replaces a pair with the divisor and remainder. Both methods identify the same largest positive shared divisor.

GCF, LCM and fraction reduction

GCF divides quantities down to their simplest shared scale. LCM moves upward to the smallest shared multiple. To reduce a fraction, divide numerator and denominator by their GCF; to add fractions with different denominators, an LCM can supply a common denominator.

Euclidean example for 126 and 84

The last nonzero remainder is 42.
DivisionQuotientRemainder
126÷84142
84÷4220
ResultGCF 42

GCF and LCM answer different questions

Both use divisibility but move in opposite directions.
MeasureDefinitionExample for 12 and 18
GCFLargest shared divisor6
LCMSmallest positive shared multiple36
Product checkGCF×LCM=|a×b| for two nonzero integers6×36=12×18

Frequently asked questions

Is GCF the same as GCD?

Yes for integers.

What is the GCF of 84 and 126?

It is 42.

Can the GCF be negative?

No. This page reports the conventional nonnegative divisor.

Can I include zero?

Yes, provided at least one number is nonzero.

How does GCF reduce a ratio?

Divide every term by the shared GCF.

Can I enter decimals?

No. GCF is defined here for whole integers.

What is the difference between GCF and LCM?

GCF is the largest common divisor; LCM is the smallest positive common multiple.

How does GCF simplify a fraction?

Divide both numerator and denominator by their GCF.

What to keep in mind

Signs are ignored and zeros are supported when at least one input is nonzero. Each absolute value must be at most one trillion; enter 2 to 20 integers.

Results are rounded for display in US format, with money in dollars and cents; CSV exports keep full calculation precision. This is a calculation summary, not an official certificate.

Sources and references

Manage privacy choices