The invention relates to a rail vehicle (2a, 2b, 2c) for transporting passengers which comprises at least one car body (4), a passenger compartment (34) situated in the car body (4), an underfloor region (26), an inner ceiling region (32), and a plurality of device containers (44, 44a, 44b, 44c) for receiving vehicle components, the passenger compartment (34) comprising a first end wall region (36) and a second end wall region (38), which is situated opposite the first end wall region (36). In order to enable a great configuration freedom for the passenger compartment (34), it is provided that each device container (44, 44a, 44b, 44c) of the rail vehicle (2a, 2b, 2c) is arranged in one of the mentioned regions (26, 32, 36, 38).