Form: S-1

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

November 20, 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 the Registration Statement (Form S-1) and related Prospectus of Trevena, Inc. for the registration of $46,000,000 of shares of its common stock.

/s/ Ernst & Young LLP

Philadelphia, Pennsylvania
November 19, 2014




QuickLinks