Bezout Coefficients Calculator

Enter integers a and b to get the GCD and Bezout coefficients x and y.

How to use

  1. Enter your values in the fields above.
  2. Press Calculate to see your result instantly.
  3. Use the Share button to copy a link to your result.

About this calculator

Bezout's identity states that for any integers a and b, there exist integers x and y — the Bezout coefficients — satisfying ax + by = gcd(a, b). This calculator finds x, y and the GCD using the extended Euclidean algorithm, which runs the ordinary GCD algorithm forward while tracking the coefficients backward through each remainder step.

Beyond number theory, Bezout coefficients are the standard way to compute a modular multiplicative inverse — essential in RSA and other cryptographic key generation — and they underlie solving linear Diophantine equations of the form ax + by = c.

Was this helpful?

Comments (0)

  • Be the first to comment.

Popular calculators

All Calculators