GCD & LCM Calculator

Calculate GCD and LCM of two or more numbers using the Euclidean algorithm.

  1. Home
  2. Utilities
  3. GCD & LCM Calculator

GCD & LCM Calculator

GCD (Greatest Common Divisor)
--
LCM (Least Common Multiple)
--
Euclidean Algorithm Steps
--

How to Use

  1. Enter numbers — Type two or more positive integers separated by commas or spaces.
  2. Calculate — Click Calculate to find GCD and LCM using the Euclidean algorithm.
  3. View steps — See the step-by-step Euclidean algorithm showing the division process.

Frequently Asked Questions

What is GCD?

The Greatest Common Divisor (GCD), also known as the Highest Common Factor (HCF), is the largest positive integer that divides all given numbers without a remainder.

What is LCM?

The Least Common Multiple (LCM) is the smallest positive integer that is divisible by all given numbers. LCM(a, b) = |a × b| / GCD(a, b).

How does the Euclidean algorithm work?

The Euclidean algorithm repeatedly divides the larger number by the smaller and replaces the larger with the remainder until the remainder is zero. The last non-zero divisor is the GCD. It is one of the oldest algorithms still in common use.