All toolsLCM & GCF Calculator

Math & Education

LCM & GCF Calculator

Find least common multiple, greatest common factor, and prime factors.

Live result

Your inputs

Adjust the values

Enter up to 20 positive whole numbers. Prime factorizations are shown for quick verification.

Greatest common factor

12

Prime factorizations24 = 2 × 2 × 2 × 3 36 = 2 × 2 × 3 × 3 60 = 2 × 2 × 3 × 5
Numbers analyzed3

About this tool

A straightforward lcm & gcf calculator

Find least common multiple, greatest common factor, and prime factors. The Euclidean algorithm finds common factors and reduced products determine the least common multiple.

Results are exact while they remain within JavaScript’s safe-integer range. Inputs are processed in your browser, and changing a value updates the result immediately.

How it works

Use the LCM & GCF Calculator in three steps

  1. 1Enter your values

    Enter up to 20 positive whole numbers separated by spaces or commas.

  2. 2Check the setup

    Choose the units or calculation mode that matches your situation.

  3. 3Use the result

    See the LCM, GCF, and a prime factorization for each number.

Common questions

LCM & GCF Calculator FAQ

How does the LCM & GCF Calculator work?

The Euclidean algorithm finds common factors and reduced products determine the least common multiple.

What information do I need?

Enter up to 20 positive whole numbers separated by spaces or commas.

How accurate is the result?

Results are exact while they remain within JavaScript’s safe-integer range.