Gympie is a city and a locality in the Gympie Region, Queensland, Australia. Located in the Greater Sunshine Coast, Gympie is about 170.7 km north of the state capital, Brisbane. The city lies on the Mary River, which floods Gympie occasionally.