GCD & LCM Calculator
Calculate the Greatest Common Divisor and Least Common Multiple of two numbers.
- Free Online Tool
- Instant Results
- Mobile Friendly
- No Installation
- Secure & Private
Understanding This Calculator
Definitions
- GCD (Greatest Common Divisor): The largest positive integer that divides each of the integers.
- LCM (Least Common Multiple): The smallest positive integer that is divisible by both integers.
Relationship Formula
There is a direct relationship between GCD and LCM:
LCM(a, b) = |a × b| / GCD(a, b)
Example 1
Numbers: 12 and 18
- Factors of 12: 1, 2, 3, 4, 6, 12
- Factors of 18: 1, 2, 3, 6, 9, 18
- GCD: 6 (Largest shared factor)
- LCM: (12 × 18) / 6 = 216 / 6 = 36
Example 2
Numbers: 5 and 7 (Prime numbers)
- GCD: 1
- LCM: (5 × 7) / 1 = 35
How to Use
- Enter the first number.
- Enter the second number.
- Get GCD and LCM instantly.
Frequently Asked Questions
How do I use the GCD & LCM Calculator?
Enter your values in the input fields, and the result will appear instantly.
Is this calculator free to use?
Yes, this calculator is 100% free and does not require any registration or subscription.
Is it mobile-friendly?
Absolutely! Our tool is optimized for all devices, including mobile phones, tablets, and desktop computers.