Coil shapes for generating the perfect field in superconducting dipoles, quadrupoles and sextupoles are known. However, for combined function superconducting magnets coil shapes are not available in the literature. Here we provide the coil shapes which can generate mixed dipole–quadrupole and dipole–sextupole fields.