Greatest Common Factor and Least Common Multiple Calculator

Find the GCF and LCM of two whole numbers.

Your inputs

Your result

Enter your information and select Calculate to see the result.

How this calculator works

The GCF is found by Euclid's algorithm; the LCM uses |a × b| ÷ GCF.

Change one assumption at a time to see which inputs have the greatest effect on the estimate.

Worked example

The GCF of 12 and 18 is 6, and their LCM is 36.

Limitations

This calculator is for educational use; verify important work independently.

Review this educational estimate against current quotes, official information, and your own budget before making a financial decision.