A device housing for an IMD is suggested, the device housing having:a front side,a flat end face that is arranged perpendicular to the front side and connects to a straight upper edge of the front side,the front side having a maximum width (Bmax) that is measured parallel to the straight upper edge, and a maximum height (Hmax) that is measured perpendicular to the straight edge,wherein the ratio R of maximum width (Bmax) to maximum height (Hmax), i.e., Bmax/Hmax, is between 1.05 and 1.35.