EX-23.1 5 a2212879zex-23_1.htm EX-23.1
QuickLinks -- Click here to rapidly navigate through this document

Exhibit 23.1

Consent of Independent Registered Public Accounting Firm

We consent to the incorporation by reference in the Registration Statement (Form S-3 No. 333-182468) of Senior Housing Properties Trust and in the related Prospectus of our reports dated February 19, 2013, with respect to the consolidated financial statements and schedule of Senior Housing Properties Trust, and the effectiveness of internal control over financial reporting of Senior Housing Properties Trust, included in this Annual Report (Form 10-K) for the year ended December 31, 2012.

/s/ Ernst & Young LLP

Boston, Massachusetts
February 19, 2013

QuickLinks

Exhibit 23.1

Consent of Independent Registered Public Accounting Firm