The subject matter of the invention is an inverter with a housing (1) having a cooling unit (2) for cooling the electronic and/or electric components (4, 5, 5a) of the inverter, the housing (1) of the inverter comprising at least two chambers, said two chambers (7, 8) being separated by a wall (6) for receiving the lossy components (4, 5, 5a), said components (5), if they comprise cooling bodies (4), being located on the one side of the wall in the one chamber (7) with the cooling bodies (4) being located on the other side of the wall (6) in the other chamber (5) and, if the very electric or electronic component to be cooled (5a) has a high protection grade, said component (5a) being located in the other chamber (8), preferably on the wall side of the wall (6) of the other chamber (8), said other chamber (8) comprising the cooling unit (2).