CalquioCalquio

Search

Search for calculators and tools

GCF & LCM Calculator

Find the Greatest Common Factor and Least Common Multiple of any numbers with detailed step-by-step solutions and prime factorization.

1

Calculation Mode

2

Numbers detected: 12, 18

Greatest Common Factor
6
Prime Factorization
12=2 × 2 × 3
18=2 × 3 × 3
All Common Divisors
1, 2, 3, 6
How We Calculated
Using Euclidean algorithm for 18 and 12:
18 ÷ 12 = 1 remainder 6
12 ÷ 6 = 2 remainder 0
GCF = 6
Least Common Multiple
36
LCM Factorization
36 = 2 × 2 × 3 × 3
First Multiples of LCM
36, 72, 108, 144, 180...
How We Calculated
Using formula: LCM(a, b) = |a × b| / GCF(a, b)
LCM(12, 18) = |12 × 18| / 6
LCM(12, 18) = 216 / 6
LCM = 36

Relationship Between GCF and LCM

For two numbers: GCF × LCM = a × b
GCF(12, 18) × LCM(12, 18) = 6 × 36 = 216
12 × 18 = 216 =

You May Also Like

What Are GCF and LCM?

GCF (Greatest Common Factor) is the largest number that divides evenly into two or more numbers. It's also called GCD (Greatest Common Divisor) or HCF (Highest Common Factor).

LCM (Least Common Multiple) is the smallest number that is a multiple of two or more numbers.

Real-Life Examples

GCF Example: Cutting Ribbons You have two ribbons: one is 12 inches long, the other is 18 inches. You want to cut them into equal pieces with no ribbon left over. The GCF of 12 and 18 is 6, so you can cut both ribbons into 6-inch pieces.

LCM Example: Scheduling Two buses leave the same station. Bus A leaves every 12 minutes, Bus B every 18 minutes. They both leave at 8:00 AM. When will they leave together again? The LCM of 12 and 18 is 36, so they'll both leave at 8:36 AM.


How to Find the GCF

Method 1: List All Factors

  1. List all factors of each number
  2. Find the common factors
  3. Choose the largest one

Example: GCF of 12 and 18

  • Factors of 12: 1, 2, 3, 4, 6, 12
  • Factors of 18: 1, 2, 3, 6, 9, 18
  • Common factors: 1, 2, 3, 6
  • GCF = 6

Method 2: Prime Factorization

  1. Find the prime factors of each number
  2. Identify common prime factors
  3. Multiply the common factors together

Example: GCF of 12 and 18

  • 12 = 2 × 2 × 3
  • 18 = 2 × 3 × 3
  • Common: 2 × 3 = 6

Method 3: Euclidean Algorithm

This is the fastest method for large numbers:

  1. Divide the larger number by the smaller
  2. Replace the larger number with the remainder
  3. Repeat until the remainder is 0
  4. The last non-zero remainder is the GCF

Example: GCF of 48 and 18

  • 48 ÷ 18 = 2 remainder 12
  • 18 ÷ 12 = 1 remainder 6
  • 12 ÷ 6 = 2 remainder 0
  • GCF = 6

How to Find the LCM

Method 1: List Multiples

  1. List multiples of each number
  2. Find the smallest common multiple

Example: LCM of 4 and 6

  • Multiples of 4: 4, 8, 12, 16, 20, 24...
  • Multiples of 6: 6, 12, 18, 24...
  • LCM = 12

Method 2: Prime Factorization

  1. Find the prime factors of each number
  2. Take the highest power of each prime
  3. Multiply them together

Example: LCM of 12 and 18

  • 12 = 2² × 3
  • 18 = 2 × 3²
  • Take highest powers: 2² × 3² = 4 × 9 = 36

Method 3: Using GCF (Fastest!)

For two numbers a and b: LCM(a, b) = (a × b) ÷ GCF(a, b)

Example: LCM of 12 and 18

  • GCF(12, 18) = 6
  • LCM = (12 × 18) ÷ 6 = 216 ÷ 6 = 36

The GCF-LCM Relationship

For any two positive integers a and b:

GCF(a, b) × LCM(a, b) = a × b

This is a useful check: if 12 × 18 = 216, and 6 × 36 = 216, your answers are correct!


Common Uses

Use CaseWhich to Use
Simplifying fractionsGCF
Dividing things into equal groupsGCF
Adding/subtracting fractionsLCM (common denominator)
Scheduling recurring eventsLCM
Finding when cycles alignLCM
Cutting/measuring equal lengthsGCF

Practice Problems

  1. GCF of 24 and 36: Factors of 24 are 1,2,3,4,6,8,12,24. Factors of 36 are 1,2,3,4,6,9,12,18,36. GCF = 12

  2. LCM of 8 and 12: 8 = 2³, 12 = 2² × 3. LCM = 2³ × 3 = 24

  3. Simplify 18/24: GCF(18,24) = 6. So 18/24 = 3/4

  4. Add 1/6 + 1/8: LCM(6,8) = 24. So 1/6 + 1/8 = 4/24 + 3/24 = 7/24