About this GCD & LCM Calculator
GCD & LCM Calculator finds two common number relationships at once. The greatest common divisor is the largest whole number that divides both inputs exactly, while the least common multiple is the smallest positive whole number that both inputs divide into exactly.
Formula or method
Example
For 18 and 24, the GCD is 6 and the LCM is 72.
Common uses
- Simplify fraction and ratio work by finding a common divisor.
- Find a common cycle or interval with the least common multiple.
- Check arithmetic homework or number-theory calculations.
How to use this tool
- Enter the values or text requested by the calculator.
- Choose units or options when the tool provides them.
- Select the calculation button and review the result.
- Use the formula, example and notes on this page to check whether the result fits your situation.
Important note
Use positive whole numbers. Very large values can exceed the exact integer range of a web browser number.
Frequently asked questions
What is the difference between GCD and LCM?
GCD is the largest factor shared by both numbers, while LCM is the smallest positive multiple shared by both numbers.
Can I enter decimals or negative numbers?
This version is designed for positive whole numbers only.