<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>296</ContextCount>
  <ElementCount>338</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>72</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>10</UnitCount>
  <MyReports>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Statement - Condensed Consolidated Balance Sheets (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/CondensedConsolidatedBalanceSheetsUnaudited</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>0000003 - Statement - Condensed Consolidated Balance Sheets (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/CondensedConsolidatedBalanceSheetsUnauditedParenthetical</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>0000004 - Statement - Condensed Consolidated Statements of Income (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/CondensedConsolidatedStatementsofIncomeUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Income (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>0000005 - Statement - Condensed Consolidated Statements of Comprehensive Income (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Comprehensive Income (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>0000006 - Statement - Condensed Consolidated Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/CondensedConsolidatedStatementsofCashFlowsUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>0000007 - Statement - Condensed Consolidated Statements of Stockholders' Equity (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/CondensedConsolidatedStatementsofStockholdersEquityUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Stockholders' Equity (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>0000008 - Disclosure - Organization and Business</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/OrganizationandBusiness</Role>
      <ShortName>Organization and Business</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>0000009 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/SummaryofSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>0000010 - Disclosure - Business Combination</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/BusinessCombination</Role>
      <ShortName>Business Combination</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>0000011 - Disclosure - Fair Value Measurement</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/FairValueMeasurement</Role>
      <ShortName>Fair Value Measurement</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>0000012 - Disclosure - Revenue</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/Revenue</Role>
      <ShortName>Revenue</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>0000013 - Disclosure - Certain Balance Sheet Items</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/CertainBalanceSheetItems</Role>
      <ShortName>Certain Balance Sheet Items</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>0000014 - Disclosure - Goodwill and Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/GoodwillandIntangibleAssets</Role>
      <ShortName>Goodwill and Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>0000015 - Disclosure - Long-Term Debt, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/LongTermDebtNet</Role>
      <ShortName>Long-Term Debt, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>0000016 - Disclosure - Share-based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/SharebasedCompensation</Role>
      <ShortName>Share-based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>0000017 - Disclosure - Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/StockholdersEquity</Role>
      <ShortName>Stockholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>0000018 - Disclosure - Earnings per share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/Earningspershare</Role>
      <ShortName>Earnings per share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>0000019 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9954701 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/SummaryofSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.halozyme.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9954702 - Disclosure - Business Combination (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/BusinessCombinationTables</Role>
      <ShortName>Business Combination (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.halozyme.com/role/BusinessCombination</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9954703 - Disclosure - Fair Value Measurement (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/FairValueMeasurementTables</Role>
      <ShortName>Fair Value Measurement (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.halozyme.com/role/FairValueMeasurement</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9954704 - Disclosure - Revenue (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/RevenueTables</Role>
      <ShortName>Revenue (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.halozyme.com/role/Revenue</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9954705 - Disclosure - Certain Balance Sheet Items (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/CertainBalanceSheetItemsTables</Role>
      <ShortName>Certain Balance Sheet Items (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.halozyme.com/role/CertainBalanceSheetItems</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9954706 - Disclosure - Goodwill and Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/GoodwillandIntangibleAssetsTables</Role>
      <ShortName>Goodwill and Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.halozyme.com/role/GoodwillandIntangibleAssets</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9954707 - Disclosure - Long-Term Debt, Net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/LongTermDebtNetTables</Role>
      <ShortName>Long-Term Debt, Net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.halozyme.com/role/LongTermDebtNet</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9954708 - Disclosure - Share-based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/SharebasedCompensationTables</Role>
      <ShortName>Share-based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.halozyme.com/role/SharebasedCompensation</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9954709 - Disclosure - Stockholders' Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/StockholdersEquityTables</Role>
      <ShortName>Stockholders' Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.halozyme.com/role/StockholdersEquity</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9954710 - Disclosure - Earnings per share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/EarningspershareTables</Role>
      <ShortName>Earnings per share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.halozyme.com/role/Earningspershare</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9954711 - Disclosure - Organization and Business (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/OrganizationandBusinessDetails</Role>
      <ShortName>Organization and Business (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.halozyme.com/role/OrganizationandBusiness</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9954712 - Disclosure - Summary of Significant Accounting Policies - Restricted Cash (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/SummaryofSignificantAccountingPoliciesRestrictedCashDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Restricted Cash (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9954713 - Disclosure - Summary of Significant Accounting Policies - Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/SummaryofSignificantAccountingPoliciesLeasesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.halozyme.com/role/SummaryofSignificantAccountingPoliciesPolicies</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9954714 - Disclosure - Summary of Significant Accounting Policies - Cash Flow Hedges -Currency Risks (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/SummaryofSignificantAccountingPoliciesCashFlowHedgesCurrencyRisksDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Cash Flow Hedges -Currency Risks (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9954715 - Disclosure - Summary of Significant Accounting Policies - Revenue and Cost of Product Sales (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/SummaryofSignificantAccountingPoliciesRevenueandCostofProductSalesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Revenue and Cost of Product Sales (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9954716 - Disclosure - Summary of Significant Accounting Policies - Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/SummaryofSignificantAccountingPoliciesIncomeTaxesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9954717 - Disclosure - Summary of Significant Accounting Policies - Segment Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/SummaryofSignificantAccountingPoliciesSegmentInformationDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Segment Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9954718 - Disclosure - Business Combination - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/BusinessCombinationNarrativeDetails</Role>
      <ShortName>Business Combination - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9954719 - Disclosure - Business Combination - Unaudited Pro Forma Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/BusinessCombinationUnauditedProFormaInformationDetails</Role>
      <ShortName>Business Combination - Unaudited Pro Forma Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9954720 - Disclosure - Fair Value Measurement - Components of Available-for-sale Marketable Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/FairValueMeasurementComponentsofAvailableforsaleMarketableSecuritiesDetails</Role>
      <ShortName>Fair Value Measurement - Components of Available-for-sale Marketable Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9954721 - Disclosure - Fair Value Measurement - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/FairValueMeasurementNarrativeDetails</Role>
      <ShortName>Fair Value Measurement - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9954722 - Disclosure - Fair Value Measurement - Contractual Maturities of Available for Sale Debt Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/FairValueMeasurementContractualMaturitiesofAvailableforSaleDebtSecuritiesDetails</Role>
      <ShortName>Fair Value Measurement - Contractual Maturities of Available for Sale Debt Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9954723 - Disclosure - Fair Value Measurement - Assets Measured at Fair Value on a Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/FairValueMeasurementAssetsMeasuredatFairValueonaRecurringBasisDetails</Role>
      <ShortName>Fair Value Measurement - Assets Measured at Fair Value on a Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9954724 - Disclosure - Revenue - Disaggregated Revenues (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/RevenueDisaggregatedRevenuesDetails</Role>
      <ShortName>Revenue - Disaggregated Revenues (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9954725 - Disclosure - Revenue - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/RevenueNarrativeDetails</Role>
      <ShortName>Revenue - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9954726 - Disclosure - Revenue - Accounts Receivable, net and Deferred Revenues from Contracts (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/RevenueAccountsReceivablenetandDeferredRevenuesfromContractsDetails</Role>
      <ShortName>Revenue - Accounts Receivable, net and Deferred Revenues from Contracts (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9954727 - Disclosure - Certain Balance Sheet Items - Accounts Receivable, net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/CertainBalanceSheetItemsAccountsReceivablenetDetails</Role>
      <ShortName>Certain Balance Sheet Items - Accounts Receivable, net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9954728 - Disclosure - Certain Balance Sheet Items - Inventories (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/CertainBalanceSheetItemsInventoriesDetails</Role>
      <ShortName>Certain Balance Sheet Items - Inventories (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9954729 - Disclosure - Certain Balance Sheet Items - Prepaid Expenses and Other Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/CertainBalanceSheetItemsPrepaidExpensesandOtherAssetsDetails</Role>
      <ShortName>Certain Balance Sheet Items - Prepaid Expenses and Other Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9954730 - Disclosure - Certain Balance Sheet Items - Property and Equipment, net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/CertainBalanceSheetItemsPropertyandEquipmentnetDetails</Role>
      <ShortName>Certain Balance Sheet Items - Property and Equipment, net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9954731 - Disclosure - Certain Balance Sheet Items - Accrued Expenses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/CertainBalanceSheetItemsAccruedExpensesDetails</Role>
      <ShortName>Certain Balance Sheet Items - Accrued Expenses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9954732 - Disclosure - Goodwill and Intangible Assets - Goodwill Rollforward (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/GoodwillandIntangibleAssetsGoodwillRollforwardDetails</Role>
      <ShortName>Goodwill and Intangible Assets - Goodwill Rollforward (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9954733 - Disclosure - Goodwill and Intangible Assets - Additional (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/GoodwillandIntangibleAssetsAdditionalDetails</Role>
      <ShortName>Goodwill and Intangible Assets - Additional (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9954734 - Disclosure - Goodwill and Intangible Assets - Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/GoodwillandIntangibleAssetsIntangibleAssetsDetails</Role>
      <ShortName>Goodwill and Intangible Assets - Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9954735 - Disclosure - Goodwill and Intangible Assets - Future Amortization (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/GoodwillandIntangibleAssetsFutureAmortizationDetails</Role>
      <ShortName>Goodwill and Intangible Assets - Future Amortization (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9954736 - Disclosure - Long-Term Debt, Net - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/LongTermDebtNetNarrativeDetails</Role>
      <ShortName>Long-Term Debt, Net - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9954737 - Disclosure - Long-Term Debt, Net - Carrying Amount of Convertible Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.halozyme.com/role/LongTermDebtNetCarryingAmountofConvertibleNotesDetails</Role>
      <ShortName>Long-Term Debt, Net - Carrying Amount of Convertible Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9954738 - Disclosure - Long-Term Debt, Net - Components of Interest Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/LongTermDebtNetComponentsofInterestExpenseDetails</Role>
      <ShortName>Long-Term Debt, Net - Components of Interest Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9954739 - Disclosure - Share-based Compensation - Share-based Compensation Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/SharebasedCompensationSharebasedCompensationExpenseDetails</Role>
      <ShortName>Share-based Compensation - Share-based Compensation Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9954740 - Disclosure - Share-based Compensation - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/SharebasedCompensationNarrativeDetails</Role>
      <ShortName>Share-based Compensation - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9954741 - Disclosure - Share-based Compensation - Assumptions Used in the Black-Scholes Model (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/SharebasedCompensationAssumptionsUsedintheBlackScholesModelDetails</Role>
      <ShortName>Share-based Compensation - Assumptions Used in the Black-Scholes Model (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9954742 - Disclosure - Share-based Compensation - Unrecognized Estimated Compensation Cost (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/SharebasedCompensationUnrecognizedEstimatedCompensationCostDetails</Role>
      <ShortName>Share-based Compensation - Unrecognized Estimated Compensation Cost (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9954743 - Disclosure - Stockholders' Equity - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/StockholdersEquityNarrativeDetails</Role>
      <ShortName>Stockholders' Equity - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9954744 - Disclosure - Stockholders' Equity - Share Repurchase Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/StockholdersEquityShareRepurchaseActivityDetails</Role>
      <ShortName>Stockholders' Equity - Share Repurchase Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9954745 - Disclosure - Earnings per share - Computation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/EarningspershareComputationDetails</Role>
      <ShortName>Earnings per share - Computation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="halo-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9954746 - Disclosure - Earnings per share - Antidilutive Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.halozyme.com/role/EarningspershareAntidilutiveSecuritiesDetails</Role>
      <ShortName>Earnings per share - Antidilutive Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Warning">[ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 2 fact(s) appearing in ix:hidden were eligible for transformation: us-gaap:AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife, us-gaap:StockRepurchaseProgramPeriodInForce1 -  halo-20230630.htm 4</Log>
  </Logs>
  <InputFiles>
    <File doctype="10-Q" original="halo-20230630.htm">halo-20230630.htm</File>
    <File>ex101-formofstockoptionagr.htm</File>
    <File>ex102-formofrestrictedstoc.htm</File>
    <File>ex103-formofrestrictedunit.htm</File>
    <File>ex104-formofdirectorstocko.htm</File>
    <File>ex105-letteragreementamend.htm</File>
    <File>ex31110qq22023.htm</File>
    <File>ex31210qq22023.htm</File>
    <File>ex3210qq22023.htm</File>
    <File>halo-20230630.xsd</File>
    <File>halo-20230630_cal.xml</File>
    <File>halo-20230630_def.xml</File>
    <File>halo-20230630_lab.xml</File>
    <File>halo-20230630_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>halo-20230630_g1.jpg</File>
    <File>halo-20230630_g2.jpg</File>
    <File>halo-20230630_g3.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1014">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="29">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/ecd/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
