<?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="alxo-20231222.xsd" xlink:type="simple"/>
    <context id="C_ee0e4afe-a39a-4429-920f-ac507b83279a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001810182</identifier>
        </entity>
        <period>
            <startDate>2023-12-22</startDate>
            <endDate>2023-12-22</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_33ced683-20fd-4913-9318-ab7351946c92">0001810182</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_59091e3a-ef0d-45aa-9e68-0cdeaf5d5485">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_888f42ae-b132-4cb2-b3d7-669203ba706b">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_cd61f85b-7ae0-4ec4-8362-2fc0dff8cd4e">2023-12-22</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_e045a5e2-449c-4ffc-abe5-b8c8e6e81eb3">ALX ONCOLOGY HOLDINGS INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_bc2352cd-a5dc-401b-8b95-822466e8e0a8">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_5fb47ad5-f3ca-4500-8f60-3fefd6d50453">001-39386</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_6db9e07d-f279-4546-8a4a-2b09773fa5b9">85-0642577</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_84fda88b-834a-4ee9-99ae-bc328d52b60d">323 Allerton Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_831a089e-faed-4d3c-8ac9-28ba8e4078ba">South San Francisco</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_c2b8ccc5-7fd0-496b-b82d-830e3a4cf969">CA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_a5a03477-fbc4-458a-b0ac-984451435378">94080</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_ef6172c8-e620-4c7e-a339-b9542290bd3a">650</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_a0fbdf9a-e963-43aa-8535-f1a4a77023ef">466-7125</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_f7473944-ac88-4098-968a-a1514346b776">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_6ea9f28d-20ab-4198-bd59-9913bd95a5be">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_fe5cbade-0b36-489f-9c03-cfd5348b98c5">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_29fbdfd8-5114-4dd6-b9a4-0a54b9a7c598">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_0aa61811-12da-4154-ad9e-01e192480748">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_f59de9dc-e830-4abf-8a5f-7496d48af01e">ALXO</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_cce09ab3-ca54-4aea-adef-44359b815b38">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_ee0e4afe-a39a-4429-920f-ac507b83279a"
      id="F_6362991a-a06c-44aa-826b-825b24b621a4">false</dei:EntityEmergingGrowthCompany>
</xbrl>
