B vitamins such as B1 (thiamine), B5 (pantethine), and B12 all directly affect the adrenal glands' cortisol response to stress. Vitamin B3 (niacin) and B12 also play a role in the sleep/wake cycle which can be affected by stress and cortisol.