The invention provides a transformer, which comprises a magnetic core assembly, a primary winding and a secondary winding, wherein the primary winding and the secondary winding are wound on the magnetic core assembly and are matched with the magnetic core assembly to be used, the primary winding comprises a first winding and a second winding, the first winding is coupled with the secondary winding in the axial direction, the second winding is coupled with the secondary winding in the radial direction, and / or the secondary winding comprises a third winding and a fourth winding, wherein the third winding is coupled with the primary winding in the axial direction, the fourth winding is coupled with the primary winding in the radial direction. Through the technical scheme of the transformer, the primary winding and the secondary winding in the transformer can be coupled in both the axial direction and the radial direction, in addition, the production cost of the transformer is reduced, and the heat radiation effect of the transformer is optimized.