Skip to main content
UB UtilBayHQ

LCM & GCD Calculator

Calculate the Least Common Multiple (LCM) and Greatest Common Divisor (GCD) of two integers.

100% Client-Side • Zero Server Uploads • Updated

GCD / HCF

12

LCM

72

Euclidean GCD & LCM

Uses the Euclidean algorithm to compute GCD and LCM instantaneously in your browser.

Frequently Asked Questions

What algorithm is used?

The Euclidean algorithm for GCD, then LCM = |a * b| / GCD.