Math & StatisticsFormula-based · Runs in your browser

Greatest Common Factor Calculator

Calculate the Greatest Common Factor (GCF/GCD) of two or more numbers.

Loading calculator…

Saved locally, explained clearly

Drafts, calculations, scenarios, and workflow progress stay in this browser unless you export them.

Opening local database…

Calculation steps

Follow what happened from the selected formula to the displayed answer.

Show substituted values and intermediate working
Calculate current inputs to see the working.
  1. 1

    Formula selected

    The calculator uses the following formula or method.

    GCF is found with the Euclidean algorithm, extended across the full list.

  2. 2

    Values entered

    Your values are placed into the calculation.

    Enter values to see what is used in this step.

  3. 3

    Result calculated

    The formula or method produces the following result values.

    Results will appear after a successful calculation.

  4. 4

    Answer formatted

    Displayed values are rounded and formatted using each output’s configured precision.

Scenario comparison

Save working scenarios, then select two or three to compare. Formula versions and inputs remain visible.

No scenarios saved for this calculator yet.

Recent calculations

Successful calculations are retained locally according to your privacy settings.

No local history for this calculator yet.

Data and privacy

How it works

Calculate the Greatest Common Factor (GCF/GCD) of two or more numbers.

Input query strings and outputs

Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.

Input query strings

1
  • ?numbers= Enter numbers (comma separated)

    Text · Optional · Default: 24, 36, 48

Outputs

1
  • result Result

    Text · Primary output

result contains the calculator’s complete rendered result area, including its visible result cards, tables, charts, and messages.

Find the largest number that divides a set of integers

Description

The Greatest Common Factor (GCF) Calculator—also known as the Greatest Common Divisor (GCD) or Highest Common Factor (HCF) tool—identifies the largest positive integer that divides each of the numbers in a given set without leaving a remainder. This calculation is a fundamental step in simplifying fractions, find common denominators, and solving various algebraic problems.

Inputs

  • Numbers: A list of two or more integers separated by commas or spaces (e.g., 24, 36, 48).

Outputs

  • GCF: The largest shared divisor for the entire set of numbers.

Chart

  • N/A: This tool provides a direct numeric result.

“Good to Know”

  • Simplifying Fractions: To reduce a fraction to its simplest form, find the GCF of the numerator and denominator and divide both by that number.
  • Euclidean Algorithm: This calculator uses an efficient recursive method called the Euclidean Algorithm to find the GCF, which works even for very large numbers.
  • Relatively Prime: If the GCF of two numbers is 1, those numbers are “relatively prime.”

Examples

Example 1: Basic Pair

  • Input: 24, 36
  • Output: 12

Example 2: Multiple Numbers

  • Input: 12, 18, 24
  • Output: 6

Example 3: Coprime Set

  • Input: 7, 13
  • Output: 1
Sources
  • No external reference is listed for this calculator. Its formula and variable definitions are shown above.
Limitations
  • Results depend on the selected method and input assumptions. Displayed decimals may be rounded; retain appropriate precision for later calculations.