Beginner

LCM Calculator — Least Common Multiple

Enter two or three positive whole numbers and instantly find their Least Common Multiple — the smallest positive integer that every entered number divides into evenly.
Leave blank for two numbers
Least Common Multiple (LCM)
36

Smallest positive integer divisible by all entered numbers

GCD of first two
6
LCM formula check
12 × 18 / 6 = 36
Next common multiples
72, 108, 144
05.110.215.220.325.430.535.540.61218LCM=36Inputs and their LCM on the number line
Step by step
  1. 1

    GCD of the two numbers

    GCD(12, 18) = 6
    Computed with the Euclidean algorithm: repeatedly replace with the remainder.
  2. 2

    LCM = a × b ÷ GCD

    12 × 18 ÷ 6 = 36
計算結果僅為一般資訊用途的估算值,並非專業建議——在仰賴重要結果之前,請務必自行獨立查證。 閱讀完整免責聲明.
快速解答

此計算機如何運作?

LCM(a, b) = |a × b| / GCD(a, b). Compute GCD via the Euclidean algorithm (repeatedly replace with the remainder), then divide into the product. For three numbers chain it: LCM(LCM(a,b), c). The LCM is the smallest positive integer divisible by every input.

公式
LCM(a, b) = |a × b| / GCD(a, b)
How this is calculated

The Least Common Multiple of two integers is found most efficiently via the GCD: LCM(a, b) = |a × b| / GCD(a, b). The GCD is computed with the Euclidean algorithm — repeatedly replace the larger number with the remainder when divided by the smaller, until the remainder is zero; the last non-zero value is the GCD. This never requires factoring the numbers, making it fast even for large values.

For three numbers the computation is chained: LCM(a, b, c) = LCM(LCM(a, b), c). The order does not matter because LCM is commutative and associative.

Only positive integers are accepted. Zero would make LCM = 0 by convention (since every number divides 0), which is usually not useful. If you need the LCM for fraction work (finding a common denominator) the result here is identical to the Least Common Denominator.

常見問題

For any two positive integers a and b: LCM(a, b) × GCD(a, b) = a × b. This means LCM = a × b / GCD, and GCD = a × b / LCM. They are complementary: the GCD measures the largest common factor; the LCM measures the smallest common multiple.

LCM is used to find a common denominator when adding or subtracting fractions, to synchronise repeating events (e.g. two gears meeting at the same position), and in number theory problems involving divisibility and modular arithmetic.

No. The LCM is always at least as large as the largest of the input numbers, because every number is a multiple of itself. When one number is a multiple of all others (e.g. 6 and 3) the LCM equals the largest number.

也稱為

最小公倍數計算機
最小公倍數計算
求兩數最小公倍數
lcm 計算機
最小公倍數 最大公因數 計算
公倍數計算
最小公倍數怎麼算
求最小公倍數

APA

TG we-Calculate Editorial Team. (2026). LCM Calculator — Least Common Multiple [Online calculator]. TG we-Calculate. https://we-calculate.com/zh-tw/calculator/lcm-calculator

Chicago

TG we-Calculate Editorial Team. "LCM Calculator — Least Common Multiple." TG we-Calculate. 2026. https://we-calculate.com/zh-tw/calculator/lcm-calculator.

IEEE

TG we-Calculate Editorial Team, "LCM Calculator — Least Common Multiple," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/zh-tw/calculator/lcm-calculator

BibTeX

@misc{wecalculate_lcm_calculator, title = {LCM Calculator — Least Common Multiple}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/zh-tw/calculator/lcm-calculator}}, year = {2026}, note = {TG we-Calculate} }

這個計算機對您有幫助嗎?