Math

GCD and LCM Calculator

Greatest common divisor and least common multiple of two integers.

Free to use — no sign-up or login.

GCD

LCM

This free GCD and LCM Calculator covers Greatest common divisor and least common multiple of two integers.

GCD is the largest shared divisor; LCM is the least common multiple. Related math tools sit beside How it works, with no account required.

Using the GCD and LCM Calculator

Greatest common divisor and least common multiple of two integers. Typical inputs are Integer a and Integer b. How it works beside the form states the identity the GCD and LCM Calculator applies.

FAQ

How do I use the GCD and LCM Calculator?

Open the GCD and LCM Calculator, fill Integer a and Integer b, and read the result. Enter Integer a and Integer b for the GCD and LCM Calculator; use finite values in the indicated domain. The calculator reports GCD and LCM: GCD is the largest shared divisor; LCM is the least common multiple. When either integer is zero, check the LCM convention required by your application.

What formula does the GCD and LCM Calculator use?

The GCD and LCM Calculator uses the identity in How it works. In words: Enter Integer a and Integer b for the GCD and LCM Calculator; use finite values in the indicated domain. The calculator reports GCD and LCM: GCD is the largest shared divisor; LCM is the least common multiple. When either integer is zero, check the LCM convention required by your application.