Kievoo Calculators

LCM & HCF Calculator

Least common multiple and highest common factor of 2 or more numbers.

Separate with commas or spaces.
HCF (GCD)
6
LCM 180
LCM
180
HCF
6

Prime factors

NumberPrime factors
122 × 2 × 3
182 × 3 × 3
302 × 3 × 5

How the lcm & hcf calculation works

HCF (also called GCD) is the largest number that divides all the numbers. LCM is the smallest number divisible by all of them. For two numbers, HCF × LCM = product of the numbers. The calculator uses the Euclidean algorithm.

How to use this calculator

  1. Whole numbers. Separate with commas or spaces.
  2. Read the result. It updates as you type, with a breakdown and a table. Use Copy result to save it.

Worked example

With , the result is HCF (GCD): 6 (LCM 180). The result also breaks down into: lcm; hcf.

Tips and common mistakes

HCF is the largest number that divides all your numbers, and LCM is the smallest number they all divide.

  • For two numbers, HCF × LCM equals their product.
  • Use HCF to simplify fractions.
  • Use LCM to add fractions with different denominators.

Frequently asked questions

When do I use LCM?

To add fractions with different denominators, or to find when repeating events coincide.

When do I use HCF?

To simplify fractions or split items into equal groups of the largest possible size.

Can I enter more than two numbers?

Yes. Enter any list separated by commas or spaces.

Last reviewed 2026-10-30. Results are estimates for planning only. Read the disclaimer.