Add the requested inputs
Use the labelled fields in the workspace above. If example values are provided, try them first or replace them with your own.
Learning & education · Free online tool
Find the highest common factor and lowest common multiple of two or more whole numbers, with prime factors.
Runs locally in your browser
Use it with confidence
Use the labelled fields in the workspace above. If example values are provided, try them first or replace them with your own.
Use the main action when needed. The HCF uses Euclid’s algorithm. The LCM is built as a × b ÷ HCF(a, b) across the list, using exact integer arithmetic for large results.
For 12, 18 and 30 the HCF is 6 and the LCM is 180. 12 = 2² × 3 and 18 = 2 × 3².
Use positive whole numbers up to one trillion.
Helpful answers
Yes. Use it as often as you need, with no sign-up and no run limit. Your inputs stay in your browser.
No. This tool runs in your browser and UtilHub does not receive or store the values you enter. Your browser or device may still retain normal local history or form data.
The HCF uses Euclid’s algorithm. The LCM is built as a × b ÷ HCF(a, b) across the list, using exact integer arithmetic for large results.
Use positive whole numbers up to one trillion.