Théorie des Nombres

LCM Calculator: Find the Least Common Multiple Online

Calculate the Least Common Multiple (LCM) of two numbers quickly and easily with our online LCM calculator. Visualize multiples and understand the concept of LCM.

Least Common Multiple (LCM):

LCM Visualization

Understanding Least Common Multiple (LCM)

The Least Common Multiple (LCM) of two integers \(a\) and \(b\) is the smallest positive integer that is divisible by both \(a\) and \(b\). It's a fundamental concept in number theory with applications in various mathematical and real-world problems.

Formula for LCM

The LCM of two numbers \(a\) and \(b\) can be calculated using the formula:

$$LCM(a, b) = \frac{|a \cdot b|}{GCD(a, b)}$$

Where \(GCD(a, b)\) is the Greatest Common Divisor of \(a\) and \(b\).

How to Use This Tool

  • Enter two positive integers in the input fields provided.
  • Click the "Calculate LCM" button to find the Least Common Multiple.
  • The LCM will be displayed below, and you can copy it to your clipboard.
  • Optionally, visualize the multiples of the entered numbers and their LCM in the interactive chart.
  • Use the "Reset" button to clear the inputs and results and start again.

Example

For example, to find the LCM of 12 and 18:

  • Enter 12 in the first input field and 18 in the second input field.
  • Click "Calculate LCM".
  • The LCM will be calculated as 36, which is the smallest number divisible by both 12 and 18.