Numbers, Units & Calculators
Extended GCD Calculator
Calculate a result with Extended GCD from the values you enter. Enter the required values, adjust the options, and review the calculated result.
This tool runs open-source code from CyberChef by GCHQ (Apache License 2.0). See open-source credits.
Extended GCD Calculator finds gcd(a,b) and Bézout coefficients x and y.
It returns coefficients satisfying 30x + 12y = gcd(30,12). The calculation runs in your browser. Processing runs in the browser.
Instructions
- Provide values for this tool.
- Enter integer values a and b.
- Check both value fields.
- Verify the Bézout identity in the result.
Example
Input: a = 30; b = 12
Settings: Extended GCD Calculator: Value a: 30; value b: 12.
Result: It returns coefficients satisfying 30x + 12y = gcd(30,12).
Limits
- Extended GCD Calculator: Inputs must be integers.
- Extended GCD Calculator: Blank a or b falls back to Input.
- Extended GCD Calculator: It does not solve non-integer equations.