A new fumigant, carbonyl sulfide (COS), has potential for use as a replacement for methyl bromide, yet its mechanism of toxicity to insects remains poorly understood. In this study, transcriptome analysis was performed on Tribolium castaneum malpighian tubules and fat bodies, which are known to play an essential role in energy storage and utilization in insect species. In total, upon exposure to COS, 3,034 and 2,973 genes were differentially expressed in the T. castaneum malpighian tubules and fat body, respectively. These differentially expressed genes comprise a significant number of detoxification-related genes, including 105 P450s, 18 glutathione S-transferases (GSTs), 82 ABC transporters, 25 UDP-glucosyltransferases and 42 carboxylesterases and mitochondrial–related genes, including 9 complex Ⅰ genes, 2 complex Ⅱ genes, 1 complex Ⅲ gene, 9 complex IV genes, 8 complex V genes from both malpighian tubules and fat body tissues. Moreover, KEGG analysis demonstrated that the upregulated genes were enriched in xenobiotic metabolism by ABC transporters and drug metabolism by other enzymes. We also investigated the role of carbonic anhydrases (CAs) in toxicity of COS using dsRNA treatment in T. castaneum. These results show that CA genes have a key role in toxicity of the COS. Furthermore, the results of transcriptomic analysis provide new insights into the insecticidal mechanism of COS fumigation against T. castaneum and eventually contribute to the management of this important stored grain pests.