LCM Calculator
Calculate the Least Common Multiple (LCM) of two or more numbers. Instant result in the browser.
What is LCM?
The Least Common Multiple (LCM) is the smallest positive number that is a multiple of two or more integers at the same time. You get it from the relation LCM(a,b) = (a × b) / GCD(a,b).
Taking LCM(4, 6) = (4×6)/GCD(4,6) = 24/2 = 12. A result like this is handy, for instance, when adding fractions with different denominators.
Least common multiple and how to compute it
The least common multiple lcm(a, b) is the smallest positive integer that is a multiple of both a and b. The fastest way to compute it goes through the GCD: lcm(a, b) = (a · b) / gcd(a, b). Example: lcm(4, 6) = (4 · 6) / gcd(4, 6) = 24 / 2 = 12. Because the Euclidean algorithm runs in O(log min(a, b)), the LCM is computed in logarithmic time too — much faster than listing multiples of each number until one matches.
An equivalent route uses prime factorisations: take every prime that appears in either factorisation, raised to the highest exponent it has in either number. For 12 = 2² · 3 and 18 = 2 · 3², the LCM is 2² · 3² = 36.
Where the LCM shows up
- Adding or subtracting fractions: the common denominator is the LCM of the denominators (
1/4 + 1/6 = 3/12 + 2/12 = 5/12). - Calendars and astronomy — solar and lunar cycles realign at the LCM of their periods (synodic periods).
- Gear trains — number of rotations before two meshed gears return to their initial relative position.
- Scheduling and traffic lights with different cycle lengths — the system repeats every LCM seconds.
FAQ
Why divide by the GCD instead of just multiplying? Because a · b counts shared prime factors twice. Dividing by the GCD removes the duplication so the result is the smallest common multiple, not just a common one.
What if one of the numbers is zero? By convention lcm(0, n) = 0, since 0 is a multiple of every integer.
How does LCM extend to three or more numbers? Apply it pairwise: lcm(a, b, c) = lcm(lcm(a, b), c). The operation is associative.
If the two numbers are coprime, what is the LCM? Simply their product — when gcd(a, b) = 1, the formula collapses to lcm(a, b) = a · b.
Calculate the LCM (least common multiple)
The least common multiple is the smallest number that is a multiple of two or more values at the same time. You need it to add fractions with different denominators and to solve problems of cycles that come back into sync. This calculator reaches the LCM without delay.
Enter two or more numbers and the result appears. It's what you use to add and subtract fractions, work out when two periodic events will coincide (think of two lights blinking at different intervals) or solve exercises that ask for the least common multiple.
The calculation runs in your own browser. A direct tool for an operation that keeps coming up at school and in everyday situations.
Related Tools
DPI (Distributed to Paid-In)
Computes the DPI of a private equity fund: the cumulative distributions to investors divided by the paid-in capital. It's the realized multiple, the money that has actually returned to the investor's pocket, not counting what's still locked in unsold holdings. A DPI of 1.0x marks the point where the fund has returned all contributed capital; above that, it's realized profit. It complements RVPI, which measures the unrealized part. Enter the distributions and the paid-in capital.
Eccentricity Ratio
Calculate the eccentricity ratio of a hydrodynamic bearing, ε = e ÷ c, dividing the eccentricity e (shaft centre offset from bearing centre) by the radial clearance c. The result (between 0 and 1) describes the shaft position within the bearing under load: ε = 0 means a centred shaft (no load); ε near 1 means the shaft nearly touches the bearing (heavily loaded, minimum film at the limit). Eccentricity grows with load and decreases with viscosity and speed. The minimum film thickness is h_min = c·(1 − ε). Enter the eccentricity and the radial clearance.
Minimum Bend Radius
Estimate a sheet's minimum bend radius, R_min = t·(50/r − 1), from the thickness t (mm) and the material's percent reduction of area r in the tensile test (%, a ductility measure). The minimum radius is the smallest inner radius you can bend a sheet to WITHOUT cracking the outer face (which is in tension). Bending below the minimum causes cracks or rupture in the outer fiber, where tensile strain exceeds the material's capacity. The minimum radius depends strongly on the material's DUCTILITY (here via reduction of area r): very ductile materials (annealed aluminum, low-carbon steels) can be bent to nearly zero radius (sharp bend), while brittle or work-hardened materials need large radii. It also depends on the bend ORIENTATION relative to the sheet's rolling direction (bending across the rolling direction allows smaller radii than along it, due to anisotropy). Knowing the minimum radius is essential in bent-part design: specifying a smaller radius than possible leads to crack scrap. It is common to express the minimum radius as multiples of thickness (e.g. '2t'). Enter the thickness and the material's reduction of area.
CLT Unhealthiness Bonus by Degree Calculator
Computes Brazilian CLT unhealthiness bonus of 10, 20 or 40 percent on the minimum wage per NR 15 degree (low, medium, max).
GCD Calculator
Calculate the Greatest Common Divisor (GCD) of two or more numbers using the Euclidean algorithm. Instant result.
Minimum Reflux (Underwood)
Estimate the minimum reflux ratio of a binary distillation by Underwood's equation (saturated-liquid feed), Rmin = [xD/xF − α·(1−xD)/(1−xF)]/(α − 1), from the relative volatility (α) and the light-component mole fractions in the distillate (xD) and feed (xF). At minimum reflux, the column would need infinite plates; the operating reflux is a multiple of it (1.1–1.5×). It is a key number in column design. Enter α, xD and xF.
The results provided by this tool are for general informational and educational purposes only and do not constitute professional, financial, medical, legal, tax or accounting advice. Always confirm important decisions with a qualified professional and official sources.