Math calculator

LCM and GCF Calculator

Enter up to 12 integers separated by commas to see both shared-factor results and prime factorizations.

Calculated privately on your device
No account. Formula and assumptions are shown below.

Calculator inputs

LCM and GCF details

Enter between 2 and 12 whole numbers separated by commas.
Formula & disclaimer

GCF is found by repeated Euclidean division; LCM(a,b) = |a Γ— b| Γ· GCF(a,b)

View assumptions
Formula reviewCalcs at Hand Editorial TeamVerified 31 August 2026 Β· automated checks included

How to read this result

Three useful checks, kept deliberately short.

What this result includes

The GCF is 6 and the LCM is 180.

A practical example

12, 18 and 30: Find shared prime factors Β· Keep the lowest shared powers for GCF Β· Keep the highest powers for LCM.

Common input mistake

LCM is the smallest positive integer divisible by every entered value.

Formula and assumptions

GCF is found by repeated Euclidean division; LCM(a,b) = |a Γ— b| Γ· GCF(a,b)

GCF is the largest positive integer that divides every entered value.

Keep in mind: Input is limited to 12 positive integers no greater than 1,000,000,000 each.

Produced byCalcs at Hand Editorial Team
Last formula check31 August 2026
Review methodKnown examples + boundary cases
Editorial and correction policy β†’