calcula·live209+
€ Salary & Work 16 tools €Net salary↺Gross (from net)⚙Advanced net salaryΣTotal employer cost▁Minimum wage◆Meal vouchers◷Part-time salary▲Overtime pay →See all — Salary & Work
% Taxes 19 tools %VAT calculator€Income tax◆Dividend tax◈Car tax (VED)⌂Rental income tax◇Withholding tax▪Micro-company tax▣Corporate profit tax →See all — Taxes
⌂ Credit 16 tools ⌂Mortgage€Consumer loan◈Car loan↻Refinancing%Effective APR◔How much can I borrow?↩Early repayment▤Amortization table →See all — Credit
↗ Finance 18 tools ∑Compound interest⇗Investment calculator (SIP)⊞Savings simulator⇄Currency converter◉Gold price↗Inflation▭Term deposit%Investment ROI →See all — Finance
♥ Health 22 tools ⚖BMI◆Ideal weight▲Daily calories (TDEE)◔Pregnancy (weeks)◍Daily water intake◔BMR◔Ovulation✕Smoking cost →See all — Health
∑ Math 22 tools %Percentages⁝Rule of three∑Average & statistics√Power & root⇄Unit conversions▱Area & perimeter◧Volume◺Pythagoras →See all — Math
◷ Time & Date 25 tools ◷Date difference◆Exact age▤Working days±Add / subtract date◔Countdown⏳Days until…☀Sunrise & sunset◴Current time in a city →See all — Time & Date
✎ Education 14 tools ✎Subject average∑Weighted average◪Midterm & final grade↗Grade needed▦ECTS credits / GPA★Graduation average◇SATs scaled score▲UCAS points / admission →See all — Education
⛽ Auto & Travel 15 tools ⛽Fuel consumption€Trip cost→Speed / time / distance◈Car tax (VED)↔Distance between cities◐Bonus-malus class⚑Halfway point◑Split trip cost →See all — Auto & Travel
⌂ Real Estate 13 tools ✍Notary purchase fees%Agent commission◫Price per m²▱Built / usable area⌂Rental yield⇆Rent vs buy⌂Mortgage▤Land share →See all — Real Estate
▲ Business & Commerce 12 tools ▲Profit margin↗Markup◫AdSense revenue (website)▤App revenue (AdMob)▭Final price↘Discount⊗Break-even point↻Stock turnover →See all — Business & Commerce
⛨ Insurance 6 tools ⌂Home insurance⛨Life insurance✚Health insurance✈Travel insurance◐Bonus-malus class⛨Loan insurance →See all — Insurance
§ Legal 9 tools §Legal term (days)%Legal interest◆Child support✎Court fees◷Statute of limitations↗Inflation update⚖Enforcement cost◑Mediation fee →See all — Legal
◈ Everyday Tools 11 tools ◐Tip calculator⊟Split the bill❄AC BTU◨HTML color code✳Password generator✎Word / character count⌗MD5 / hash◔Generation →See all — Everyday Tools
≣All calculators
Live
Advertisement 320 × 50 mobile only · sticky top
Math · Updated 2026

GCD & LCM Calculator

Instantly calculate the greatest common divisor (GCD) and least common multiple (LCM) of any number of integers.

Enter the numbers

Whole numbers

121824
3 values

Separate the numbers with a space or comma. GCD = greatest common divisor; LCM = least common multiple.

=GCD
6
Numbers12, 18, 24
GCD6
LCM72

Standard mathematical formulas. Instant in-browser calculation, no account. Exact results, big numbers computed precisely.

Advertisement 728 × 90320 × 250 desktop 728×90 sticky · mobile 320×250

iHow it is calculated

The GCD is the largest number dividing all values exactly, and the LCM is the smallest number divisible by all of them. Both follow from prime factorization or Euclid’s algorithm:

LCM(a, b) = (a × b) ÷ GCD(a, b)

For 12 and 18: GCD = 6, LCM = 36. Check: (12 × 18) ÷ 6 = 216 ÷ 6 = 36.

Advertisement 728 × 90320 × 250 desktop 728×90 sticky · mobile 320×250

?Frequently asked questions

What is the GCD (greatest common divisor)?

It is the largest number that divides all the given numbers exactly. The GCD of 12 and 18 is 6.

What is the LCM (least common multiple)?

It is the smallest number that is divisible by all the given numbers. The LCM of 12 and 18 is 36.

How is the GCD computed with Euclid’s algorithm?

Repeatedly divide the larger number by the smaller and replace it with the remainder, until the remainder is 0. The last non-zero divisor is the GCD.

How do I get the LCM from the GCD?

For two numbers: LCM = (a × b) ÷ GCD. For example, (12 × 18) ÷ 6 = 36.

What are GCD and LCM used for?

GCD for simplifying fractions; LCM for finding a common denominator and for problems with events that repeat at different intervals.

What is the GCD of two coprime numbers?

It is 1. Two numbers are coprime if they share no common divisor other than 1, for example 8 and 15.

Can I compute GCD and LCM for several numbers?

Yes. Enter any number of values; the calculator applies the operation successively, two at a time.

Example: GCD and LCM of 12, 18 and 24?

GCD = 6 (greatest common divisor), and LCM = 72 (least common multiple of the three).

Is GCD the same as HCF?

Yes. The greatest common divisor (GCD) is also called the highest common factor (HCF) or greatest common factor (GCF) — all three name the same value: the largest whole number that divides every input exactly.

Advertisement 728 × 90320 × 250 desktop 728×90 sticky · mobile 320×250

→Related tools

209 tools · 14 categories

Explore all calculators

All calculators (209) →
Advertisement 320 × 50