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/calculator/lcm-calculator

Chicago

TG we-Calculate Editorial Team. "LCM Calculator — Least Common Multiple." TG we-Calculate. 2026. https://we-calculate.com/zh/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/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/calculator/lcm-calculator}}, year = {2026}, note = {TG we-Calculate} }

这个计算器对您有帮助吗?