A capacitor assembly for an implantable medical device, having three structurally identical capacitors (1, 1', 1"), wherein each of the structurally identical capacitors (1, 1', 1") comprises a housing, wherein the housing has a first outer side and a second outer side facing away from the first outer side, wherein the two outer sides (10a, 10b) are connected to one another via a lateral outer side of the housing running in the circumferential direction of the housing, and wherein the lateral outer side has a straight first portion and an arcuate second portion, wherein the first portion has two end regions (101, 103) which are connected to one another via a middle region of the first portion, wherein the end regions (101, 103) are each connected to the second portion, and wherein the capacitor has an electrical terminal disposed on the middle region of the first portion of the lateral outer side, said electrical terminal having two contact surfaces (41, 42) for electrically contacting the capacitor, and the second portion of the lateral outer side with the first outer side forms a rounded housing edge of the housing of the capacitor, and the three structurally identical capacitors (1, 1', 1") are arranged stacked on top of one another so that each capacitor (1, 1', 1") rests with its first or with its second outer side (10a, 10b) against the first or the second outer side (10a, 10b) of an adjacent capacitor of the capacitor assembly, characterised in that the three structurally identical capacitors (1, 1', 1") comprise a first outer capacitor, a second middle capacitor and a third outer capacitor (1"), wherein the second capacitor is disposed between the two outer capacitors (1, 1"), and wherein the second capacitor rests with its second side against the second side of the third capacitor (1"), and wherein the second capacitor rests with its first side against a second side of the first capacitor, and the electrical terminal of the third capacitor (1") is disposed offset relative to the electrical terminals of the first and the second capacitor (1, 1') of the capacitor assembly. the second portion of the lateral outer side with the first outer side forms a rounded housing edge of the housing of the capacitor, and the three structurally identical capacitors (1, 1', 1") are arranged stacked on top of one another so that each capacitor (1, 1', 1") rests with its first or with its second outer side (10a, 10b) against the first or the second outer side (10a, 10b) of an adjacent capacitor of the capacitor assembly, characterised in that the three structurally identical capacitors (1, 1', 1") comprise a first outer capacitor, a second middle capacitor and a third outer capacitor (1"), wherein the second capacitor is disposed between the two outer capacitors (1, 1"), and wherein the second capacitor rests with its second side against the second side of the third capacitor (1"), and wherein the second capacitor rests with its first side against a second side of the first capacitor, and the electrical terminal of the third capacitor (1") is disposed offset relative to the electrical terminals of the first and the second capacitor (1, 1') of the capacitor assembly.