The invention discloses a method for detecting N-nitrosodimethylamine in beer. The method comprises the followings steps: adding a D6-N-nitrosodimethylamine internal standard substance into a beer sample, adding sodium chloride to dissolve to saturation, extracting by using dichloromethane, concentrating extracting liquid, dissolving by cyclohexane, purifying dissolved liquid by an SILICA/PSA solid phase extraction column, eluting and collecting by dichloromethane, taking 1.01 [mu]l of a sample for feeding, and analyzing and detecting by a gas chromatograph-mass spectrometer, establishing a standard curve by using an internal standard method, detecting and calculating so as to obtain the content of N-nitrosodimethylamine in the beer. According to the method, after extraction by dichloromethane, the SILICA/PSA solid phase extraction column is adopted for purification, so that interfering substances are effectively removed, and interfering substance removal capacity is high. The gas chromatography-low-resolution mass-spectrometry is adopted for determining, so that requirements for the instrument are low, the cost is low, and the method is easy to popularize and use. According to the embodiment of the invention, under the condition that interfering ions 44 and 73 are added, a target object can be measured accurately, so that the fact that the method is high in reliability is indicated.