Euclidean Algorithm Calculator (GCD, LCM & Bézout)
Find the greatest common divisor of two numbers with the Euclidean algorithm — every division step — plus the LCM and the Bézout coefficients from…
Find the greatest common divisor of two numbers with the Euclidean algorithm — every division step — plus the LCM and the Bézout coefficients from the extended algorithm.
Results
Enter your details and click Calculate to see your results.
About This Calculator
Divide the larger by the smaller and replace with the remainder until it's 0; the last non-zero remainder is the GCD. LCM = |ab| / GCD.
Example
Example: gcd(240, 46) = 2; 240·(-9) + 46·(47) = 2.
Assumptions
Whole numbers.
Frequently Asked Questions
What are Bézout coefficients used for?
Modular inverses — if ax + ny = 1, then x is a⁻¹ mod n.
Related Calculators
About the Author

Imran Hossain
Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile