LCM & GCD Calculator
Calculate the Lowest Common Multiple and Greatest Common Divisor for up to 10 numbers. Shows step-by-step prime factorization, Euclidean algorithm and real-world applications.
LCM and GCD Calculator
Enter 2–10 whole numbers. The LCM is the smallest number that all inputs divide into evenly.
Enter 2–10 whole numbers. The GCD (also called HCF) is the largest number that divides all inputs without a remainder.
Enter a fraction to reduce it to its simplest form. Uses GCD to divide both numerator and denominator.
Rate this tool
Step-by-step working, real-world context and fraction simplifier — what most tools skip
Most LCM and GCD calculators return a number and nothing else. This tool shows the full prime factorization method for LCM, the Euclidean algorithm for GCD, a real-world application explanation for every result, and a built-in fraction simplifier.
How to calculate LCM and GCD
LazyTools vs other LCM & GCD calculators
Most free LCM and GCD tools return a number with no context. Step-by-step prime factorization, Euclidean algorithm display, real-world application explanation and a built-in fraction simplifier together are absent from all major free tools.
| Feature | ⭐ LazyTools | calculatorsoup.com | mathwarehouse.com | omnicalculator.com |
|---|---|---|---|---|
| LCM and GCD calculation | ✔ | ✔ | ✔ | ✔ |
| Up to 10 numbers | ✔ | ✔ | ⚠ 2 only | ✔ |
| Step-by-step prime factorization | ✔ | ✔ | ✔ | ⚠ Partial |
| Euclidean algorithm display | ✔ | ✔ | ✘ | ✘ |
| Real-world application | ✔ | ✘ | ✘ | ✘ |
| Fraction simplifier built in | ✔ | ⚠ Separate | ✘ | ⚠ Separate |
| No ads / no signup | ✔ | ⚠ Ads | ⚠ Ads | ⚠ Ads |
LCM and GCD of common number pairs
| Numbers | GCD / HCF | LCM | LCM x GCD | Product (a x b) |
|---|---|---|---|---|
| 4 and 6 | 2 | 12 | 24 | 24 |
| 12 and 18 | 6 | 36 | 216 | 216 |
| 8 and 12 | 4 | 24 | 96 | 96 |
| 15 and 20 | 5 | 60 | 300 | 300 |
| 7 and 13 | 1 | 91 | 91 | 91 |
| 24 and 36 | 12 | 72 | 864 | 864 |
| 9 and 12 | 3 | 36 | 108 | 108 |
| 100 and 75 | 25 | 300 | 7500 | 7500 |
Key formulas and identities
| Property | Formula / Rule | Example |
|---|---|---|
| LCM-GCD relationship | LCM(a,b) x GCD(a,b) = a x b | LCM(4,6) x GCD(4,6) = 12 x 2 = 24 = 4 x 6 |
| Coprime numbers | GCD = 1, so LCM = a x b | GCD(7,13) = 1, LCM = 91 |
| One divides the other | GCD = smaller, LCM = larger | GCD(4,12) = 4, LCM = 12 |
| Equal numbers | GCD = LCM = the number | GCD(6,6) = 6, LCM(6,6) = 6 |
| GCD with 1 | GCD(n,1) = 1 always | GCD(100,1) = 1 |
| LCM with 1 | LCM(n,1) = n always | LCM(100,1) = 100 |
LCM & GCD Calculator — Lowest Common Multiple and Greatest Common Divisor Explained
The Lowest Common Multiple (LCM) and Greatest Common Divisor (GCD) are two of the most fundamental concepts in number theory. They appear in primary school arithmetic, university mathematics and practical programming tasks. Understanding them deeply — not just knowing how to calculate them — unlocks a wide range of problem-solving approaches in scheduling, cryptography, signal processing and computer science.
LCM and GCD calculator for multiple numbers free
The LCM of a set of numbers is the smallest positive integer that is divisible by every number in the set. For two numbers, it can be calculated as LCM(a,b) = (a x b) / GCD(a,b). For more than two numbers, apply the formula iteratively: LCM(a,b,c) = LCM(LCM(a,b), c). The GCD of a set of numbers is the largest positive integer that divides all numbers in the set without remainder. Also called HCF (Highest Common Factor) in UK and Commonwealth curricula. For more than two numbers: GCD(a,b,c) = GCD(GCD(a,b), c).
Lowest common multiple with step-by-step prime factorization
The prime factorization method for LCM: factorise each number into its prime factors. For each distinct prime, take the highest power of that prime that appears across all factorisations. Multiply these together. For example, LCM(12, 18): 12 = 2^2 x 3, 18 = 2 x 3^2. Take 2^2 (highest power of 2) and 3^2 (highest power of 3): LCM = 4 x 9 = 36. This method shows exactly why each prime is included and which input contributed the highest power — making it far more instructive than a black-box calculation.
GCD calculator using Euclidean algorithm online
The Euclidean algorithm is the most efficient method for finding GCD, dating back to ancient Greece. The algorithm is: GCD(a,b) = GCD(b, a mod b), repeated until the remainder is 0. At that point the divisor is the GCD. Example: GCD(48, 18). Step 1: 48 = 2 x 18 + 12. Step 2: 18 = 1 x 12 + 6. Step 3: 12 = 2 x 6 + 0. Remainder is 0, so GCD = 6. The algorithm is used in RSA encryption key generation, continued fraction computation and numerous computer science algorithms.
LCM for scheduling calculator
The most practical real-world use of LCM is solving scheduling problems. If event A repeats every 4 days and event B repeats every 6 days, when will they next coincide? The answer is LCM(4,6) = 12 days. If a factory produces batches every 8 hours and another every 12 hours, LCM(8,12) = 24 hours for synchronisation. If two gears have 15 and 20 teeth respectively, LCM(15,20) = 60 — meaning after 60 gear teeth of travel, the same pair of teeth will mesh again. LCM is also used to find common denominators when adding fractions: to add 1/4 + 1/6, the common denominator is LCM(4,6) = 12.
Fraction simplifier using GCD
To simplify a fraction to lowest terms, divide both numerator and denominator by their GCD. Example: 12/18. GCD(12,18) = 6. 12/6 = 2, 18/6 = 3. Simplified fraction: 2/3. The fraction is in lowest terms when GCD(numerator, denominator) = 1 — i.e. the numerator and denominator are coprime. This is the basis of all fraction arithmetic: to add or subtract fractions, find the LCM of the denominators; to simplify the result, divide by the GCD.
Common denominator calculator
The least common denominator (LCD) of two or more fractions is the LCM of their denominators. It is the smallest number that all denominators divide into evenly. To add 1/4 + 1/6 + 1/9: LCM(4,6,9) = 36. Convert each fraction: 9/36 + 6/36 + 4/36 = 19/36. Using the LCM rather than just multiplying all denominators together gives the smallest possible denominator, keeping the arithmetic simpler.