BUILDING & PLANNING · FIELD TOOL

GCF Calculator

The greatest common factor is the largest number that divides every one of your numbers exactly. For 24, 36 and 60 it is 12: the primes all three share, at their lowest power, are 2² × 3. On site it gives the largest square tile, panel or equal piece that fits two or more lengths with no cuts or waste.

Inputs

Results update as you type.

Numbers
Equal pieces of the GCFEach length cut into equal pieces of 12 (GCF)242 pcs363 pcs605 pcsmyconstructioncalculator.com
Diagram updates as you type.

Results

Check the working before you order.

Greatest common factor (GCF / HCF)
12
Common factors1, 2, 3, 4, 6, 12
24 in prime factors2³ × 3
36 in prime factors2² × 3²
60 in prime factors2² × 3 × 5
GCF in prime factors2² × 3
Least common multiple (LCM)360
Price This optional: add your own prices

Your prices are remembered on this device only.

Send Order WhatsApp, SMS or email to your supplier
Include
Working
  1. Prime factors: 24 = 2³ × 3; 36 = 2² × 3²; 60 = 2² × 3 × 5
  2. GCF = only the primes in every number, at their lowest power = 2² × 3 = 12
  3. Euclid's method (divide, keep the remainder, repeat until it is 0): 36 = 1 × 24 + 12; 24 = 2 × 12 + 0; 60 = 5 × 12 + 0. The last divisor is 12.
  4. Check: 24 ÷ 12 = 2, 36 ÷ 12 = 3, 60 ÷ 12 = 5 (all whole numbers)

Results are estimates for planning and material ordering only. They are not a substitute for structural design or approval by a qualified engineer. Read the full disclaimer.

Formula

Write each number as prime factors
GCF = only the primes in every number, at their lowest power
Euclid: divide, keep the remainder, repeat; the last divisor is the GCF
Two numbers: GCF = a × b ÷ LCM

Worked Example

Find the GCF of 24, 36 and 60:

  1. 24 = 2³ × 3, 36 = 2² × 3², 60 = 2² × 3 × 5
  2. Primes in all three: 2 (lowest power 2²) and 3 (lowest power 3¹); 5 is only in 60
  3. GCF = 2² × 3 = 12
  4. Check: 24 ÷ 12 = 2, 36 ÷ 12 = 3, 60 ÷ 12 = 5, all whole numbers

GCF on Site

Use Numbers GCF Meaning
Square panels in a room 360 cm and 480 cm 120 cm Largest square that fits both sides: 3 × 4 = 12 panels
Pieces from two boards 240 cm and 300 cm 60 cm Longest equal piece with no offcut: 4 + 5 = 9 pieces
Posts along two sides 12 m and 18 m 6 m Widest equal spacing with a post at every corner; 3 m or 2 m also fit
Simplifying a ratio 300 : 450 150 Divide both by 150: 2 : 3

GCF of Common Pairs

Numbers GCF LCM
8 and 12 4 24
12 and 18 6 36
15 and 25 5 75
16 and 24 8 48
18 and 24 6 72
20 and 30 10 60
24 and 36 12 72
36 and 48 12 144
48 and 18 6 144
60 and 90 30 180
120 and 180 60 360
360 and 480 120 1,440

Frequently Asked Questions

How do you find the greatest common factor?

Write each number in prime factors, then multiply only the primes that appear in every number, each at its lowest power. 24 = 2³ × 3, 36 = 2² × 3² and 60 = 2² × 3 × 5, so the GCF is 2² × 3 = 12.

What is the difference between GCF, HCF and GCD?

There is none. Greatest common factor (GCF), highest common factor (HCF, the usual term in the UK and India) and greatest common divisor (GCD) all mean the same number.

How is the GCF used in construction?

To find the largest equal size that fits several lengths with no waste. A 3.6 × 4.8 m room takes whole 1.2 m square panels, because the GCF of 360 and 480 cm is 120 cm: 3 × 4 = 12 panels.

What is Euclid's method?

Divide the larger number by the smaller and keep the remainder, then divide the last divisor by that remainder, until the remainder is 0. For 48 and 18: 48 = 2 × 18 + 12, 18 = 1 × 12 + 6, 12 = 2 × 6 + 0, so the GCF is 6.

What is the GCF of 12 and 18?

6. 12 = 2² × 3 and 18 = 2 × 3², and the primes they share, at their lowest power, are 2 × 3 = 6.

What does a GCF of 1 mean?

The numbers share no factor except 1; they are called coprime, for example 8 and 15. Equal whole pieces then fit both only if each piece is 1 unit long.

Embed This Calculator on Your Website

Free for any website: contractors, suppliers, blogs and schools. Paste this code where you want the calculator to appear. It works in WordPress (Custom HTML block), Wix, Squarespace and plain HTML.

Preview
All Building & Planning Calculators