The U.S. shale boom has profoundly increased crude oil movements by both pipelines–the traditional mode of transportation–and railroads. This paper develops a model of how pipeline investment and railroad use are determined in equilibrium, emphasizing how railroads' flexibility allows them...