The town is located in the northwest corner of Frederick County at an elevation of 1100 feet above sea level, in the Harbaugh Valley, between South Mountain to the northwest and Wertenbaker Hill to the southeast.