Exhibit 5.1
Hogan Lovells US LLP
Columbia Square
555 Thirteenth Street, NW
Washington, DC 20004
T +1 202 637 5600
F +1 202 637 5910

May 30, 2024
Board of Trustees
Elme Communities
7550 Wisconsin Avenue
Suite 900
Bethesda, MD 20814
To the addressee referred to above:
    We are acting as counsel to Elme Communities, a Maryland real estate investment trust (the “Company”), in connection with its registration statement on Form S-8 (the “Registration Statement”), filed with the Securities and Exchange Commission under the Securities Act of 1933, as amended (the “Act”) relating to the proposed offering of up to 2,900,000 newly issued common shares of beneficial interest, par value $0.01 per share, of the Company (the “Shares”), all of which shares are issuable pursuant to the Elme Communities 2016 Omnibus Incentive Plan (as amended and restated effective as of May 30, 2024) (the “Plan”). This opinion letter is furnished to you at your request to enable you to fulfill the requirements of Item 601(b)(5) of Regulation S-K, 17 C.F.R. § 229.601(b)(5), in connection with the Registration Statement.

For purposes of this opinion letter, we have examined copies of such agreements, instruments and documents as we have deemed an appropriate basis on which to render the opinions hereinafter expressed. In our examination of the aforesaid documents, we have assumed the genuineness of all signatures, the legal capacity of all natural persons, the accuracy and completeness of all documents submitted to us, the authenticity of all original documents, and the conformity to authentic original documents of all documents submitted to us as copies (including pdfs). We also have assumed that the Shares will not be issued in violation of the ownership limit contained in the Company’s Articles of Amendment and Restatement, as amended. As to all matters of fact, we have relied on the representations and statements of fact made in the documents so reviewed, and we have not independently established the facts so relied on. This opinion letter is given, and all statements herein are made, in the context of the foregoing.

This opinion letter is based as to matters of law solely on the applicable provisions of Title 8 of the Corporations and Associations Article of the Annotated Code of Maryland, as amended, and applicable provisions of the Maryland General Corporation Law, as amended, currently in effect. We express no opinion herein as to any other statutes, rules or regulations.

Hogan Lovells US LLP is a limited liability partnership registered in the state of Delaware. “Hogan Lovells” is an international legal practice that includes Hogan Lovells US LLP and Hogan Lovells International LLP, with offices in: Alicante Amsterdam Baltimore Berlin Beijing Birmingham Boston Brussels Colorado Springs Denver Dubai Dusseldorf Frankfurt Hamburg Hanoi Ho Chi Minh City Hong Kong Houston Johannesburg London Los Angeles Luxembourg Madrid Mexico City Miami Milan Minneapolis Monterrey Munich New York Northern Virginia Paris Philadelphia Riyadh Rome San Francisco São Paulo Shanghai Silicon Valley Singapore Sydney Tokyo Warsaw Washington, D.C. Associated Offices: Budapest Jakarta Shanghai FTZ. Business Service Centers: Johannesburg Louisville. For more information see www.hoganlovells.com

Board of Trustees
Elme Communities
May 30, 2024

Based upon, subject to and limited by the foregoing, we are of the opinion that following (i) effectiveness of the Registration Statement, (ii) issuance of the Shares pursuant to the terms of the Plan, and (iii) receipt by the Company of the consideration for the Shares specified in the applicable resolutions of the Board of Trustees and in the Plan, the Shares will be validly issued, fully paid, and nonassessable.

This opinion letter has been prepared for use in connection with the Registration Statement. We assume no obligation to advise of any changes in the foregoing subsequent to the effective date of the Registration Statement.

We hereby consent to the filing of this opinion letter as Exhibit 5.1 to the Registration Statement. In giving this consent, we do not thereby admit that we are an “expert” within the meaning of the Act.

Very truly yours,
/s/ Hogan Lovells US LLP