For machine elements that must also be designed with respect to fatigue, the stress concentration factor for notches and grooves is an important quantity. Traditional designs with circular shapes are not advantageous and, in the present paper, it is shown that stress concentration factors can be reduced significantly without the need for complicated shapes. To keep the shape simple, the circular shapes are modified into elliptic shapes with only one design parameter: the ratio of the ellipse half-axes.Comparisons with classical results are performed for notches in two-dimensional flat tensile bars and for grooves in axisymmetric tensile shafts. In general, the detailed finite element analyses agree well with these results and this gives confidence in the improved designs. Shapes are obtained with constant maximum stress along a major part of the elliptic shape, and the stress concentration factors are reduced considerably.