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.

Copied!

Summary

Enter up to 10 positive integers to instantly find their GCD, LCM, and prime factorizations.

How it works

  1. Type your numbers separated by commas in the input field (e.g. 12, 18, 24).
  2. The calculator validates that all entries are positive integers.
  3. Click "Calculate" or press Enter to compute the results.
  4. The GCD and LCM appear as large copyable values on the right.
  5. 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