LCM Calculator
Find the Least Common Multiple (LCM) of two or more integers with clear step-by-step calculations using prime factorization.
---
Visual Graph & Diagram
Interactive mathematical coordinate representation
Calculation Reference Table
Benchmark values and quick reference intervals
How to Calculate Least Common Multiple (LCM) Calculator
Step-by-Step Mathematical Solution & Verification
How to Use & Educational Guide
In-depth guide for Least Common Multiple (LCM) Calculator
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:
- Decompose every number into prime powers: Write each integer as a product of its prime factors with exponents.
- Calculate the GCF: Identify only the prime factors common to all numbers, choose the smallest exponent for each, and multiply them together.
- 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:
36 = 22 × 32
- GCF (Lowest shared exponents): Take
22and31→4 × 3 = 12. - LCM (Highest exponents): Take
23and32→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:
- 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:
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 × bto 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
- Enter two or more positive integers separated by commas or spaces.
- 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?
How do you find both GCF and LCM at the same time?
What is the relationship formula between GCF and LCM?
What are the GCF and LCM of 24 and 36?
What are the GCF and LCM of two prime or coprime numbers?
Discover Other Calculation Suites
Browse our full ecosystem of precision calculation and conversion tools
Mathematics Suite
Percentages, Algebra, Fractions, Geometry, and step-by-step math solvers.
Date & Time Tools
Days ago, days from today, business days, and calendar date calculators.
Unit Converter
Convert length, weight, volume, temperature, and international units.
Countdown Tracker
Live real-time event countdowns, holidays, and deadline trackers.
Explore Related Calculators
More tools in Arithmetic
Addition Calculator
Step-By-Step Solver
Subtraction Calculator
Step-By-Step Solver
Multiplication Calculator
Step-By-Step Solver
Division Calculator
Step-By-Step Solver
Long Division Calculator
Step-By-Step Solver
Order of Operations Calculator (PEMDAS/BODMAS)
Step-By-Step Solver