How to use this calculator
GCF is the largest integer that divides every input. LCM is the smallest nonnegative common multiple. Results list prime factorizations for up to 50 inputs whose magnitude is at most one billion; larger values still use the safe-integer Euclidean calculation.
- Enter main result, whole numbers and review the remaining options.
- Select Calculate or change a value to update the result. Read the result label and units before copying.
- Use Reset to restore the worked starting values.
Formula and method
Safe integers only. The LCM of a list containing zero is zero.
Worked example
12, 18, 24 have GCF 6 and LCM 72.
Questions about gcf & lcm calculator
How are GCF and LCM different?
GCF divides every input; LCM is a common multiple of the inputs. For 12 and 18, GCF is 6 and LCM is 36. The tool uses integer division methods, and a list containing zero has LCM zero.
What assumptions should I check?
Safe integers only. The LCM of a list containing zero is zero.
Are my inputs saved?
Calculations run in your browser. We store only tool IDs for favorites and recent tools. A calculation link contains your inputs only when you explicitly choose to copy one.