LCM & GCD Calculator — Any List of Numbers
Greatest common divisor and least common multiple of any list of integers, exact. Client-side.
How to use
- 1 Enter two or more integers, separated by commas or spaces.
- 2 The GCD and LCM are computed instantly.
- 3 Large results are exact (arbitrary precision).
Why use this tool
- GCD and LCM of any list of numbers in one step.
- Exact results even for very large numbers.
- Runs entirely in your browser.
Frequently asked questions
What is the GCD?
The greatest common divisor — the largest integer that divides all the given numbers without a remainder.
What is the LCM?
The least common multiple — the smallest positive integer that is a multiple of all the given numbers.
How are they related?
For two numbers, gcd(a, b) × lcm(a, b) = |a × b|. The GCD is found with the Euclidean algorithm; the LCM follows from it.
Can I enter more than two numbers?
Yes — the GCD and LCM are computed across the whole list pairwise.
What is LCM & GCD Calculator?
An LCM/GCD calculator finds the greatest common divisor and least common multiple of a list of integers using the Euclidean algorithm, with exact arbitrary-precision arithmetic.
Features
GCD & LCM together
Computes both the greatest common divisor and least common multiple at once.
Euclidean algorithm
Uses the classic, efficient Euclidean method — exact for large integers.
Free & private
Runs on your device — nothing is uploaded.
Example
Input
12 and 18
Output
GCD = 6 · LCM = 36
Common use cases
-
1
Simplify fractions
Divide numerator and denominator by their GCD to reduce a fraction.
-
2
Find common denominators
Use the LCM of denominators to add or compare fractions.
-
3
Schedule cycles
Find when two repeating events coincide via their LCM.
Zerethon's LCM & GCD calculator finds the greatest common divisor and least common multiple of two or more integers in your browser, using the Euclidean algorithm. It shows both results live. Everything runs client-side — nothing is uploaded.
- Category
- Math
- Pricing
- Free
- Privacy
- Browser-based
- Signup
- Not required
References
- Greatest Common Divisor — Wolfram MathWorld — Wolfram MathWorld
- Least Common Multiple — Wolfram MathWorld — Wolfram MathWorld
- Euclidean algorithm — Wikipedia
Privacy
Your data never leaves your browser unless explicitly stated. LCM & GCD Calculator runs entirely client-side — no server upload, no logging, no tracking of your input.
Compare
Related tools
Percentage Calculator
Three-in-one percentage calculator: X% of Y, X as a % of Y, and % increase/decrease. Instant, client-side.
Open toolScientific Calculator
Online scientific calculator — trig, log, powers, roots, factorial, π/e, DEG/RAD, with a proper expression parser. Client-side.
Open toolFraction Calculator
Add, subtract, multiply and divide fractions with automatic simplification, decimal and mixed-number output. Client-side.
Open toolCombinations & Permutations Calculator
Exact nCr, nPr and n! with big-integer precision. Client-side, no signup.
Open toolBuild, share, and grow on Zerethon Social
Free signup. Earn points, collect achievements, and connect with creators worldwide.