Terminal pin for electrically connecting a carrier of electrical leads or an electronic component by means of a solder connection between the carrier or component and the terminal pin, wherein an end of a pin body is provided with a swaged cap of a material which is harder than the material of the pin body and which has an outer surface which is suitable for making the solder connection, wherein the cap has an inner circumferential edge where the cap is at least locally narrowed to inside of the outer circumference of the pin body, and wherein there is no additional material between the pin body and the cap.