Exhibit 5.1

March 11, 2024
REGENXBIO Inc.
9804 Medical Center Drive
Rockville, Maryland 20850
Ladies and Gentlemen:
We have acted as special counsel to REGENXBIO Inc., a Delaware corporation (the “Company”), in connection with the registration by the Company under the Securities Act of 1933, as amended (the “Securities Act”), of the offer and sale of up to 6,087,000 shares (the “Shares”) of the Company’s common stock, par value $0.0001 per share (the “Common Stock”), and pre-funded warrants (the “Pre-funded Warrants”) to purchase an aggregate of up to 1,521,740 shares of Common Stock (the “Warrant Shares” and, together with the Shares and the Pre-funded Warrants, the “Securities”) pursuant to the Underwriting Agreement, dated March 6, 2024 (the “Underwriting Agreement”), by and among the Company and Morgan Stanley & Co. LLC, Goldman Sachs & Co. LLC, Barclays Capital Inc. and Stifel, Nicolaus & Company, Incorporated, as representatives of the several underwriters named therein. The offer and sale of the Securities are registered under the Securities Act pursuant to the Company’s Registration Statement on Form S-3 (File No. 333-269086), which was filed with the Securities and Exchange Commission (the “Commission”) on December 30, 2022 (such registration statement, as amended to the date hereof, is herein referred to as the “Registration Statement”).
We have reviewed:
| (i) | the Underwriting Agreement; |
| (ii) | the form of Pre-funded Warrant; |
| (iii) | the Registration Statement; |
| (iv) | the preliminary prospectus, consisting of the prospectus, dated December 30, 2022 (the “Base Prospectus”), as supplemented by a preliminary prospectus supplement, dated March 6, 2024, relating to the offering of the Securities, filed with the Commission on March 6, 2024, pursuant to Rule 424(b) under the Securities Act; |
| (v) | the free writing prospectus, dated March 6, 2024, relating to the offering of the Securities, filed with the Commission on March 7, 2024 under the Securities Act; |
| (vi) | the final prospectus, consisting of the Base Prospectus, as supplemented by a final prospectus supplement, dated March 6, 2024, relating to the offering of the Securities, filed with the Commission on March 7, 2024, pursuant to Rule 424(b) under the Securities Act (the “Prospectus”); and |