An arrangement for cooling electrical components in a rail vehicle, with - a first compartment, - at least one second compartment (103.1, 103.2) that is realized in the form of a switchgear cabinet and serves for accommodating electrical components (104.1, 104.2) to be cooled, and - an air-conditioning device, wherein - the air-conditioning device is designed for air-conditioning the first compartment and the second compartment (103.1, 103.2), wherein - the air-conditioning device is designed for removing exhaust air from the first compartment and for discharging at least part of the exhaust air into the surroundings of the rail vehicle in the form of outgoing air, wherein - the air-conditioning device is designed for conveying at least a portion of the exhaust air through the at least one second compartment (103.1, 103.2) in order to cool the at least one second compartment (103.1, 103.2) and for discharging this exhaust air portion into the surroundings of the rail vehicle in the form of outgoing air, wherein - the air-conditioning device features a first air-conditioning unit for air-conditioning the first compartment, characterized in that - the first air-conditioning unit features a first fan unit (106.1) for conveying the exhaust air portion through the at least one second compartment (103.1, 103.2) and - the air-conditioning device features a second air-conditioning unit for air-conditioning the at least one second compartment (103.1, 103.2), wherein - the second air-conditioning unit features a second fan unit for conveying the exhaust air portion through the at least one second compartment (103.1, 103.2), - the second fan unit is designed for generating the entire volume flow for air-conditioning the first compartment and the at least one second compartment (103.1, 103.2) in an emergency mode when the first fan unit (106.1) fails. - a first compartment, - at least one second compartment (103.1, 103.2) that is realized in the form of a switchgear cabinet and serves for accommodating electrical components (104.1, 104.2) to be cooled, and - an air-conditioning device, wherein - the air-conditioning device is designed for air-conditioning the first compartment and the second compartment (103.1, 103.2), wherein - the air-conditioning device is designed for removing exhaust air from the first compartment and for discharging at least part of the exhaust air into the surroundings of the rail vehicle in the form of outgoing air, wherein - the air-conditioning device is designed for conveying at least a portion of the exhaust air through the at least one second compartment (103.1, 103.2) in order to cool the at least one second compartment (103.1, 103.2) and for discharging this exhaust air portion into the surroundings of the rail vehicle in the form of outgoing air, wherein - the air-conditioning device features a first air-conditioning unit for air-conditioning the first compartment, characterized in that - the first air-conditioning unit features a first fan unit (106.1) for conveying the exhaust air portion through the at least one second compartment (103.1, 103.2) and - the air-conditioning device features a second air-conditioning unit for air-conditioning the at least one second compartment (103.1, 103.2), wherein - the second air-conditioning unit features a second fan unit for conveying the exhaust air portion through the at least one second compartment (103.1, 103.2), - the second fan unit is designed for generating the entire volume flow for air-conditioning the first compartment and the at least one second compartment (103.1, 103.2) in an emergency mode when the first fan unit (106.1) fails.