The purpose of this study was to investigate the prevalence of hypothyroidism among hospitalized patients with type 2 diabetes mellitus and its related factors, and to assess the prevalence of macrovascular and microvascular diseases among type 2 diabetes mellitus inpatients with hypothyroidism and euthyroidism. A total of 1662 type 2 diabetes mellitus inpatients hospitalized at the Metabolic Diseases Hospital, Tianjin Medical University from 1 January 2008 to 1 March 2013 were included in this study. Information on demographic and anthropometric factors and additional variables related to hypothyroidism were collected from medical records. Prevalence rates were calculated and standardized using direct method based on the age-specific and sex-specific structure of all participants. Data were analyzed using binary logistic regression with adjustment for potential confounders. The prevalence of hypothyroidism among type 2 diabetes mellitus inpatients was 6.8 %, and 77.0% of the patients with hypothyroidism had subclinical hypothyroidism. The prevalence of hypothyroidism increased with age, and was higher in women (10.8 %) than in men (3.4 %). Older age (odds ratio, 1.74; 95% confidence interval, 1. 05 to 2.89), female gender (odds ratio, 2.02; 95% confidence interval, 1.05 to 3.87), and positive thyroid peroxidase antibody (odds ratio, 4.99; 95% confidence interval, 2.83 to 8.79) were associated with higher odds of hypothyroidism among type 2 diabetes mellitus inpatients. The type 2 diabetes mellitus inpatients with hypothyroidism had higher prevalence of cerebrovascular diseases than those with euthyroidism after adjustment for age and gender. The prevalence of hypothyroidism among type 2 diabetes mellitus inpatients was 6.8 %, and most patients had subclinical hypothyroidism. Older age, female gender, and positive thyroid peroxidase antibody could be indicators for detecting hypothyroidism in type 2 diabetes mellitus inpatients.