- Southern Terminus:
- Berlin Turnpike (VA 287) at the Virginia-Maryland state line
- Northern Terminus:
- Loy Wolfe Road in Smithsburg
- 29.49 miles
MD 17 is a north/south route through the area west of Frederick. Berlin Turnpike (VA 287) turns into MD 17 upon crossing the Potomac River. It runs north through Brunswick, Burkittsville, Middletown, and Wolfsville to Smithsburg. There, the MD 17 designation ends at Loy Wolfe Road near the border between Frederick and Washington counties.