ToolkitPro

Calculators & Converters

LCM & GCD Calculator

The LCM & GCD Calculator finds both the Least Common Multiple and the Greatest Common Divisor (also known as HCF, the Highest Common Factor) of two whole numbers using the efficient Euclidean algorithm.

Both results update instantly as you type either number.

Open LCM & GCD Calculator Now →
Share this tool: WhatsApp Twitter / X

How to Use the LCM & GCD Calculator

  1. Open the LCM & GCD Calculator.
  2. Enter the first whole number.
  3. Enter the second whole number.
  4. Read the GCD (HCF) and LCM.

Frequently Asked Questions

What's the difference between GCD and LCM?

The GCD (or HCF) is the largest number that divides both numbers evenly. The LCM is the smallest number that both numbers divide into evenly.

Does this work with negative numbers?

The calculator uses the absolute value of whatever you enter, since GCD and LCM are conventionally defined for positive integers.

What if I enter a decimal?

Both numbers are rounded to the nearest whole number before calculating, since GCD and LCM are only defined for integers.

Advertisement
Sponsored