Enter your details
How to calculate GCF and LCM
Provide two whole numbers and compare their shared divisors and multiples.
Enter the first number
Type a safe whole number for the first value.
Enter the second number
Type a safe whole number for the second value; it may be positive, negative, or zero.
Read both results
Review the greatest common factor, least common multiple, and their product relationship.
Frequently Asked Questions
What is the GCF?
The greatest common factor is the largest whole number that divides both inputs exactly.
What is the LCM?
The least common multiple is the smallest positive number divisible by both non-zero inputs.
Can inputs be negative?
Yes. Their absolute values are used when finding common factors and multiples.
What happens when an input is zero?
The GCF can still be calculated, and the LCM is zero when either input is zero.
How is the GCF found?
The calculator uses the Euclidean algorithm based on repeated remainders.
How are GCF and LCM related?
For non-zero values, GCF multiplied by LCM equals the absolute product of the inputs.
Can I enter decimals?
No. Common factors and multiples require whole-number inputs.