The indium-rich intermetallic compound CaPtIn4 is formed in a peritectic reaction of CaPtIn2 and indium metal at T = 670 K (14 days annealing). CaPtIn4 crystallizes with the YNiAl4-type structure, space group Cmcm, which was refined from single crystal X-ray diffractometer data: a = 446.3(5), b = 1659.50(18), c = 756.8(8) pm, wR2 = 0.0646, 640 F2 values and 24 variables. Geometrically one can describe the CaPtIn4 structure as an intergrowth variant of CaPtIn2 (MgCuAl2 type) and indium slabs. The three-dimensional [PtIn4] polyanionic network shows short Pt–In distances of 269–280 pm and a broader range of In–In distances (304–378 pm) within substantially distorted In@In8 cubes.