Free · Arithmetic calculators ➗
Least Common Multiple with Worked Methods
Find the LCM of up to fifteen nonzero integer or exact decimal values. Compare bounded multiple lists, highest prime powers and every GCF step.
- Formula & worked example
- Private in your browser
- No signup
Calculator inputs
Loading calculator…
How to use this calculator
- Enter the known values in the units shown. Results update as you type.
- Where results are editable, change one to solve backwards. Lock a value to hold it fixed.
- Use the worked example to check the method. Reset restores the starting fields.
Private by default
Inputs and results stay in this browser tab. Bookify does not upload or store the values you enter.
Formula and method
A common multiple must contain the highest required power of every prime. The least such product is the LCM. The GCF identity gives the same answer and can be applied successively to a longer list.
For integers, LCM(a,b)=|a×b|/GCF(a,b). For finite decimals, scale every magnitude by the same10^s, find the integer LCM, then divide by10^s.
Worked example
Enter these known values and leave the other values blank.
- #1
- 12
- #2
- 18
- #3
- 30
- Choose method:
- Using GCF
- Result
- The least positive common multiple of 12, 18, 30 is 180.
- Explanation
- Negative signs are ignored. All entered magnitudes are already integers; no decimal scaling is needed.
- Explanation
- For positive integers a and b, LCM(a,b)=a×b/GCF(a,b). Start with the first two scaled magnitudes and combine that LCM with the next magnitude, until every operand is included.
- Explanation
- Step1: a=12; b=18; product=216; GCF=6; LCM=36.
- Explanation
- Step2: a=36; b=30; product=1080; GCF=6; LCM=180.
Assumptions and limitations
- Enter2 through15 nonzero finite values, each with at most8 decimal places. Negative signs are ignored; repeated values are allowed. Blank fields are omitted.
- The common decimal scaling must leave every positive scaled integer no greater than10000000000. This is a computational budget; reduce magnitudes or decimal places if the combination exceeds it.
- The source has four methods: None, list of multiples, prime factorization and successive GCF. None hides working without hiding the LCM result.
- Multiples include all preceding terms when fewer than95; otherwise the first10, central10 and last5 are sampled with explicit ellipses. The first common value and three subsequent multiples remain. No allocation follows the magnitude of the LCM.
- Each integer factorization uses at most50000 odd trials, the full result has at most151 digits, and all worked plain text is bounded by262144characters with an eight-entry cache.1 has the empty prime product.
- Zero is outside the captured positive-multiple workflow. Under the usual algebraic convention, LCM(0,n)=0; remove zero to use these positive-multiple work lists.
- The source callback rounded decimal inputs to8 places and later explanation rows reused an earlier product/GCF. This implementation requires exact admitted decimals and shows the actual current numbers at every step.
- Inputs accept decimal or e notation and bounded arithmetic expressions only when each intermediate and final value can be verified exactly as a finite decimal. Repeating fractions, functions, symbols and expressions that lose digits are rejected with guidance. Enter their finite decimal value instead; the calculator-specific magnitude and precision limits still apply.
Common questions
Can the LCM of decimal values be smaller than1?
Yes. For0.12 and0.18, multiply both by100 to obtain12 and18. Their integer LCM is36, so divide by100 to get0.36. Each original value divides0.36 an integer number of times.
What happens to negative signs and duplicate numbers?
LCM uses positive magnitudes. A duplicate number adds no new prime-power requirement, although it can still appear as an entered operand in the worked sequence.
Why do long multiples lists contain ellipses?
A common multiple can be enormous. The displayed sample retains the first, central and final preceding stretches and marks omitted terms; it never pretends the sampled list is complete.
References
Translate the captured15-operand optional callback into exact bounded local decimal normalization, BigInt prime-factor/LCM arithmetic and plain-text worked output. Preserve None, list of multiples, prime factorization/highest powers and every sequential GCF row. Correct the captured repetition of an earlier product/GCF in later rows so every displayed step uses its actual current numbers. Preserve source positions, entered order, signs-ignored context and exact shared-scale explanation; no captured JavaScript, HTML or valueMarkdown is executed. Bind the complete LCM capture/compiler/served schema to2–15 nonzero exact finite decimal operands, each at most8 decimal places and magnitude10000000000. Every positive operand after common decimal scaling must remain at most10000000000; dynamically validate this cohort relationship without discarding any operand. Retain all15 progressive controls and four method choices, bounded multiple samples with explicit ellipses, every prime exponent and all14 current GCF steps. Generate only34 declared plain-text exports plus three small readonly numeric summaries. Maximum50000 odd factor trials per operand,151 result digits,262144text characters and eight immutable cached summaries; reject unsupported domains rather than rounding, wrapping or omitting work.
Related calculators
Explore arithmetic calculators ➗ or browse all math calculators.