LCM Calculator
Calculate the Least Common Multiple of two or more integers instantly with our free LCM calculator. See the prime factorisation of each number, a step-by-step solution table, and divisibility verification — all processed locally in your browser. No signup required.
Enter two or more integers separated by commas or spaces, then click Calculate. The LCM is computed using prime factorisation with a full step-by-step breakdown. All calculations run instantly in your browser — no data is ever sent to any server.
Enter 2–20 integers between 1 and 1,000,000
Quick Examples
Why Use Our LCM Calculator?
Instant LCM Calculation
Calculate the Least Common Multiple of two or more integers in milliseconds. Our LCM calculator handles up to 20 numbers at once — all processed instantly in your browser with no wait time.
Secure LCM Calculator Online
All LCM calculations run 100% locally in your browser. Your values never leave your device — use our LCM calculator online with complete privacy and zero data collection.
LCM Calculator — No Installation
Use our LCM calculator directly in any browser with no downloads, plugins, or app installs required. Calculate the least common multiple from any device, anywhere, with no setup needed.
Prime Factorisation Step-by-Step
Every LCM calculation includes a full step-by-step solution using the prime factorisation method — showing each number factored, the highest power of each prime, and the final multiplication. Perfect for learning and verification.
Common Use Cases for LCM Calculator
Homework & Math Education
Students learning number theory, fractions, and arithmetic need to find the LCM regularly. Our LCM calculator shows the prime factorisation method step by step, making it ideal for checking homework and understanding the process.
Adding & Subtracting Fractions
The LCM of two denominators is the Least Common Denominator (LCD) needed to add or subtract fractions. Use our LCM calculator to find the LCD instantly before performing fraction arithmetic.
Scheduling & Repeating Events
The LCM tells you when two or more repeating events will next coincide. For example, if event A repeats every 4 days and event B every 6 days, LCM(4, 6) = 12 tells you they align every 12 days.
Music Theory & Rhythm
Polyrhythms in music involve patterns that repeat at different intervals. The LCM of two rhythmic cycles gives the length of the combined pattern before it repeats — essential for composers and music theorists.
Programming & Algorithm Design
LCM calculations appear in programming problems involving synchronisation, modular arithmetic, and cycle detection. Our LCM calculator handles multiple inputs at once, making it useful for verifying algorithm outputs.
Engineering & Manufacturing
Gear ratios, production cycles, and synchronisation of machinery often require LCM calculations to find the smallest common cycle length. Our LCM calculator supports up to 20 numbers for complex multi-machine scenarios.
Understanding the Least Common Multiple
What is the LCM?
The Least Common Multiple (LCM) of two or more integers is the smallest positive integer that is divisible by all of them. For example, the LCM of 4 and 6 is 12, because 12 is the smallest number that both 4 and 6 divide into evenly. The LCM is also called the Lowest Common Multiple or Smallest Common Multiple. It is closely related to the Greatest Common Divisor (GCD) — for two numbers a and b, LCM(a, b) × GCD(a, b) = a × b. Our LCM calculator computes the LCM of up to 20 integers using the prime factorisation method.
How Our LCM Calculator Works
- 1. Enter your numbers: Type two or more integers separated by commas or spaces. The LCM calculator accepts up to 20 numbers between 1 and 1,000,000.
- 2. Instant calculation: Click Calculate LCM. The result appears immediately along with the prime factorisation of each input number — all processed locally in your browser.
- 3. View step-by-step solution: Click "Show Steps" to see the full prime factorisation method — each number factored, a table of highest prime powers, the multiplication, and a divisibility verification.
Three Methods to Calculate LCM
- Method 1: Prime Factorisation (used by this calculator): Factorise each number into its prime factors. For each prime that appears in any factorisation, take the highest power. Multiply all these highest powers together. Example: LCM(12, 18) → 12 = 2² × 3, 18 = 2 × 3² → LCM = 2² × 3² = 4 × 9 = 36.
- Method 2: Using GCD (for two numbers): For two numbers a and b: LCM(a, b) = |a × b| ÷ GCD(a, b). This is the most efficient method for exactly two numbers. Example: LCM(12, 18) = (12 × 18) ÷ GCD(12, 18) = 216 ÷ 6 = 36.
- Method 3: Listing Multiples: List the multiples of each number until a common multiple is found. The first common multiple is the LCM. Example: multiples of 4: 4, 8, 12, 16… multiples of 6: 6, 12, 18… → first common = 12. This method is only practical for small numbers.
Key LCM Properties
- LCM and GCD relationship: For two numbers a and b: LCM(a, b) × GCD(a, b) = a × b.
- Coprime numbers: If GCD(a, b) = 1 (coprime), then LCM(a, b) = a × b. Example: LCM(4, 9) = 36.
- Multiples: If a is a multiple of b, then LCM(a, b) = a. Example: LCM(12, 4) = 12.
- Commutativity: LCM(a, b) = LCM(b, a). The order of inputs does not affect the result.
Related Tools
Voice Recorder & Audio Extractor
Record high-quality audio from your microphone or extract audio from MP4 and WebM video files offline. 100% secure, browser-based utility.
Audio Slicer & Converter
Trim audio clips and convert between MP3, WAV format client-side - Free online audio cutter
ID3 Tag & Metadata Editor
Read and write ID3 tags, album art, artist, and track details directly to MP3 file headers - Free online ID3 tag editor
MP3 Metadata Viewer
View all ID3 tags — title, artist, album, artwork, BPM, and every embedded frame — from any MP3 file instantly in your browser - Free online MP3 metadata viewer
Frequently Asked Questions About LCM Calculator
An LCM calculator computes the Least Common Multiple of two or more integers — the smallest positive integer divisible by all of them. Our LCM calculator supports up to 20 numbers, shows prime factorisation steps, and verifies the result — all processed instantly in your browser with no signup required.
The LCM of 12 and 18 is 36. Using prime factorisation: 12 = 2² × 3 and 18 = 2 × 3². Taking the highest power of each prime: 2² × 3² = 4 × 9 = 36. You can verify: 36 ÷ 12 = 3 and 36 ÷ 18 = 2, both whole numbers.
The GCD (Greatest Common Divisor) is the largest number that divides all inputs evenly. The LCM (Least Common Multiple) is the smallest number that all inputs divide into evenly. For two numbers a and b, LCM(a, b) × GCD(a, b) = a × b. They are complementary concepts in number theory.
Factorise each number into prime factors. For each prime that appears in any factorisation, take the highest power. Multiply all these highest powers together. For example, LCM(8, 12): 8 = 2³, 12 = 2² × 3 → LCM = 2³ × 3 = 24. Our LCM calculator shows this process step by step.
Yes. Our LCM calculator supports up to 20 numbers at once. For multiple numbers, the LCM is computed iteratively: LCM(a, b, c) = LCM(LCM(a, b), c). Enter all numbers separated by commas or spaces and click Calculate.
The LCM of two denominators is the Least Common Denominator (LCD) needed to add or subtract fractions. For example, to add 1/4 + 1/6, find LCM(4, 6) = 12, then convert: 3/12 + 2/12 = 5/12. Our LCM calculator makes finding the LCD instant.
Yes, completely. All LCM calculations run 100% locally in your browser using JavaScript. Your values are never sent to any server, stored, or logged. Use our LCM calculator online with full confidence in your privacy.
Yes. Our LCM calculator is 100% free with no signup, no account, no premium tier, and no usage limits. Calculate LCM values as many times as you need — completely free, forever.
If two numbers are coprime (their GCD is 1), their LCM equals their product. For example, LCM(4, 9) = 4 × 9 = 36, because GCD(4, 9) = 1. This is because coprime numbers share no common prime factors, so all prime factors of both numbers must appear in the LCM.