Good Agricultural Practices (GAP) is the world's leading quality certification for food safety. Since its introduction in Korea in 2006, its importance has been increasing every year. In particular, food safety issues are becoming increasingly important in society, and food safety is directly linked to health. The core of GAP certification is the traceability of the production, distribution, and consumption of hazardous materials, including pesticide residues, heavy metals, and microbes. In the present study, pesticides and heavy metals in button mushroom (Agaricus bisporus) and associated cultivation materials were analyzed. Tricyclozole (0.0144 ppm), flubendiamide (0.147 ppm), and trifloxystrobin (0.0340 ppm) were detected in rice straw and wheat straw, and carbendazim (0.0142 ppm) was detected in mixed wheat straw and rice straw medium. Lead and cadmium were detected at levels higher than the standard level in rice straw and mixed medium. However, lead and cadmium were not detected in mushrooms, and levels of arsenic and mercury were below the safety limit. Therefore, it was confirmed that the residual pesticides and heavy metals are safely managed in the investigated mushroom species. The results of the present study suggest that if these materials are adequately managed in the surroundings during cultivation, all hazardous materials can be managed during mushroom production.