How to use GCD & LCM Calculator
About GCD & LCM Calculator
Find the greatest common divisor and least common multiple of a list of whole numbers.
Enter 2–100 safe integers. Negative inputs use absolute values. An LCM with zero is zero. The GCD of all zeros is reported as zero.
- Open the tool and review the labeled inputs.
- Enter your values, then run the calculation.
- Review the result and print it if needed.
Formula & calculation method
The Euclidean algorithm finds the GCD. The LCM is folded across the list using exact integer arithmetic.
A quick example
For 18 and 24, the GCD is 6 and the LCM is 72.
Assumptions, edge cases & limits
- Enter 2–100 safe integers. Negative inputs use absolute values. An LCM with zero is zero. The GCD of all zeros is reported as zero.
Questions about GCD & LCM Calculator
How do I find the greatest common divisor and least common multiple?
The Euclidean algorithm finds the GCD. The LCM is folded across the list using exact integer arithmetic. For 18 and 24, the GCD is 6 and the LCM is 72. Enter 2–100 safe integers. Negative inputs use absolute values. An LCM with zero is zero. The GCD of all zeros is reported as zero.
How do I use the GCD & LCM Calculator?
The Euclidean algorithm finds the GCD. The LCM is folded across the list using exact integer arithmetic.
What does a worked example look like?
For 18 and 24, the GCD is 6 and the LCM is 72.
What inputs are supported?
Enter 2–100 safe integers. Negative inputs use absolute values. An LCM with zero is zero. The GCD of all zeros is reported as zero.
For processing, privacy and service availability, see our privacy details and methodology. Tool-specific questions and limitations are explained above.
A result or explanation needs correcting? Tell us the tool name and an example.