The cryIAc and sck genes were introduced to the rice for the purpose of improving the insect resistance. Metabolic profiles of wild and transgenic rice were compared to assess the unintended effects related to gene modification. Wild samples with different sowing dates or sites were also examined to determine the environmental effects on metabolites. The polar compounds of grains were extracted, trimethylsilylated and analyzed by gas chromatography-flame ionization detection (GC-FID). Partial least squares-discriminant analysis (PLS-DA) and principal component analysis (PCA) were applied to differentiate transgenic and wild rice grains. The significantly distinguishable metabolites were picked out, and then identified by gas chromatography-mass spectrometry (GC-MS). It was found that both the environment and gene manipulation had remarkable impacts on the contents of glycerol-3-phosphate, citric acid, linoleic acid, oleic acid, hexadecanoic acid, 2,3-dihydroxypropyl ester, sucrose, 9-octadecenoic acid (Z)-, 2,3-dihydroxypropyl ester and so on. Sucrose, mannitol and glutamic acid had a significant increase in transgenic grains in contrast to those in non-genetically modified (GM) rice.