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 Statements on Form S-8 (No. 333-193735 and 333-201672) of our report dated March 18, 2015, with respect to the financial statements of Trevena, Inc. included in this Annual Report on Form 10-K for the year ended December 31, 2014.

    /s/ Ernst & Young LLP

Philadelphia, Pennsylvania
March 18, 2015




QuickLinks

Consent of Independent Registered Public Accounting Firm