The epiphyseal scar joint line distance and age are important factors in determining the optimal screw length for medial malleoli fractures.