<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xml:lang="en-US"
  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="halo-20230509.xsd" xlink:type="simple"/>
    <context id="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001159036</identifier>
        </entity>
        <period>
            <startDate>2023-05-09</startDate>
            <endDate>2023-05-09</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF80L2ZyYWc6OWJlYWNmNmE1NmJlNGNiMDlmMDkzNDUzZjNiYmFhYzQvdGFibGU6NGU1YjJlYzE2N2Y2NGE5MmI5NjQ3MDliYzk5YWJjM2EvdGFibGVyYW5nZTo0ZTViMmVjMTY3ZjY0YTkyYjk2NDcwOWJjOTlhYmMzYV8xLTEtMS0xLTk3ODQx_0e80a15a-ab1c-41e0-928c-832650d9b2a8">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF80L2ZyYWc6OWJlYWNmNmE1NmJlNGNiMDlmMDkzNDUzZjNiYmFhYzQvdGFibGU6NGU1YjJlYzE2N2Y2NGE5MmI5NjQ3MDliYzk5YWJjM2EvdGFibGVyYW5nZTo0ZTViMmVjMTY3ZjY0YTkyYjk2NDcwOWJjOTlhYmMzYV8yLTEtMS0xLTk3ODQx_f44896d2-659c-4967-99f2-f8a665fb2c5f">0001159036</dei:EntityCentralIndexKey>
    <dei:DocumentType
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF8xL2ZyYWc6NDdkMTFlODhiZWMyNGM4OWFhNzgzMWFhMGMxNzA0YWQvdGV4dHJlZ2lvbjo0N2QxMWU4OGJlYzI0Yzg5YWE3ODMxYWEwYzE3MDRhZF8yNjQ4_d85bcfa8-0872-43a4-b68c-52c3c08ef54d">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF8xL2ZyYWc6NDdkMTFlODhiZWMyNGM4OWFhNzgzMWFhMGMxNzA0YWQvdGFibGU6ODgyNjMzNjllZDgwNGRiOGIzNjNmNjQzNTMyZTc1NzAvdGFibGVyYW5nZTo4ODI2MzM2OWVkODA0ZGI4YjM2M2Y2NDM1MzJlNzU3MF8wLTItMS0xLTk3ODQx_89c54ec7-b00a-4a12-bb8b-93a159bb7beb">2023-05-09</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF8xL2ZyYWc6NDdkMTFlODhiZWMyNGM4OWFhNzgzMWFhMGMxNzA0YWQvdGV4dHJlZ2lvbjo0N2QxMWU4OGJlYzI0Yzg5YWE3ODMxYWEwYzE3MDRhZF8yNjUz_6633226e-1481-4bcd-ab55-7106a462342e">HALOZYME THERAPEUTICS, INC.</dei:EntityRegistrantName>
    <dei:EntityFileNumber
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF8xL2ZyYWc6NDdkMTFlODhiZWMyNGM4OWFhNzgzMWFhMGMxNzA0YWQvdGV4dHJlZ2lvbjo0N2QxMWU4OGJlYzI0Yzg5YWE3ODMxYWEwYzE3MDRhZF8yNjU0_78582951-28d4-46e4-82fe-be737879cfb9">001-32335</dei:EntityFileNumber>
    <dei:EntityIncorporationStateCountryCode
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF8xL2ZyYWc6NDdkMTFlODhiZWMyNGM4OWFhNzgzMWFhMGMxNzA0YWQvdGFibGU6ZWY4MWQ2NjUxZTQ0NDM5MGFmNTIyNTFjNmZmN2Q2MmUvdGFibGVyYW5nZTplZjgxZDY2NTFlNDQ0MzkwYWY1MjI1MWM2ZmY3ZDYyZV8wLTAtMS0xLTk3ODQx_da4372b5-a1b7-4700-b80f-70354257e186">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityTaxIdentificationNumber
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF8xL2ZyYWc6NDdkMTFlODhiZWMyNGM4OWFhNzgzMWFhMGMxNzA0YWQvdGFibGU6ZWY4MWQ2NjUxZTQ0NDM5MGFmNTIyNTFjNmZmN2Q2MmUvdGFibGVyYW5nZTplZjgxZDY2NTFlNDQ0MzkwYWY1MjI1MWM2ZmY3ZDYyZV8wLTItMS0xLTk3ODQx_6b6f138a-cc1a-4c9d-b317-b5404dfb8909">88-0488686</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF8xL2ZyYWc6NDdkMTFlODhiZWMyNGM4OWFhNzgzMWFhMGMxNzA0YWQvdGFibGU6ZWY4MWQ2NjUxZTQ0NDM5MGFmNTIyNTFjNmZmN2Q2MmUvdGFibGVyYW5nZTplZjgxZDY2NTFlNDQ0MzkwYWY1MjI1MWM2ZmY3ZDYyZV8zLTAtMS0xLTk3ODQx_b4bc38d4-50ff-46a6-8161-838b1c9b5e27">12390 El Camino Real</dei:EntityAddressAddressLine1>
    <dei:EntityAddressPostalZipCode
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF8xL2ZyYWc6NDdkMTFlODhiZWMyNGM4OWFhNzgzMWFhMGMxNzA0YWQvdGFibGU6ZWY4MWQ2NjUxZTQ0NDM5MGFmNTIyNTFjNmZmN2Q2MmUvdGFibGVyYW5nZTplZjgxZDY2NTFlNDQ0MzkwYWY1MjI1MWM2ZmY3ZDYyZV8zLTItMS0xLTk3ODQx_28f4d238-6783-4082-ad33-495f310b2fe3">92130</dei:EntityAddressPostalZipCode>
    <dei:EntityAddressCityOrTown
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF8xL2ZyYWc6NDdkMTFlODhiZWMyNGM4OWFhNzgzMWFhMGMxNzA0YWQvdGFibGU6ZWY4MWQ2NjUxZTQ0NDM5MGFmNTIyNTFjNmZmN2Q2MmUvdGFibGVyYW5nZTplZjgxZDY2NTFlNDQ0MzkwYWY1MjI1MWM2ZmY3ZDYyZV80LTAtMS0xLTk3ODQx_9146da6a-473c-4786-8da9-2a8e2249eaab">San Diego</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF8xL2ZyYWc6NDdkMTFlODhiZWMyNGM4OWFhNzgzMWFhMGMxNzA0YWQvdGFibGU6ZWY4MWQ2NjUxZTQ0NDM5MGFmNTIyNTFjNmZmN2Q2MmUvdGFibGVyYW5nZTplZjgxZDY2NTFlNDQ0MzkwYWY1MjI1MWM2ZmY3ZDYyZV81LTAtMS0xLTk3ODQx_e45467eb-d730-4cb2-9289-797ed28688b4">CA</dei:EntityAddressStateOrProvince>
    <dei:CityAreaCode
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF8xL2ZyYWc6NDdkMTFlODhiZWMyNGM4OWFhNzgzMWFhMGMxNzA0YWQvdGV4dHJlZ2lvbjo0N2QxMWU4OGJlYzI0Yzg5YWE3ODMxYWEwYzE3MDRhZF8yNjU1_eb131d7f-88cf-4e56-85d1-433b5cc2bdc5">858</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF8xL2ZyYWc6NDdkMTFlODhiZWMyNGM4OWFhNzgzMWFhMGMxNzA0YWQvdGV4dHJlZ2lvbjo0N2QxMWU4OGJlYzI0Yzg5YWE3ODMxYWEwYzE3MDRhZF8yNjU2_653ad5f7-4154-49fd-a2d5-d6015df77458">794-8889</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF8xL2ZyYWc6NDdkMTFlODhiZWMyNGM4OWFhNzgzMWFhMGMxNzA0YWQvdGV4dHJlZ2lvbjo0N2QxMWU4OGJlYzI0Yzg5YWE3ODMxYWEwYzE3MDRhZF8yNjU3_44a24c6c-7437-4e7f-9e0d-db9327ff5d14">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF8xL2ZyYWc6NDdkMTFlODhiZWMyNGM4OWFhNzgzMWFhMGMxNzA0YWQvdGV4dHJlZ2lvbjo0N2QxMWU4OGJlYzI0Yzg5YWE3ODMxYWEwYzE3MDRhZF8yNjQ5_581369f2-9639-4cef-863e-eb2e4da39af5">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF8xL2ZyYWc6NDdkMTFlODhiZWMyNGM4OWFhNzgzMWFhMGMxNzA0YWQvdGV4dHJlZ2lvbjo0N2QxMWU4OGJlYzI0Yzg5YWE3ODMxYWEwYzE3MDRhZF8yNjUw_7d7ceb66-7e9c-4255-a40b-3662f98a057a">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF8xL2ZyYWc6NDdkMTFlODhiZWMyNGM4OWFhNzgzMWFhMGMxNzA0YWQvdGV4dHJlZ2lvbjo0N2QxMWU4OGJlYzI0Yzg5YWE3ODMxYWEwYzE3MDRhZF8yNjUx_416b2a97-904a-4c3c-98f0-82f09eb3804a">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF8xL2ZyYWc6NDdkMTFlODhiZWMyNGM4OWFhNzgzMWFhMGMxNzA0YWQvdGFibGU6ODMyN2MyZGU3MzFmNDgzMDhhOGRmNGNiMDVlYjA4YzgvdGFibGVyYW5nZTo4MzI3YzJkZTczMWY0ODMwOGE4ZGY0Y2IwNWViMDhjOF8xLTAtMS0xLTk3ODQx_998a4435-b62c-4df1-bf88-b7fb5c5cfc2e">Common Stock, $0.001 par value</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF8xL2ZyYWc6NDdkMTFlODhiZWMyNGM4OWFhNzgzMWFhMGMxNzA0YWQvdGFibGU6ODMyN2MyZGU3MzFmNDgzMDhhOGRmNGNiMDVlYjA4YzgvdGFibGVyYW5nZTo4MzI3YzJkZTczMWY0ODMwOGE4ZGY0Y2IwNWViMDhjOF8xLTEtMS0xLTk3ODQx_8a20931a-2a0a-43de-8aa5-dd3854296448">HALO</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF8xL2ZyYWc6NDdkMTFlODhiZWMyNGM4OWFhNzgzMWFhMGMxNzA0YWQvdGFibGU6ODMyN2MyZGU3MzFmNDgzMDhhOGRmNGNiMDVlYjA4YzgvdGFibGVyYW5nZTo4MzI3YzJkZTczMWY0ODMwOGE4ZGY0Y2IwNWViMDhjOF8xLTItMS0xLTk3ODQx_5c6847a5-3670-41a4-8785-a39d324e83e9">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="idf8ecb46e1714cccbae5b6aaf246f931_D20230509-20230509"
      id="id3VybDovL2RvY3MudjEvZG9jOjNjZGQyZTRhOTU5NDRkZTdiYjgzM2NlODMwYzQ4NmQ0L3NlYzozY2RkMmU0YTk1OTQ0ZGU3YmI4MzNjZTgzMGM0ODZkNF8xL2ZyYWc6NDdkMTFlODhiZWMyNGM4OWFhNzgzMWFhMGMxNzA0YWQvdGV4dHJlZ2lvbjo0N2QxMWU4OGJlYzI0Yzg5YWE3ODMxYWEwYzE3MDRhZF8yNjUy_6b89cb0f-b191-459b-ab93-a223a73790cd">false</dei:EntityEmergingGrowthCompany>
</xbrl>
