Disclosed herein is a heat exchanger with tubes (1) and at least one end piece, which has a tube bottom that, in turn, has a bottom plate (8), a baffle plate (12) and a covering plate (16).