GetToolNests
Home › 🧮 Calculators

🔣 GCF & LCM Calculator

Find the greatest common factor (GCF) and least common multiple (LCM) of two integers.

About this tool and how to use it

Find the greatest common factor (GCF) and least common multiple (LCM) of two integers.

Enter the values in the fields and the results update automatically, or press the calculate button.

This tool runs entirely in your browser, so your input is not sent to any server.

The formula

The GCF uses Euclid’s algorithm, and LCM = product ÷ GCF.

Worked example

If you enter (First number = 12, Second number = 18) the result is: GCF = 6, LCM = 36.

Frequently asked questions

What is the GCF of 12 and 18?
It is 6, and the LCM is 36.

What are GCF and LCM used for?
The GCF helps simplify fractions, and the LCM helps find a common denominator when you add fractions.

Related tools

% Percentage Calculator🎂 Age Calculator📅 Days Between Dates🏷️ Discount Calculator🍽️ Tip Calculator📊 Average & Median Calculator