Gerhardshofen is a municipality in the district of Neustadt (Aisch)-Bad Windsheim in the administrative region of Middle Franconia in northern Bavaria in Germany.
The neighbouring municipalities are (from the north in clockwise direction): Dachsbach, Weisendorf, Oberreichenbach, Emskirchen, Diespeck and Gutenstetten.
The municipality has 13 boroughs: Altenbuch, Birnbaum, Eckenhof, Emelsdorf, Forst, Göttelhöf, Kästel, Kleehof, Linden, Rappoldshofen, Sintmannsbuch, Vahlenmühle and Willmersbach.
In the First Margrave War (1449–1450) Nuremberg troops looted 118 cows and 17 horses from Gerhardshofen and Dachsbach.
The village belonged to the blood court of Dachsbach, but the manoralism Brunn did justice on their properties by their own rights.