Sold as a pair, one rail for each side going up the dimension purchased.These also come with slats designed to fit the pergola opening for width.Assumed spacing between slats is 2".