GCD and LCM Calculator
This calculator computes the Greatest Common Divisor (GCD) and Least Common Multiple (LCM) of numbers.
How the GCD and LCM Calculator Works
The Greatest Common Divisor (GCD) is the largest number that divides both numbers evenly. The Least Common Multiple (LCM) is the smallest positive number divisible by both. These concepts are fundamental in simplifying fractions and number theory.
- 1
Enter First Number
Input the first positive integer
- 2
Enter Second Number
Input the second positive integer
- 3
Calculate GCD
The calculator uses the Euclidean algorithm to find GCD
- 4
Calculate LCM
LCM is computed using: LCM = |a x b| / GCD
Use Cases
Simplifying Fractions
Divide numerator and denominator by their GCD to reduce fractions
Finding Common Denominators
Use LCM to find the least common denominator when adding fractions
Scheduling Problems
Determine when periodic events will coincide
Number Theory
Solve problems in algebra and cryptography
Tips
- 1
GCD is always less than or equal to the smaller number
- 2
LCM is always greater than or equal to the larger number
- 3
GCD(a,b) x LCM(a,b) = |a x b|
- 4
If GCD = 1, the numbers are coprime (relatively prime)
Common Mistakes
Confusing GCD and LCM - GCD divides the numbers, numbers divide LCM
Using GCD/LCM with negative numbers - always use absolute values
Assuming LCM = a x b always - this is only true when GCD = 1
Forgetting that GCD(a, 0) = a
FAQs
What is the Greatest Common Divisor (GCD)?
What is the Least Common Multiple (LCM)?
What is the Euclidean algorithm?
What does coprime mean?
Related tools
Pick another tool to continue your calculation.
Extended Euclidean Algorithm Calculator
Calculate GCD and Bezout coefficients.
GCD Calculator
Calculate the Greatest Common Divisor of two numbers.
Advanced Random Number Generator
Generate random numbers within a specified range.
Percentage of Total Calculator
Sequence Calculator - Arithmetic and Geometric Sequences
Calculate and analyze mathematical sequences online. Find terms, sums, and patterns in arithmetic and geometric sequences. Ideal for students studying sequences and series.
Matrix Calculator - Perform Matrix Operations Online
Perform matrix operations online with our free matrix calculator. Calculate matrix addition, multiplication, determinants, inverse, and more. Perfect for linear algebra students and professionals.