GCD and LCM Calculator

Calculator

A GCD and LCM calculator finds the greatest common divisor and least common multiple of two integers.

What is it

The GCD is the largest integer that divides both numbers. The LCM is the smallest positive integer that is a multiple of both.

LCM(a,b) = |a×b| / GCD(a,b)

How to use

  1. 1Enter two integers.
  2. 2Run the calculation.
  3. 3Check the GCD and LCM.

Reference

GCD and LCM Calculator Reference
ABGCDLCM
24361272
812424

Sources & standards

FAQ

What are the GCD and LCM of 24 and 36?

The GCD is 12 and the LCM is 72.

Is input sent to a server?

No. This tool runs in your browser and does not send input to a server.

Related tools