This calculator finds the greatest common divisor and the lowest common multiple of a whole list of numbers at once, not just two. The greatest common divisor, or GCD, also called the highest common factor, is the largest whole number that divides evenly into all the numbers in your list. The lowest common multiple, or LCM, is the smallest number that all of them divide into evenly. These two are everywhere in mathematics: the GCD simplifies fractions to their lowest terms and finds the biggest equal grouping, while the LCM finds common denominators for adding fractions and works out when repeating events coincide, such as cycles or schedules lining up. Doing this for several numbers by hand means finding all the factors or prime factorisations, which is tedious and error-prone. This tool does it instantly for any number of values. You paste or type your list of whole numbers, and the calculator returns the GCD and the LCM of the entire list, along with the count of numbers and the list itself. The results update as you type. Use it to simplify fractions, to find a common denominator, to solve when cycles align, or for number theory homework. The calculator works through the list two at a time, using the efficient Euclidean algorithm for the GCD, which repeatedly replaces the larger number with the remainder of dividing the two until one becomes zero, and then derives the LCM from the relationship that the product of two numbers equals their GCD times their LCM. Applying this pairwise across the list gives the GCD and LCM of them all. The numbers should be positive whole numbers; the GCD of the list is at least one, and the LCM grows quickly as you add numbers with few common factors.
GCD is the largest number dividing all; LCM is the smallest number all divide into. Uses the Euclidean algorithm pairwise. Enter positive whole numbers.
The calculator combines the list two numbers at a time. The greatest common divisor of a pair is found with the Euclidean algorithm, repeatedly replacing the larger number with the remainder when the two are divided until one is zero. The lowest common multiple of a pair is their product divided by their GCD. Carrying these through the list gives the GCD and LCM of all the numbers.
For 12, 18 and 24, the GCD of 12 and 18 is 6, and the GCD of 6 and 24 is 6, so the GCD of the list is 6. The LCM of 12 and 18 is 36, and the LCM of 36 and 24 is 72, so the LCM of the list is 72, the smallest number all three divide into.
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.
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.
© 2019 to 2026 Calculate.co.nz. All rights reserved.