๐Ÿ”ข Arithmetic Solver

GCF Calculator

Find the Greatest Common Factor (GCF or HCF) of two or more numbers using the Euclidean algorithm.

Numbers to Find GCF

Enter values to calculate instant result

โ„น๏ธ Info
๐Ÿ’ก Try:
Verified Solution

---

๐Ÿ“–

How to Use & Educational Guide

In-depth guide for Greatest Common Factor (GCF / HCF) Calculator

Educational Overview

What Is the Greatest Common Factor (GCF)?

The Greatest Common Factor (GCF) is the largest positive integer that divides two or more numbers evenly with zero remainder. Depending on your region or textbook, this exact same value is also known as the Highest Common Factor (HCF) or the Greatest Common Divisor (GCD).

For example, the positive factors of 12 are 1, 2, 3, 4, 6, 12, and the positive factors of 18 are 1, 2, 3, 6, 9, 18. The shared common factors are 1, 2, 3, and 6โ€”making 6 the highest common factor. In GCF math, finding this value is the fastest way to simplify fractions to lowest terms and factor algebraic expressions.

How to Find the Greatest Common Factor (3 Methods)

If you want to learn how to find the GCF by hand, you can choose between three reliable methods depending on how large your numbers are:

  1. Listing Factors (Best for small numbers): Write out all positive factors of each number, circle every factor that appears in all lists, and pick the largest shared factor.
  2. Prime Factorization (Best for medium numbers): Decompose each number into prime factors, identify the primes shared by all numbers, and multiply them using their lowest exponents.
  3. Euclidean Algorithm (Best for large numbers): Repeatedly divide the larger number by the smaller number until the remainder reaches 0; the last non-zero remainder is your GCF.

Worked Examples: How to Find GCF Step by Step

Example 1: Find GCF of 48 and 72 Using the Euclidean Algorithm

For larger integers, the Euclidean algorithm avoids listing dozens of factors. Divide the larger number by the smaller number and carry each remainder forward:

Step 1: 72 = 48 × 1 + 24
Step 2: 48 = 24 × 2 + 0

GCF(48, 72) = 24

Because 24 is the last non-zero remainder before reaching 0, 24 is the greatest common factor of 48 and 72 (48 ÷ 24 = 2 and 72 ÷ 24 = 3).

Example 2: Find HCF of 36 and 60 Using Prime Factorization

Break each number into its prime factor decomposition first:

36 = 22 × 32
60 = 22 × 3 × 5

Both numbers share the prime factors 2 and 3. Taking the smallest exponent for each shared prime (22 and 31) gives:

GCF(36, 60) = 22 × 3 = 4 × 3 = 12

Example 3: Finding the GCF of Three Numbers (18, 30, and 42)

To find the highest common factor of three or more numbers, a prime factor must appear in every single number to be included:

18 = 2 × 32
30 = 2 × 3 × 5
42 = 2 × 3 × 7

GCF(18, 30, 42) = 2 × 3 = 6

Example 4: GCF of Algebraic Expressions (12xยฒ and 18x)

In algebra, find the numerical GCF of the coefficients and pair it with the lowest exponent of each shared variable:

GCF(12x2, 18x) = 6x  →  12x2 + 18x = 6x(2x + 3)

GCF vs. LCM: What Is the Difference?

Students often confuse the Greatest Common Factor (GCF) with the Least Common Multiple (LCM). Use this quick comparison table to keep them distinct:

Feature GCF / HCF / GCD LCM (Least Common Multiple)
Definition Largest number that divides all inputs evenly Smallest positive number divisible by all inputs
Size Relative to Inputs Less than or equal to the smallest input number Greater than or equal to the largest input number
Prime Exponent Rule Multiply shared primes with smallest exponents Multiply all primes with largest exponents
Example (12 and 18) 6 36

Common GCF Mistakes to Avoid

  • Stopping at a smaller common factor: For 24 and 36, 2, 3, 4, and 6 are all common factors, but only 12 is the greatest common factor.
  • Using the highest exponents in prime factorization: Taking the highest exponents calculates the LCM instead of the GCFโ€”always use the lowest shared exponents for GCF.
  • Including unshared prime factors: A prime factor must divide every number in the set to be part of the GCF.
  • Forgetting coprime numbers have a GCF of 1: If two numbers share no prime factors (such as 8 and 15), their GCF is always 1, never 0.

How to Use the AptCalc GCF, HCF & GCD Calculator

Using an online greatest common factor calculator, HCF calculator, or GCD calculator saves time when comparing multiple integers or large numbers:

  1. Enter two or more positive integers separated by commas or spaces.
  2. Click calculate to immediately view the exact GCF / HCF, along with the step-by-step prime factorization and factor list breakdown.

Mathematical accuracy verified by AptCalc Engine

Frequently Asked Questions (FAQs)

Answers to common questions about this calculator

What is the greatest common factor (GCF)?
The Greatest Common Factor (GCF) is the largest positive whole number that divides two or more numbers evenly with no remainder. For example, the GCF of 12 and 18 is 6.
Is GCF the same as HCF and GCD?
Yes. Greatest Common Factor (GCF), Highest Common Factor (HCF), and Greatest Common Divisor (GCD) are different names for the exact same mathematical value.
How do you find the GCF using prime factorization?
Write the prime factorization of each number, identify the prime factors that appear in every number, and multiply those shared primes using their smallest exponents.
How does the Euclidean algorithm find the GCF?
Divide the larger number by the smaller number, then replace the larger number with the smaller number and the smaller number with the remainder. Repeat until the remainder is 0; the last non-zero remainder is the GCF.
Can you find the GCF of three or more numbers?
Yes. Find the prime factorization of all numbers in the set, select only the prime factors shared by every single number, and multiply them using their lowest exponents.
Explore More Tools

Discover Other Calculation Suites

Browse our full ecosystem of precision calculation and conversion tools