<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.24.3</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>344</ContextCount>
  <ElementCount>360</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>91</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>7</UnitCount>
  <MyReports>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>995200090 - Document - Document And Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document And Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>995200100 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/StatementCondensedConsolidatedBalanceSheets</Role>
      <ShortName>CONDENSED CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>995200105 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/StatementCondensedConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>CONDENSED CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>995200200 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/StatementCondensedConsolidatedStatementsOfOperations</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>995200300 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/StatementCondensedConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>995200400 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/StatementCondensedConsolidatedStatementsOfStockholdersEquity</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>995200500 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/StatementCondensedConsolidatedStatementsOfCashFlows</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>995210101 - Disclosure - General</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureGeneral</Role>
      <ShortName>General</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>995210201 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>995210301 - Disclosure - BAQSIMI Acquisition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureBaqsimiAcquisition</Role>
      <ShortName>BAQSIMI Acquisition</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>995210401 - Disclosure - Revenue Recognition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureRevenueRecognition</Role>
      <ShortName>Revenue Recognition</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>995210501 - Disclosure - Net Income per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureNetIncomePerShare</Role>
      <ShortName>Net Income per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>995210601 - Disclosure - Segment Reporting</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureSegmentReporting</Role>
      <ShortName>Segment Reporting</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>995210701 - Disclosure - Customer and Supplier Concentration</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureCustomerAndSupplierConcentration</Role>
      <ShortName>Customer and Supplier Concentration</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>995210801 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureFairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>995210901 - Disclosure - Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureInvestments</Role>
      <ShortName>Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>995211001 - Disclosure - Goodwill and Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureGoodwillAndIntangibleAssets</Role>
      <ShortName>Goodwill and Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>995211101 - Disclosure - Inventories</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureInventories</Role>
      <ShortName>Inventories</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>995211201 - Disclosure - Property, Plant, and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosurePropertyPlantAndEquipment</Role>
      <ShortName>Property, Plant, and Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>995211301 - Disclosure - Accounts Payable and Accrued Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureAccountsPayableAndAccruedLiabilities</Role>
      <ShortName>Accounts Payable and Accrued Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>995211401 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureDebt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>995211501 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>995211601 - Disclosure - Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureStockholdersEquity</Role>
      <ShortName>Stockholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>995211701 - Disclosure - Employee Benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureEmployeeBenefits</Role>
      <ShortName>Employee Benefits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>995211801 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>995211901 - Disclosure - Related-Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureRelatedPartyTransactions</Role>
      <ShortName>Related-Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>995212001 - Disclosure - Litigation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureLitigation</Role>
      <ShortName>Litigation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>99920202 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>99930303 - Disclosure - BAQSIMI Acquisition (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureBaqsimiAcquisitionTables</Role>
      <ShortName>BAQSIMI Acquisition (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureBaqsimiAcquisition</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>99930403 - Disclosure - Revenue Recognition (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureRevenueRecognitionTables</Role>
      <ShortName>Revenue Recognition (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureRevenueRecognition</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>99930503 - Disclosure - Net Income per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureNetIncomePerShareTables</Role>
      <ShortName>Net Income per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureNetIncomePerShare</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>99930603 - Disclosure - Segment Reporting (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureSegmentReportingTables</Role>
      <ShortName>Segment Reporting (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureSegmentReporting</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>99930703 - Disclosure - Customer and Supplier Concentration (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureCustomerAndSupplierConcentrationTables</Role>
      <ShortName>Customer and Supplier Concentration (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureCustomerAndSupplierConcentration</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>99930803 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureFairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureFairValueMeasurements</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>99930903 - Disclosure - Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureInvestmentsTables</Role>
      <ShortName>Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureInvestments</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>99931003 - Disclosure - Goodwill and Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureGoodwillAndIntangibleAssetsTables</Role>
      <ShortName>Goodwill and Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureGoodwillAndIntangibleAssets</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>99931103 - Disclosure - Inventories (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureInventoriesTables</Role>
      <ShortName>Inventories (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureInventories</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>99931203 - Disclosure - Property, Plant, and Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosurePropertyPlantAndEquipmentTables</Role>
      <ShortName>Property, Plant, and Equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosurePropertyPlantAndEquipment</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>99931303 - Disclosure - Accounts Payable and Accrued Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureAccountsPayableAndAccruedLiabilitiesTables</Role>
      <ShortName>Accounts Payable and Accrued Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureAccountsPayableAndAccruedLiabilities</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>99931403 - Disclosure - Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureDebtTables</Role>
      <ShortName>Debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureDebt</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>99931503 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureIncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureIncomeTaxes</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>99931603 - Disclosure - Stockholders' Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureStockholdersEquityTables</Role>
      <ShortName>Stockholders' Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureStockholdersEquity</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>99940201 - Disclosure - Summary of Significant Accounting Policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>99940301 - Disclosure - BAQSIMI Acquisition (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureBaqsimiAcquisitionNarrativeDetails</Role>
      <ShortName>BAQSIMI Acquisition (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureBaqsimiAcquisitionTables</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>99940302 - Disclosure - BAQSIMI Acquisition (Purchase Price Allocated to Acquired Assets) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureBaqsimiAcquisitionPurchasePriceAllocatedToAcquiredAssetsDetails</Role>
      <ShortName>BAQSIMI Acquisition (Purchase Price Allocated to Acquired Assets) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureBaqsimiAcquisitionTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>99940401 - Disclosure - Revenue Recognition (Analysis of the Chargeback Provision) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureRevenueRecognitionAnalysisOfChargebackProvisionDetails</Role>
      <ShortName>Revenue Recognition (Analysis of the Chargeback Provision) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureRevenueRecognitionTables</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>99940402 - Disclosure - Revenue Recognition (Chargebacks and Rebates Balance Sheet Accounts) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureRevenueRecognitionChargebacksAndRebatesBalanceSheetAccountsDetails</Role>
      <ShortName>Revenue Recognition (Chargebacks and Rebates Balance Sheet Accounts) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureRevenueRecognitionTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>99940501 - Disclosure - Net Income per Share (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureNetIncomePerShareNarrativeDetails</Role>
      <ShortName>Net Income per Share (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureNetIncomePerShareTables</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>99940502 - Disclosure - Net Income per Share (Calculation of Basic and Diluted Net Income (Loss) Per Share) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureNetIncomePerShareCalculationOfBasicAndDilutedNetIncomeLossPerShareDetails</Role>
      <ShortName>Net Income per Share (Calculation of Basic and Diluted Net Income (Loss) Per Share) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureNetIncomePerShareTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>99940601 - Disclosure - Segment Reporting (Selected Financial Information by Reporting Segment) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureSegmentReportingSelectedFinancialInformationByReportingSegmentDetails</Role>
      <ShortName>Segment Reporting (Selected Financial Information by Reporting Segment) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureSegmentReportingTables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>99940602 - Disclosure - Segment Reporting (Summary of Net Revenues by Product Segment) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureSegmentReportingSummaryOfNetRevenuesByProductSegmentDetails</Role>
      <ShortName>Segment Reporting (Summary of Net Revenues by Product Segment) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureSegmentReportingTables</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>99940603 - Disclosure - Segment Reporting (Depreciation and Amortization Expense by Reporting Segment) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureSegmentReportingDepreciationAndAmortizationExpenseByReportingSegmentDetails</Role>
      <ShortName>Segment Reporting (Depreciation and Amortization Expense by Reporting Segment) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureSegmentReportingTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>99940604 - Disclosure - Segment Reporting (Summary of Revenues and Long-Lived Assets by Geographic Region) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureSegmentReportingSummaryOfRevenuesAndLongLivedAssetsByGeographicRegionDetails</Role>
      <ShortName>Segment Reporting (Summary of Revenues and Long-Lived Assets by Geographic Region) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureSegmentReportingTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>99940701 - Disclosure - Customer and Supplier Concentration (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureCustomerAndSupplierConcentrationDetails</Role>
      <ShortName>Customer and Supplier Concentration (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureCustomerAndSupplierConcentrationTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>99940801 - Disclosure - Fair Value Measurements (Fair Values of the Company's Financial Assets and Liabilities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureFairValueMeasurementsFairValuesOfCompanySFinancialAssetsAndLiabilitiesDetails</Role>
      <ShortName>Fair Value Measurements (Fair Values of the Company's Financial Assets and Liabilities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureFairValueMeasurementsTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>99940901 - Disclosure - Investments (Held-to-Maturity) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureInvestmentsHeldToMaturityDetails</Role>
      <ShortName>Investments (Held-to-Maturity) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureInvestmentsTables</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>99941001 - Disclosure - Goodwill and Intangible Assets (Summary of Intangible Assets) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureGoodwillAndIntangibleAssetsSummaryOfIntangibleAssetsDetails</Role>
      <ShortName>Goodwill and Intangible Assets (Summary of Intangible Assets) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureGoodwillAndIntangibleAssetsTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>99941002 - Disclosure - Goodwill and Intangible Assets (Summary of Changes in the Carrying Amount of Goodwill) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureGoodwillAndIntangibleAssetsSummaryOfChangesInCarryingAmountOfGoodwillDetails</Role>
      <ShortName>Goodwill and Intangible Assets (Summary of Changes in the Carrying Amount of Goodwill) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureGoodwillAndIntangibleAssetsTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>99941101 - Disclosure - Inventories (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureInventoriesDetails</Role>
      <ShortName>Inventories (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureInventoriesTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>99941201 - Disclosure - Property, Plant, and Equipment (Summary of Property, Plant, and Equipment) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosurePropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentDetails</Role>
      <ShortName>Property, Plant, and Equipment (Summary of Property, Plant, and Equipment) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosurePropertyPlantAndEquipmentTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>99941301 - Disclosure - Accounts Payable and Accrued Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureAccountsPayableAndAccruedLiabilitiesDetails</Role>
      <ShortName>Accounts Payable and Accrued Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureAccountsPayableAndAccruedLiabilitiesTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>99941401 - Disclosure - Debt (Schedule of Debt) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureDebtScheduleOfDebtDetails</Role>
      <ShortName>Debt (Schedule of Debt) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureDebtTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>99941402 - Disclosure - Debt (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureDebtNarrativeDetails</Role>
      <ShortName>Debt (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureDebtTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>99941501 - Disclosure - Income Taxes (Summary of Income (Loss) Before Income Taxes) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureIncomeTaxesSummaryOfIncomeLossBeforeIncomeTaxesDetails</Role>
      <ShortName>Income Taxes (Summary of Income (Loss) Before Income Taxes) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureIncomeTaxesTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>99941601 - Disclosure - Stockholders' Equity (Share Buyback Program) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureStockholdersEquityShareBuybackProgramDetails</Role>
      <ShortName>Stockholders' Equity (Share Buyback Program) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureStockholdersEquityTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>99941602 - Disclosure - Stockholders' Equity (The 2015 Equity Incentive Plan) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureStockholdersEquity2015EquityIncentivePlanDetails</Role>
      <ShortName>Stockholders' Equity (The 2015 Equity Incentive Plan) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureStockholdersEquityTables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>99941603 - Disclosure - Stockholders' Equity (2014 Employee Stock Purchase Plan) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureStockholdersEquity2014EmployeeStockPurchasePlanDetails</Role>
      <ShortName>Stockholders' Equity (2014 Employee Stock Purchase Plan) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureStockholdersEquityTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>99941604 - Disclosure - Stockholders' Equity (Key Assumptions Used in Determining Fair Value of Options Granted) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureStockholdersEquityKeyAssumptionsUsedInDeterminingFairValueOfOptionsGrantedDetails</Role>
      <ShortName>Stockholders' Equity (Key Assumptions Used in Determining Fair Value of Options Granted) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureStockholdersEquityTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>99941605 - Disclosure - Stockholders' Equity (Summary of Option Activity) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureStockholdersEquitySummaryOfOptionActivityDetails</Role>
      <ShortName>Stockholders' Equity (Summary of Option Activity) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureStockholdersEquityTables</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>99941606 - Disclosure - Stockholders' Equity (Information Relating to Option Grants and Exercises) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureStockholdersEquityInformationRelatingToOptionGrantsAndExercisesDetails</Role>
      <ShortName>Stockholders' Equity (Information Relating to Option Grants and Exercises) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureStockholdersEquityTables</ParentRole>
      <Position>72</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>99941607 - Disclosure - Stockholders' Equity (Summary of Nonvested Options) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureStockholdersEquitySummaryOfNonvestedOptionsDetails</Role>
      <ShortName>Stockholders' Equity (Summary of Nonvested Options) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureStockholdersEquityTables</ParentRole>
      <Position>73</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>99941608 - Disclosure - Stockholders' Equity (Restricted Stock Units) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureStockholdersEquityRestrictedStockUnitsDetails</Role>
      <ShortName>Stockholders' Equity (Restricted Stock Units) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureStockholdersEquityTables</ParentRole>
      <Position>74</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>99941609 - Disclosure - Stockholders' Equity (Information Relating to RSU Grants and Deliveries) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureStockholdersEquityInformationRelatingToRsuGrantsAndDeliveriesDetails</Role>
      <ShortName>Stockholders' Equity (Information Relating to RSU Grants and Deliveries) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureStockholdersEquityTables</ParentRole>
      <Position>75</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>99941610 - Disclosure - Stockholders' Equity (Share-Based Compensation Expense Included in the Statement of Operations) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureStockholdersEquityShareBasedCompensationExpenseIncludedInStatementOfOperationsDetails</Role>
      <ShortName>Stockholders' Equity (Share-Based Compensation Expense Included in the Statement of Operations) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureStockholdersEquityTables</ParentRole>
      <Position>76</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>99941701 - Disclosure - Employee Benefits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureEmployeeBenefitsDetails</Role>
      <ShortName>Employee Benefits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureEmployeeBenefits</ParentRole>
      <Position>77</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>99941801 - Disclosure - Commitments and Contingencies (Purchase Commitments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureCommitmentsAndContingenciesPurchaseCommitmentsDetails</Role>
      <ShortName>Commitments and Contingencies (Purchase Commitments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>78</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>99941901 - Disclosure - Related-Party Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureRelatedPartyTransactionsDetails</Role>
      <ShortName>Related-Party Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureRelatedPartyTransactions</ParentRole>
      <Position>79</Position>
    </Report>
    <Report instance="amph-20240930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>99942001 - Disclosure - Litigation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.amphastar.com/role/DisclosureLitigationDetails</Role>
      <ShortName>Litigation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.amphastar.com/role/DisclosureLitigation</ParentRole>
      <Position>80</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>amph-20240930.xsd</File>
    <File>amph-20240930_cal.xml</File>
    <File>amph-20240930_def.xml</File>
    <File>amph-20240930_lab.xml</File>
    <File>amph-20240930_pre.xml</File>
    <File doctype="10-Q" isDefinitelyFs="true" isUsgaap="true" original="amph-20240930x10q.htm">amph-20240930x10q.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="1">http://fasb.org/srt/2024</BaseTaxonomy>
    <BaseTaxonomy items="972">http://fasb.org/us-gaap/2024</BaseTaxonomy>
    <BaseTaxonomy items="29">http://xbrl.sec.gov/dei/2024</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/ecd/2024</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
