Search the complete library

Find a useful next step.

Start typing to search the complete UtilHub library.

Learning & education · Free online tool

HCF and LCM calculator

Find the highest common factor and lowest common multiple of two or more whole numbers, with prime factors.

No sign-upNo run limitPrivate inputsMobile-friendly

HCF and LCM calculator workspace

Runs locally in your browser

Two or more numbers, separated by commas or spaces.

Result

Highest common factor (HCF)—
Lowest common multiple (LCM)—
Prime factors—
Numbers—

Use it with confidence

How to use the HCF and LCM calculator.

01

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.

02

Calculate and review

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.

03

Try a worked example

For 12, 18 and 30 the HCF is 6 and the LCM is 180. 12 = 2² × 3 and 18 = 2 × 3².

04

Check the assumptions

Use positive whole numbers up to one trillion.

Helpful answers

HCF and LCM calculator FAQs.

Is the HCF and LCM calculator free?

Yes. Use it as often as you need, with no sign-up and no run limit. Your inputs stay in your browser.

Does UtilHub upload or save my inputs?

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.

How does this HCF and LCM calculator work?

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.

What should I check before using the result?

Use positive whole numbers up to one trillion.

Coming up