<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2023"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="pyxs-20231107.xsd" xlink:type="simple"/>
    <context id="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001782223</identifier>
        </entity>
        <period>
            <startDate>2023-11-07</startDate>
            <endDate>2023-11-07</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_16dc0e18-0d39-4038-a73b-97f44b6245ee">0001782223</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_4d2e960a-67a4-4cb5-8bf4-70f49ada5559">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_8047ff61-0f25-4020-b46e-0d1f4144b9b0">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_5f90f868-f3ad-40d4-9500-c28d7b239163">2023-11-07</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_1a0262c1-0655-4795-b689-7376265386bb">Pyxis Oncology, Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_215d4655-c578-4e52-b7c0-c32653ca44c8">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_236c4aef-92d1-4305-a8f7-2b9bf54da5cb">001-40881</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_e28830fd-d410-4f48-aeea-66682de6c350">83-1160910</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_9206878a-a0b8-4ef5-9511-10493d4176e1">321 Harrison Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_4d2649f7-3de7-4036-9070-835b53429a7a">Boston</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_fb710a36-5b9f-44c1-9303-ae0cf0ef4955">MA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_87d25d9e-5821-4186-bd35-5cf4c7320555">02118</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_cef446b0-850a-4262-bc38-d72cb16bc7e0">617-</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_621bd8ad-bdcf-4a54-9049-c4ac0e7d17bc">221-9059</dei:LocalPhoneNumber>
    <dei:EntityInformationFormerLegalOrRegisteredName
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_409a8ad1-068a-4705-8e18-c60800186168"> </dei:EntityInformationFormerLegalOrRegisteredName>
    <dei:WrittenCommunications
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_54dc97eb-c442-4b6f-89be-7edad37f6429">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_4b73cec2-5f68-4b69-ae8b-16d3cc286015">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_a8ab641e-61fb-465c-9be2-acc8198213c3">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_80d22c05-e904-4628-9981-668d6e7baa2d">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_df718357-90ef-4661-8297-97b02b73bd8d">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_06f72ac0-18aa-4bc6-b86f-7f936355ae48">PYXS</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_f3c679fb-4a57-4228-81df-b31a1006e0f5">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_38aaa2de-45fb-49e1-ad9c-aafcc3397687">true</dei:EntityEmergingGrowthCompany>
    <dei:EntityExTransitionPeriod
      contextRef="C_b1661cb3-0e4c-4aad-a59e-8a67d312a161"
      id="F_f3954439-c7cc-4e24-8df9-ced23c8db51e">true</dei:EntityExTransitionPeriod>
</xbrl>
