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 Statement (Form S-8 No. 333-193735) pertaining to the Trevena, Inc. 2008 Equity Incentive Plan, 2013 Equity Incentive Plan, and 2013 Employee Stock Purchase Plan, of our report dated March 20, 2014, with respect to the financial statements of Trevena, Inc. included in this Annual Report (Form 10-K) for the year ended December 31, 2013.

    /s/ Ernst & Young LLP

Philadelphia, Pennsylvania
March 20, 2014




QuickLinks

Consent of Independent Registered Public Accounting Firm