MyVIPWebTools logo

Extended Euclidean Algorithm Calculator — Find gcd(a,b) and Bézout Coefficients

Our Extended Euclidean Algorithm Calculator finds not just gcd(a, b), but also integers x and y — the Bézout coefficients — satisfying the identity a×x + b×y = gcd(a, b), computed with BigInt precision for arbitrarily large inputs. It's the direct engine behind the site's Modular Multiplicative Inverse Calculator and countless other number-theoretic algorithms.

Quick Answer

This calculator finds gcd(a, b) plus integers x and y satisfying a×x + b×y = gcd(a, b), using the extended Euclidean algorithm with exact BigInt precision.

Enter a and b, then click Calculate.

How to Use the Extended Euclidean Algorithm Calculator — gcd + Bézout Coefficients

  1. 1

    Enter two integers, a and b.

  2. 2

    Click 'Calculate' to find gcd(a, b) and the Bézout coefficients x and y.

  3. 3

    Verify the result: a × x + b × y always equals the computed gcd.

Why Use Extended Euclidean Algorithm Calculator — gcd + Bézout Coefficients?

The ordinary Euclidean algorithm finds gcd(a, b) by repeated division, but the extended version tracks extra bookkeeping at each step so that, by the time it finishes, it has also expressed that gcd as a linear combination of the original a and b — integers x and y with a×x + b×y = gcd(a, b), a result guaranteed to exist by Bézout's identity. This isn't just a mathematical curiosity: those coefficients are exactly what's needed to compute modular multiplicative inverses, solve linear Diophantine equations, and implement RSA key generation.

Frequently Asked Questions

Related Tools

Extended Euclidean Algorithm Calculator — gcd + Bézout Coefficients | MyVIPWebTools