In this study, the effect of precipitates on the surface mechanical properties in the presence of hydrogen (H) is investigated by in situ electrochemical nanoindentation. The nickel superalloy 718 is subjected to three different heat treatments, leading to different sizes of the precipitates: (i) solution annealing (SA) to eliminate all precipitates, (ii) the as-received (AR) sample with fine, dispersed precipitates, and (iii) the over-aged (OA) specimen with coarser precipitates. The nanoindentation is performed using a conical tip, and a new method of reverse imaging is employed to calculate the nano-hardness. The results show that the hardness of the SA sample is significantly affected by H diffusion. However, it could be recovered by removing the H from its matrix by applying an anodic potential. Since the precipitates in the OA and AR samples are different, they are influenced by H differently. The hardness increase for the OA sample is more significant in −1200mV, while for the AR specimen, the H is more effective in −1500mV. In addition, the pop-in load is reduced when the samples are exposed to cathodic charging, and it cannot be fully recovered by switching to an anodic potential.