Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Greatest Common Divisor Explained for Students

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon

How to Find the Greatest Common Divisor Using Prime Factorization and Euclidean Algorithm

The concept of greatest common divisor (GCD) plays a key role in mathematics and is widely applicable to both real-life situations and exam scenarios. Understanding how to find the GCD helps you simplify fractions, solve LCM-HCF problems, and answer higher-level questions with confidence.


What Is Greatest Common Divisor?

A greatest common divisor (often called GCD or HCF) is defined as the largest positive integer that divides two or more numbers exactly, leaving no remainder. GCD is also known as highest common factor or greatest common factor (GCF). You’ll find this concept applied in areas such as simplifying fractions, grouping items, and in number theory algorithms for programming.


Key Formula for Greatest Common Divisor

Here’s the standard formula: \( \mathrm{GCD}(a, b) = \frac{|a \times b|}{\mathrm{LCM}(a, b)} \)
This formula relates the GCD with the least common multiple (LCM) of two numbers. For more than two numbers, you apply the formula sequentially.


Cross-Disciplinary Usage

The greatest common divisor is not only useful in Maths but also plays an important role in Physics (to find resonant frequencies), Computer Science (for encryption and coding algorithms), and daily logical reasoning—such as arranging items evenly or splitting tasks. Students preparing for JEE, Olympiads, or school board exams will see its relevance in various questions.


Step-by-Step Illustration

Let’s find the GCD of 24 and 36 using the prime factorisation method:

1. Find the prime factors of 24: 24 = 2 × 2 × 2 × 3

2. Find the prime factors of 36: 36 = 2 × 2 × 3 × 3

3. Identify the common prime factors: 2 × 2 × 3 (as both numbers share these)

4. Multiply the common factors: 2 × 2 × 3 = 12

5. Final Answer: **GCD(24, 36) = 12**

Another quick method using the Euclidean algorithm (division method):

1. Divide the larger number by the smaller: 36 ÷ 24 = 1 remainder 12

2. Now, divide the previous divisor (24) by the remainder (12): 24 ÷ 12 = 2 remainder 0

3. The last non-zero remainder is 12.

4. **So, GCD(24, 36) = 12**

Speed Trick or Vedic Shortcut

Here’s a quick shortcut that helps solve GCD problems faster, especially in timed exams:

Euclidean Algorithm Shortcut: To find the GCD of two numbers quickly, keep dividing the larger by the smaller and replace the pair with (smaller number, remainder). Repeat until the remainder is 0. The last divisor is the GCD.
This method is fast and works for large numbers—perfect for JEE, NTSE, and CBSE exams. Vedantu’s live classes teach you more such tricks to ace competitive exams.


Try These Yourself

  • Find the greatest common divisor of 30 and 45.
  • Check if GCD(27, 72) is greater than 10.
  • What is the GCD of 11, 22, and 33?
  • Are 35 and 64 co-prime? (What is their GCD?)

Frequent Errors and Misunderstandings

  • Confusing GCD (greatest common divisor) with LCM (least common multiple).
  • Forgetting to list all common factors in factorisation method.
  • Stopping Euclidean algorithm steps too early.
  • Thinking GCD can be greater than the smallest given number (it can’t be).

Relation to Other Concepts

The idea of greatest common divisor connects closely with topics such as highest common factor (HCF) and least common multiple (LCM). Mastering GCD makes it easier to tackle fractions, divisibility rules, and algebraic problems in later chapters.


Classroom Tip

A handy way to remember the GCD process is: "List out all factors, spot the biggest one in common." For large numbers, use the Euclidean method for speed! Vedantu’s teachers often use colourful factor trees or step charts to help students during live classes.


Wrapping It All Up

We explored greatest common divisor—from definition, formula, stepwise examples, mistakes, and links to other maths topics. Keep practicing such problems on Vedantu to become confident in simplifying numbers using this key math tool!


Further Learning: Useful Math Links


FAQs on Greatest Common Divisor Explained for Students

1. What is the Greatest Common Divisor (GCD)?

The Greatest Common Divisor (GCD) is the largest positive integer that divides two or more numbers exactly without leaving a remainder. It is also called the Highest Common Factor (HCF).

  • It must divide each number completely.
  • It is the greatest among all common factors.
  • Example: The GCD of 12 and 18 is 6.
This concept is widely used in number theory, fractions, and simplifying ratios.

2. How do you find the GCD of two numbers?

You can find the GCD using listing factors, prime factorization, or the Euclidean algorithm.

  • Step 1: List all factors of each number.
  • Step 2: Identify common factors.
  • Step 3: Choose the greatest one.
Example: For 20 and 30:
  • Factors of 20: 1, 2, 4, 5, 10, 20
  • Factors of 30: 1, 2, 3, 5, 6, 10, 15, 30
  • Common factors: 1, 2, 5, 10
The GCD is 10.

3. What is the formula for the GCD using the Euclidean algorithm?

The Euclidean algorithm finds the GCD using the formula GCD(a, b) = GCD(b, a mod b) until the remainder is 0.

  • Divide a by b.
  • Replace a with b and b with the remainder.
  • Repeat until remainder = 0.
Example: GCD(48, 18):
  • 48 ÷ 18 = remainder 12
  • 18 ÷ 12 = remainder 6
  • 12 ÷ 6 = remainder 0
The GCD is 6.

4. What is the GCD of 0 and a number?

The GCD of 0 and a non-zero number is the number itself. In general, GCD(a, 0) = |a| for any non-zero integer a.

  • Example: GCD(0, 7) = 7.
  • However, GCD(0, 0) is undefined.
This rule follows from the definition of divisibility in number theory.

5. What is the difference between GCD and LCM?

The GCD is the largest common factor, while the LCM (Least Common Multiple) is the smallest common multiple of two or more numbers.

  • GCD focuses on divisors.
  • LCM focuses on multiples.
  • Relation: GCD(a, b) × LCM(a, b) = a × b.
Example: For 6 and 8:
  • GCD = 2
  • LCM = 24

6. How do you find the GCD using prime factorization?

To find the GCD using prime factorization, multiply the common prime factors with the smallest powers.

  • Step 1: Factor each number into primes.
  • Step 2: Identify common prime factors.
  • Step 3: Multiply the lowest powers.
Example: 24 = 2³ × 3, 36 = 2² × 3²
  • Common primes: 2 and 3
  • Lowest powers: 2² and 3¹
GCD = 2² × 3 = 12.

7. What does it mean if the GCD of two numbers is 1?

If the GCD of two numbers is 1, the numbers are called coprime or relatively prime. This means they have no common factors other than 1.

  • Example: GCD(8, 15) = 1.
  • They share no prime factors.
Coprime numbers are important in fractions, ratios, and modular arithmetic.

8. How do you find the GCD of more than two numbers?

To find the GCD of more than two numbers, calculate the GCD step by step between pairs.

  • Step 1: Find GCD of the first two numbers.
  • Step 2: Find GCD of the result and the next number.
Example: GCD(24, 36, 60)
  • GCD(24, 36) = 12
  • GCD(12, 60) = 12
The final GCD is 12.

9. Why is the GCD important in simplifying fractions?

The GCD is used to simplify fractions by dividing the numerator and denominator by their greatest common divisor.

  • Example: Simplify 18/24.
  • GCD(18, 24) = 6
  • Divide both by 6 → 3/4
Using the GCD ensures the fraction is in its lowest terms.

10. Can you give a real-life example of GCD?

A real-life example of the Greatest Common Divisor is dividing items into equal groups without leftovers. Suppose you have 28 apples and 42 oranges and want equal baskets.

  • GCD(28, 42) = 14
  • You can make 14 equal baskets.
  • Each basket has 2 apples and 3 oranges.
This application of GCD helps in grouping, packaging, and resource distribution.