Skip to content
Advertisement
Hosinger Special Offer

LCM GCD Calculator

LCM GCD Calculator from Gizcalc helps you estimate results quickly within the Math & Statistics category.

  • Instant results
  • Charts & tables
  • Save & compare
  • Private – runs in your browser
LCM (Least Common Multiple) —

Sample inputs are pre-filled so you can see a result quickly. Results are estimates only and may not be accurate because prices, interest rates, taxes, fees, fuel costs, tariffs, market returns, medical costs, and local rules can change. Please verify current values before making financial, tax, legal, medical, or business decisions.

Formula used

LCM(a, b) = a × b ÷ GCD(a, b)

  • GCD(a, b) = found with Euclid's algorithm: GCD(a, b) = GCD(b, a mod b), repeated until the remainder is 0

About the LCM GCD Calculator

What is the LCM GCD Calculator?

The greatest common divisor (GCD), also called the highest common factor (HCF), is the largest whole number that divides every number in a set without a remainder. The least common multiple (LCM) is the smallest positive number that every number in the set divides into exactly.

HCF is used to simplify fractions and to split things into the largest possible equal groups. LCM is used to add fractions with different denominators and to find when repeating events line up again — for example, when two buses that leave every 12 and 18 minutes next depart together.

How to use the LCM GCD Calculator

  1. Whole Numbers (separated by commas) — two to fifty positive whole numbers, separated by commas or spaces. (sample: 12, 18, 30)
  2. Press Find LCM & GCD (results also refresh as you type). The result card shows the LCM (Least Common Multiple), along with GCD / HCF (Greatest Common Divisor) and Numbers checked.

Formula used

LCM(a, b) = a × b ÷ GCD(a, b)

  • GCD(a, b) = found with Euclid's algorithm: GCD(a, b) = GCD(b, a mod b), repeated until the remainder is 0

For more than two numbers the rule is applied step by step: GCD(a, b, c) = GCD(GCD(a, b), c), and the same for the LCM.

Worked example

These are the sample values already filled in the calculator above, and the result it returns for them:

InputSample value
Whole Numbers (separated by commas)12, 18, 30
ResultValue
LCM (Least Common Multiple)180
GCD / HCF (Greatest Common Divisor)6
Numbers checked3

Tips for using the LCM GCD Calculator

  • The GCD of two consecutive numbers is always 1, so their LCM is simply their product.
  • For any two numbers, GCD × LCM equals the product of the two numbers.
  • If one number divides the other (like 6 and 18), the GCD is the smaller number and the LCM is the larger one.

Frequently asked questions

Yes. Highest common factor (HCF), greatest common divisor (GCD) and greatest common factor (GCF) are three names for the same number.

Factorise: 12 = 2² × 3, 18 = 2 × 3², 30 = 2 × 3 × 5. The HCF takes the lowest power of each shared prime: 2 × 3 = 6. The LCM takes the highest power of every prime: 2² × 3² × 5 = 180.

A fast way to find the GCD by repeated remainders. For 48 and 18: 48 mod 18 = 12, 18 mod 12 = 6, 12 mod 6 = 0, so the GCD is 6.

In scheduling (when repeating events coincide), in adding fractions with different denominators, and in gear and pulley problems where teeth or turns must line up.