<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="alxo-20250911.xsd" xlink:type="simple"/>
    <context id="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001810182</identifier>
        </entity>
        <period>
            <startDate>2025-09-11</startDate>
            <endDate>2025-09-11</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_671ef550-6d0c-45ce-b0b0-b476274ff5b1">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_a73dbf1d-652d-4143-bfdc-f88f684b36f1">0001810182</dei:EntityCentralIndexKey>
    <dei:DocumentType
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_f19301b3-40b7-44ec-af70-c4669a52b72f">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_0c288bad-e57c-42fa-a9b6-6640cb425ec4">2025-09-11</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_09585c99-7617-4eaa-ad00-516cb76e5d52">ALX ONCOLOGY HOLDINGS INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_25641f8b-b0e3-48e5-b394-b9ceedfa74b1">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_9bc01b51-a1b0-4934-a817-70a040e44f0c">001-39386</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_dd17e0f3-aaaf-41d4-8fe6-30ce8a5c5cf2">85-0642577</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_c8f1b4a7-57d9-4317-bd54-493a795255fa">323 Allerton Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_ff5a96ea-4868-48f4-b9e8-5587218791ad">South San Francisco</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_39a0c751-2eff-4698-a4f9-5cea9d74f820">CA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_af598abe-b87b-4084-a7b1-8695b8ea113b">94080</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_302d1212-7f8d-453b-b37f-00ebfcde6663">650</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_1a023069-0548-4522-b4ba-273eace587f9">466-7125</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_4affb319-b33d-4b45-b9dd-5dc387fe8493">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_acd1e35d-2b05-4e8d-a934-aa12fe62a365">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_a039c3e1-a880-40c8-b2bd-60ef03fb0df1">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_a9c66e63-1577-46c1-9f74-038d31b1e062">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_c8d0c5b4-8406-4979-9224-c6896c8f904b">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_ccadbeb3-1a7c-4883-9b83-42154e72b711">ALXO</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_c3d51934-d85b-429c-be2b-60f5d1dc89da">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_83cff669-b372-4f46-b2a6-e38fa2ef68c0"
      id="F_4c8ea204-060a-45b6-8e99-c7c923b5dfbb">false</dei:EntityEmergingGrowthCompany>
</xbrl>
