Vitamin B12 is needed for the production of serotonin, a chemical responsible for regulating mood. Vitamin B12 supplements may help improve mood in people with an existing deficiency.