All tools · 📊 Math

GCD / LCM Calculator

GCD (Greatest Common Divisor, a.k.a. GCF) is the largest number dividing all inputs. LCM (Least Common Multiple) is the smallest number that all inputs divide. Enter 2 or more integers — we compute both, plus show prime factorizations.

Loading tool…

Examples

GCD of two numbers
Input48, 60
OutputGCD = 12 · LCM = 240
Three numbers
Input12, 18, 24
OutputGCD = 6 · LCM = 72
Prime factorization shown
Input48
Output2⁴ × 3

Frequently asked questions

What is GCD used for?

Simplifying fractions (divide both numerator and denominator by GCD). Modular arithmetic, RSA cryptography, scheduling problems.

What is LCM used for?

Adding fractions with different denominators (common denominator = LCM). Repeating-event scheduling (e.g., two events every 4 and 6 days coincide every LCM(4,6)=12 days).

GCD vs GCF — different?

No, identical — GCD (Greatest Common Divisor) and GCF (Greatest Common Factor) are the same thing.

Why are they always non-negative?

By convention we take absolute values first. GCD(−12, 18) = 6, same as GCD(12, 18).

About this tool

GCD / LCM Calculator runs entirely in your browser using standard Web APIs. No data is sent to any server. The source for this tool is in our public GitHub repository.

Related tools

← All 96 tools

Why this tool

vs typical free web-tool sites

1vwTypical free site
PriceFreeFree
Signup requiredNoOften (for premium features)
Ads inside the toolNoYes (banner + video)
Data sent to serverNo (browser-only)Yes (inputs analyzed for ads)
Total tools96Often <20 or scattered across sites
Bookmarkable URL per toolYesMixed
Loads in under 1sYes (static)Often slow (ad tracking)
MultilingualEN / ES / PT / FR / DEUsually EN only
Open sourceYesNo