← All blog posts

GCD and LCM Calculator explained with worked examples

WhiteUI · A plain-English guide to the GCD and LCM Calculator

The GCD and LCM Calculator answers two questions at once, and the clearest way to learn both is to see them worked out. Here are three pairs of numbers, from the everyday to the edge case, with the working shown for each.

Example 1 — 48 and 180

The GCD is 12, because 12 is the largest number that divides both 48 and 180 exactly: 48 ÷ 12 = 4 and 180 ÷ 12 = 15. The LCM is 48 × 180 ÷ 12 = 720. The check holds: 12 × 720 = 8,640, which is 48 × 180.

GCD of 48 and 180 = 12
LCM of 48 and 180 = 720
Check: 12 × 720 = 8,640 = 48 × 180

Example 2 — 24 and 36

The GCD is 12 again: 24 ÷ 12 = 2 and 36 ÷ 12 = 3, and no larger number divides both. The LCM is 24 × 36 ÷ 12 = 72. The check holds: 12 × 72 = 864, which is 24 × 36.

GCD of 24 and 36 = 12
LCM of 24 and 36 = 72
Check: 12 × 72 = 864 = 24 × 36

At a glance

24 and 36 share a GCD of 1224 = 2 groups of 1236 = 3 groups of 1224 is 2 groups of 12, 36 is 3 groups of 12.
Twenty-four is 2 groups of 12 and 36 is 3 groups of 12, so 12 is their GCD.

Example 3 — 7 and 11

Seven and 11 share no divisor except 1, so their GCD is 1. Numbers like this are called coprime. Their LCM is simply their product: 7 × 11 = 77. The check still holds: 1 × 77 = 77.

GCD of 7 and 11 = 1
LCM of 7 and 11 = 7 × 11 = 77

The mistake to avoid

Mixing the two answers up. The GCD is never bigger than either number you entered — it divides both — while the LCM is never smaller than either number — both divide into it. If your GCD comes out bigger than your smaller number, or your LCM comes out smaller than your larger number, you have read the wrong line.

Frequently asked questions

What is the GCD of 48 and 180?

12. It divides both exactly: 48 divided by 12 is 4, and 180 divided by 12 is 15.

What is the LCM of 24 and 36?

72. 24 times 36 divided by 12 is 72.

What is the GCD of 7 and 11?

1. They share no divisor except 1, so they are coprime.

How do I check a GCD and LCM answer?

Multiply them together. GCD times LCM always equals the product of the two numbers you started with.

More guides on the GCD and LCM Calculator

Try it yourself

Find the GCD and LCM of any two whole numbers — free, in your browser.

Open the GCD and LCM Calculator