It more depends on how hard you intend to ride more than how far. If you are going to be riding hard then eating several hours before you ride is best. Personally I prefer eating about 3 hours before...