Exhibit 23.1

Consent of Independent Registered Public Accounting Firm

We consent to the incorporation by reference in this Registration Statement on Form S-3 and related Prospectus of Ameresco, Inc. of our report dated March 2, 2021, relating to the consolidated financial statements and the effectiveness of internal control over financial reporting of Ameresco, Inc., appearing in the Annual Report on Form 10-K of Ameresco, Inc. for the year ended December 31, 2020.

We also consent to the reference to our firm under the heading “Experts” in such Prospectus.

/s/ RSM US LLP

Boston, Massachusetts

March 4, 2021