GCF & LCM Calculator

GCF and LCM of a list of numbers.

Result

GCF12
LCM360

How it's calculated

  1. 1

    Euclidean algorithm on 24 and 36:

  2. 2

    24 = 36 × 0 + 24 → gcd(36, 24)

  3. 3

    36 = 24 × 1 + 12 → gcd(24, 12)

  4. 4

    24 = 12 × 2 + 0 → gcd(12, 0)

  5. 5

    Fold in next number: gcd(12, 60) = 12

  6. 6

    GCF = 12

  7. 7

    lcm(24, 36) = 24 × 36 ÷ 12 = 72

  8. 8

    lcm(72, 60) = 72 × 60 ÷ 12 = 360

  9. 9

    LCM = 360

GCF & LCM Calculator — FAQs

How do I find GCF?

Euclidean algorithm: gcd(24, 36) = gcd(36 mod 24, 24) = gcd(12, 24) = 12. Or list common factors and take the largest.

How to find the LCM?

LCM(a,b) = a×b ÷ GCF(a,b). LCM of 4 and 6 = 24÷2 = 12.

Need a Custom Tool Built?

We build calculators, estimators and internal tools for businesses in the UK and North America.

Get a Quote

Embed this GCF & LCM Calculator on your site

Free to use — paste this snippet into any webpage. It auto-resizes and includes a small attribution link. Add ?theme=dark to the iframe URL for dark mode.

Need help? See the embed guide for WordPress, Webflow, Squarespace & more.