GCD/LCM Calculator

Free online gcd/lcm calculator. Greatest common divisor and least common multiple. Accurate and easy to use.

Numbers
Results

GCD

6

LCM

36

GCD(12, 18) × LCM(12, 18) = 6 × 36 = 216

12 × 18 = 216

✓ Verified: GCD × LCM = a × b

Euclidean algorithm steps

18 = 1 × 12 + 6

12 = 2 × 6 + 0

GCD = 6

Embed this tool

Copy and paste the code below into your website to embed this tool for free. An attribution link to The Util Box is required.

<iframe src="https://www.theutilbox.org/embed/gcd-lcm-calculator" width="600" height="500" frameborder="0" style="border: none; max-width: 100%;" title="Free gcd lcm calculator tool from The Util Box"></iframe>

Frequently Asked Questions about GCD/LCM Calculator