LCM & HCF Calculator
LCM and HCF (GCD) of two or more numbers, with prime factorisation of each number.
Result
How to use
- 1
Type two or more whole numbers.
- 2
See the HCF and LCM with the prime factorisation of every number.
- 3
Use the working shown to check your homework.
Questions
What is the difference between HCF and LCM?
HCF (also called GCD) is the largest number that divides all the numbers exactly. LCM is the smallest number that all of them divide into exactly.
How are they found using prime factors?
Write each number as a product of primes. HCF multiplies the common primes with their lowest powers; LCM multiplies every prime with its highest power.
Is HCF × LCM = product of the numbers?
Only for two numbers. For 12 and 18: HCF 6 × LCM 36 = 216 = 12 × 18. It does not hold for three or more numbers.
About this LCM & HCF tool
LCM & HCF Calculator — LCM and HCF (GCD) of two or more numbers, with prime factorisation of each number. It is one of 200 free tools on namasivayam.in, made by software engineer Namasivayam Vadivelan for everyday use in India.
Everything is calculated instantly in your browser: nothing you type or upload is sent to any server, there is no sign-up, and it works on mobile and desktop. Type two or more whole numbers.
Related reading
Articles that go with this tool

Deep Work in a Distracted Office: 7 Habits That Doubled My Focus
Meetings, chats and “quick questions” can eat a whole day. Seven simple habits that helped me protect focused time and finish real work before evening.

The Art of Saying No at Work — Without Feeling Guilty
Saying yes to everything feels helpful, until your own work and health suffer. How to say no politely, protect your time, and still be the person everyone trusts.

How to Write Work Emails People Actually Read and Reply To
Long, unclear emails get ignored. A simple structure for writing clear work emails — subject lines, first lines, asks and follow-ups — that get faster replies.
Related tools
More maths tools you may like
Results are estimates to help you plan. They are not financial, tax or medical advice.