Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

LCM Calculator


?How to use LCM Calculator+
  • Select your calculation method (Prime Factorization or GCF Formula)
  • Enter at least 2 numbers (up to 6 numbers supported)
  • Click the + button to add more number fields if needed
  • Click Calculate to find the least common multiple
  • View the LCM result and use Reset to start over
?
?
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.































Getting Started with the LCM Calculator

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.

Using Prime Factorization Method

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.

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.

Using GCF Formula Method

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 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.

Adding and Removing Number Fields

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.

Understanding the LCM Result

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).

Reading Error Messages

The calculator validates inputs before computing. If you see "Error: Enter at least 2 valid integers" in red, you either left fields empty, entered fewer than two numbers, or typed non-numeric characters.

Each field must contain a positive whole number. The calculator rejects decimals (4.54.5), fractions (12\frac{1}{2}), and negative numbers (8-8). LCM is defined only for positive integers. Try entering 3.143.14 and you'll get an error.

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 not accepted 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.

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.

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.

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.

Related Calculators and Concepts

GCF Calculator - Find the greatest common factor. Essential companion to LCM since LCM(aa, bb) = a×bGCF(a,b)\frac{a × b}{\text{GCF}(a, b)}. Both concepts work together in fraction operations.

Factoring Calculator - Break numbers into prime factors. Understanding prime factorization is key to seeing how LCM works and computing it manually.

Fraction Calculator - Add, subtract, multiply, and divide fractions with automatic LCM calculation for common denominators. Combines fraction operations with LCM.

Divisibility Calculator - Test if the LCM divides evenly into other numbers or verify that your inputs divide evenly into the LCM result.

Modulo Calculator - Find remainders when dividing. Related to LCM because LCM is the first number where all inputs give remainder 00.