Dorfgastein is a municipality in the St. Johann im Pongau District, in the Austrian state of Salzburg. It is located in the Gastein Valley, a mountain valley in the Austrian Alps.
The municipality is one of the three main settlements of the Gastein Valley, alongside Bad Gastein and Bad Hofgastein. It lies at the northern end of the valley.
Dorfgastein is known as a ski resort, with access to the Ski Amadé network, and is also recognised for its thermal waters, which are used for bathing and health treatments.