In this paper, the notch effect in weldments has been investigated, and the optimal configuration of different types of welded joints has been analysed using the implicit gradient approach. By considering this implicit gradient method, it is possible to calculate the effective stress related to fatigue damage, with the effective stress being a continuous scalar function of the real stress tensor components, even in the presence of sharp edges. Hence, the search for the optimal configuration that maximises fatigue life can be tackled as the condition of minimum effective stress obtained by changing the weld shape and geometrical parameters. Both load-carrying cruciform joints and spot welds made of steel have been considered. The structural details have been studied by modelling actual shapes without any geometric simplification. Moreover, the same numerical procedure has been considered independently of the size, shape or load condition without imposing restrictive rules on the FE mesh.