Arithmetic & Factors
Factor trees included

GCF Calculator

Enter two, three or four whole numbers and see the GCF emerge from factor trees and prime factorizations — not just an answer, but the whole argument for it.

Your numbers

2 numbers recognised

Two to four whole numbers between 1 and 100,000.

Works instantly in your browser — nothing is uploaded, and the URL keeps your numbers so you can share the exact worked example.

Why the smallest exponent wins

Take 36 = 2² × 3² and 48 = 2⁴ × 3. Any common factor can only use primes both numbers have, and it cannot use a prime more times than the number that has it fewest — otherwise it would not divide that number. So the GCF takes 2² (not 2⁴) and 3¹ (not 3²): 2² × 3 = 12.

Where the GCF is useful

Reducing fractions (divide top and bottom by the GCF), splitting things into equal groups, tiling a rectangle with the largest possible square tiles, and finding common denominators all lean on the GCF. It is also the engine inside the simplify calculator linked below.

Frequently asked questions