Skip to main content

LCM Calculator - Least Common Multiple

Our free arithmetic calculator solves lcmcalculator least common multiple problems. Get worked examples, visual aids, and downloadable results.

Skip to calculator
Mathematics

LCM Calculator - Least Common Multiple

Calculate the Least Common Multiple (LCM) of any set of numbers. See prime factorizations, multiples lists, and step-by-step solutions. Essential for fractions and scheduling.

Last updated: December 2025Reviewed by NovaCalculator Mathematics Team

Calculator

Adjust values & calculate

Enter two or more positive integers separated by commas

Least Common Multiple
72
of 12, 18, 24
LCM
72
GCF
6

Prime Factorizations

12= 2^2 x 3
18= 2 x 3^2
24= 2^3 x 3
LCM = 72= 2^3 x 3^2

Divisibility Check

72 / 12= 6 (exact)
72 / 18= 4 (exact)
72 / 24= 3 (exact)

Multiples Leading to LCM

Multiples of 12:
122436486072
Multiples of 18:
18365472
Multiples of 24:
244872
Your Result
LCM(12, 18, 24) = 72
Share Your Result
Understand the Math

Formula

LCM = product of all prime factors with maximum exponents | LCM(a,b) = |a*b| / GCF(a,b)

The LCM is computed by taking the highest power of every prime factor that appears in any of the input numbers. Alternatively, for two numbers, LCM(a,b) = |a*b| / GCF(a,b), leveraging the efficient Euclidean algorithm for GCF computation.

Last reviewed: December 2025

Worked Examples

Example 1: LCM of Two Numbers

Find the LCM of 12 and 18.
Solution:
Method 1 - Prime Factorization: 12 = 2^2 x 3 18 = 2 x 3^2 LCM = 2^2 x 3^2 = 4 x 9 = 36 Method 2 - Using GCF: GCF(12, 18) = 6 LCM = 12 x 18 / 6 = 216 / 6 = 36 Verification: 36/12 = 3, 36/18 = 2 (both whole numbers)
Result: LCM(12, 18) = 36

Example 2: LCM for Scheduling

Two traffic lights cycle every 45 seconds and 60 seconds. When do they sync again?
Solution:
LCM(45, 60): 45 = 3^2 x 5 60 = 2^2 x 3 x 5 LCM = 2^2 x 3^2 x 5 = 4 x 9 x 5 = 180 seconds = 3 minutes The lights will synchronize every 3 minutes.
Result: LCM(45, 60) = 180 seconds (3 minutes)
Expert Insights

Background & Theory

The LCM Calculator - Least Common Multiple applies the following established principles and formulas. Mathematics rests on a hierarchy of number systems, each extending the previous. The natural numbers (1, 2, 3, ...) support counting and ordering. The integers add negative values and zero, enabling subtraction without restriction. The rational numbers, expressible as p/q where p and q are integers and q is nonzero, close the system under division. The real numbers fill the gaps left by irrationals such as the square root of 2 or pi, forming a complete ordered field. The complex numbers, written as a + bi where i is the square root of negative one, complete the algebraic closure of the reals and allow every polynomial to have a root. Prime factorization states that every integer greater than one is uniquely expressible as a product of primes, a result known as the Fundamental Theorem of Arithmetic. Computing the greatest common divisor (GCD) of two integers relies most efficiently on the Euclidean algorithm: repeatedly replace the larger number with the remainder when it is divided by the smaller, until the remainder is zero. The last nonzero remainder is the GCD. The least common multiple (LCM) follows from the identity LCM(a, b) = |a * b| / GCD(a, b). Modular arithmetic defines equivalence classes of integers that share the same remainder under division by a modulus n. Fermat's Little Theorem and Euler's Theorem arise from this structure and underpin modern cryptography. Logarithms are the inverses of exponential functions. If b raised to the power x equals y, then the logarithm base b of y equals x. The natural logarithm uses base e, approximately 2.71828. Combinatorics counts arrangements and selections. The number of ordered arrangements (permutations) of r objects from n distinct objects is nPr = n! / (n - r)!. The number of unordered selections (combinations) is nCr = n! / (r! * (n - r)!). Pascal's triangle arranges these binomial coefficients so that each entry equals the sum of the two entries directly above it. The Fibonacci sequence, defined by F(1) = 1, F(2) = 1, and F(n) = F(n-1) + F(n-2), appears throughout nature and connects deeply to the golden ratio via Binet's formula.

History

The history behind the LCM Calculator - Least Common Multiple traces back through the following developments. Mathematics as a systematic discipline traces to ancient Mesopotamia. Babylonian clay tablets dating to around 1800 BCE demonstrate knowledge of quadratic equations, Pythagorean triples, and base-60 arithmetic, suggesting a practical mathematical tradition far preceding Greek formalism. Euclid of Alexandria compiled the Elements around 300 BCE, establishing the axiomatic method that would define rigorous mathematics for over two thousand years. His work organized plane geometry, number theory, and proportion into logically chained propositions derived from a small set of postulates. The algorithm bearing his name for computing GCDs appears in Book VII and remains in use today. In the 9th century, the Persian scholar Muhammad ibn Musa Al-Khwarizmi wrote Al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala, the treatise whose title gave algebra its name. He systematized the solution of linear and quadratic equations and described procedures that operated on unknowns as objects, a conceptual leap away from purely numerical calculation. Rene Descartes introduced coordinate geometry in 1637 by uniting algebra and Euclidean geometry, allowing curves to be studied through equations. This synthesis set the stage for calculus. Isaac Newton and Gottfried Wilhelm Leibniz independently developed calculus during the 1660s and 1670s, triggering a priority dispute that lasted decades and divided British and Continental mathematicians. Carl Friedrich Gauss proved the Fundamental Theorem of Algebra in 1799, showing that every nonconstant polynomial has at least one complex root. His Disquisitiones Arithmeticae of 1801 established modern number theory. David Hilbert's formalist program at the turn of the 20th century sought to place all of mathematics on an explicit axiomatic foundation, a project that Kurt Godel's incompleteness theorems of 1931 showed to be fundamentally limited. Alan Turing's work in the 1930s on computability introduced the theoretical model of the stored-program computer and linked mathematical logic directly to the limits of algorithmic calculation. His proof that no algorithm can decide in general whether an arbitrary program will halt or run forever placed fundamental boundaries on what mathematics can mechanically determine, and it opened the discipline now known as theoretical computer science.

Share this calculator

Explore More

Frequently Asked Questions

The Least Common Multiple is the smallest positive integer that is evenly divisible by all the given numbers. For example, the LCM of 4 and 6 is 12 because 12 is the smallest number that both 4 and 6 divide into without a remainder (12/4=3, 12/6=2). The LCM always exists and is unique for any set of positive integers. It is always greater than or equal to the largest number in the set. The concept is foundational in arithmetic, particularly for operations involving fractions, scheduling, and cyclic phenomena in mathematics and science.
To find the LCM by prime factorization, break each number into its prime factors and take the highest power of every prime that appears in any of the factorizations. For example, to find LCM(12, 18): 12 equals 2 squared times 3, and 18 equals 2 times 3 squared. The highest power of 2 is 2 squared (from 12) and the highest power of 3 is 3 squared (from 18). So LCM equals 4 times 9 which equals 36. This method extends naturally to three or more numbers and provides clear insight into why the LCM has the value it does.
For two numbers a and b, the LCM can be computed using the formula: LCM(a, b) equals a times b divided by GCF(a, b). This is efficient because the GCF can be found quickly using the Euclidean algorithm. For example, LCM(12, 18) = 12 times 18 / GCF(12, 18) = 216 / 6 = 36. This formula works because the GCF captures the shared prime factors, and dividing by it removes the double-counting. For three or more numbers, apply the formula iteratively: LCM(a, b, c) = LCM(LCM(a, b), c). This is the most computationally efficient method.
When adding or subtracting fractions with different denominators, you need a common denominator. The LCM of the denominators (called the Least Common Denominator or LCD) is the most efficient choice. For example, to add 1/4 and 1/6, find LCM(4, 6) = 12. Convert: 1/4 becomes 3/12 and 1/6 becomes 2/12. Now add: 3/12 + 2/12 = 5/12. Using the LCM as the common denominator produces the simplest result directly, without needing to simplify afterward. Any common multiple would work mathematically, but the LCM minimizes the size of the numbers involved.
LCM and GCF are complementary concepts connected by the fundamental relationship: for any two positive integers a and b, GCF(a,b) times LCM(a,b) equals a times b. The GCF uses the minimum exponents of shared prime factors, while the LCM uses the maximum exponents of all prime factors. If two numbers are coprime (GCF equals 1), their LCM is simply their product. The LCM is always a multiple of both numbers and of their GCF. Additionally, GCF(a, LCM(a,b)) equals a, and LCM(a, GCF(a,b)) equals a. These absorption laws demonstrate the deep duality between GCF and LCM.
To find the LCM of three or more numbers, apply the LCM operation iteratively. First find the LCM of the first two numbers, then find the LCM of that result with the third number, and continue. For example, LCM(4, 6, 10): LCM(4, 6) = 12, then LCM(12, 10) = 60. Using prime factorization is also straightforward: 4 = 2 squared, 6 = 2 times 3, 10 = 2 times 5. Take the highest power of each prime: 2 squared times 3 times 5 = 60. Both methods always give the same result, and the iterative approach is generally more efficient computationally.
Educational Note: This calculator is provided for educational and informational purposes. Results are based on the formulas and inputs provided. Always verify important calculations independently. NovaCalculator processes calculator inputs client-side; optional analytics follow visitor consent settings.Reviewed by: NovaCalculator Mathematics Team โ€” Verified against standard mathematical and scientific references. Last reviewed: December 2025. ยฉ 2024โ€“2026 NovaCalculator.

Share this calculator

Formula

LCM = product of all prime factors with maximum exponents | LCM(a,b) = |a*b| / GCF(a,b)

The LCM is computed by taking the highest power of every prime factor that appears in any of the input numbers. Alternatively, for two numbers, LCM(a,b) = |a*b| / GCF(a,b), leveraging the efficient Euclidean algorithm for GCF computation.

Worked Examples

Example 1: LCM of Two Numbers

Problem: Find the LCM of 12 and 18.

Solution: Method 1 - Prime Factorization:\n12 = 2^2 x 3\n18 = 2 x 3^2\nLCM = 2^2 x 3^2 = 4 x 9 = 36\n\nMethod 2 - Using GCF:\nGCF(12, 18) = 6\nLCM = 12 x 18 / 6 = 216 / 6 = 36\n\nVerification: 36/12 = 3, 36/18 = 2 (both whole numbers)

Result: LCM(12, 18) = 36

Example 2: LCM for Scheduling

Problem: Two traffic lights cycle every 45 seconds and 60 seconds. When do they sync again?

Solution: LCM(45, 60):\n45 = 3^2 x 5\n60 = 2^2 x 3 x 5\nLCM = 2^2 x 3^2 x 5 = 4 x 9 x 5 = 180 seconds = 3 minutes\nThe lights will synchronize every 3 minutes.

Result: LCM(45, 60) = 180 seconds (3 minutes)

Frequently Asked Questions

What is the Least Common Multiple (LCM)?

The Least Common Multiple is the smallest positive integer that is evenly divisible by all the given numbers. For example, the LCM of 4 and 6 is 12 because 12 is the smallest number that both 4 and 6 divide into without a remainder (12/4=3, 12/6=2). The LCM always exists and is unique for any set of positive integers. It is always greater than or equal to the largest number in the set. The concept is foundational in arithmetic, particularly for operations involving fractions, scheduling, and cyclic phenomena in mathematics and science.

How do you find the LCM using prime factorization?

To find the LCM by prime factorization, break each number into its prime factors and take the highest power of every prime that appears in any of the factorizations. For example, to find LCM(12, 18): 12 equals 2 squared times 3, and 18 equals 2 times 3 squared. The highest power of 2 is 2 squared (from 12) and the highest power of 3 is 3 squared (from 18). So LCM equals 4 times 9 which equals 36. This method extends naturally to three or more numbers and provides clear insight into why the LCM has the value it does.

How do you find the LCM using the GCF?

For two numbers a and b, the LCM can be computed using the formula: LCM(a, b) equals a times b divided by GCF(a, b). This is efficient because the GCF can be found quickly using the Euclidean algorithm. For example, LCM(12, 18) = 12 times 18 / GCF(12, 18) = 216 / 6 = 36. This formula works because the GCF captures the shared prime factors, and dividing by it removes the double-counting. For three or more numbers, apply the formula iteratively: LCM(a, b, c) = LCM(LCM(a, b), c). This is the most computationally efficient method.

How is the LCM used for adding fractions?

When adding or subtracting fractions with different denominators, you need a common denominator. The LCM of the denominators (called the Least Common Denominator or LCD) is the most efficient choice. For example, to add 1/4 and 1/6, find LCM(4, 6) = 12. Convert: 1/4 becomes 3/12 and 1/6 becomes 2/12. Now add: 3/12 + 2/12 = 5/12. Using the LCM as the common denominator produces the simplest result directly, without needing to simplify afterward. Any common multiple would work mathematically, but the LCM minimizes the size of the numbers involved.

What is the relationship between LCM and GCF?

LCM and GCF are complementary concepts connected by the fundamental relationship: for any two positive integers a and b, GCF(a,b) times LCM(a,b) equals a times b. The GCF uses the minimum exponents of shared prime factors, while the LCM uses the maximum exponents of all prime factors. If two numbers are coprime (GCF equals 1), their LCM is simply their product. The LCM is always a multiple of both numbers and of their GCF. Additionally, GCF(a, LCM(a,b)) equals a, and LCM(a, GCF(a,b)) equals a. These absorption laws demonstrate the deep duality between GCF and LCM.

How do you find the LCM of more than two numbers?

To find the LCM of three or more numbers, apply the LCM operation iteratively. First find the LCM of the first two numbers, then find the LCM of that result with the third number, and continue. For example, LCM(4, 6, 10): LCM(4, 6) = 12, then LCM(12, 10) = 60. Using prime factorization is also straightforward: 4 = 2 squared, 6 = 2 times 3, 10 = 2 times 5. Take the highest power of each prime: 2 squared times 3 times 5 = 60. Both methods always give the same result, and the iterative approach is generally more efficient computationally.

References

Reviewed by Manoj Kumar, Mathematics Educator ยท Editorial policy