GCF Calculator tool

GCF Calculator

A Greatest Common Factor (GCF) calculator, also called Greatest Common Divisor (GCD), finds the largest positive integer that divides both input numbers evenly.

What is a GCF calculator?

A GCF calculator finds the greatest common factor (same as GCD) of two positive whole numbers. That is the largest integer that divides both inputs with no remainder. The tool runs the Euclidean algorithm step by step and highlights factor lists so you can see shared divisors. Coprime pairs return 1, which tells you the fractions cannot shrink further. The block visual compares how many unit squares tile each side without gaps.

How to use the GCF Calculator

  1. Enter the first positive whole number.
  2. Enter the second positive whole number.
  3. Read the large GCF result at the top.
  4. Follow each Euclidean algorithm row.
  5. Compare green shared factors in both lists.

About this calculator

A Greatest Common Factor (GCF) calculator, also called Greatest Common Divisor (GCD), finds the largest positive integer that divides both input numbers evenly. GCF is used to simplify fractions, solve LCM problems, and in number theory.

The Euclidean algorithm efficiently finds GCF: repeatedly replace the larger number with the remainder of dividing the larger by the smaller until the remainder is 0.

How the math works

GCF(a,b)=GCF(b,  a mod b)GCF(a, b) = GCF(b,\; a \bmod b)
  • a,ba, b: The two integers
  •  mod \bmod: Remainder after division (modulo)
  • GCFGCF: Largest number that divides both a and b evenly

GCF example: 48 and 36

Enter 48 and 36. Euclidean steps: 48 = 1×36 + 12, then 36 = 3×12 + 0, so GCF = 12. Both numbers divide by 12: 48÷12 = 4 and 36÷12 = 3.

Factor lists show 1, 2, 3, 4, 6, 8, 12, 16, 24, 48 for 48 and 1, 2, 3, 4, 6, 9, 12, 18, 36 for 36. Shared factors include 12 as the largest. The fraction 36/48 simplifies to 3/4 after dividing top and bottom by 12. Tile problems that ask for the largest square size covering a rectangle without gaps also reduce to a GCF search.

Common uses

  • Simplify fractions by dividing by the GCF
  • Divide items into equal groups without leftovers
  • Solve problems requiring equal division
  • Find common factors in algebraic expressions

Frequently asked questions

What is the GCF of 36 and 48?

Using the Euclidean algorithm: GCF(48, 36) → GCF(36, 12) → GCF(12, 0) = 12. So GCF(36, 48) = 12. This means 12 is the largest number that divides both 36 (36÷12=3) and 48 (48÷12=4) without a remainder.

What is the GCF of 18 and 24?

GCF(18, 24) = 6. Both divide by 6: 18÷6 = 3 and 24÷6 = 4. The Euclidean chain is 24 = 1×18 + 6, then 18 = 3×6 + 0, stopping at 6.

How is GCF used to simplify 42/56?

GCF(42, 56) = 14. Divide numerator and denominator by 14 to get 3/4. Enter 42 and 56 in the calculator to see the same GCF and division check.

Can the GCF ever be larger than the smaller number?

No. Any common divisor must divide the smaller input, so the GCF is at most the smaller of the two numbers. When one number divides the other, the GCF equals the smaller number.

What is the GCF of 54 and 81?

GCF(54, 81) = 27. Both are multiples of 27: 54 = 2×27 and 81 = 3×27. Euclidean steps: 81 = 1×54 + 27, then 54 = 2×27 + 0, so the last non-zero remainder is 27.

What is the GCF of two prime numbers like 13 and 17?

GCF(13, 17) = 1 because distinct primes share no factor besides 1. The Euclidean algorithm ends on the first remainder 1, meaning the numbers are coprime.

Related calculators

Maintained by J Jaya Prakash · Last updated: October 2026