Type two or more whole numbers to get their LCM and HCF, with the working shown.
Your data stays in your browser
This tool runs on JavaScript inside your browser. Nothing you add here is uploaded to our server, so it works for confidential data too. How we handle data
Break each number into primes. For 12, 18 and 30: 12 = 2² × 3, 18 = 2 × 3² and 30 = 2 × 3 × 5. The HCF uses only the primes found in every number, each at its lowest power: 2 × 3 = 6. The LCM uses every prime at its highest power: 2² × 3² × 5 = 180.
The HCF is the biggest number that divides all of them exactly. The LCM is the smallest number that all of them divide into. Use the HCF to simplify fractions or split things into equal groups, and the LCM to add fractions or find when repeating events line up, like two buses that leave every 12 and 18 minutes meeting again after 36 minutes.
Yes. For any two numbers, HCF × LCM = the two numbers multiplied together. So once you know the HCF of 12 and 18 is 6, the LCM is 12 × 18 ÷ 6 = 36. This rule doesn't work for three or more numbers.
More maths help: the Quadratic Equation Solver works through the quadratic formula, the Mean, Median, Mode Calculator handles statistics, and the Online Calculator has powers, roots and factorials.