Skip to content
Quasar Tools Logo

How to Find LCM on a Calculator

How to find LCM on a calculator: the prime factorisation method, GCD shortcut, and a free online LCM calculator that handles 2 to 10 numbers instantly.

DH
Tutorials & How-Tos12 min read2,700 words

The least common multiple is one of those concepts that sounds abstract in school but shows up constantly in real work — adding fractions, synchronising schedules, aligning gear ratios, and simplifying algebraic expressions. Finding it manually involves prime factorisations or the GCD shortcut, both of which are straightforward once you know the method. This guide explains every approach, shows when to use each one, and points to the calculator tools that handle it instantly.

< 1sLCM calculation timeFor up to 10 numbers
10Numbers supported at onceIn the LCM Calculator
2Core methodsFactorisation and GCD shortcut

What is the LCM?

The LCM (Least Common Multiple) of two or more integers is the smallest positive integer that is evenly divisible by every number in the set. For 4 and 6, the multiples of 4 are 4, 8, 12, 16, 20… and the multiples of 6 are 6, 12, 18, 24… The smallest number that appears in both lists is 12, so LCM(4, 6) = 12. It is always greater than or equal to the largest number in the set.

LCM is distinct from GCD (Greatest Common Divisor). The GCD is the largest number that divides all inputs without a remainder — for 4 and 6, GCD = 2. LCM and GCD are related by the formula: LCM(a, b) = (a × b) ÷ GCD(a, b). This connection is the basis of the fastest manual calculation method covered in Section 3.

When LCM comes up in practice

  • Fraction arithmetic — adding or subtracting fractions requires a common denominator; the LCM of the denominators is the smallest one available.
  • Scheduling and cycles — the LCM of two cycle lengths is the first point where both cycles coincide (bus timetables, gear rotations, task scheduling).
  • Algebraic simplification — clearing fraction denominators in equations uses the LCM to find the smallest multiplier.
  • Music and rhythm — the LCM of two beat patterns gives the bar length at which both patterns reset simultaneously.
  • Modular arithmetic — LCM of moduli appears in the Chinese Remainder Theorem and certain cryptographic key generation algorithms.

Note

The LCM is sometimes called the **LCD** (Least Common Denominator) specifically in the context of fraction arithmetic. The two terms refer to the same calculation — "least common denominator" is simply the applied name when the inputs are denominators of fractions you want to combine.

Prime factorisation method

The prime factorisation method works by breaking each number into its prime factors, then assembling the LCM from the highest power of each prime that appears in any factorisation. It is the most transparent method — every step has a clear reason — and it scales naturally to three or more numbers at once.

The LCM contains every prime factor present in any input, taken to its highest power. Nothing more, nothing less.

Number theory convention

Worked example: LCM(12, 18)

Step 1 — factorise each number: 12 = 2² × 3, and 18 = 2 × 3². Step 2 — list all distinct primes across both factorisations: 2 and 3. Step 3 — take the highest power of each: 2² (from 12) and 3² (from 18). Step 4 — multiply: LCM = 2² × 3² = 4 × 9 = 36. Every multiple of 12 and every multiple of 18 shares 36 as their first common value.

Worked example: LCM(8, 15)

Factorise: 8 = 2³ and 15 = 3 × 5. These two numbers share no common prime factors — they are coprime. When two numbers are coprime, their LCM is simply their product: LCM(8, 15) = 8 × 15 = 120. This is also what the GCD shortcut would give: GCD(8, 15) = 1, so LCM = (8 × 15) ÷ 1 = 120. The Prime Factorization tool on Quasar Tools produces complete factor trees for any integer, which makes this step instant for large numbers.

Tip

For three or more numbers, add their factorisations to the same table and take the highest power of each prime across all columns. You do not need to apply the method pairwise — one pass through the full set produces the LCM directly.

GCD shortcut method

The GCD shortcut is the fastest hand-calculation method for two numbers. The formula is: LCM(a, b) = (a × b) ÷ GCD(a, b). You only need the GCD to unlock the LCM — and the GCD is found in a few iterations using the Euclidean algorithm, which requires nothing more than repeated division.

Finding the GCD with the Euclidean algorithm

Divide the larger number by the smaller and note the remainder. Replace the larger with the smaller and the smaller with the remainder. Repeat until the remainder is zero — the last non-zero remainder is the GCD. For GCD(48, 36): 48 ÷ 36 = 1 remainder 12; 36 ÷ 12 = 3 remainder 0. GCD = 12. Therefore LCM(48, 36) = (48 × 36) ÷ 12 = 1728 ÷ 12 = 144.

Comparing the two methods

CriterionPrime FactorisationGCD Shortcut
Best for3+ numbers at once2 numbers quickly
RequiresFactor tree per numberOne GCD calculation
Scales to large numbers✗ Slow by hand✓ Euclidean is fast
Shows why✓ Visual and clear✗ Formula-driven
Works without GCD✓ Yes✗ Needs GCD first
Coprime shortcut✓ Product directly✓ GCD = 1, same result

For numbers under 100, either method takes about the same effort. For larger numbers — three-digit integers or beyond — the GCD shortcut wins because the Euclidean algorithm converges quickly regardless of size. The GCD & LCM Calculator on Quasar Tools shows both values simultaneously with the Euclidean steps visible.

Note

The GCD shortcut only works directly for **two** numbers at a time. For three or more, apply it iteratively: LCM(a, b, c) = LCM(LCM(a, b), c). This is exactly what the LCM Calculator does internally when you enter more than two values.

How to find LCM on a calculator

Most basic calculators do not have a dedicated LCM button. Scientific calculators vary — some graphing calculators like the TI-84 have a built-in lcm() function, but many do not. The fastest approach for everyday use is the free online LCM Calculator on Quasar Tools, which accepts up to 10 numbers and returns the LCM with prime factorisations and step-by-step working in under a second.

1

List the numbers whose LCM you need

Open the LCM Calculator on Quasar Tools. Enter each number separated by commas — for example: 12, 18, 30. The tool accepts integers from 2 to 10 inputs. For fraction problems, enter only the denominators, not the full fractions.

2

Find the prime factorisation of each number

The calculator shows the prime factorisation of each input automatically. If you want to see the factor tree in detail before running the LCM, use the separate Prime Factorization tool — it produces the complete factorisation for any integer and is especially useful when working through problems step by step.

3

Read the LCM and verify with the GCD shortcut

The LCM Calculator returns the result with the full working — highest prime powers identified and multiplied. To double-check, confirm using the GCD shortcut: LCM(a, b) = (a × b) ÷ GCD(a, b). The GCD & LCM Calculator shows both the GCD and LCM side by side so you can verify both values in one step.

4

Use the result in your calculation

For fraction arithmetic, use the LCM as your common denominator and convert each fraction by multiplying numerator and denominator by (LCM ÷ original denominator). For scheduling problems, the LCM is the answer itself — the number of periods until both cycles next align. For algebraic simplification, multiply every term by the LCM to clear all denominators at once.

LCM Calculator

Find the least common multiple of up to 10 numbers instantly — shows prime factorisations, highest power selection, and step-by-step working in your browser.

Open tool

Finding LCM on a TI-84 or Casio calculator

On a TI-84, press MATH, scroll right to NUM, and select lcm(. Enter the two numbers separated by a comma: lcm(12,18) returns 36. On Casio fx-991 series, press OPTN and look for the CALC or NUM submenu — some models include LCM and GCD functions. If your physical calculator does not have an LCM function, use the GCD-based formula: compute GCD first, then divide (a × b) by it.

Using LCM for fractions

The most common practical use of LCM is finding the smallest common denominator when adding or subtracting fractions. Using the LCM rather than simply multiplying the denominators together keeps the numbers as small as possible and eliminates a simplification step at the end.

Step-by-step: adding fractions using LCM

To add 5/12 + 7/18, start by finding LCM(12, 18) = 36. Convert each fraction: 5/12 = 15/36 (multiply numerator and denominator by 36 ÷ 12 = 3) and 7/18 = 14/36 (multiply by 36 ÷ 18 = 2). Now add the numerators: 15/36 + 14/36 = 29/36. Since 29 is prime and does not divide 36, this fraction is already in its simplest form. The Fraction Calculator on Quasar Tools performs this entire process automatically, showing the LCM step.

Why the LCM keeps fractions simpler

If you used the product of denominators as the common denominator instead of the LCM — 12 × 18 = 216 — you would add 5/12 = 90/216 and 7/18 = 84/216, giving 174/216. This simplifies to 29/36 after dividing by GCD(174, 216) = 6. The result is the same, but the numbers are three times larger throughout. For complex expressions with several fractions, this difference compounds and the arithmetic becomes error-prone without the LCM as the base.


LCM in algebraic fraction equations

When solving equations with fractions — for example x/4 + x/6 = 5 — multiply every term by the LCM of all denominators to clear the fractions at once. LCM(4, 6) = 12. Multiply through: 3x + 2x = 60, so 5x = 60 and x = 12. This technique is covered in more depth in the how to solve for x on a calculator guide, which includes the linear equation solver for multi-step problems.

Tip

When the denominators in a problem are large or have no obvious common factors, the [GCD & LCM Calculator](/tools/math/calculators/gcd-lcm-calculator) is faster than factorising by hand. Paste in the denominators, read the LCM, and continue with the fraction arithmetic immediately.

LCM of three or more numbers

Finding the LCM of three or more numbers follows the same logic — you just extend the prime factorisation table or apply the GCD shortcut iteratively. Both methods produce the same result; the prime factorisation approach is easier to see in a single pass, while the iterative GCD approach is easier to compute for large numbers.

Prime factorisation for three numbers

To find LCM(4, 6, 10): factorise all three — 4 = 2², 6 = 2 × 3, 10 = 2 × 5. The primes present across all three are 2, 3, and 5. Highest powers: 2² (from 4), 3¹ (from 6), 5¹ (from 10). LCM = 2² × 3 × 5 = 4 × 3 × 5 = 60. Check: 60 ÷ 4 = 15 ✓, 60 ÷ 6 = 10 ✓, 60 ÷ 10 = 6 ✓.

Iterative GCD method for three numbers

Compute LCM(4, 6) = 12 first, then compute LCM(12, 10). GCD(12, 10) = 2, so LCM(12, 10) = (12 × 10) ÷ 2 = 60. Both methods agree. For four numbers, continue: LCM(LCM(LCM(a, b), c), d). The LCM Calculator on Quasar Tools accepts up to 10 numbers and applies the prime factorisation method across all of them simultaneously, which is more reliable than chaining the GCD shortcut six times for large sets.

NumbersLCMKey prime factors
4, 6122², 3
4, 6, 10602², 3, 5
4, 6, 10, 15602², 3, 5 (15 = 3×5, already covered)
12, 18, 24722³, 3²
5, 7, 113855, 7, 11 (all prime, no overlap)
8, 12, 20, 301202³, 3, 5

Warning

When numbers share large common factors, the LCM can be much smaller than their product. LCM(12, 18, 24) = 72, not 12 × 18 × 24 = 5,184. Always use factorisation or the GCD shortcut — guessing that the LCM is the product of all inputs will almost always overestimate the answer.

Real-world applications of LCM

LCM is not just a textbook concept — it solves concrete problems in scheduling, engineering, and finance. Recognising the underlying LCM structure in a word problem is the skill that lets you apply the right calculation immediately.

Scheduling and synchronisation problems

A classic scheduling problem: Bus A departs every 12 minutes and Bus B departs every 18 minutes. Both depart together at 8:00 AM. When is the next time they depart together? The answer is LCM(12, 18) = 36 minutes later — at 8:36 AM. The same logic applies to gear teeth counts (LCM determines when the same two teeth re-engage), server maintenance windows (LCM of two cycle lengths is when both windows next coincide), and production line resets.

Finance and payment cycles

If one payment is due every 4 weeks and another every 6 weeks, LCM(4, 6) = 12 weeks is the first time both fall on the same day. Budget planners use this to anticipate irregular cash flow clashes. For daily financial calculations — compound interest periods, amortisation schedules — the Compound Interest Calculator handles the underlying period arithmetic, while LCM calculations underpin the period alignment logic.

Construction and measurement

Tiles of two different sizes need to fit a floor without cutting: tiles that are 4 cm wide and 6 cm wide both fit evenly in a row of LCM(4, 6) = 12 cm. The same principle determines the minimum plank length for flooring patterns and the minimum roll width for repeating fabric designs. Any problem of the form "what is the minimum length that is an exact multiple of both X and Y?" is an LCM problem.

GCD & LCM Calculator

Calculate both the greatest common divisor and least common multiple of any set of numbers simultaneously — with Euclidean algorithm steps and prime factorisation shown.

Open tool

Key takeaways

  • The LCM (Least Common Multiple) is the smallest positive integer divisible by every number in a set — always greater than or equal to the largest input.
  • The prime factorisation method finds LCM by taking the highest power of each prime factor across all inputs and multiplying them together.
  • The GCD shortcut — LCM(a, b) = (a × b) ÷ GCD(a, b) — is the fastest hand method for two numbers; apply it iteratively for three or more.
  • When two numbers are coprime (GCD = 1), their LCM is simply their product — no further calculation needed.
  • Use LCM as the common denominator (LCD) when adding or subtracting fractions — it keeps numerators smaller than using the product of denominators.
  • The LCM Calculator on Quasar Tools handles up to 10 numbers at once with prime factorisation working shown in under a second.
  • Scheduling problems where two cycles must coincide are solved directly by LCM — the answer is always the LCM of the two cycle lengths.

Frequently Asked Questions

The fastest manual method is the GCD shortcut: LCM(a, b) = (a × b) ÷ GCD(a, b). Find the GCD first using the Euclidean algorithm (divide the larger number by the smaller, then replace the larger with the smaller and the smaller with the remainder, repeat until the remainder is zero — the last non-zero remainder is the GCD). Then multiply the two original numbers and divide by the GCD.

For example, LCM(12, 18): GCD = 6, so LCM = (12 × 18) ÷ 6 = 36. The LCM Calculator on Quasar Tools handles this in one step.

Most scientific calculators do not have a dedicated LCM button. To find LCM on a scientific calculator, use the formula LCM(a, b) = (a × b) ÷ GCD(a, b). Calculate a × b first, then divide by the GCD. To find the GCD manually, use repeated division. Alternatively, some graphing calculators (TI-84, Casio fx series) have built-in lcm() and gcd() functions accessible through the Math menu. The free LCM Calculator on Quasar Tools is faster than any of these methods for most use cases.

LCM appears in several practical contexts. In arithmetic, adding or subtracting fractions requires a common denominator — the LCM of the denominators gives the smallest common denominator, which keeps the arithmetic clean. In scheduling, the LCM of two cycle lengths is the first point when both cycles coincide — used in gear ratios, bus timetables, and event synchronisation. In music, LCM determines when two rhythmic patterns next align. In modular arithmetic and cryptography, LCM of prime factors appears in key generation algorithms.

The LCM (Least Common Multiple) is the smallest positive number that is a multiple of every number in the set — it is always greater than or equal to the largest number in the set. The GCD (Greatest Common Divisor) is the largest positive number that divides every number in the set without a remainder — it is always less than or equal to the smallest number. The two are related by LCM(a, b) = (a × b) ÷ GCD(a, b). LCM is used when combining cycles or finding common denominators; GCD is used when simplifying fractions or finding common factors.

Apply the LCM operation pairwise: LCM(a, b, c) = LCM(LCM(a, b), c). Start with the first two numbers, compute their LCM, then compute 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. Alternatively, use prime factorisation across all numbers simultaneously — take the highest power of every prime that appears in any factorisation and multiply them together. The LCM Calculator on Quasar Tools handles up to 10 numbers at once with this method.

No. The LCM of two or more numbers is always greater than or equal to the largest number in the set, because a multiple of a number is always at least as large as the number itself. The only case where LCM equals one of the input numbers is when one number is already a multiple of all the others — for example, LCM(4, 8) = 8, because 8 is already a multiple of 4.

If a calculator or tool returns an LCM smaller than your largest input, there is an error in the calculation.

To add fractions with different denominators, you need a common denominator. The LCM of the denominators is the smallest common denominator (also called the LCD). For example, to add 1/4 + 1/6: LCM(4, 6) = 12. Convert both fractions: 1/4 = 3/12 and 1/6 = 2/12. Now add: 3/12 + 2/12 = 5/12. Using the LCM rather than just multiplying denominators keeps the numbers as small as possible and avoids an extra simplification step at the end.

Yes — there are two main formulas. The GCD-based formula: LCM(a, b) = (a × b) ÷ GCD(a, b). This is the fastest method when you can find the GCD quickly. The prime factorisation formula: decompose each number into prime factors, then multiply the highest power of each prime that appears in any decomposition. Both formulas produce the same result. For more than two numbers, the prime factorisation approach scales more cleanly, while the GCD formula needs to be applied iteratively.

ShareXLinkedIn

Related articles