Linear Diophantine Equation Calculator
Find all integer solutions of ax + by = c.
Find all integer solutions of ax + by = c.
Results
Enter your details and click Calculate to see your results.
About This Calculator
Solvable iff gcd(a, b) | c; extended Euclid gives one solution, then x + (b/g)t, y − (a/g)t.
Example
Example: the default inputs → General Solution: x = -5 + 3t, y = 5 − 2t (t any integer).
Assumptions
Exact maths — check the input format shown in each field.
Frequently Asked Questions
When does ax + by = c have integer solutions?
When gcd(a, b) divides c.
How many solutions are there?
None or infinitely many.
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