The source of the Ain is a "karst spring" (a spring that is part of a karst system) in the Jura mountains, between the Conte an the La Favière "communes" (Jura department), at an altitude of about . From here, the Ain flows to the south.