In East Hartford, NY 40 enters a junction with the eastern terminus of NY 196. NY 40 through the hamlet is a two-lane residential street, soon reaching a junction with CR 30. Just to the north, NY 40 runs northeast and enters a junction with NY 149. NY 40 and NY 149 become concurrent through the town of Hartford, passing east of the namesake hamlet. Just a short distance after, NY 149 turns east and NY 40 continues northeast past Morningside Cemetery. At the north end of the hamlet of Hatford, NY 40 reaches a junction with CR 23. North of the hamlet, the route returns to its rural surroundings, reaching a junction with another piece of CR 23.