Exhibit 5.1

August 9, 2021
Extra Space Storage Inc.
Suite 300
2795 East Cottonwood Parkway
Salt Lake City, Utah 84121
| Re: | Registration Statement on Form S-3 |
Ladies and Gentlemen:
We have served as Maryland counsel to Extra Space Storage Inc., a Maryland corporation (the “Company”), in connection with certain matters of Maryland law relating to the sale and issuance by the Company of shares (the “Shares”) of common stock, $0.01 par value per share (the “Common Stock”), of the Company having an aggregate gross sales price of up to $800,000,000, from time to time in at-the-market offerings, covered by the above-referenced Registration Statement, and all amendments thereto (collectively, the “Registration Statement”), filed by the Company with the United States Securities and Exchange Commission (the “Commission”) under the Securities Act of 1933, as amended (the “Securities Act”).
In connection with our representation of the Company, and as a basis for the opinion hereinafter set forth, we have examined originals, or copies certified or otherwise identified to our satisfaction, of the following documents (hereinafter collectively referred to as the “Documents”):
1. The Registration Statement and the related form of prospectus included therein, in the form filed with the Commission under the Securities Act;
2. The Prospectus Supplement, dated August 9, 2021, in the form filed with the Commission under the Securities Act;
3. The charter of the Company (the “Charter”), certified by the State Department of Assessments and Taxation of Maryland (the “SDAT”);
4. The Second Amended and Restated Bylaws of the Company, certified as of the date hereof by an officer of the Company;
5. A certificate of the SDAT as to the good standing of the Company, dated as of a recent date;
6. Resolutions adopted by the Board of Directors of the Company, or a duly authorized committee thereof (the “Resolutions”), relating to, among other matters, the sale and issuance of the Shares, certified as of the date hereof by an officer of the Company;