A method for producing a segment coil for an electric machine, the method comprising producing a stack of coil loops from a continuous electrical conductor comprising at least one electrical conductor element with a rectangular cross-section, the coil loops having two parallel straight side portions (F1, F2) running at a distance from each other in a longitudinal direction (L) and two opposite curved end portions (F3, F4) connecting the ends of the side portions (F1, F2), producing the stack of coil loops so that a length (L10) in the longitudinal direction (L) of each coil loop in the stack of coil loops decreases, whereby a staggered end portion (F3, F4) is formed at each end of the stack of coil elements , bending the end portion (F3, F4) of the stack of coil loops into a predetermined bending angle (α) in relation to the longitudinal direction (L), whereby the staggering (d) of adjacent coil loops in the end portion (F3, F4) of the stack of coil loops has been determined so that an outer end of the end portion (F3, F4) of the stack of coil loops is substantially straight when the stack of coil loops is bent into the predetermined bending angle (α), the bending of the end portions (F3, F4) of the stack of coil loops being done in a bending press comprising a first roll device being supported via a first shaft on a stationary frame and a second roll device being rotatably supported via a second shaft on a swing frame , the first shaft and the second shaft being parallel, the swing frame being rotatably supported on the first shaft , a first surface of the stack of coil loops being positioned against the first roll device and a second opposite surface of the stack of coil loops being positioned against the second roll device , the first roll device forming the inner bending radius (R1) for the stack of coil loops when the swing frame is turned around the first shaft so that the second roll device rotates on the second surface of the stack of coil loops in order to bend the stack of coil loops . producing a stack of coil loops from a continuous electrical conductor comprising at least one electrical conductor element with a rectangular cross-section, the coil loops having two parallel straight side portions (F1, F2) running at a distance from each other in a longitudinal direction (L) and two opposite curved end portions (F3, F4) connecting the ends of the side portions (F1, F2), producing the stack of coil loops so that a length (L10) in the longitudinal direction (L) of each coil loop in the stack of coil loops decreases, whereby a staggered end portion (F3, F4) is formed at each end of the stack of coil elements , bending the end portion (F3, F4) of the stack of coil loops into a predetermined bending angle (α) in relation to the longitudinal direction (L), whereby the staggering (d) of adjacent coil loops in the end portion (F3, F4) of the stack of coil loops has been determined so that an outer end of the end portion (F3, F4) of the stack of coil loops is substantially straight when the stack of coil loops is bent into the predetermined bending angle (α), the bending of the end portions (F3, F4) of the stack of coil loops being done in a bending press comprising a first roll device being supported via a first shaft on a stationary frame and a second roll device being rotatably supported via a second shaft on a swing frame , the first shaft and the second shaft being parallel, the swing frame being rotatably supported on the first shaft , a first surface of the stack of coil loops being positioned against the first roll device and a second opposite surface of the stack of coil loops being positioned against the second roll device , the first roll device forming the inner bending radius (R1) for the stack of coil loops when the swing frame is turned around the first shaft so that the second roll device rotates on the second surface of the stack of coil loops in order to bend the stack of coil loops . <EOS>