EX-23.1 9 a2206945zex-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-160480) of Senior Housing Properties Trust and in the related Prospectus of our reports dated February 17, 2012, 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, 2011.

|  | /s/ Ernst & Young LLP
Boston, Massachusetts February 17, 2012 |  |

QuickLinks

Exhibit 23.1