Oberhergheim is part of the canton of Ensisheim and the district of Thann-Guebwiller. The surrounding municipalities are Niederentzen, Biltzheim, Niederhergheim, Oberentzen and Sainte-Croix-en-Plaine.
The town is crossed by the Ill, a river bathing the Alsace plain, and the Vauban canal.