Hattenhofen is a municipality in the district of Fürstenfeldbruck, in the state of Bavaria in Germany. It is a small community located in southern Bavaria, within the administrative region of Upper Bavaria.
The municipality belongs to the district of Fürstenfeldbruck, which lies to the west of Munich. As a Bavarian municipality, it forms part of the local administrative structure that governs the surrounding rural and suburban communities in this part of the state.