#1 India's Top IT Training Institute

×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →
⚡ FREE · INSTANT RESULT

LCM and HCF Calculator: With Prime Factors for Every Number

Find the LCM and HCF of two or more numbers, with prime factors.

  • 🔢 Up to 50 numbers
  • 🧩 Prime factors
  • 🎯 Exact large answers

How to use the LCM and HCF Calculator

  1. 1. Enter your numbersType two or more whole numbers, split by commas or spaces.
  2. 2. Press the buttonThe tool finds the LCM and HCF together.
  3. 3. Read the factorsSee each number's prime factors in a table.

What LCM and HCF mean

The HCF, or highest common factor, is the largest number that divides all your numbers. It is also called the GCD. The LCM, or lowest common multiple, is the smallest number that all your numbers divide into.

For two numbers, there is a neat link: LCM × HCF = the product of the two numbers.

Worked example with prime factors

Take 12, 18 and 24.

  • 12 = 2^2 × 3
  • 18 = 2 × 3^2
  • 24 = 2^3 × 3

For the HCF, take the lowest power of each prime found in all the numbers. That gives 2 × 3 = 6.

For the LCM, take the highest power of each prime. That gives 2^3 × 3^2 = 72.

The result table shows these factors for your own numbers, so you can copy the working into your notebook.

Where you use these

LCM helps you find a common denominator when adding fractions. It also answers timing questions, such as when two buses leaving at different intervals will next meet. HCF helps you simplify fractions and split things into equal groups.

The tool accepts whole numbers above 0. Each number can go up to one lakh crore, and the LCM stays exact even when it is very long.

Next, try the fraction calculator, which simplifies for you, or the average calculator.

Frequently asked questions

Is HCF the same as GCD?

Yes. Highest common factor and greatest common divisor mean the same thing.

Can I find the LCM of more than two numbers?

Yes. Enter up to 50 whole numbers.

Does it work with decimals or negative numbers?

No. LCM and HCF here are for whole numbers above 0.

Is this tool free?

Yes. It asks for your name and WhatsApp number once, at result time, and other Uncodemy tools then open without the form.

More free tools

See all free tools