This calculator finds every common factor of two, three or four whole numbers, works out the greatest common factor (GCF, also called the HCF), and calculates the least common multiple (LCM), all with the full working shown. Enter your numbers into the first two fields, plus a third and fourth if you need them, and the tool lists the factors of each number, highlights the ones they share, and returns the greatest common factor at the top of the results. You also get a count of how many common factors there are, the complete list of shared divisors, and the least common multiple, worked out from the relationship between GCF and LCM. Because the first two numbers are often a fraction, the calculator also shows that fraction simplified by dividing both the numerator and denominator by their GCF. Underneath the results, a step-by-step section walks through the Euclidean algorithm calculation used to reach the GCF, so you can see exactly how the answer was reached rather than just the final number. This makes the tool useful for simplifying fractions, finding a common denominator when adding or subtracting fractions, factoring algebraic expressions, or splitting a quantity into the largest possible equal groups. It works with positive whole numbers only, rounding any decimal entries to the nearest integer, and handles numbers up to 10,000,000 with exact results regardless of size.
A factor of a number is any whole number that divides it evenly with no remainder. For example, the factors of 12 are 1, 2, 3, 4, 6, and 12, because each of these divides into 12 without leaving a remainder. A common factor of two or more numbers is a factor that appears in the factor list of every one of those numbers. The greatest common factor (GCF) is simply the largest of these shared factors.
The GCF is also called the highest common factor (HCF) or greatest common divisor (GCD) depending on the country and context. In New Zealand, both GCF and HCF are used in mathematics education.
This calculator uses the Euclidean algorithm to find the GCF of the numbers you enter. Once the GCF is known, every divisor of the GCF is also a common factor of the original numbers. The steps are:
The Euclidean algorithm is one of the oldest known algorithms, described by the Greek mathematician Euclid around 300 BC. It finds the GCF of two numbers by repeated division:
Example: GCF(48, 36). Step 1: 48 divided by 36 gives remainder 12. Step 2: 36 divided by 12 gives remainder 0. The GCF is 12.
For the numbers 48 and 36:
| Step | Division | Remainder |
|---|---|---|
| 1 | 48 / 36 | 12 |
| 2 | 36 / 12 | 0 |
GCF = 12. The factors of 12 are: 1, 2, 3, 4, 6, 12. All six of these are common factors of 48 and 36. The LCM = (48 x 36) / 12 = 1,728 / 12 = 144. The fraction 48/36 simplifies to 4/3 (dividing both by the GCF of 12).
Common factors are used throughout mathematics:
Method: GCF calculated using the Euclidean algorithm (division form). LCM derived from the identity LCM(a, b) = (a x b) / GCF(a, b), extended to multiple numbers by iteration. All factors of the GCF are enumerated by trial division from 1 to sqrt(GCF).
This calculator works with positive whole numbers only. Inputs are rounded to the nearest integer. For very large numbers (above 10,000,000), results remain exact as the Euclidean algorithm is not affected by number size.
If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.
Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.
Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.
All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.
Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.
Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.
Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.
All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.
About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use
Reviewed and maintained. Last reviewed 2026-07-19 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.
© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.