Eating meals that contain vitamin D or getting sun exposure are two ways to raise your vitamin D levels. If there is a deficiency, a physician might suggest taking vitamin D capsules.