The current and original routings of NY 40 remained identical until the town of Hartford. The route left its current alignment north of the hamlet of Hartford and headed northeast to Middle Granville, where it met NY 22. NY 40 and NY 22 came together, forming an overlap westward to Truthville. NY 22 split from NY 40 here, veering off to the northwest, while NY 40 continued west to US 4 in Comstock, where it ended. The Middle Granville–Comstock segment of NY 40 was part of NY 24 prior to the renumbering; in fact, it was the only part of NY 40 that was part of a route prior to 1930.