A method of optimizing the geometry of a femoral stem of hip joint prosthesis is disclosed. The femoral stem comprises a neck and an anchoring blade that is attached to the neck and that tapers towards a distal end with a lateral narrow side comprising a distal straight portion and a proximal arcuate portion corresponding to a curve. The transition between the distal straight portion and the proximal arcuate portion occurs at an outer lateral point. The method comprises a means of optimizing the profile of the curve of said proximal arcuate portion by a process of iterative modeling steps using a series of curves each defined by a path traced by the outer lateral point on withdrawal of a profile of the stem from a cavity of complementary shape to the stem.