Many studies have illustrated that much of the post-traumatic degeneration of the spinal cord cells is caused by the secondary mechanism. The aim of this study is to evaluate the effect of the anti-inflammatory property of valproic acid (VPA) on injured spinal cords (SC). The rats with the contused SC received intraperitoneal single injection of VPA (150, 200, 300, 400 or 500 mg/kg) at 2, 6, 12 and 24 h post-injury. Basso-Beattie-Bresnahan (BBB) test and H-reflex evaluated the functional outcome for 12 weeks. The SC were investigated 3 months post-injury using morphometry and glial fibrillary acid protein (GFAP) expression. Reduction in cavitation, H/M ratio, BBB scores and GFAP expression in the treatment groups were significantly more than that of the untreated one (P < 0.05). The optimal improvement in the condition of the contused rats was in the ones treated at the acute phase of injury with 300 mg/kg of VPA at 12 h post-injury, they had the highest increase in BBB score and decrease in astrogliosis and axonal loss. We conclude that treating the contused rats with 300 mg/kg of VPA at 12 h post-injury improves the functional outcome and reduces the traumatized SC gliosis.