{
  "cik": 1297184,
  "cik_padded": "0001297184",
  "entityName": "Amphastar Pharmaceuticals, Inc.",
  "fiscal_years": [
    {
      "accn": "0001297184-26-000009",
      "filed": "2026-02-26",
      "fiscal_year": 2025,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 75586000.0,
        "capex": 34882000.0,
        "cash": 170177000.0,
        "cost_of_revenue": 363830000.0,
        "eps_diluted": 2.03,
        "free_cash_flow": 121233000.0,
        "gross_profit": 356057000.0,
        "net_income": 98094000.0,
        "operating_cash_flow": 156115000.0,
        "operating_income": 140403000.0,
        "revenue": 719887000.0,
        "stockholders_equity": 788805000.0,
        "total_assets": 1629299000.0,
        "total_liabilities": 840494000.0
      },
      "period_end": "2025-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.494601236027321,
        "leverage": 1.0655282357490128,
        "net_margin": 0.13626305239572323,
        "operating_margin": 0.19503477629127905,
        "revenue_growth_yoy": -0.016503476249612344,
        "roa_avg2y": 0.061179336584580926,
        "roa_period_end": 0.060206260483803155,
        "roe_avg2y": 0.12897745912012534,
        "roe_period_end": 0.12435773099815543
      }
    },
    {
      "accn": "0001297184-26-000009",
      "filed": "2026-02-26",
      "fiscal_year": 2024,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 85458000.0,
        "capex": 41041000.0,
        "cash": 151609000.0,
        "cost_of_revenue": 358112000.0,
        "eps_diluted": 3.06,
        "free_cash_flow": 172345000.0,
        "gross_profit": 373855000.0,
        "net_income": 159519000.0,
        "operating_cash_flow": 213386000.0,
        "operating_income": 205419000.0,
        "revenue": 731967000.0,
        "stockholders_equity": 732298000.0,
        "total_assets": 1577470000.0,
        "total_liabilities": 845172000.0
      },
      "period_end": "2024-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.5107539001075185,
        "leverage": 1.1541367039101569,
        "net_margin": 0.2179319559488338,
        "operating_margin": 0.2806397009701257,
        "revenue_growth_yoy": 0.13589801286478015,
        "roa_avg2y": 0.10323578120763065,
        "roa_period_end": 0.10112331771761111,
        "roe_avg2y": 0.2325826207845776,
        "roe_period_end": 0.21783345031667437
      }
    },
    {
      "accn": "0001297184-26-000009",
      "filed": "2026-02-26",
      "fiscal_year": 2023,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 58144000.0,
        "capex": 38166000.0,
        "cash": 144296000.0,
        "cost_of_revenue": 293274000.0,
        "eps_diluted": 2.6,
        "free_cash_flow": 145337000.0,
        "gross_profit": 351121000.0,
        "net_income": 137545000.0,
        "operating_cash_flow": 183503000.0,
        "operating_income": 196987000.0,
        "revenue": 644395000.0,
        "stockholders_equity": 639421000.0,
        "total_assets": 1512912000.0,
        "total_liabilities": 873491000.0
      },
      "period_end": "2023-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.5448847368461891,
        "leverage": 1.3660655499271999,
        "net_margin": 0.21344827318647724,
        "operating_margin": 0.30569293678566717,
        "revenue_growth_yoy": 0.2914063893448126,
        "roa_avg2y": 0.1219965949694421,
        "roa_period_end": 0.0909140782808253,
        "roe_avg2y": 0.23550633133546617,
        "roe_period_end": 0.21510866862364544
      }
    },
    {
      "accn": "0001297184-26-000009",
      "filed": "2026-02-26",
      "fiscal_year": 2022,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 39909000.0,
        "capex": 24034000.0,
        "cash": 156098000.0,
        "cost_of_revenue": 250127000.0,
        "eps_diluted": 1.74,
        "free_cash_flow": 65147000.0,
        "gross_profit": 248860000.0,
        "net_income": 91386000.0,
        "operating_cash_flow": 89181000.0,
        "operating_income": 107497000.0,
        "revenue": 498987000.0,
        "stockholders_equity": 528658000.0,
        "total_assets": 741987000.0,
        "total_liabilities": 213329000.0
      },
      "period_end": "2022-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.49873042784681765,
        "leverage": 0.4035293138475158,
        "net_margin": 0.1831430478148729,
        "operating_margin": 0.21543046211624753,
        "revenue_growth_yoy": 0.13984347873759617,
        "roa_avg2y": 0.12930309950506397,
        "roa_period_end": 0.12316388292517252,
        "roe_avg2y": 0.18761625161674433,
        "roe_period_end": 0.1728641200927632
      }
    },
    {
      "accn": "0001297184-25-000008",
      "filed": "2025-03-03",
      "fiscal_year": 2021,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 28873000.0,
        "capex": 27456000.0,
        "cash": 126353000.0,
        "cost_of_revenue": 238029000.0,
        "eps_diluted": 1.25,
        "free_cash_flow": 70538000.0,
        "gross_profit": 199739000.0,
        "net_income": 62116000.0,
        "operating_cash_flow": 97994000.0,
        "operating_income": 69887000.0,
        "revenue": 437768000.0,
        "stockholders_equity": 445522000.0,
        "total_assets": 671529000.0,
        "total_liabilities": 226007000.0
      },
      "period_end": "2021-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.45626678971510026,
        "leverage": 0.50728583549185,
        "net_margin": 0.14189250927431882,
        "operating_margin": 0.1596439209809762,
        "revenue_growth_yoy": 0.2513162934548344,
        "roa_avg2y": 0.09536025300034925,
        "roa_period_end": 0.09249935594739765,
        "roe_avg2y": 0.13892389669497732,
        "roe_period_end": 0.1394229690116313
      }
    },
    {
      "accn": "0001297184-24-000009",
      "filed": "2024-02-29",
      "fiscal_year": 2020,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 24425000.0,
        "capex": 33855000.0,
        "cash": 92642000.0,
        "cost_of_revenue": 206506000.0,
        "eps_diluted": 0.03,
        "free_cash_flow": 23411000.0,
        "gross_profit": 143340000.0,
        "net_income": 1403000.0,
        "operating_cash_flow": 57266000.0,
        "operating_income": 10954000.0,
        "revenue": 349846000.0,
        "stockholders_equity": 448723000.0,
        "total_assets": 631236000.0,
        "total_liabilities": 182513000.0
      },
      "period_end": "2020-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.409723135322399,
        "leverage": 0.40673867842744854,
        "net_margin": 0.004010335976401045,
        "operating_margin": 0.03131091966179405,
        "revenue_growth_yoy": 0.08527502117217867,
        "roa_avg2y": 0.002303385221066699,
        "roa_period_end": 0.002222623551254998,
        "roe_avg2y": 0.0032022787991112136,
        "roe_period_end": 0.0031266505171341787
      }
    },
    {
      "accn": "0001297184-23-000019",
      "filed": "2023-03-01",
      "fiscal_year": 2019,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 22291000.0,
        "capex": 41555000.0,
        "cash": 73685000.0,
        "cost_of_revenue": 190434000.0,
        "eps_diluted": 0.98,
        "free_cash_flow": 207000.0,
        "gross_profit": 131923000.0,
        "net_income": 48939000.0,
        "operating_cash_flow": 41762000.0,
        "operating_income": -39000.0,
        "revenue": 322357000.0,
        "stockholders_equity": 427528000.0,
        "total_assets": 586971000.0,
        "total_liabilities": 159443000.0
      },
      "period_end": "2019-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.4092450295790071,
        "leverage": 0.3729416552833966,
        "net_margin": 0.15181615413966504,
        "operating_margin": -0.00012098387812270249,
        "revenue_growth_yoy": 0.09397419451175229,
        "roa_avg2y": 0.0889368252139416,
        "roa_period_end": 0.08337549895991454,
        "roe_avg2y": 0.12360096831997494,
        "roe_period_end": 0.11446969555210419
      }
    },
    {
      "accn": "0001297184-22-000007",
      "filed": "2022-03-11",
      "fiscal_year": 2018,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 25047000.0,
        "capex": 46808000.0,
        "cash": 86337000.0,
        "cost_of_revenue": 187681000.0,
        "eps_diluted": -0.12,
        "free_cash_flow": -8617000.0,
        "gross_profit": 106985000.0,
        "net_income": -5738000.0,
        "operating_cash_flow": 38191000.0,
        "operating_income": -8623000.0,
        "revenue": 294666000.0,
        "stockholders_equity": 364359000.0,
        "total_assets": 513563000.0,
        "total_liabilities": 149204000.0
      },
      "period_end": "2018-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.36307208839839006,
        "leverage": 0.4094972266363669,
        "net_margin": -0.01947289473505596,
        "operating_margin": -0.029263640867965766,
        "revenue_growth_yoy": 0.22688039970854584,
        "roa_avg2y": -0.011896727777864166,
        "roa_period_end": -0.011172923283024671,
        "roe_avg2y": -0.016439023342095273,
        "roe_period_end": -0.015748204380844167
      }
    },
    {
      "accn": "0001297184-21-000008",
      "filed": "2021-03-15",
      "fiscal_year": 2017,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 30747000.0,
        "capex": 35099000.0,
        "cash": 65594000.0,
        "cost_of_revenue": 149666000.0,
        "eps_diluted": 0.08,
        "free_cash_flow": 4110000.0,
        "gross_profit": 90509000.0,
        "net_income": 3647000.0,
        "operating_cash_flow": 39209000.0,
        "operating_income": -1269000.0,
        "revenue": 240175000.0,
        "stockholders_equity": 333736000.0,
        "total_assets": 451072000.0,
        "total_liabilities": 117336000.0
      },
      "period_end": "2017-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.3768460497553867,
        "leverage": 0.35158328738883426,
        "net_margin": 0.015184761111689394,
        "operating_margin": -0.005283647340480899,
        "revenue_growth_yoy": -0.05874630141281132,
        "roa_avg2y": 0.00829986003800594,
        "roa_period_end": 0.008085183740068105,
        "roe_avg2y": 0.011047179970284388,
        "roe_period_end": 0.010927799218543999
      }
    },
    {
      "accn": "0001297184-20-000007",
      "filed": "2020-03-16",
      "fiscal_year": 2016,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 9908000.0,
        "capex": 21382000.0,
        "cash": 72354000.0,
        "cost_of_revenue": 150969000.0,
        "eps_diluted": 0.21,
        "free_cash_flow": 17178000.0,
        "gross_profit": 104196000.0,
        "net_income": 9820000.0,
        "operating_cash_flow": 38560000.0,
        "operating_income": 15376000.0,
        "revenue": 255165000.0,
        "stockholders_equity": 326523000.0,
        "total_assets": 427738000.0,
        "total_liabilities": 98483000.0
      },
      "period_end": "2016-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "roa_period_end": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.40834753982717065,
        "leverage": 0.3016112188115385,
        "net_margin": 0.038484901926204615,
        "operating_margin": 0.060259048066937076,
        "roa_period_end": 0.02295797894973091,
        "roe_period_end": 0.030074451110641512
      }
    }
  ],
  "latest_filing": {
    "accn": "0001297184-26-000009",
    "filed": "2026-02-26",
    "form": "10-K"
  },
  "note": "Static grepcent export of verified SEC companyfacts-derived values. Monetary values are raw reported units from grepcent's resolved facts; no scaling and no FX conversion. Capex, dividends, and buybacks are reported as positive outflow magnitudes. ROE/ROA include both period-end basis (site-consistent) and average-of-two-years basis where the prior-year denominator exists.",
  "schema_version": "1",
  "sic": "2834",
  "sic_description": "Pharmaceutical Preparations",
  "source_urls": {
    "sec_companyfacts": "https://data.sec.gov/api/xbrl/companyfacts/CIK0001297184.json",
    "sec_submissions": "https://data.sec.gov/submissions/CIK0001297184.json"
  },
  "ticker": "AMPH"
}
