Optimal glycemic management in the hospital setting requires judicious treatment of hyperglycemia while avoiding hypoglycemia. Insulin is the most appropriate agent for management of hyperglycemia for the majority of hospitalized patients. Intravenous insulin infusion is still preferred during and immediately after surgery, but s.c. basal insulin analogs with prandial or correction doses should be used after the immediate post-operative period, and also should be used in non-critically ill patients. Frequent and effective glucose monitoring is critical for avoiding wide deviations from acceptable glucose levels, which under a recently promulgated consensus guideline currently range between 140 mg/dL and 180 mg/dL. Glucose targets near 140 mg/dL are recommended as being the most appropriate for all hospitalized patients.