Attached files

file filename
S-1/A - S-1/A - Amphastar Pharmaceuticals, Inc.a2220476zs-1a.htm
EX-5.1 - EX-5.1 - Amphastar Pharmaceuticals, Inc.a2220476zex-5_1.htm

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 April 3, 2014, in Amendment No. 2 to the Registration Statement (Form S-1 No. 333-196097) and related Prospectus of Amphastar Pharmaceuticals, Inc. dated June 13, 2014.

/s/ Ernst & Young LLP

Los Angeles, California
June 13, 2014




QuickLinks

Consent of Independent Registered Public Accounting Firm