Numerous experiments have shown that the loads applied to Nb3Sn strands and cables can reduce their critical current. Experiments, performed on uniaxially loaded strands, allowed to define clear laws to describe the evolution of the critical surface as a function of the applied current, field, temperature and strain. It is, however, still unclear how these laws can be applied to superconducting magnets. The present paper proposes a methodology to estimate the critical current and temperature margin reduction on superconducting magnets due to stress on the superconducting material. The methodology is tested on the MQXF magnets, a quadrupole developed for the High Luminosity LHC project, and successfully validated by comparing computed strain with data from strain gauge measurements. Results suggested that, because of the stresses arising in winding during assembly, cool-down and powering, the current limit of the magnet is lower than the expected short sample limit, and that the most critical region does not coincide with the peak field location.