The Xfinity 500 at Martinsville Speedway consists of 500 laps, or a total of 263 miles, which takes NASCAR drivers around 3.5 hours to complete.