Home › Math › GCD and LCM Calculator

GCD and LCM Calculator

Find the greatest common divisor and least common multiple.

Updated 25 November 2026 · Free · No sign-up · Private

Result
6
GCD (HCF)6
LCM36

Quick answer: using this GCD and LCM calculator with number 1 = 12, number 2 = 18, the GCD is 6. Change any value above to get your own result instantly.

Find the greatest common divisor and least common multiple.

How do I use the GCD and LCM Calculator?

  1. Enter Number 1.
  2. Enter Number 2.
  3. Results update instantly. Use 🔗 Copy link or 📸 Image to share them.

How does the GCD and LCM Calculator work?

LCM = a × b ÷ GCD

What does a worked example look like?

With number 1 = 12, number 2 = 18: GCD (HCF): 6; LCM: 36.

Popular searches this calculator answers

  • GCD and LCM calculator
  • how to calculate GCD and LCM
  • GCD and LCM formula
  • free GCD and LCM calculator online

Frequently asked questions

How do you calculate GCD and LCM?

The formula is: LCM = a × b ÷ GCD. For example, with number 1 = 12, number 2 = 18, the result is 6.

What does the GCD and LCM Calculator show?

Find the greatest common divisor and least common multiple. It shows GCD and LCM. Everything runs in your browser and nothing is stored.

🤖 Ask EasyCalcAI

Type your question in plain words and get an instant answer. Examples: "mortgage 350k 10% down 6.5%", "take home on 75000 in Ontario", "tax on 100000 in Australia", "20% VAT on 1500", "10000 compound at 7% for 20 years", "EMI for 30 lakh at 8.5% for 20 years".

✍️ Built and checked by Mohd Huzaifa, founder of EasyCalcAI · Last updated 25 November 2026. The calculator uses the formula shown on this page; results are estimates for planning, not professional advice.