LCM and GCD Calculator
Enter up to 10 positive integers to instantly find their GCD, LCM, and prime factorizations.
Enter Numbers
Enter 2–10 positive integers. Decimals and zero are not accepted.
Enter at least 2 numbers on the left to see results.
Greatest Common Divisor
—
Least Common Multiple
—
Prime Factorizations
Pairwise GCD Table
Copied!
Summary
Enter up to 10 positive integers to instantly find their GCD, LCM, and prime factorizations.
How it works
- Type your numbers separated by commas in the input field (e.g. 12, 18, 24).
- The calculator validates that all entries are positive integers.
- Click "Calculate" or press Enter to compute the results.
- The GCD and LCM appear as large copyable values on the right.
- Scroll down to see prime factorizations and the pairwise GCD table.
Use cases
- Simplify fractions by dividing numerator and denominator by their GCD.
- Find the least common denominator when adding or subtracting fractions.
- Schedule repeating events that align — find when two cycles next coincide.
- Verify or check homework answers for number theory problems.
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu