Clinically, pentothal sodium has been widely used for primary and general anesthesia induction. Also, it has been used to effectively inhibit convulsion. Pentothal sodium has a strong inhibitory effect on the respiratory center, excessive drug administration, and rapid dose rate that cause death of experimental animals on the respiratory depression. This study used a modified pentothal sodium solution to investigate its anesthetic effect. The pentothal sodium solution was modified based on pentothal sodium upon additions of magnesium sulfate, propylene glycol, and pure ethanol. The anesthetic effect of the modified pentothal sodium on Sprague–Dawley (SD) rats was investigated by comparing traditional pentothal sodium and ketamine; 60 SD rats were randomly divided into three groups. Each group was treated with traditional pentothal sodium, modified pentothal sodium, or ketamine, respectively, via intraperitoneal injection. The symptoms of experimental rats were observed, and onset time and anesthetic time were both recorded. The data were analyzed using statistical software. There were no significant differences in onset time and anesthetic time between the three groups. The variation of onset time and anesthetic time of the group treated with modified pentothal sodium was shorter than that of the other two groups. Furthermore, the number of anesthetic rats after the first injection was significantly higher than that of the other two groups. The modified pentothal sodium is capable of providing a stable anesthetic effect. The function and effect are much better than traditional pentothal sodium and ketamine.