Math Calculators, Lessons and Formulas

It is time to solve your math problem

mathportal.org

GCD calculator

google play badge app store badge

The greatest common division calculator computes GCD of two or more integers using 4 method.

Tutorial

What is Greatest common divisor (GCD)?

GCD of 24 and 18 is equal 6.

The greatest common divisor (factor, multiple) of two integers is the largest number that divides them both.

How to find GCF of two or more numbers?

To find the GCF of two numbers, this calculator uses the following methods:
1. Prime factorization method, 2. Repeated division method, 3. Euclidean algorithm and 4. Listing out the factors.

Examples

Method 1 : Find GCD using prime factorization method

Example: find GCD of 36 and 48

Step 1: find prime factorization of each number:

42 = 2 * 3 * 7

70 = 2 * 5 * 7

Step 2: circle out all common factors:

42 = * 3 *

70 = * 5 *

We see that the GCD is * = 14

Method 2 : Find GCD using a repeated division

Example: find GCD of 84 and 140.

Step 1: Place the numbers inside division bar:

84 140

Step 2: Divide both numbers by 2:

2 84 140
42 70

Step 3: Continue to divide until the numbers do not have a common factor.

84 140
42 70
21 35
3 7

Step 4: The GCD of 84 and 140 is: * * = 28

Method 3 : Euclidean algorithm

Example: Find GCD of 52 and 36, using Euclidean algorithm.

Solution: Divide 52 by 36 and get the remainder, then divide 36 with the remainder from previous step. When the remainder is zero the GCD is the last divisor.

52 : 36 = 1 remainder (16)
36 : 16 = 1 remainder (4)
16 : = 4 remainder (0)

We conclude that the GCD = 4.

Method 4 : Listing out the factors

Example: find GCD of 45 and 54 by listing out the factors.

Step 1: Find divisors for the given numbers:

The divisors of 45 are 1, 3, 5, , 15 and 45

The divisors of 54 are 1, 2, 3, 6, 18, 27 and 54

Step 2: The greatest divisor =

Find Greatest Common Divisor of 5 and 20, using prime factorization.

solution

The GCD of given numbers is 5.

explanation

Step 1 : Find prime factorization of each number.

$$\begin{aligned}5 =& 5\\[8pt]20 =& 2\cdot2\cdot5\\[8pt]\end{aligned}$$

(view steps on how to factor 5 and 20. )

Step 2 : Put a box around factors that are common for all numbers:

$$\begin{aligned}5 =& \color{blue}{\boxed{5}}\\[8pt]20 =& 2\cdot2\cdot\color{blue}{\boxed{5}}\\[8pt]\end{aligned}$$

Step 3 : Multiply the boxed numbers together:

$$ GCD = 5 $$

This solution can be visualized using a Venn diagram.

The GCD equals the product of the numbers at the intersection.

Report an Error!

Script name : gcd-calculator

Form values: primefactmethod , 5 20 , g , Find GCD of 5 20

Comment (optional)

 
close
GCD Calculator
Find the greatest common multiple using four methods.
help ↓↓ examples ↓↓ tutorial ↓↓
18,24
36,54,90,126
Prime factorization method
Repeated division method
Euclidean Algorithm (works for two numbers)
Listing out the factors
thumb_up 2.6K thumb_down

Get Widget Code

Examples
ex 1:
What is the Greatest Common Divisor (GCD) of 104 and 64?
ex 2:
Find GCD of 96, 144 and 192 using a repeated division.
ex 3:
Find GCD of 54 and 60 using Euclidean Algorithm.
ex 4:
Find GCD of 72 and 54 by listing out the factors.
Find more worked-out examples in our database of solved problems.
working...
RESOURCES
452 861 664 solved problems
×
ans:
syntax error
C
DEL
ANS
±
(
)
÷
×
7
8
9
4
5
6
+
1
2
3
=
0
.