Calculators · Tool
GCD and LCM Calculator
Enter two nonnegative whole numbers.
How to use it
- Enter two nonnegative whole numbers.
- Run the tool, then copy the result if needed.
How it works
The tool uses Euclid's algorithm for the greatest common divisor. It computes the least common multiple with exact integers and returns zero if either input is zero.
Use it for
- Find a common denominator or check whether two cycles line up.
Questions
Does this run locally?
Yes. This tool processes its inputs in your browser.