GCD and LCM Calculator · Tutorial

How to find when schedules line up with the LCM

4 min readbeginnerUpdated

Three bus routes leave the same stop every 12, 15 and 20 minutes. They all left together at 8:00. When do they next leave together? You will answer it with the least common multiple.

What you need

Steps

  1. Enter the intervals

    Type 12, 15, 20. These are the minutes between departures on each route.

  2. Read the LCM

    The LCM is 60. Every route's interval divides 60 exactly, and no smaller number works.

  3. Turn it into a time

    60 minutes after 8:00 is 9:00, when all three buses leave together again.

  4. See why with prime factors

    12 = 2² × 3, 15 = 3 × 5 and 20 = 2² × 5. The LCM takes the highest power of each prime: 2² × 3 × 5 = 60. The GCD is 1, because no prime is shared by all three.

Try it yourself

Opens the GCD and LCM Calculator with this tutorial's sample loaded.

Try it now

Common mistakes

Multiplying the numbers together
12 × 15 × 20 = 3,600 is a common multiple, but not the smallest. The LCM is 60.
Using the GCD instead
The GCD answers "what's the biggest equal step?", not "when do they meet?".

Next steps

Go back to the GCD and LCM Calculator, or keep going with one of these: