🌐 EN

🔢 LCM Calculator

Enter two to ten positive integers and calculate their least common multiple and greatest common divisor.

Least Common Multiple (LCM)
—
Greatest Common Divisor (GCD) —

Inputs and checks

  • Two fields start with 12 and 18. Enter positive whole numbers and press Calculate; changing a value alone does not recalculate.
  • Use Add Number to include more values, up to ten fields. Additional fields can be removed, but at least the original two remain.
  • Each number field has a minimum of 1 and a whole-number step. Use modest integers; there is no stated maximum or guarantee for very large integers.
  • Provide at least two valid positive numbers. If fewer are available, the previous answer may remain on screen instead of an error appearing. No physical unit is required.

Reading the result

  • The least common multiple is the smallest positive number divisible by every input; the greatest common divisor is the largest positive whole number dividing all of them.
  • The page also shows prime factorization for each input and the first ten positive common multiples, beginning with the LCM itself.
  • The factor-tree drawing shows only the first input and one split into a factor and quotient; it is not a fully expanded tree for every number.

Examples

LCM of 12 and 18

Input
Numbers: 12, 18
Result
LCM: 36; GCD: 6; first ten common multiples: 36, 72, 108, 144, 180, 216, 252, 288, 324, 360; prime factors: 12 = 2² × 3, 18 = 2 × 3²
How to check it
Take the highest powers 2² and 3² for LCM 36; shared 2×3 gives GCD 6.

LCM of three numbers

Input
Numbers: 4, 6, 10
Result
LCM: 60; GCD: 2
How to check it
The highest needed prime powers are 2², 3, and 5, giving 60. All three numbers share a factor of 2.

Frequently asked questions

Why did adding a number not change the answer?
Press Calculate after adding, removing, or editing numbers.
How many numbers can I compare?
Use at least two and at most ten input fields.
Does the factor tree show every step?
No. It displays a single factor-and-quotient split for the first number.