GCD / LCM Calculator
Calculate Greatest Common Divisor and Least Common Multiple for any set of numbe...Calculate Greatest Common Divisor and Least Common Multiple for any set of numbers with step-by-step solutions.
Calculator Features
Why Use GCD / LCM Calculator?
GCD & LCM Together
Calculate both Greatest Common Divisor and Least Common Multiple in one place.
Multiple Numbers
Enter any number of values - the calculator works with 2 or more numbers.
Step-by-Step Solution
See how GCD and LCM are calculated iteratively for better understanding.
Prime Factorization
View prime factorization of each number to understand the math.
Copy Results
One-click copy for GCD and LCM values to use elsewhere.
100% Private
All calculations happen in your browser. No data sent to servers.
Common Uses
Simplify Fractions
Find GCD to reduce fractions to their simplest form.
Add Fractions
Find LCM to get common denominators when adding fractions.
Math Homework
Verify your work or understand number relationships.
Scheduling
Find when cycles align (like bus schedules or work shifts).
How It Works
Enter Your Numbers
Type numbers separated by commas or spaces. For example: 12, 18, 24
View GCD Result
See the Greatest Common Divisor - the largest number that divides all inputs evenly.
View LCM Result
See the Least Common Multiple - the smallest number divisible by all inputs.
Explore Details
Check step-by-step calculations and prime factorizations for deeper understanding.
Math Tips
Coprime Numbers
If GCD is 1, the numbers are coprime (no common factors). LCM will equal their product.
Fraction Simplification
To simplify a fraction, divide both numerator and denominator by their GCD.
Large LCM Values
LCM can grow very large. For numbers with few common factors, LCM approaches their product.