How do I find the GCD and LCM of numbers?
Type two or more whole numbers separated by commas or spaces, then click Calculate. For 48, 180 and 96 the GCD (greatest common divisor, also called the HCF or highest common factor) is 12, and the LCM (least common multiple) is 1440. The sample numbers 24, 36 and 60 give a GCD of 12 and an LCM of 360. Alongside the answers you get the prime factorization of each number (for example 180=2^2 x 3^2 x 5), the full list of common divisors (1, 2, 3, 4, 6, 12 for the first example), a note if the numbers are coprime, and the step-by-step Euclidean algorithm for the first two numbers. You can enter up to 20 numbers at once, including negatives, and results stay exact even for very large integers.
What is the GCD (HCF) and how is it calculated?
The GCD is the largest whole number that divides every given number exactly, with no remainder. The fastest reliable method is the Euclidean algorithm: divide the larger number by the smaller, keep the remainder, and repeat until the remainder is 0; the last non-zero remainder is the GCD. For 180 and 48 the steps are 180=48 x 3 + 36, then 48=36 x 1 + 12, then 36=12 x 3 + 0, so the GCD is 12. The calculator shows these steps for your first two numbers so you can follow or copy the working for homework. GCD is used to simplify fractions to lowest terms, split quantities into equal groups with nothing left over, and find the largest equal tile or ribbon size that fits given lengths.
What is the LCM and how is it calculated?
The LCM is the smallest positive number that is a multiple of every given number. Once the GCD is known, the LCM of two numbers is their product divided by their GCD: LCM(48, 180)=48 x 180 / 12=720. For three or more numbers the calculator applies this pairwise, giving LCM(48, 180, 96)=1440. LCM answers “when do cycles line up again” questions: bus schedules, repeating events, gear teeth, and finding a common denominator when adding fractions. Using prime factorization gives the same result: take every prime that appears in any number, at its highest power, and multiply them together. Both methods are shown or implied in the results panel so you can cross-check.
What does coprime mean?
Two or more numbers are coprime (also called relatively prime) when their GCD is 1, meaning 1 is their only common divisor. For example, 17 and 5 are coprime: GCD(17, 5)=1 and their LCM is simply their product, 85. Coprime numbers appear in fraction simplification (a fraction is in lowest terms exactly when numerator and denominator are coprime), in gear design (coprime tooth counts wear evenly), and in cryptography, where keys are built from numbers with controlled common factors. The calculator tells you automatically when your numbers are coprime, which is also a quick way to check whether a fraction can be reduced any further.
How do prime factorization and common divisors help?
Prime factorization breaks each number into its prime building blocks, written with powers: 48=2^4 x 3 and 96=2^5 x 3. The GCD takes the primes common to all numbers at their lowest powers, and the LCM takes all primes at their highest powers, so the factorization view explains where the answers come from instead of presenting them as magic. The common divisors list shows every number that divides all your inputs (for 48, 180 and 96: 1, 2, 3, 4, 6 and 12), which is exactly the divisor list of the GCD itself. That list is handy for grouping problems: any of those sizes splits all the quantities evenly, and 12 is the largest.
Is it free and private?
Yes. The GCD and LCM calculator is free, with no signup, no account and no limits. All calculations run in your browser using exact big-integer arithmetic, so your numbers are never sent to a server, stored or logged, and they disappear when you clear the box or close the tab. For students checking homework with full working shown, teachers preparing examples, and anyone simplifying fractions or aligning schedules, this page gives the GCD, LCM, factorizations, common divisors and algorithm steps in one place.