Soon crossing into Lansingburgh, NY 40 runs northeast through the eastern end of the cemetery, passing the nearby St. Peter's Cemetery as well. Just after crossing the northern limits of Oakwood Cemetery, the route crosses into the town of Brunswick, where it becomes maintained by Rensselaer County and gains the County Route 145 (CR 145) designation. Continuing north through Brunswick, NY 40 continues through Lansingburgh, which is where the route meets a junction with NY 142. NY 40 and NY 142 become concurrent for one block in front of the Lansingburgh Reservoir, before NY 40 turns northward once again. Now on Leversee Road, the route remains a two-lane residential street, reaching a junction with the terminus of CR 116 (Brickyard Road).