Subclinical hypothyroidism (SCH) is defined as an elevated serum thyroid-stimulating hormone (TSH) level with a normal serum-free thyroxine (FT4) level. SCH has been associated with an increased risk of adverse cardiovascular outcomes. We investigated possible associations of unknown SCH with in-hospital outcomes and short- and long-term all-cause mortality in a large cohort of patients with ST segment elevation myocardial infarction (STEMI) who underwent primary percutaneous coronary intervention (PCI). This retrospective, single-center observational study evaluated the TSH and FT4 levels of 1593 STEMI patients with no known history of hypothyroidism or thyroid replacement treatment who were admitted to the coronary care unit and underwent PCI between 1/2008 and 8/2017. SCH was defined as TSH levels ≥ 5 mU/mL in the presence of normal FT4 levels. Unknown SCH was detected in 68/1593 (4.2%) STEMI patients. These patients had significantly worse in-hospital outcomes compared to patients without SCH, including higher rates of acute kidney injury ( = 0.003) and left ventricular ejection fraction ≤ 40% ( = 0.03). Moreover, 30-day mortality ( = 0.02) and long-term (mean 4.2 ± 2.3 years) mortality ( = 0.007) were also significantly higher in patients with SCH. The thyroid function of STEMI patients should be routinely tested before they undergo a planned PCI procedure.