LCM & GCD Calculator

Calculate LCM and GCD

LCM & GCD Calculator — free online tool

🔒 Zero upload · Method · · Disclaimer · LCM & GCD Calculator

Need a fast answer on calculating LCM and GCD? LCM & GCD Calculator answers with the steps beside it. Type Number 1 and Number 2 into LCM & GCD; each keystroke re-runs the math. The answer from LCM & GCD arrives with its working attached. LCM & GCD suits budgeting and planning checks. No account is needed for LCM & GCD. The browser does the arithmetic. LCM & GCD sits in the Math section next to least common multiple calculator of two numbers and greatest common divisor calculator with steps. LCM & GCD goes from question to answer fast. LCM & GCD answers the next Math question you meet.

What the defaults give

For 12 and 18: the LCM is 36 and the GCD is 6.

They are linked by a useful identity: for any two positive integers, LCM × GCD = a × b. Here 36 × 6 = 216, and 12 × 18 = 216. Find one and the other follows.

Both values from prime factors

12 = 2² × 3
18 = 2 × 3²

GCD takes the lowest power of each shared prime: 2¹ × 3¹ = 6.
LCM takes the highest power of every prime present: 2² × 3² = 4 × 9 = 36.

Worked example by listing

Multiples of 12: 12, 24, 36, 48…
Multiples of 18: 18, 36, 54…
Lowest common: 36

Divisors of both: 1, 2, 3, 6. Greatest: 6.

The shortcut

Euclid’s algorithm gives the GCD quickly: 18 mod 12 = 6, then 12 mod 6 = 0, so the GCD is 6. Then LCM = (12 × 18) ÷ 6 = 36. For large numbers this is far faster than listing multiples.

Where each is used

Mistakes worth avoiding

Frequently Asked Questions

Why is the LCM of 12 and 18 equal to 36?

Because 36 is the smallest number both divide into: 36 = 12 × 3 and 36 = 18 × 2. In prime factors it is 2² × 3², the highest power of every prime present.

Why is the GCD 6?

Because 6 is the largest number dividing both 12 and 18 — 12 = 2 × 6 and 18 = 3 × 6. In prime factors it is 2¹ × 3¹, the lowest power of each shared prime.

Does LCM × GCD always equal the product?

For two positive integers, yes. For three or more numbers it does not hold, so calculate each separately.

How do I find the LCM quickly by hand?

Find the GCD first with Euclid’s algorithm, then divide the product by it. For 12 and 18: GCD 6, so LCM = 216 ÷ 6 = 36.

What is the LCM used for in fractions?

It is the least common denominator. For 1/12 and 1/18, 36 is the smallest denominator both convert to: 3/36 and 2/36, which add to 5/36.

What is the LCM of more than two numbers?

Take the highest power of every prime appearing in any of them. For 4, 6 and 10 that is 2² × 3 × 5 = 60. The product rule LCM × GCD = product applies only to two numbers, so calculate three or more directly.

About CalcProMaster calculators

CalcProMaster is a free library of 1285 online calculators across 20 categories — finance, health, math, business, construction, engineering, conversion, education and more. Every calculator runs entirely in your browser: no sign-up, no paywall, and no data leaves your device.

What makes these calculators different is transparency. Each tool shows the exact formula it uses. It also shows a step-by-step breakdown of how your inputs become the result. That way you can check the math instead of trusting a black box. Every calculator page explains how to read the result. It also lists common mistakes, assumptions and limitations. An FAQ sits with every one, and the most-used tools add a worked example. Health and finance tools name the formula they follow. Calorie needs use Mifflin-St Jeor. Loans use standard amortization. Each page says plainly when an answer should be confirmed with a professional.

The guides library goes deeper on the calculations people search for most. It covers percentage and discount math, loan EMI and amortization, income-tax brackets, calorie and macro planning, and concrete volumes. Each guide gives the formula, worked examples and links to the matching calculator. The glossary defines the terminology in plain language. The public formula QA dashboard shows the verification status of every calculator's math.

Popular starting points: loan EMI calculator, BMI calculator, percentage calculator, random number generator, and concrete calculator. You can also browse a category above to find the tool you need.

↑ ↓ navigate↵ openesc close