โœ–๏ธ Arithmetic Solver

LCM Calculator

Find the Least Common Multiple (LCM) of two or more integers with clear step-by-step calculations using prime factorization.

Numbers to Find LCM

Enter values to calculate instant result

โ„น๏ธ Info
๐Ÿ’ก Try:
Verified Solution

---

๐Ÿ“–

How to Use & Educational Guide

In-depth guide for Least Common Multiple (LCM) Calculator

Educational Overview

How to Find Both GCF and LCM of Two or More Numbers

The Greatest Common Factor (GCF) and the Least Common Multiple (LCM) are two foundational number theory concepts that work together whenever you simplify fractions, find common denominators, or solve scheduling problems. While the GCF (also called HCF or GCD) finds the largest whole number that divides evenly into all given numbers, the LCM finds the smallest positive multiple that all given numbers divide into evenly.

Using a combined GCF and LCM Calculator lets you compute both values simultaneously from a single set of integers using shared prime factorization or the Euclidean division method.

GCF vs. LCM: Side-by-Side Comparison

Because GCF and LCM move in opposite directions, comparing their definitions, exponent rules, and output ranges makes it easy to tell them apart:

Feature Greatest Common Factor (GCF / HCF) Least Common Multiple (LCM)
Core Definition Largest integer that divides every input number with zero remainder Smallest positive integer divisible by every input number
Output Size Less than or equal to the smallest input number Greater than or equal to the largest input number
Prime Factorization Rule Multiply shared primes with their lowest exponents Multiply all primes with their highest exponents
Primary Fraction Use Reducing a fraction to simplest form Finding the Least Common Denominator (LCD)
Example: 12 and 18 GCF = 6 LCM = 36

How to Calculate GCF and LCM Together Using Prime Factorization

The cleanest way to find both GCF and LCM in a single workflow is prime factorization:

  1. Decompose every number into prime powers: Write each integer as a product of its prime factors with exponents.
  2. Calculate the GCF: Identify only the prime factors common to all numbers, choose the smallest exponent for each, and multiply them together.
  3. Calculate the LCM: Take every distinct prime factor appearing in any of the numbers, choose the largest exponent for each, and multiply them together.

Worked Examples: Finding GCF and LCM Simultaneously

Example 1: Find GCF and LCM of 24 and 36

First write the prime factorization of both integers:

24 = 23 × 31
36 = 22 × 32
  • GCF (Lowest shared exponents): Take 22 and 31 → 4 × 3 = 12.
  • LCM (Highest exponents): Take 23 and 32 → 8 × 9 = 72.

Example 2: Find GCF and LCM of Three Numbers (12, 18, and 30)

Prime factorization works just as smoothly for three or more integers:

12 = 22 × 3  |  18 = 2 × 32  |  30 = 2 × 3 × 5
  • GCF: Only 2 and 3 appear in all three numbers, each with a lowest exponent of 1 → 2 × 3 = 6.
  • LCM: Every prime factor (2, 3, and 5) is included at its highest power → 22 × 32 × 5 = 4 × 9 × 5 = 180.

The GCF and LCM Product Formula (Two Numbers)

For any two positive integers a and b, the product of their GCF and LCM always equals the product of the two numbers themselves:

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

For example, with 24 and 36: GCF(24, 36) × LCM(24, 36) = 12 × 72 = 864, which matches 24 × 36 = 864. This identity gives you an instant way to double-check your answers or solve for one metric once you already know the other.

Common Mistakes to Avoid

  • Swapping the exponent rules: Always use the lowest shared exponents for GCF and the highest exponents for LCM.
  • Applying GCF × LCM = a × b to three numbers: That product identity holds strictly for two integersโ€”for three or more numbers, use prime factorization.
  • Forgetting coprime pairs: When two integers share no prime factors (like 9 and 14), their GCF is 1 and their LCM is simply their product (9 × 14 = 126).

How to Use the AptCalc GCF and LCM Calculator

  1. Enter two or more positive integers separated by commas or spaces.
  2. Click calculate to view both the GCF (HCF) and LCM at once, complete with prime factorization trees and step-by-step breakdowns.

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 Greatest Common Factor (GCF) is the largest positive integer that divides all given numbers evenly, whereas the Least Common Multiple (LCM) is the smallest positive integer that is a multiple of all given numbers.
How do you find both GCF and LCM at the same time?
Write the prime factorization of each number. Multiply only the shared prime factors with their lowest exponents to get the GCF, and multiply all distinct prime factors with their highest exponents to get the LCM.
What is the relationship formula between GCF and LCM?
For any two positive integers a and b, GCF(a, b) ร— LCM(a, b) = a ร— b. For example, for 12 and 18, 6 ร— 36 = 216, which equals 12 ร— 18.
What are the GCF and LCM of 24 and 36?
For 24 (2ยณ ร— 3) and 36 (2ยฒ ร— 3ยฒ), the GCF is 2ยฒ ร— 3 = 12 and the LCM is 2ยณ ร— 3ยฒ = 72.
What are the GCF and LCM of two prime or coprime numbers?
If two numbers have no common prime factors (such as 8 and 15), their GCF is always 1 and their LCM is equal to their product (8 ร— 15 = 120).
Explore More Tools

Discover Other Calculation Suites

Browse our full ecosystem of precision calculation and conversion tools