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
Step-by-Step Explanation
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.
Each input field accepts one positive integer. Values are parsed as BigInt, so a 12-digit pair stays exact.
Remainders repeat until one reaches 0. The last non-zero remainder is GCD(a, b).
The product a × b is divided by GCD(a, b) in a single exact division, which keeps the result free of rounding.
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).
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
- 1Input: a = 12, b = 18.
- 2GCD(12, 18) = 6.
- 312 × 18 = 216.
- 4216 ÷ 6 = 36, so LCM(12, 18) = 36.
- 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) | GCD | LCM | LCM ÷ a | LCM ÷ b |
|---|---|---|---|---|
| 4, 6 | 2 | 12 | 3 | 2 |
| 6, 8 | 2 | 24 | 4 | 3 |
| 9, 12 | 3 | 36 | 4 | 3 |
| 12, 18 | 6 | 36 | 3 | 2 |
| 14, 21 | 7 | 42 | 3 | 2 |
| 15, 25 | 5 | 75 | 5 | 3 |
| 16, 24 | 8 | 48 | 3 | 2 |
| 7, 13 | 1 | 91 | 13 | 7 |
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.