<?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="alxo-20230511.xsd" xlink:type="simple"/>
    <context id="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001810182</identifier>
        </entity>
        <period>
            <startDate>2023-05-11</startDate>
            <endDate>2023-05-11</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_7499c9db-b293-4a74-9e7c-d8ec56eb35f9">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_0677e043-fa78-41c8-a2d5-10771216f93d">0001810182</dei:EntityCentralIndexKey>
    <dei:DocumentType
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_c325122d-f03e-4847-9a28-c99f70fe508e">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_48a2428b-5a08-4d28-bd73-ae691be2d463">2023-05-11</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_21d2cdb5-012f-4007-b065-d1c8d472e623">ALX ONCOLOGY HOLDINGS INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_b55609b6-4c11-4d8d-af6f-e80f9c8e44ed">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_92808f9a-94b1-402c-b3d0-3d1d484315d4">001-39386</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_b40f02e6-38e4-4f49-918f-8bafa685281f">85-0642577</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_ad823fd1-65b0-43ed-b45a-94e3ea480e9f">323 Allerton Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_cc2b85d1-d815-4a9e-bd93-64db9be2b95a">South San Francisco</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_2c181238-cca6-4ce1-8ee8-8b0f10d11ddb">CA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_c9bb79be-c1c3-462d-8278-ad651216d8b1">94080</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_6459af81-7443-406d-802a-c9a62bc60dec">(650)</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_63d3b177-0c05-4042-8be9-7fe7f90d8f05">466-7125</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_75f055e0-561b-4234-8271-5423154619a0">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_938eb6ee-df42-44a1-8355-cc70fd539dda">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_7f8dd792-bf6b-47a0-ab71-7afa25b8a612">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_b3c21305-ed8c-4bbe-8f74-024b88f4e957">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_d4e81837-ae23-46e4-bd66-7c633604a484">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_a7174a0d-ba54-4d3f-812b-1e26f8adce73">ALXO</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_da1e0d44-f713-4290-a473-668d9e64206c">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_72eb34b5-d770-47d2-b8b5-ffa0624649ee"
      id="F_32490c8e-5fec-4492-a03d-034c550e9934">false</dei:EntityEmergingGrowthCompany>
</xbrl>
