NY 31E begins at an intersection with NY 31 in the village of Middleport in eastern Niagara County. The route heads north as Main Street, overlapping with NY 271 through the mostly residential village. Just south of the Erie Canal, NY 31E and NY 271 enter Middleport's small business district, centered on the junction of Main and State Streets. Here, NY 31E and NY 271 split, with NY 31E following State Street eastward through the eastern portion of the community. Along this stretch, the route serves Royalton–Hartland High School and Royalton-Hartland Middle School before exiting Middleport and entering a slightly more open area of the town of Royalton. NY 31E runs past undeveloped land to the north and a smattering of homes to the south on its way into the Orleans County town of Shelby New York|Ridgeway. East of the county line, NY 31E becomes Telegraph Road and continues across increasingly less developed areas of Ridgeway. The Erie Canal is visible from most of this section of NY 31E, and about of the highway runs directly alongside the waterway, which curves several times between Middleport and Medina. The two separate at the small hamlet of Shelby Basin, where the route follows a more southerly alignment into a more populated area. Not far to the east is the village of Medina, where NY 31E changes names to West Center Street. The route heads east across the residential western half of the village, passing Prospect Avenue on its way into Medina's business district. NY 31E passes the village's post office and enter the Main Street Historic District, where NY 31E terminates at NY 31 and NY 63. Maintenance along the route varies by location. From the Niagara–Orleans county line to the Medina village line, NY 31E is maintained by NYSDOT. All of the route within Niagara County, excluding the state-maintained overlap with NY 271 in Middleport, is county-maintained as the unsigned County Route 143. In Medina, NY 31E is entirely maintained by the village, though between the village line and Prospect Avenue, it was NYSDOT-maintained for to its terminus at NY 31 until 2010.
History
In 1914, the New York State Legislature added two spur routes to Route 30, an unsigned legislative route extending from Niagara Falls in western Niagara County to Rouses Point in Clinton County via Medina. The first of these began at Route 30 and followed what is now NY 31E west to Middleport, from where it continued toward Lockport on current NY 31. On March 1, 1921, most of Route 30's Medina–Lockport spur route was supplanted by an extended Route 20. The lone exception was from Medina to Middleport, where Route 20 utilized modern NY 31 instead. When the first set of posted routes in New York were assigned in 1924, all of legislative Route 20 west of Rochester became part of NY 3. NY 3 remained on what is now NY 31 between Middleport and Medina until the 1930 renumbering of state highways in New York when it was realigned between the two villages to use what is now NY 31E. U.S. Route 104 was assigned to all of Ridge Road, replacing then-NY 31 west of Rochester. As a result, NY 31 was shifted southward onto most of NY 3 from Niagara Falls to Rochester, including between Middleport and Medina. NY 31 was realigned on January 1, 1949, to follow its current alignment between the two villages. The former routing of NY 31 was redesignated as NY 31E, a northerly alternate route of NY 31. The alignment of NY 31E has not changed since that time; however, ownership of parts of the route has changed hands over the years. Until 1998, NY 31E was state-maintained from its western terminus in Middleport to the Medina village line. On October 1, 1998, ownership and maintenance of NY 31E between NY 271 in Middleport and the Niagara–Orleans county line was transferred from the state to Niagara County as part of a highway maintenance swap between the two levels of government. This section of the route was subsequently co-designated, but not signed, as CR 143 by Niagara County.