<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2022"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="atnx-20230320.xsd" xlink:type="simple"/>
    <context id="duration_2023-03-20_to_2023-03-20">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001300699</identifier>
        </entity>
        <period>
            <startDate>2023-03-20</startDate>
            <endDate>2023-03-20</endDate>
        </period>
    </context>
    <dei:AmendmentFlag contextRef="duration_2023-03-20_to_2023-03-20">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="duration_2023-03-20_to_2023-03-20"
      id="Hidden_dei_EntityCentralIndexKey">0001300699</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="duration_2023-03-20_to_2023-03-20">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="duration_2023-03-20_to_2023-03-20">2023-03-20</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="duration_2023-03-20_to_2023-03-20">ATHENEX, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="duration_2023-03-20_to_2023-03-20">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="duration_2023-03-20_to_2023-03-20">001-38112</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="duration_2023-03-20_to_2023-03-20">43-1985966</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="duration_2023-03-20_to_2023-03-20">1001 Main Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="duration_2023-03-20_to_2023-03-20">Suite 600</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown contextRef="duration_2023-03-20_to_2023-03-20">Buffalo</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="duration_2023-03-20_to_2023-03-20">NY</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="duration_2023-03-20_to_2023-03-20">14203</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="duration_2023-03-20_to_2023-03-20">(716)</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="duration_2023-03-20_to_2023-03-20">427-2950</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="duration_2023-03-20_to_2023-03-20">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="duration_2023-03-20_to_2023-03-20">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="duration_2023-03-20_to_2023-03-20">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="duration_2023-03-20_to_2023-03-20">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle contextRef="duration_2023-03-20_to_2023-03-20">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="duration_2023-03-20_to_2023-03-20">ATNX</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="duration_2023-03-20_to_2023-03-20">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="duration_2023-03-20_to_2023-03-20">false</dei:EntityEmergingGrowthCompany>
</xbrl>
