The electrochemical synthesis of ammonia from nitrogen under mild conditions and using renewable electricity is in principle an attractive alternative1-4 to the demanding, energy-intense Haber-Bosch process, which dominates industrial ammonia production. However, the electrochemical alternative faces considerable scientific and technical challenges5,6 and most experimental studies reported thus far achieve only low selectivities and conversions. In fact, the amount of ammonia produced is usually so small that it is difficult to firmly attribute it to electrochemical nitrogen fixation7-9 and exclude contamination due to ammonia that is either present in air, human breath or ion-conducting membranes9, or generated from labile nitrogen-containing compounds (for example, nitrates, amines, nitrites and nitrogen oxides) that are typically present in the nitrogen gas stream10, in the atmosphere or even the catalyst itself. Although these many and varied sources of potential experimental artefacts are beginning to be recognized and dealt with11,12, concerted efforts to develop effective electrochemical nitrogen reduction processes would benefit from benchmarking protocols for the reaction and from a standardized set of control experiments to identify and then eliminate or quantify contamination sources. Here we put forward such a rigorous procedure that, by making essential use of 15N2, allows us to reliably detect and quantify the electroreduction of N2 to NH3. We demonstrate experimentally the significance of various sources of contamination and show how to remove labile nitrogen-containing compounds present in the N2 gas and how to perform quantitative isotope measurements with cycling of 15N2 gas to reduce both contamination and the cost of isotope measurements. Following this protocol, we obtain negative results when using the most promising pure metal catalysts in aqueous media, and successfully confirm and quantify ammonia synthesis using lithium electrodeposition in tetrahydrofuran13.