Gex is a commune in the Ain department in eastern France and a subprefecture of the department. It lies 5 km from the Swiss border and 16 km from Geneva. It is a subprefecture of Ain. The town gave its name to the Pays de Gex, at various times under the jurisdiction of France, Switzerland and the Duchy of Savoy.
Country: France
Region: Auvergne-Rhône-Alpes
Area: 32.02 km² (12.36 sq mi)
Elevation: 532–1,614 m (1,745–5,295 ft) · (avg. 617 m or 2,024 ft)