Least Common Multiple Calculator
Least Common Multiple Calculator
Pair LCM

LCM Of Two Numbers Calculator

Find the least common multiple of a pair of integers with complete step-by-step breakdown.

LCM Of Two Numbers Calculator Inputs

Any positive integer

Any positive integer

Calculation Result Verified Result
Answer
--
Calculation Output

Step-by-Step Explanation

Calculating initial values...

How LCM Of Two Numbers Calculator Works?

The LCM of Two Numbers Calculator works in 4 stages: reading both integers, reducing them to a greatest common divisor (GCD), dividing the product by that divisor, and proving the answer divides evenly.

1. Reads both integers

Each input field accepts one positive integer. Values are parsed as BigInt, so a 12-digit pair stays exact.

2. Runs the Euclidean division chain

Remainders repeat until one reaches 0. The last non-zero remainder is GCD(a, b).

3. Divides the product by the GCD

The product a × b is divided by GCD(a, b) in a single exact division, which keeps the result free of rounding.

4. Verifies divisibility

The result is divided by a and by b. Both remainders equal 0 in every valid pair LCM.

LCM Of Two Numbers Calculator Formula

The LCM of Two Numbers Calculator uses one formula: LCM(a, b) = |a × b| ÷ GCD(a, b).

LCM(a, b) = |a × b| ÷ GCD(a, b)

Formula Terms

a
First integer entered in the calculator.
b
Second integer entered in the calculator.
GCD(a, b)
Greatest common divisor, the largest integer dividing both a and b.
Absolute value bars
Keep the result positive when signed input is supplied.

Worked Example

  1. 1Input: a = 12, b = 18.
  2. 2GCD(12, 18) = 6.
  3. 312 × 18 = 216.
  4. 4216 ÷ 6 = 36, so LCM(12, 18) = 36.
  5. 5Check: 36 ÷ 12 = 3 and 36 ÷ 18 = 2, both exact.

LCM Of Two Numbers Calculator Conversion Table

The table below converts 8 common integer pairs into their GCD and LCM values.

Pair (a, b)GCDLCMLCM ÷ aLCM ÷ b
4, 621232
6, 822443
9, 1233643
12, 1863632
14, 2174232
15, 2557553
16, 2484832
7, 13191137

Coprime pairs such as 7 and 13 carry GCD 1, so their LCM equals the plain product 91.

What is LCM Of Two Numbers Calculator?

The LCM of Two Numbers Calculator is a pair solver that returns the smallest positive integer divisible by both entered numbers.

A pair LCM exists for every two non-zero integers, because the product |a × b| is always a common multiple and the smallest common multiple cannot exceed it. The calculator returns that smallest value, never a larger common multiple such as 72 for the pair 12 and 18.

The output holds a single integer plus a step list showing the GCD, the product and the exact division. Entering 0 in either field makes the LCM undefined, since no positive multiple of 0 exists.

What are the uses of LCM Of Two Numbers Calculator?

The LCM of Two Numbers Calculator has 5 main uses.

  • Adding two fractions

    LCM(4, 6) = 12 converts 1/4 and 1/6 into 3/12 and 2/12.

  • Checking pair homework

    Grade 5 and grade 6 exercises nearly always ask for a two-number LCM, and the step list shows each division.

  • Timing two repeating events

    A bus every 12 minutes and a tram every 18 minutes depart together every 36 minutes.

  • Matching two gear counts

    Gears with 12 and 18 teeth realign after 36 tooth engagements.

  • Testing the GCD identity

    GCD(a, b) × LCM(a, b) = a × b holds for every pair, as 6 × 36 = 216 shows.

Related LCM Calculators

View All →