Großgmain lies in the Salzburg Flachgau region in the northern foothills of the Untersberg massif, directly on the border with Bayerisch Gmain in the German state of Bavaria. The Austrian-German border runs along the Weißbach creek, a tributary of the Saalach river.