LCM And GCD Calculator
Calculate both LCM and GCD (HCF) together alongside their product relation.
LCM And GCD Calculator Inputs
Step-by-Step Explanation
How LCM And GCD Calculator Works?
The LCM and GCD Calculator works by computing both quantities in one pass, since the greatest common divisor is already needed for the least common multiple.
Both values feed a single Euclidean chain.
The last non-zero remainder of the chain is the greatest common divisor.
Dividing the product by that divisor produces the least common multiple.
GCD × LCM is compared against a × b, and the two values must match exactly.
LCM And GCD Calculator Formula
The LCM and GCD Calculator uses the identity GCD(a, b) × LCM(a, b) = a × b.
Formula Terms
- GCD(a, b)
- Largest integer dividing both inputs.
- LCM(a, b)
- Smallest positive integer divisible by both inputs.
- a × b
- Plain product, which the two quantities split between them.
Worked Example
- 1Input: 24 and 36.
- 2GCD(24, 36) = 12.
- 324 × 36 = 864.
- 4LCM = 864 ÷ 12 = 72.
- 5Identity check: 12 × 72 = 864, which matches the product.
LCM And GCD Calculator Conversion Table
The table below converts 8 pairs into their GCD, LCM and product check.
| Pair | GCD | LCM | GCD × LCM | a × b |
|---|---|---|---|---|
| 6, 8 | 2 | 24 | 48 | 48 |
| 10, 15 | 5 | 30 | 150 | 150 |
| 18, 24 | 6 | 72 | 432 | 432 |
| 24, 36 | 12 | 72 | 864 | 864 |
| 21, 28 | 7 | 84 | 588 | 588 |
| 16, 30 | 2 | 240 | 480 | 480 |
| 13, 17 | 1 | 221 | 221 | 221 |
| 50, 75 | 25 | 150 | 3750 | 3750 |
The last two columns match in every row, which is the identity working as a verification tool.
What is LCM And GCD Calculator?
The LCM and GCD Calculator is a dual solver that returns the least common multiple and the greatest common divisor of two integers in one output.
The two quantities sit at opposite ends of the divisibility structure: the GCD is the largest number dividing both inputs, and the LCM is the smallest number both inputs divide. Their product reconstructs a × b exactly.
Coprime pairs make the relationship clearest. For 13 and 17 the GCD is 1 and the LCM is the full product 221.
What are the uses of LCM And GCD Calculator?
The LCM and GCD Calculator has 5 main uses.
- Simplifying and combining fractions
The GCD reduces 24/36 to 2/3, while the LCM 72 serves as a common denominator.
- Verifying homework pairs
Both answers appear together, so one entry covers two textbook questions.
- Testing coprimality
A GCD of 1 identifies coprime pairs such as 13 and 17.
- Checking the product identity
GCD × LCM must equal a × b, which catches arithmetic slips immediately.
- Reducing ratios
Dividing a pair by its GCD gives the reduced ratio, as 50 and 75 become 2 and 3.