GCD & LCM Calculator
Find the GCD and LCM of up to 10 numbers at once with step-by-step Euclidean algorithm and prime factorization methods.
Enter at least two valid positive integers.
Greatest Common Divisor
—
Coprime
Least Common Multiple
—
Relationship Verification
GCD(0, 0) × LCM(0, 0) = 0
|0 × 0| = 0
Verified: GCD × LCM = |a × b|
Prime Factorizations
How to use GCD & LCM Calculator
-
Enter your numbers
Type two or more positive integers into the input fields. Click '+' to add more fields — up to 10 numbers supported.
-
View GCD and LCM
The greatest common divisor and least common multiple are calculated and displayed prominently.
-
See the step-by-step working
Click 'Show steps' to see the prime factorization method and Euclidean algorithm used to find each answer.
-
Verify the relationship
The relationship GCD × LCM = |a × b| is verified live below the results.
-
Check if numbers are coprime
When GCD equals 1, the numbers are coprime — the calculator highlights this automatically.
GCD & LCM Calculator FAQ
What is the GCD (greatest common divisor)?
What is the LCM (least common multiple)?
How do I find the GCD using the Euclidean algorithm?
How do I find the GCD using prime factorization?
How are GCD and LCM related?
What does coprime mean?
What is the HCF?
Why do I need the LCM?
Can I calculate GCD for more than two numbers?
Is any data sent to a server?
Background
Calculate the GCD and LCM of up to ten numbers simultaneously. See the solution worked out step by step using both the prime factorization method and the Euclidean algorithm — which approach appears depends on the input size, but both are shown for educational value. The mathematical relationship GCD × LCM = |a × b| is verified live, helping students confirm their understanding. Supports the HCF (highest common factor) terminology used in UK and Commonwealth curricula. Ideal for homework involving simplifying fractions, finding common denominators, scheduling problems, and number theory. Add up to ten numbers with the plus button, and results update instantly as you type. All processing runs entirely in your browser.
Related tools
Fraction Calculator
Add, subtract, multiply, or divide fractions with step-by-step solutions. Simplify, convert between decimals and percentages, and work with mixed numbers.
Prime Number Tools
Check if a number is prime, find prime factorization, list all primes in a range using the Sieve of Eratosthenes, or find the Nth prime.
Factorial Calculator
Calculate n factorial, double factorial, subfactorial, trailing zeros, and digit count. BigInt support for exact large number results.
Permutation & Combination Calculator
Calculate nPr permutations and nCr combinations with step-by-step formula breakdowns. Supports with and without repetition. BigInt precision.
Percentage Calculator
Calculate X% of Y, find what percentage X is of Y, or compute percentage increase and decrease. Results update as you type.