LCM and HCF calculator
The highest common factor and least common multiple are staples of school maths and competitive exams — and handy in real life when scheduling or cutting materials. This calculator finds both for any list of whole numbers, and shows the prime factorisation of each so you can see exactly how the answer is built.
How to use it
- Type two or more whole numbers, separated by commas or spaces.
- Read the HCF and LCM, and the prime factors of each number below.
Example
Three traffic lights change every 12, 18 and 30 seconds. They all change together everyLCM = 180 seconds (3 minutes). Cutting ribbons of 12 cm, 18 cm and 30 cm into equal pieces with no waste, the longest piece is the HCF = 6 cm. See any number's factors with theprime number checker, or simplify fractions with thefraction calculator.