← All blog posts

GCD and LCM Calculator for students — with examples

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

Fractions are where students meet GCD and LCM most, and the GCD and LCM Calculator handles both jobs. Here is how to use it for homework and exams, with the working shown step by step.

Worked example — simplifying a fraction

Simplify 48/180. Divide the top and bottom by the GCD, 12: 48 ÷ 12 = 4 and 180 ÷ 12 = 15, so the fraction in lowest terms is 4/15. That is the whole job of the GCD in fraction work.

48/180 = 4/15  (divide by GCD 12)

Worked example — adding fractions

Add 5/12 and 7/18. The common denominator is the LCM, 36: 5/12 is 15/36 and 7/18 is 14/36, so the sum is 29/36. That is the whole job of the LCM in fraction work.

5/12 + 7/18 = 15/36 + 14/36 = 29/36  (LCM 36)

Exam-style example — 36 and 48

Find the GCD and LCM of 36 and 48. Euclid: 48 ÷ 36 leaves 12, and 36 ÷ 12 leaves 0, so the GCD is 12. The LCM is 36 × 48 ÷ 12 = 144. Check: 12 × 144 = 1,728, and 36 × 48 = 1,728.

GCD of 36 and 48 = 12
LCM of 36 and 48 = 144
Check: 12 × 144 = 1,728 = 36 × 48

At a glance

36 and 48 share a GCD of 1236 = 3 groups of 1248 = 4 groups of 1236 is 3 groups of 12, 48 is 4 groups of 12.
Thirty-six is 3 groups of 12 and 48 is 4 groups of 12, so 12 is their GCD and 144 is their LCM.

The mistake to avoid

Adding fractions by adding the denominators. 5/12 + 7/18 is not 12/30 — denominators are never added. Find the LCM first, convert both fractions to that denominator, then add the numerators. The denominator stays 36 all the way through.

GCD or LCM — which one does this question want?

In schoolwork the two answers turn up in different places, and picking the wrong one is the commonest way to lose marks on a question you could otherwise do. Simplifying a fraction wants the GCD: to reduce 60/84, divide the top and bottom by their GCD, 12, giving 5/7. Adding or subtracting fractions wants the LCM: to add 1/8 and 1/12, use the LCM, 24, as the common denominator — 1/8 is 3/24 and 1/12 is 2/24, so the sum is 5/24.

Word problems follow the same split. “Largest equal group”, “longest piece that fits both” and “simplify” all point to the GCD. “First time together”, “when will they meet again” and “common denominator” all point to the LCM. Before you start the arithmetic, say out loud which one the question is asking for. If you cannot say it, re-read the question — the words usually give it away.

Two traps that look right

The first trap is using the product as the common denominator. It always works, but it makes the arithmetic three times harder. Adding 5/12 and 7/18 with a denominator of 216 gives 90/216 + 84/216 = 174/216, and then you still have to simplify by 6 to reach 29/36. The LCM of 36 gets you there in one step: 15/36 + 14/36 = 29/36. A bigger denominator is not a wrong answer, but it is an invitation to slip.

The second trap is dividing only one part of a fraction by the GCD. Simplifying 48/180 means dividing the top and the bottom by 12: 48 ÷ 12 = 4 and 180 ÷ 12 = 15, giving 4/15. Divide only the top and you get 4/180, which is a different — and much smaller — number. Whatever you do to the top of a fraction, do to the bottom too.

Frequently asked questions

How do I simplify 48 over 180?

Divide the top and bottom by the GCD, 12. 48 divided by 12 is 4 and 180 divided by 12 is 15, so it simplifies to 4 over 15.

How do I add 5 over 12 and 7 over 18?

Use the LCM, 36, as the common denominator: 15 over 36 plus 14 over 36 is 29 over 36.

What is the GCD of 36 and 48?

12. Euclid gives 12, and 12 divides both 36 and 48 exactly.

What is the LCM of 36 and 48?

144. 36 times 48 divided by 12 is 144.

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