GCD & LCM Calculator
Find the greatest common divisor and least common multiple.
GCD & LCM Calculator is a a focused calculator for getting a quick numerical answer without opening a spreadsheet or installing an app.
Loading the interactive tool… This page needs JavaScript to run the GCD & LCM Calculator.
How to use GCD & LCM Calculator
- Enter the values required by the calculator.
- Check the selected units or assumptions.
- Run the calculation and review the result.
- Recheck important figures independently before making decisions.
How GCD & LCM Calculator works
Type two or more whole numbers separated by commas or spaces. The tool computes the greatest common divisor by repeated Euclid steps, then the least common multiple from it, folding across the whole list. Zeros are ignored, at least two non-zero numbers are required, and negative numbers are handled by their absolute value for the LCM. Very large results may lose precision beyond JavaScript's safe integers.
Worked example
Input 12, 18, 30 → Output GCD: 6 and LCM: 180.
Common uses
- Simplify a fraction by finding the GCD of numerator and denominator.
- Find a common denominator using the LCM.
- Check schedule cycles that repeat every 12, 18 and 30 days.
Best for
- calculators workflows
- quick gcd & lcm calculator tasks
- browser-based utility work
Tips for better results
- Use the same units throughout the inputs.
- Double-check percentages, rates, and dates before relying on the result.
- Treat financial and health-related outputs as estimates, not professional advice.
Frequently asked questions
What is the GCD?
The greatest common divisor is the largest number that divides all the given numbers.
What is the LCM?
The least common multiple is the smallest number that all the numbers divide into.
How are they related?
For two numbers, GCD × LCM equals their product.
Related tools
- Date Add & Subtract Calculator — Add or subtract years, months, weeks and days from a date.
- Age Calculator — Calculate age from birth date.
- Aspect Ratio Calculator — Simplify width and height into a ratio.
- Average Calculator — Mean, median, mode, range and more for a list of numbers.
- BMI Calculator — Calculate body mass index.
- Countdown Calculator — Calculate days remaining until a target date.