⚖️ Arithmetic Solver

GCF and LCM Calculator

Find the Greatest Common Factor (GCF) and Least Common Multiple (LCM) of two or more numbers with clear step-by-step calculations.

Numbers to Analyze

Enter values to calculate instant result

💡 Try:
Verified Solution

---

📖

How to Use & Educational Guide

In-depth guide for GCF and LCM Calculator

Educational Overview

What Are GCF and LCM?

The Greatest Common Factor (GCF) is the largest positive number that divides two or more numbers exactly. The Least Common Multiple (LCM) is the smallest positive number that is a multiple of two or more numbers.

GCF is useful when finding the largest common factor, while LCM is useful when finding the first shared multiple. Both can be calculated using methods such as listing factors, listing multiples, or prime factorization.

How to Find the GCF and LCM

  1. Write the numbers you want to compare.
  2. Find the prime factorization of each number.
  3. For the GCF, multiply the prime factors shared by all numbers using the smallest exponent of each shared prime.
  4. For the LCM, multiply every prime factor needed using the greatest exponent that appears in any number.
  5. Check the results by verifying that the GCF divides every number and the LCM is divisible by every number.

Example: Find the GCF and LCM of 36 and 48

Step 1: Find the prime factorization of each number.

36 = 22 × 32
48 = 24 × 3

Step 2: Find the GCF by taking the common prime factors with their smallest exponents. Both numbers contain 2 and 3.

GCF = 22 × 3 = 12

Step 3: Find the LCM by taking each prime factor with its greatest exponent.

LCM = 24 × 32 = 144

Step 4: Therefore, the GCF of 36 and 48 is 12, and the LCM is 144.

GCF and LCM of Three Numbers

The same prime-factor method can be used for three or more numbers. Consider 12, 18, and 30.

Step 1: Write the prime factorization of each number.

12 = 22 × 3
18 = 2 × 32
30 = 2 × 3 × 5

Step 2: The primes common to all three numbers are 2 and 3. Use the smallest exponent for each.

GCF = 2 × 3 = 6

Step 3: For the LCM, use the greatest exponent of every prime that appears.

LCM = 22 × 32 × 5 = 180

Therefore, the GCF of 12, 18, and 30 is 6, while their LCM is 180.

How Are GCF and LCM Related?

For two positive integers, the product of the numbers equals the product of their GCF and LCM. This gives a useful way to check a calculation.

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

Using 36 and 48, the relationship can be checked as follows:

36 × 48 = 1,728
12 × 144 = 1,728

Both products are 1,728, so the GCF and LCM results are consistent with the relationship.

GCF and LCM Using Factors and Multiples

For small numbers, you can find the GCF by listing factors and the LCM by listing multiples. For example, the factors of 12 are 1, 2, 3, 4, 6, and 12, while the factors of 18 are 1, 2, 3, 6, 9, and 18. The greatest factor they share is 6.

To find the LCM, list multiples until a common value appears. The multiples of 12 include 12, 24, 36, 48, and 60, while the multiples of 18 include 18, 36, 54, and 72. The first common positive multiple is 36.

GCF(12, 18) = 6    LCM(12, 18) = 36

Common Mistakes to Avoid

  • Confusing factors with multiples: Factors divide a number exactly, while multiples are obtained by multiplying a number by whole numbers.
  • Using the largest prime exponents for the GCF: The GCF uses the smallest exponent of each prime shared by all numbers.
  • Using the smallest prime exponents for the LCM: The LCM requires the greatest exponent of every prime that appears.
  • Applying the two-number product formula to three numbers: The relationship a × b = GCF × LCM applies directly to two positive integers, not as a simple three-number formula.
  • Forgetting a prime factor: When finding an LCM by prime factorization, include every prime that appears in at least one number.
  • Not checking the result: The GCF must divide every input number, and the LCM must be divisible by every input number.

Why Use a GCF and LCM Calculator?

A GCF and LCM Calculator can quickly find both values and show the working used to reach the result. It is useful for checking manual calculations, comparing two or more numbers, and working with larger numbers where listing factors or multiples would take more time.

Mathematical accuracy verified by AptCalc Engine

Frequently Asked Questions (FAQs)

Answers to common questions about this calculator

What is the difference between GCF and LCM?
The GCF is the greatest positive factor shared by the numbers, while the LCM is the smallest positive multiple shared by the numbers.
How do you find the GCF and LCM?
You can use factor lists, multiple lists, or prime factorization. With prime factorization, use the smallest shared exponents for the GCF and the greatest exponents for the LCM.
Can I find the GCF and LCM of three numbers?
Yes. Prime factorization can be used for three or more numbers. The GCF uses primes common to every number, while the LCM includes every prime needed to cover all the numbers.
What is the formula relating GCF and LCM?
For two positive integers a and b, the relationship is a × b = GCF(a, b) × LCM(a, b).
Can GCF be greater than LCM?
No. For positive integers, the GCF is always less than or equal to the LCM. They are equal when the two numbers are the same.
Explore More Tools

Discover Other Calculation Suites

Browse our full ecosystem of precision calculation and conversion tools