With traditional neutron activation analysis, the increase of sample quality leads to some problems in both irradiation process and measurement process. These problems include the neutron flux gradient in the range of the sample, the decrease of the thermal neutron flux rate around the sample and the influence of self-shielding in the sample in the irradiation process, In the process of measurement, the self-attenuation of <i>γ</i>-ray in the sample and the geometric effect of the sample lead to the effect of the detector on the measurement of characteristic <i>γ</i>-ray emissivity due to the difference in the detection efficiency of each point of the sample. So the neutron activation analysis of mass sample needs to make some additional modifications. By using the neutron activation analysis technique, the content of <sup>24</sup>Mg and <sup>28</sup>Si in a large amount of flour can be detected, and the content of talc powder in the flour can be given, so that the quality of flour can be monitored. The flour mainly contains C, H, O, N, Ca, and F element, but the main chemical constituent of talc powder is Mg<sub>3</sub>[Si<sub>4</sub>0<sub>10</sub>](OH)<sub>2</sub>. Therefore, the measured content of Si and Mg element can be used to judge whether the flour contains talcum powder and to determine its exact content. When the content of <sup>24</sup>Mg and <sup>28</sup>Si in flour are measured by the neutron activation analysis, the variation of neutron flux and energy with thickness in the measured sample and the effect of <i>γ</i>-ray self-absorption will have great influence on the measurement results. The relationship between the neutron flux and energy and the thickness of the sample is simulated by MCNP5 (Monte Carlo N-particle transport code system 5), and the neutron fluxes at different thickness of the sample are measured by a <sup>3</sup>He proportional counter tube. The results show that the simulation results of MCNP5 are basically consistent with the experimental results. Using the simulation by MCNP5 and the measurements by a sodium iodide detector, the relationship between <i>γ</i>-ray self-absorption effect and sample thickness is studied, and the sample thickness is determined to be 6.6.cm that is adopted as an optimal experimental condition. Based on the simulated data, the function relationship between the counting of 1.779 MeV <i>γ</i>-ray and the thickness of the sample is obtained as follows: <i>A</i> = 1401 + 3815<i>x</i> – 720<i>x</i><sup>2</sup> + 64<i>x</i><sup>3</sup> – 2.8<i>x</i><sup>4</sup> + 0.05<i>x</i><sup>5</sup>. The curve trend of the experimental results is basically the same as that of the simulation results.