Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

LCM Calculator


How to use LCM Calculator
  1. Pick the method with the two buttons under Calculation Method: Prime Factorization or GCF Formula. Both give the same LCM; the panel on the right explains the chosen one. Learn more about the methods
  2. Type a positive whole number in Number 1 and another in Number 2. Learn more about the inputs
  3. Click + Add Number for a third to sixth number, and the × next to a field to remove it. Learn more about adding fields
  4. Click Calculate. The LCM appears in the LCM Result box under the buttons. Learn more about the result
  5. The panel on the right explains the selected method, and its link opens the section below that explains it in full. Learn more about prime factorization
  6. Click Reset to clear every field and the result. A red message appears when fewer than two valid whole numbers are entered. Learn more about messages
?
?
LCM Result:
—
The prime factorization method finds LCM by breaking each number into prime factors, then taking the highest power of each prime that appears. This gives you the smallest number divisible by all inputs. Learn more about prime factorization































Getting Started with the LCM Calculator

DemoTwo numbers, a result, the other method, Reset
Step 0 of 4
The LCM calculator finds the least common multiple of two or more numbers—the smallest positive integer that all your numbers divide into evenly. Start by choosing your calculation method: Prime Factorization (educational, shows the process) or GCF Formula (uses the relationship between LCM and GCF).

Enter your first number in "Number 1" and second number in "Number 2". The calculator accepts any positive integers. Try finding LCM(44, 66) = 1212, or LCM(88, 1212) = 2424. These are common examples used in fraction addition.

To find LCM of more than two numbers, click + Add Number. You can enter up to 66 numbers total. Each new field appears with a remove button (×) if you want to delete it. For example, find LCM(22, 33, 44) = 1212.

Click the blue Calculate button to see your result instantly. The LCM appears in the result box below the inputs. Use Reset to clear all fields and try different numbers. The calculator handles large numbers efficiently. What a common multiple is, and why the least one matters, is explained in what is the least common multiple.

Using Prime Factorization Method

DemoPrime factorization with two and three numbers
Step 0 of 5
Select Prime Factorization to see how LCM works through prime factors. This method breaks each number into primes, then takes the highest power of each prime that appears. The result is the smallest number containing all prime factors from all inputs.

For LCM(1212, 1818): Break 12=22×312 = 2^2 × 3 and 18=2×3218 = 2 × 3^2. Take the highest power of each prime: 222^2 and 323^2. Multiply them: LCM = 22×32=4×9=362^2 × 3^2 = 4 × 9 = 36. This is the smallest number divisible by both 1212 and 1818. After Calculate, the box under the result shows these factorizations and the highest power of each prime.

Try LCM(88, 1212, 1818): Factor as 8=238 = 2^3, 12=22×312 = 2^2 × 3, 18=2×3218 = 2 × 3^2. Highest powers: 232^3, 323^2. Result: 23×32=8×9=722^3 × 3^2 = 8 × 9 = 72. You can verify: 72÷8=972 ÷ 8 = 9, 72÷12=672 ÷ 12 = 6, 72÷18=472 ÷ 18 = 4.

This method visualizes why LCM works and connects to other number theory concepts. It's especially useful for understanding common denominators in fraction addition: to add 112+118\frac{1}{12} + \frac{1}{18}, convert to denominator 3636. The method is worked through in finding the LCM by prime factorization.

Using GCF Formula Method

DemoThe GCF formula on two pairs
Step 0 of 4
Switch to GCF Formula to use the mathematical relationship: LCM(aa, bb) = a×bGCF(a,b)\frac{a × b}{\text{GCF}(a, b)}. This formula calculates LCM quickly using the greatest common factor. The calculator computes GCF first, then applies the formula automatically.

For LCM(1212, 1818): Calculate GCF(1212, 1818) = 66. Then LCM = 12×186=2166=36\frac{12 × 18}{6} = \frac{216}{6} = 36. This method is computationally faster than prime factorization for large numbers. The box under the result shows each pair as LCM(a, b) = a × b / GCF(a, b) with the numbers filled in.

The relationship between GCF and LCM is fundamental: GCF finds the largest shared divisor (breaking down), while LCM finds the smallest shared multiple (building up). Notice that GCF(1212, 1818) × LCM(1212, 1818) = 6×36=216=12×186 × 36 = 216 = 12 × 18.

For more than two numbers, the calculator applies the formula repeatedly: LCM(aa, bb, cc) = LCM(LCM(aa, bb), cc). First find LCM of first two numbers, then find LCM of that result with the third number, and so on. For coprime numbers the GCF is 11 and the LCM is the product: LCM(55, 77) = 3535. Why the formula holds is explained in LCM vs GCF.

Adding and Removing Number Fields

DemoFour numbers, then one removed
Step 0 of 5
The calculator starts with two inputs but supports up to 66 numbers. Click the + Add Number button (dashed border) to add fields. New inputs appear labeled "Number 3", "Number 4", etc. Each has its own input box and tooltip.

Remove any field by clicking its × button on the right. You cannot remove fields if only two remain—LCM requires at least two numbers. The calculator automatically adjusts to whatever number of fields you have filled with valid integers.

Finding LCM of multiple numbers is common in scheduling problems. If events repeat every 44, 66, and 99 days, they coincide every LCM(44, 66, 99) = 3636 days. Try entering these to verify.

Each additional number potentially increases the LCM. For example, LCM(22, 33) = 66, but LCM(22, 33, 44) = 1212, and LCM(22, 33, 44, 55) = 6060. The LCM grows because it must contain all prime factors from all inputs. Where several numbers are needed in practice is shown in applications of LCM.

Understanding the LCM Result

DemoShared factors, coprime numbers, large numbers
Step 0 of 5
After clicking Calculate, the LCM result shows the smallest positive integer divisible by all your inputs. For LCM(44, 66) = 1212, you can verify: 12÷4=312 ÷ 4 = 3 and 12÷6=212 ÷ 6 = 2. Both divisions give whole numbers with no remainder.

If inputs share many factors, the LCM is relatively small. LCM(66, 99) = 1818 because 66 and 99 share the factor 33. If inputs are coprime (GCF = 11), the LCM equals their product. LCM(55, 77) = 35=5×735 = 5 × 7 because 55 and 77 share no common factors.

Large LCM values indicate numbers with few shared factors. LCM(77, 1111, 1313) = 10011001 because these are all prime and share nothing. In contrast, LCM(1212, 1818, 2424) = 7272 is smaller relative to the inputs because they share many factors.

The LCM result always appears as a positive integer. Mathematically, LCM is defined only for positive integers, though the underlying principles work with negative numbers (their LCM would be the same as the positive versions). For large inputs the result is still exact: LCM(144144, 216216) = 432432. The definition behind every result is in what is the least common multiple.

Reading Error Messages

DemoToo few numbers, a decimal, then a valid pair
Step 0 of 4
The calculator validates inputs before computing. If you see "Error: Enter at least 2 valid integers" in red, you left fields empty or entered fewer than two numbers. If you see Error: "…" is not a positive whole number, one of the boxes holds something else: a letter, a decimal, a negative number or zero.

Each field should contain a positive whole number. A decimal such as 3.143.14 or 4.54.5 is refused with the message that names it; a fraction such as 12\frac{1}{2} cannot be typed at all. A negative number is refused too, since LCM is defined here for positive integers.

Blank fields are ignored during calculation. If you create six fields but only fill four, the calculator computes LCM using those four numbers. For cleaner results, remove unused fields with the × button.

Zero is refused because LCM involving 00 is mathematically undefined or trivial (every number divides 00, but there's no "least" multiple). Keep all inputs as positive integers greater than zero. Why zero has no least multiple follows from the definition in what is the least common multiple.

What is the Least Common Multiple

The least common multiple (LCM), also called lowest common multiple, is the smallest positive integer that is a multiple of two or more numbers. For LCM(44, 66) = 1212, the number 1212 is the smallest integer that both 44 and 66 divide into evenly.

Think of multiples as numbers you get when counting by a certain value. Multiples of 44 are 4,8,12,16,20...4, 8, 12, 16, 20.... Multiples of 66 are 6,12,18,24,30...6, 12, 18, 24, 30.... The common multiples are 12,24,36...12, 24, 36.... The least of these is 1212.

LCM is essential for fraction addition with different denominators. To add 14+16\frac{1}{4} + \frac{1}{6}, convert both to denominator LCM(44, 66) = 1212: 312+212=512\frac{3}{12} + \frac{2}{12} = \frac{5}{12}. This is why LCM is also called the least common denominator (LCD).

Finding LCM by listing multiples is inefficient for large numbers. Algorithms using prime factorization or the GCF formula compute LCM much faster. For LCM(144144, 216216), listing multiples would be tedious, but prime factorization gives 432432 instantly.

The definition is in what is LCM, the listing method in listing multiples, and the use for fractions in finding a common denominator.

Finding the LCM by Prime Factorization

Write every number as a product of primes, then take each prime to the highest power in which it appears anywhere, and multiply: the result is the smallest number that contains every factorization, which is the LCM.

Example: 12=22×312 = 2^2 \times 3 and 18=2×3218 = 2 \times 3^2. The highest power of 22 is 222^2 and of 33 is 323^2, so LCM(1212, 1818) = 22×32=362^2 \times 3^2 = 36. With a third number, 8=238 = 2^3, the highest power of 22 becomes 232^3 and LCM(88, 1212, 1818) = 23×32=722^3 \times 3^2 = 72. Check: 72=8×9=12×6=18×472 = 8 \times 9 = 12 \times 6 = 18 \times 4.

A prime that appears in only one number still goes in: LCM(44, 99) = 22×32=362^2 \times 3^2 = 36. The common mistake is to take the lowest powers, which gives the GCF instead: 2×3=62 \times 3 = 6 for 1212 and 1818. Another is to add the exponents: 23×33=2162^3 \times 3^3 = 216 is a common multiple of 1212 and 1818 but not the least.

In the calculator this is the Prime Factorization method. The method is taught in prime factorization and practised in worked examples; factorizing itself is in prime factorization.

LCM vs GCF

LCM (least common multiple) finds the smallest number that all inputs divide into. GCF (greatest common factor) finds the largest number that divides into all inputs. These are complementary concepts with an inverse relationship.

For LCM(1212, 1818) = 3636 and GCF(1212, 1818) = 66, notice the product relationship: 36×6=216=12×1836 × 6 = 216 = 12 × 18. This formula always holds: LCM(aa, bb) × GCF(aa, bb) = a×ba × b for any positive integers.

Use LCM when combining or building up: adding fractions, finding common multiples, scheduling coinciding events. Use GCF when dividing or reducing: simplifying fractions, splitting items into groups, finding common divisors.

Both use prime factorization but differently. For GCF, take the lowest power of each common prime. For LCM, take the highest power of each prime that appears anywhere. Understanding both concepts together provides deep insight into number structure.

In the calculator this is the GCF Formula method: the GCF is found with the Euclidean algorithm, then the product is divided by it. The formula is derived in using GCD and the GCD and LCM relationship; the algorithm is in Euclidean algorithm step by step.

Applications of LCM

Adding Fractions: Find common denominators for fraction addition. To add 16+18\frac{1}{6} + \frac{1}{8}, use LCM(66, 88) = 2424 as denominator: 424+324=724\frac{4}{24} + \frac{3}{24} = \frac{7}{24}.

Scheduling and Cycles: If two events repeat every 44 and 66 days, they coincide every LCM(44, 66) = 1212 days. Three buses departing every 1010, 1515, and 2020 minutes all leave together every LCM(1010, 1515, 2020) = 6060 minutes.

Gear and Rotation Problems: If gear A has 1212 teeth and gear B has 1818 teeth, after how many teeth rotations do they align again? LCM(1212, 1818) = 3636 teeth. This is 33 full rotations of A and 22 full rotations of B.

Tile and Pattern Design: When creating repeating patterns with tiles of different sizes, LCM tells you the repeat length. Patterns of width 44 inches and 66 inches repeat every LCM(44, 66) = 1212 inches. More uses are collected in applications of LCM.