At the north town limit of Berryville, US 340 expands to a four-lane divided highway at its diamond interchange with SR 7 (Harry Byrd Highway). The U.S. Highway passes to the north of the historic estate Fairfield at Gaylord, where the highway crosses over the Hagerstown District rail line for the last time. North of Gaylord, US 340 drops to two lanes and enters Jefferson County, West Virginia. The highway, named Berryville Pike, passes by Ripon Lodge in Rippon and near the William Grubb Farm near Wheatland. North of Wheatland, US 340 expands to a four-lane divided highway, passes the historic farm Beverley and Washington High School, and enters the city of Charles Town at the North Fork of Bullskin Run. The U.S. Highway passes along the southern and eastern fringes of the city and has a partial interchange with WV 115, which heads toward downtown along George Street and east on Charles Town Road. US 340 next has a pair of interchanges with and runs concurrently with WV 9. The first interchange is a trumpet interchange with the portion of WV 9 that heads east toward Leesburg, Virginia. The second is a partial cloverleaf interchange that serves as the eastern terminus of WV 51 (Washington Street). WV 9 continues north on the bypass toward Martinsburg while US 340 exits to the east.