Onset of type 2 diabetes can be delayed or prevented through proper nutrition and regular exercise.[60][61] Intensive lifestyle measures may reduce the risk by over half.[24][62] The benefit of exercise occurs regardless of the person's initial weight or subsequent weight loss.[63] High levels of physical activity reduce the risk of diabetes by about 28%.[64] Evidence for the benefit of dietary changes alone, however, is limited,[65] with some evidence for a diet high in green leafy vegetables[66] and some for limiting the intake of sugary drinks.[32] In those with impaired glucose tolerance, diet and exercise either alone or in combination with metformin or acarbose may decrease the risk of developing diabetes.[24][67] Lifestyle interventions are more effective than metformin.[24] A 2017 review found that, long term, lifestyle changes decreased the risk by 28%, while medication does not reduce risk after withdrawal.[68] While low vitamin D levels are associated with an increased risk of diabetes, correcting the levels by supplementing vitamin D3 does not improve that risk.[69]

In this health topic, we explain the dangers of hyperglycemia, or high blood sugar levels, and diabetes. Hyperglycemia causes many of the warning signs of diabetes listed above. Hyperglycemia may be caused by skipping or forgetting your insulin or diabetes medicine, eating too many grams of carbs for the amount of insulin administered, simply eating too many grams of carbs in general, or from stress or infections.