State Route 40 (SR 40) is a primary state highway in the southern part of the U.S. state of Virginia. It runs from SR 8 at Woolwine east to SR 10 at Spring Grove, about half the width of Virginia. It is the longest state-numbered (not U.S. or Interstate) route in Virginia.