A method for manufacturing a solenoidal magnet having one or more coils wound onto a cylindrical former, and an annular end coil (20), mounted onto an end of the former such that no part of the former is present on the radially inner (A1) or axially outer (B2) sides of the end coil. The method comprises the steps of: (a) locating a temporary annular mold (22) on the end of the former (b) retaining (32, 34, 36, 38) the temporary mould in position on the end of the former (c) providing an interface release material (42) on an end surface of the former, exposed to the interior of the temporary mold (d) winding wire to form the end coil into the cavity formed by the interior of the mold and the an interface release material (42) on the end surface of the former (e) providing a step feature (46) over an axially inner part of a radially outer surface of the end coil (f) providing a retaining strip (48), extending from the former over a radially outer surface of the step feature, and at least partially over an axially outer surface of the step feature, said retaining strip being held onto the former by retaining means (50), so as to retain the step feature in axial compression (g) impregnating the end coil and the step feature with a hardening liquid impregnating material and (h) once the impregnating material has hardened, removing the temporary annular mold.