LCM and GCD Calculator
Find the GCD and LCM of two numbers.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
The greatest common divisor (GCD) of two integers is the largest number that divides both evenly, typically found via the Euclidean algorithm (repeated division with remainder — one of the oldest algorithms in mathematics, dating to Euclid's Elements). The least common multiple (LCM) is the smallest number both integers divide into evenly, computed from the GCD via LCM(a,b) = (a×b) / GCD(a,b).
These concepts are everywhere: students use GCD to simplify fractions to lowest terms; the Euclidean algorithm underlies key steps in RSA cryptography (computing modular inverses); and LCM solves scheduling problems like finding when two repeating events next coincide (e.g. buses on different cycles, or gear ratios in mechanical design). Enter two integers to get both the GCD and LCM.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)