GCD & LCM

GCD & LCM calculates the greatest common divisor (GCD) and least common multiple (LCM) of multiple integers, handy for simplifying fractions, ratio problems and scheduling calculations.

GCD6
LCM144

How it works

  1. 1Enter numbers separated by commas or spaces (more than two numbers are supported).
  2. 2The GCD and LCM are calculated instantly.
  3. 3Negative numbers are treated by their absolute value.
  4. 4Decimal numbers are ignored, only a list of integers is accepted.

Frequently asked questions

What are GCD and LCM used for?+

GCD simplifies fractions to lowest terms; LCM finds the common point where different periods (e.g. the day two recurring events coincide) align.

How is it calculated for more than two numbers?+

Numbers are combined pairwise (e.g. gcd(gcd(a,b),c)) to reach the overall GCD/LCM, mathematically equivalent to the direct definition.

Why does gcd(a,b) × lcm(a,b) equal a×b?+

This identity always holds for two numbers; you can use it to cross-check the result.

What happens if I enter 0?+

gcd(0, n) is computed as n; if both numbers are 0 the result is 0.

Embed on your site

Size
480 × 360px
<iframe
  src="https://toolsqube.com/en/math/gcd-lcm-calculator/embed"
  width="480" height="360"
  style="border:0;border-radius:14px"
  title="GCD & LCM · ToolsQube"
  loading="lazy">
</iframe>

Want to go deeper on this topic: Math Tools Guide →

Command Palette

Search for a command to run…