CalcSimIA
ยทยท
ArithmeticIntermediateยท 9 min read

GCD and LCM: When to Simplify and When to Find a Common Denominator

GCD simplifies fractions and divides objects into equal groups. LCM organises repeating cycles and resolves fraction addition. Each has its moment โ€” knowing the difference is the key.

RF

Renato Freitas

Updated on May 5, 2026

GCD: the greatest divisor two numbers share

The Greatest Common Divisor (GCD) of two numbers is the largest positive integer that divides both without a remainder. For example, GCD(12, 18) = 6, because 6 divides both 12 (result: 2) and 18 (result: 3), and no number larger than 6 has that property.

The GCD always appears when we want to divide things into equal groups with nothing left over. If you have 12 oranges and 18 bananas and want to make boxes with the same quantity of each fruit โ€” no mixing, no leftovers โ€” the maximum number of boxes is GCD(12, 18) = 6. Each box will contain 2 oranges and 3 bananas.

In mathematics, the GCD is essential for simplifying fractions. To reduce 18/24 to its simplest form, calculate GCD(18, 24) = 6. Divide numerator and denominator by 6: 18/6 = 3 and 24/6 = 4. The simplified fraction is 3/4. This process guarantees the irreducible form, where numerator and denominator share no factor other than 1.

๐Ÿงฎ Try it yourself โ€” CalcSim

Want more features? Download CalcSim IA app

Calculating the GCD: factorisation and the Euclidean algorithm

The prime factorisation method decomposes each number into a product of prime factors and takes the common factors with the lowest exponent. For GCD(60, 84): 60 = 2ยฒ ร— 3 ร— 5 and 84 = 2ยฒ ร— 3 ร— 7. The common primes are 2ยฒ and 3. Therefore GCD(60, 84) = 4 ร— 3 = 12.

The Euclidean algorithm is more efficient for large numbers. It relies on the property that GCD(a, b) = GCD(b, remainder of a รท b). Apply it repeatedly until the remainder is zero: GCD(252, 105) โ†’ 252 = 2 ร— 105 + 42 โ†’ GCD(105, 42) โ†’ 105 = 2 ร— 42 + 21 โ†’ GCD(42, 21) โ†’ 42 = 2 ร— 21 + 0. When the remainder is zero, the last divisor is the GCD: GCD(252, 105) = 21.

For three or more numbers, calculate the GCD two at a time. GCD(a, b, c) = GCD(GCD(a, b), c). For example, GCD(12, 18, 30): GCD(12, 18) = 6; GCD(6, 30) = 6. Therefore GCD(12, 18, 30) = 6.

  • Factorisation: decompose into primes and take common factors with the lowest exponent.
  • Euclidean algorithm: divide repeatedly until the remainder is zero.
  • For 3 numbers: GCD(a, b, c) = GCD(GCD(a, b), c).
  • GCD(a, b) ร— LCM(a, b) = a ร— b (for two numbers).
  • If one number divides the other, the GCD is the smaller one.

LCM: the smallest multiple two numbers share

The Least Common Multiple (LCM) of two numbers is the smallest positive integer that is a multiple of both. LCM(4, 6) = 12, because 12 is the smallest number that appears in both the multiplication table of 4 (4, 8, 12, 16โ€ฆ) and the table of 6 (6, 12, 18โ€ฆ) at the same time.

The LCM is fundamental for adding or subtracting fractions with different denominators. To calculate 1/4 + 1/6, we need a common denominator. LCM(4, 6) = 12 is the smallest possible: 1/4 = 3/12 and 1/6 = 2/12. So 1/4 + 1/6 = 3/12 + 2/12 = 5/12. Using the LCM avoids working with unnecessarily large numbers.

In practical situations, the LCM solves synchronisation problems. If one bus comes every 8 minutes and another every 12 minutes, when will they next depart together? LCM(8, 12) = 24 minutes. This works for any repeating cycle: work shifts, metronome beats, electrical frequencies.

Calculating the LCM: factorisation and its relationship to the GCD

Using prime factorisation, the LCM is calculated by taking all primes present in any of the numbers, with the highest exponent. For LCM(60, 84): 60 = 2ยฒ ร— 3 ร— 5 and 84 = 2ยฒ ร— 3 ร— 7. The primes involved are 2, 3, 5 and 7. LCM(60, 84) = 2ยฒ ร— 3 ร— 5 ร— 7 = 4 ร— 3 ร— 5 ร— 7 = 420.

There is a direct formula using the GCD: LCM(a, b) = (a ร— b) รท GCD(a, b). For LCM(12, 18): GCD(12, 18) = 6. So LCM = (12 ร— 18) รท 6 = 216 รท 6 = 36. This relationship explains why GCD and LCM are complementary concepts.

To find the LCM of three or more numbers, use simultaneous decomposition: write all numbers side by side and divide by common primes, then by individual ones. LCM(4, 6, 9): divide by 2 (4โ†’2, 6โ†’3, 9โ†’9), by 2 again (2โ†’1, 3โ†’3, 9โ†’9), by 3 (1โ†’1, 3โ†’1, 9โ†’3), by 3 again (1โ†’1, 1โ†’1, 3โ†’1). LCM = 2 ร— 2 ร— 3 ร— 3 = 36.

When to use GCD and when to use LCM

The practical rule is: use the GCD when you want to divide or separate, and the LCM when you want to combine or synchronise. Dividing a sheet of paper into equal parts with none left over? GCD. Finding the moment when two cycles coincide again? LCM.

For fractions: GCD simplifies (reduces the fraction) and LCM creates the common denominator for addition and subtraction. To simplify 36/48, use GCD(36, 48) = 12: the simplified fraction is 3/4. To add 5/6 + 3/8, use LCM(6, 8) = 24: 5/6 = 20/24 and 3/8 = 9/24, sum = 29/24.

In resource-sharing problems, the GCD answers 'what is the largest equal group possible'. In periodic-meeting problems, the LCM answers 'when do they coincide again'. Identifying which question is being asked is the most important skill when solving these problems.

Frequently asked questions

Does the GCD exist for negative numbers?

By convention, the GCD is always defined as a positive number. GCD(โˆ’12, 18) = GCD(12, 18) = 6. In advanced algebra this definition may vary, but in basic education only positive values are used.

Is the GCD of two prime numbers always 1?

Yes, because prime numbers have no divisors other than 1 and themselves. Two distinct primes share no common divisor other than 1, so GCD(p, q) = 1 whenever p โ‰  q are prime.

How does the Euclidean algorithm work?

Divide the larger number by the smaller and take the remainder. Then divide the previous divisor by the remainder. Repeat until the remainder is zero. The last non-zero divisor is the GCD. For example: GCD(35, 14) โ†’ 35 = 2 ร— 14 + 7 โ†’ GCD(14, 7) โ†’ 14 = 2 ร— 7 + 0. GCD = 7.

Why does LCM(a, b) = (a ร— b) รท GCD(a, b)?

Because when you factorise a and b into primes, the shared factors appear in the GCD. To form the LCM (all primes with the highest exponent), you take a ร— b but subtract the 'overlap' of common factors โ€” which is exactly the GCD.

Is the LCM of two numbers always greater than or equal to both?

Yes, by definition. The LCM is a multiple of both numbers, so it is greater than or equal to each of them. The only case where LCM(a, b) = a is when b divides a โ€” for example, LCM(12, 4) = 12.

Was this article helpful?

Rate with stars to help us improve the content.

Sign in to rate this article.

Still have questions?

The AI Professor explains step by step

Ask a question in natural language and get a personalised explanation about Arithmetic โ€” or any other topic.

Prefer to solve it on your phone?

Download the free app โ†’

Keep learning