ToolsKit

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

  1. Enter the values required by the calculator.
  2. Check the selected units or assumptions.
  3. Run the calculation and review the result.
  4. 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

Explore tool categories