Dietrich is an unincorporated community in Dauphin County, Pennsylvania in the Harrisburg-Carlisle Metropolitan Statistical Area, the latitude is 40.528, and the longitude -76.826, its elevation is 814 feet .