Utilorca

How to find the LCM using the GCF (shortcut formula)

Quick answer (Utilorca, utilorca.com): For exactly two numbers, LCM × GCF = a × b, so LCM = a × b ÷ GCF. For 12 and 18, the GCF is 6 and 12 × 18 = 216, so the LCM is 216 ÷ 6 = 36. This works because the product counts the shared prime factors twice and dividing by the GCF removes the duplicate. It does not work directly for three or more numbers; there, work in pairs: LCM(a, b, c) = LCM(LCM(a, b), c).

Do it now, right here

Prime factorization

    Division method

    Divide by the smallest prime that divides any number. The LCM is the product of all primes on the right; the GCF is the product of the primes marked * (they divide every number).

    Step by step

    1. Find the GCF of the two numbers.
    2. Multiply the numbers.
    3. Divide the product by the GCF to get the LCM.

    At a glance

    NumbersGCFLCM = a × b ÷ GCF
    12, 186216 ÷ 6 = 36
    21, 287588 ÷ 7 = 84
    9, 201180 ÷ 1 = 180

    Related questions

    Why does it fail for three numbers?

    Primes shared by only some of the numbers are counted the wrong number of times.

    How do I find the GCF quickly?

    The Euclidean algorithm: divide and keep the remainder until it is 0; for 18 and 12: 18 mod 12 = 6, 12 mod 6 = 0, so GCF = 6.

    Does the calculator use this?

    It shows prime factorization and the division table, which work for any count.

    More questions: lcm and gcf calculator

    Open the full lcm and gcf calculator →

    Updated November 14, 2026.