Form: S-1/A

General form of registration statement for all companies including face-amount certificate companies

December 4, 2014


QuickLinks -- Click here to rapidly navigate through this document


Exhibit 23.1

Consent of Independent Registered Public Accounting Firm

        We consent to the reference to our firm under the caption "Experts" and to the use of our report dated March 20, 2014 (except for Note 13, as to which the date is November 19, 2014), in Amendment No. 3 to the Registration Statement (Form S-1 No. 333-200386) and related Prospectus of Trevena, Inc. for the registration of its common stock.

/s/ Ernst & Young LLP

Philadelphia, Pennsylvania
December 4, 2014




QuickLinks