Form: S-3

Registration statement for specified transactions by certain issuers

April 3, 2015


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" in the Registration Statement (Form S-3 No. 333-            ) and related Prospectus of Trevena, Inc. for the registration of up to $150,000,000 of its common stock, preferred stock, debt securities and warrants and to the incorporation by reference therein of our report dated March 18, 2015, with respect to the financial statements of Trevena, Inc., included in its Annual Report (Form 10-K) for the year ended December 31, 2014, filed with the Securities and Exchange Commission.

/s/ Ernst & Young LLP

Philadelphia, PA
April 3, 2015




QuickLinks

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM