Least Common Multiple Calculator
Least Common Multiple Calculator
Dual LCM & GCD

LCM And GCD Calculator

Calculate both LCM and GCD (HCF) together alongside their product relation.

LCM And GCD Calculator Inputs

Find both LCM and GCD simultaneously

Calculation Result Verified Result
Answer
--
Calculation Output

Step-by-Step Explanation

Calculating initial values...

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.

1. Reads two integers

Both values feed a single Euclidean chain.

2. Returns the GCD directly

The last non-zero remainder of the chain is the greatest common divisor.

3. Derives the LCM

Dividing the product by that divisor produces the least common multiple.

4. Checks the product identity

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.

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

  1. 1Input: 24 and 36.
  2. 2GCD(24, 36) = 12.
  3. 324 × 36 = 864.
  4. 4LCM = 864 ÷ 12 = 72.
  5. 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.

PairGCDLCMGCD × LCMa × b
6, 82244848
10, 15530150150
18, 24672432432
24, 361272864864
21, 28784588588
16, 302240480480
13, 171221221221
50, 752515037503750

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.

Related LCM Calculators

View All →