Find the greatest common factor of two or more whole numbers — the largest integer that divides every number with no remainder. Three methods, every step shown, plus a GCF lookup chart for common pairs.
Two or more whole numbers, separated by commas or spaces.
Reading: 12, 18, 30
GCF × LCM = product of the numbers (for two inputs). Negatives use their absolute value.
The greatest common factor (GCF) of a set of whole numbers is the biggest number that divides all of them with nothing left over. It is the cornerstone of reducing fractions, splitting things into equal groups, and simplifying ratios — anywhere you need the largest shared piece.
The Euclidean algorithm is the fastest reliable method — it needs no factoring and never stalls, even on huge numbers. Four moves, repeated until the remainder is zero.
Take the two numbers and call the bigger one a and the smaller one b. The algorithm only ever shrinks them.
Divide a by b and note the remainder r. Ignore the quotient — only the remainder matters.
The old b becomes the new a, and the remainder becomes the new b. Divide again.
When the remainder hits 0, the last divisor you used is the GCF. For a list, fold that answer into the next number and repeat.
Listing factors, prime factorization, and the Euclidean algorithm all land on the same GCF. Watch each one solve GCF(24, 36) — pick whichever fits the numbers in front of you.
Far from a classroom curiosity, the GCF is the quiet workhorse behind clean fractions, fair groupings, and tidy ratios.
The building blocks the GCF draws on. Every common factor of two numbers is a factor each one already has — so the GCF lives in the overlap of these lists.
| Number | Prime factorization | All factors |
|---|---|---|
| 6 | 2 × 3 | 1, 2, 3, 6 |
| 8 | 2³ | 1, 2, 4, 8 |
| 9 | 3² | 1, 3, 9 |
| 12 | 2² × 3 | 1, 2, 3, 4, 6, 12 |
| 16 | 2⁴ | 1, 2, 4, 8, 16 |
| 18 | 2 × 3² | 1, 2, 3, 6, 9, 18 |
| 20 | 2² × 5 | 1, 2, 4, 5, 10, 20 |
| 24 | 2³ × 3 | 1, 2, 3, 4, 6, 8, 12, 24 |
| 30 | 2 × 3 × 5 | 1, 2, 3, 5, 6, 10, 15, 30 |
| 36 | 2² × 3² | 1, 2, 3, 4, 6, 9, 12, 18, 36 |
| 48 | 2⁴ × 3 | 1, 2, 3, 4, 6, 8, 12, 16, 24, 48 |
| 60 | 2² × 3 × 5 | 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60 |
A handful of facts make GCF problems quicker — and let you sanity-check an answer at a glance.
The greatest common factor and the least common multiple are bound together. Knowing one instantly gives you the other for a pair of numbers.
The errors that turn an easy GCF into a wrong answer.
Type any two numbers for an instant answer, or scan the most-searched pairs below. Each row is the worked GCF of a common pairing.
Both 12 and 18 are divisible by 6, and by no larger number.
Tap any pair to load it into the lookup above.

PEMDAS is the order you do math operations: Parentheses, Exponents, Multiplication and Division, then Addition and Subtraction. This guide explains the rule, the left-to-right tie-breaker, the famous traps, and PEMDAS vs BODMAS.

The laws of exponents let you multiply, divide, and nest powers without ever expanding them. Add the exponents to multiply, subtract to divide, multiply to raise a power to a power. This guide states each rule in one line and proves it with a worked example.

π is the ratio of any circle's circumference to its diameter, a constant that equals about 3.14159. This guide explains what the symbol means, lists its digits and approximations, and shows how to type π on Windows, Mac, HTML, and LaTeX.