Divalproex (Depakote) is a prescription medication that's used alone or in combination with other medications to treat certain types of seizures. It can also be used to prevent migraines and treat bipolar disorder. Divalproex (Depakote) comes in delayed-release (DR) and extended-release (ER) tablets, as well as sprinkle capsules. You take it by mouth, typically once or twice daily, depending on the formulation. Divalproex (Depakote) can cause changes in weight, both in weight loss and weight gain. Don't suddenly stop taking this medication since it can raise your risk of withdrawal symptoms, including seizures.