<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.24.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>2757</ContextCount>
  <ElementCount>431</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>434</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>9</UnitCount>
  <MyReports>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Statement - CONSOLIDATED STATEMENTS OF ASSETS AND LIABILITIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/CONSOLIDATEDSTATEMENTSOFASSETSANDLIABILITIES</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF ASSETS AND LIABILITIES</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>0000003 - Statement - CONSOLIDATED STATEMENTS OF ASSETS AND LIABILITIES (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/CONSOLIDATEDSTATEMENTSOFASSETSANDLIABILITIESParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF ASSETS AND LIABILITIES (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>0000004 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF OPERATIONS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>0000005 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN NET ASSETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/CONSOLIDATEDSTATEMENTSOFCHANGESINNETASSETS</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN NET ASSETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>0000006 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN NET ASSETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/CONSOLIDATEDSTATEMENTSOFCHANGESINNETASSETSParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN NET ASSETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>0000007 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>0000008 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWSParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>0000009 - Statement - CONSOLIDATED SCHEDULE OF INVESTMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/CONSOLIDATEDSCHEDULEOFINVESTMENTS</Role>
      <ShortName>CONSOLIDATED SCHEDULE OF INVESTMENTS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>0000010 - Statement - CONSOLIDATED SCHEDULE OF INVESTMENTS - Forward Foreign Currency Exchange Contracts</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/CONSOLIDATEDSCHEDULEOFINVESTMENTSForwardForeignCurrencyExchangeContracts</Role>
      <ShortName>CONSOLIDATED SCHEDULE OF INVESTMENTS - Forward Foreign Currency Exchange Contracts</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>0000011 - Statement - CONSOLIDATED SCHEDULE OF INVESTMENTS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/CONSOLIDATEDSCHEDULEOFINVESTMENTSParenthetical</Role>
      <ShortName>CONSOLIDATED SCHEDULE OF INVESTMENTS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>0000012 - Disclosure - Description of Business</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/DescriptionofBusiness</Role>
      <ShortName>Description of Business</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>0000013 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/SummaryofSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>0000014 - Disclosure - Fair Value of Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/FairValueofFinancialInstruments</Role>
      <ShortName>Fair Value of Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>0000015 - Disclosure - Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/Investments</Role>
      <ShortName>Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>0000016 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/Debt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>0000017 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>0000018 - Disclosure - Stockholders' Equity and Distributions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/StockholdersEquityandDistributions</Role>
      <ShortName>Stockholders' Equity and Distributions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>0000019 - Disclosure - Equity Incentive Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/EquityIncentivePlans</Role>
      <ShortName>Equity Incentive Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>0000020 - Disclosure - Earnings Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/EarningsPerShare</Role>
      <ShortName>Earnings Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>0000021 - Disclosure - Financial Highlights</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/FinancialHighlights</Role>
      <ShortName>Financial Highlights</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>0000022 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>0000023 - Disclosure - Indemnification</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/Indemnification</Role>
      <ShortName>Indemnification</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>0000024 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/RelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>0000025 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>995470 - Disclosure - N-2</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/cef/role/N2</Role>
      <ShortName>N-2</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9954701 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/SummaryofSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.htgc.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9954702 - Disclosure - Fair Value of Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/FairValueofFinancialInstrumentsTables</Role>
      <ShortName>Fair Value of Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.htgc.com/role/FairValueofFinancialInstruments</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9954703 - Disclosure - Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/InvestmentsTables</Role>
      <ShortName>Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.htgc.com/role/Investments</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9954704 - Disclosure - Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/DebtTables</Role>
      <ShortName>Debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.htgc.com/role/Debt</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9954705 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.htgc.com/role/IncomeTaxes</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9954706 - Disclosure - Stockholders' Equity and Distributions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/StockholdersEquityandDistributionsTables</Role>
      <ShortName>Stockholders' Equity and Distributions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.htgc.com/role/StockholdersEquityandDistributions</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9954707 - Disclosure - Equity Incentive Plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/EquityIncentivePlansTables</Role>
      <ShortName>Equity Incentive Plans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.htgc.com/role/EquityIncentivePlans</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9954708 - Disclosure - Earnings Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/EarningsPerShareTables</Role>
      <ShortName>Earnings Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.htgc.com/role/EarningsPerShare</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9954709 - Disclosure - Financial Highlights (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/FinancialHighlightsTables</Role>
      <ShortName>Financial Highlights (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.htgc.com/role/FinancialHighlights</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9954710 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/CommitmentsandContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.htgc.com/role/CommitmentsandContingencies</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9954711 - Disclosure - Schedule 12-14s - CONSOLIDATED SCHEDULE OF INVESTMENTS IN AND ADVANCES TO AFFILIATES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/Schedule1214sCONSOLIDATEDSCHEDULEOFINVESTMENTSINANDADVANCESTOAFFILIATESTables</Role>
      <ShortName>Schedule 12-14s - CONSOLIDATED SCHEDULE OF INVESTMENTS IN AND ADVANCES TO AFFILIATES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9954712 - Disclosure - Description of Business - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/DescriptionofBusinessAdditionalInformationDetails</Role>
      <ShortName>Description of Business - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9954713 - Disclosure - Summary of Significant Accounting Policies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/SummaryofSignificantAccountingPoliciesAdditionalInformationDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9954714 - Disclosure - Fair Value of Financial Instruments - Schedule of Investments Measured at Fair Value on Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/FairValueofFinancialInstrumentsScheduleofInvestmentsMeasuredatFairValueonRecurringBasisDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Schedule of Investments Measured at Fair Value on Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9954715 - Disclosure - Fair Value of Financial Instruments - Schedule of Reconciliation of Changes for All Financial Assets and Liabilities Measured at Fair Value on Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/FairValueofFinancialInstrumentsScheduleofReconciliationofChangesforAllFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Schedule of Reconciliation of Changes for All Financial Assets and Liabilities Measured at Fair Value on Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9954716 - Disclosure - Fair Value of Financial Instruments - Schedule of Equity Investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/FairValueofFinancialInstrumentsScheduleofEquityInvestmentsDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Schedule of Equity Investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9954717 - Disclosure - Fair Value of Financial Instruments - Schedule of Quantitative Information of Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationofFairValueMeasurementsDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Schedule of Quantitative Information of Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9954718 - Disclosure - Fair Value of Financial Instruments - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/FairValueofFinancialInstrumentsAdditionalInformationDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9954719 - Disclosure - Fair Value of Financial Instruments - Schedule of Fair Value Hierarchy Of Outstanding Borrowings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/FairValueofFinancialInstrumentsScheduleofFairValueHierarchyOfOutstandingBorrowingsDetails</Role>
      <ShortName>Fair Value of Financial Instruments - Schedule of Fair Value Hierarchy Of Outstanding Borrowings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9954720 - Disclosure - Investments - Schedule of Realized Gains and Losses and Changes in Unrealized Appreciation and Depreciation on Control and Affiliate investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/InvestmentsScheduleofRealizedGainsandLossesandChangesinUnrealizedAppreciationandDepreciationonControlandAffiliateinvestmentsDetails</Role>
      <ShortName>Investments - Schedule of Realized Gains and Losses and Changes in Unrealized Appreciation and Depreciation on Control and Affiliate investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9954721 - Disclosure - Investments - Schedule of Fair Value Portfolio of Investments by Asset Class (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/InvestmentsScheduleofFairValuePortfolioofInvestmentsbyAssetClassDetails</Role>
      <ShortName>Investments - Schedule of Fair Value Portfolio of Investments by Asset Class (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9954722 - Disclosure - Investments - Schedule of Fair Value Portfolio of Investments by Geographic Location (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/InvestmentsScheduleofFairValuePortfolioofInvestmentsbyGeographicLocationDetails</Role>
      <ShortName>Investments - Schedule of Fair Value Portfolio of Investments by Geographic Location (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9954723 - Disclosure - Investments - Schedule of Fair Value Portfolio By Industry Sector (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/InvestmentsScheduleofFairValuePortfolioByIndustrySectorDetails</Role>
      <ShortName>Investments - Schedule of Fair Value Portfolio By Industry Sector (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9954724 - Disclosure - Investments - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/InvestmentsAdditionalInformationDetails</Role>
      <ShortName>Investments - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9954725 - Disclosure - Investments - Schedule of Investment Collateral (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/InvestmentsScheduleofInvestmentCollateralDetails</Role>
      <ShortName>Investments - Schedule of Investment Collateral (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9954726 - Disclosure - Investments - Schedule of Derivative Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/InvestmentsScheduleofDerivativeInstrumentsDetails</Role>
      <ShortName>Investments - Schedule of Derivative Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9954727 - Disclosure - Investments - Schedule of Investment Interest Income and Fee Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/InvestmentsScheduleofInvestmentInterestIncomeandFeeIncomeDetails</Role>
      <ShortName>Investments - Schedule of Investment Interest Income and Fee Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9954728 - Disclosure - Investments - Schedule of Unamortized Capitalized Fee Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/InvestmentsScheduleofUnamortizedCapitalizedFeeIncomeDetails</Role>
      <ShortName>Investments - Schedule of Unamortized Capitalized Fee Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9954729 - Disclosure - Investments - Schedule of Loan Exit Fees Receivable (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/InvestmentsScheduleofLoanExitFeesReceivableDetails</Role>
      <ShortName>Investments - Schedule of Loan Exit Fees Receivable (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9954730 - Disclosure - Debt - Schedule of Available and Outstanding Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/DebtScheduleofAvailableandOutstandingDebtDetails</Role>
      <ShortName>Debt - Schedule of Available and Outstanding Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9954731 - Disclosure - Debt - Schedule of Debt Issuance Costs, Net of accumulated Amortization (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/DebtScheduleofDebtIssuanceCostsNetofaccumulatedAmortizationDetails</Role>
      <ShortName>Debt - Schedule of Debt Issuance Costs, Net of accumulated Amortization (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9954732 - Disclosure - Debt - Schedule of Components of Interest Expense, Related Fees, Losses on Debt Extinguishment and Cash Paid for Interest Expense for Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/DebtScheduleofComponentsofInterestExpenseRelatedFeesLossesonDebtExtinguishmentandCashPaidforInterestExpenseforDebtDetails</Role>
      <ShortName>Debt - Schedule of Components of Interest Expense, Related Fees, Losses on Debt Extinguishment and Cash Paid for Interest Expense for Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9954733 - Disclosure - Debt - Schedule of SBA Debentures Outstanding Principal Balances (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/DebtScheduleofSBADebenturesOutstandingPrincipalBalancesDetails</Role>
      <ShortName>Debt - Schedule of SBA Debentures Outstanding Principal Balances (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9954734 - Disclosure - Debt - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/DebtAdditionalInformationDetails</Role>
      <ShortName>Debt - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9954735 - Disclosure - Income Taxes - Schedule of Accumulated Net Realized Gain (Loss) of Paid-in Capital (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/IncomeTaxesScheduleofAccumulatedNetRealizedGainLossofPaidinCapitalDetails</Role>
      <ShortName>Income Taxes - Schedule of Accumulated Net Realized Gain (Loss) of Paid-in Capital (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9954736 - Disclosure - Income Taxes - Schedule of Undistributed Ordinary Income or Accumulated Realized Gains (Losses) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/IncomeTaxesScheduleofUndistributedOrdinaryIncomeorAccumulatedRealizedGainsLossesDetails</Role>
      <ShortName>Income Taxes - Schedule of Undistributed Ordinary Income or Accumulated Realized Gains (Losses) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9954737 - Disclosure - Income tax - Schedule of Tax Character of Distributions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/IncometaxScheduleofTaxCharacterofDistributionsDetails</Role>
      <ShortName>Income tax - Schedule of Tax Character of Distributions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9954738 - Disclosure - Income tax - Schedule of Components of Distributable Earnings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/IncometaxScheduleofComponentsofDistributableEarningsDetails</Role>
      <ShortName>Income tax - Schedule of Components of Distributable Earnings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9954739 - Disclosure - Income Taxes - Schedule of Taxable income and Taxable Net Realized Gains Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/IncomeTaxesScheduleofTaxableincomeandTaxableNetRealizedGainsLossesDetails</Role>
      <ShortName>Income Taxes - Schedule of Taxable income and Taxable Net Realized Gains Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9954740 - Disclosure - Income Taxes - Schedule of Aggregate Unrealized Appreciation of Company investment Federal Income Tax (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/IncomeTaxesScheduleofAggregateUnrealizedAppreciationofCompanyinvestmentFederalIncomeTaxDetails</Role>
      <ShortName>Income Taxes - Schedule of Aggregate Unrealized Appreciation of Company investment Federal Income Tax (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9954741 - Disclosure - Income Taxes - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/IncomeTaxesAdditionalInformationDetails</Role>
      <ShortName>Income Taxes - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9954742 - Disclosure - Stockholders' Equity and Distributions - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/StockholdersEquityandDistributionsAdditionalInformationDetails</Role>
      <ShortName>Stockholders' Equity and Distributions - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9954743 - Disclosure - Stockholders' Equity and Distributions - Schedule of Common Stock Shares Issued and Sold (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/StockholdersEquityandDistributionsScheduleofCommonStockSharesIssuedandSoldDetails</Role>
      <ShortName>Stockholders' Equity and Distributions - Schedule of Common Stock Shares Issued and Sold (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9954744 - Disclosure - Stockholders' Equity and Distributions - Schedule of Dividends Declared (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/StockholdersEquityandDistributionsScheduleofDividendsDeclaredDetails</Role>
      <ShortName>Stockholders' Equity and Distributions - Schedule of Dividends Declared (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9954745 - Disclosure - Equity Incentive Plans - Additional information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/EquityIncentivePlansAdditionalinformationDetails</Role>
      <ShortName>Equity Incentive Plans - Additional information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>9954746 - Disclosure - Equity Incentive Plans - Unvested Restricted Stock Equity Awards (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/EquityIncentivePlansUnvestedRestrictedStockEquityAwardsDetails</Role>
      <ShortName>Equity Incentive Plans - Unvested Restricted Stock Equity Awards (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>9954747 - Disclosure - Earnings Per Share - Schedule of Basic and Diluted Earnings Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/EarningsPerShareScheduleofBasicandDilutedEarningsPerShareDetails</Role>
      <ShortName>Earnings Per Share - Schedule of Basic and Diluted Earnings Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>9954748 - Disclosure - Earnings Per Share - Schedule of Number of Anti-diluted Shares As Calculated Based on Weighted Average Closing Price of Common Stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/EarningsPerShareScheduleofNumberofAntidilutedSharesAsCalculatedBasedonWeightedAverageClosingPriceofCommonStockDetails</Role>
      <ShortName>Earnings Per Share - Schedule of Number of Anti-diluted Shares As Calculated Based on Weighted Average Closing Price of Common Stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>9954749 - Disclosure - Earnings Per Share - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/EarningsPerShareAdditionalInformationDetails</Role>
      <ShortName>Earnings Per Share - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>9954750 - Disclosure - Financial Highlights (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/FinancialHighlightsDetails</Role>
      <ShortName>Financial Highlights (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.htgc.com/role/FinancialHighlightsTables</ParentRole>
      <Position>76</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>9954751 - Disclosure - Commitment and Contingencies - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/CommitmentandContingenciesAdditionalInformationDetails</Role>
      <ShortName>Commitment and Contingencies - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>9954752 - Disclosure - Commitments and Contingencies - Schedule of Unfunded Contractual Commitments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/CommitmentsandContingenciesScheduleofUnfundedContractualCommitmentsDetails</Role>
      <ShortName>Commitments and Contingencies - Schedule of Unfunded Contractual Commitments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>9954753 - Disclosure - Commitments and Contingencies - Schedule of Additional Information on Unecumbered Unfunded Commitments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/CommitmentsandContingenciesScheduleofAdditionalInformationonUnecumberedUnfundedCommitmentsDetails</Role>
      <ShortName>Commitments and Contingencies - Schedule of Additional Information on Unecumbered Unfunded Commitments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>9954754 - Disclosure - Commitments and Contingencies - Schedule of Contractual Obligations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/CommitmentsandContingenciesScheduleofContractualObligationsDetails</Role>
      <ShortName>Commitments and Contingencies - Schedule of Contractual Obligations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>9954755 - Disclosure - Commitments and Contingencies - Summary of Information Related to Measurement of Operating Lease Liabilities and Supplemental Cash Flow Information Related to Operating Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/CommitmentsandContingenciesSummaryofInformationRelatedtoMeasurementofOperatingLeaseLiabilitiesandSupplementalCashFlowInformationRelatedtoOperatingLeasesDetails</Role>
      <ShortName>Commitments and Contingencies - Summary of Information Related to Measurement of Operating Lease Liabilities and Supplemental Cash Flow Information Related to Operating Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>9954756 - Disclosure - Commitments and Contingencies - Schedule of Future Minimum Lease Payments under Operating Leases and Reconciliation to Operating Lease Liability (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/CommitmentsandContingenciesScheduleofFutureMinimumLeasePaymentsunderOperatingLeasesandReconciliationtoOperatingLeaseLiabilityDetails</Role>
      <ShortName>Commitments and Contingencies - Schedule of Future Minimum Lease Payments under Operating Leases and Reconciliation to Operating Lease Liability (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>9954757 - Disclosure - Related Party Transactions - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/RelatedPartyTransactionsAdditionalInformationDetails</Role>
      <ShortName>Related Party Transactions - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>9954758 - Disclosure - Subsequent Events (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/SubsequentEventsDetails</Role>
      <ShortName>Subsequent Events (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.htgc.com/role/SubsequentEvents</ParentRole>
      <Position>84</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>9954759 - Disclosure - Schedule 12-14s - CONSOLIDATED SCHEDULE OF INVESTMENTS IN AND ADVANCES TO AFFILIATES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/Schedule1214sCONSOLIDATEDSCHEDULEOFINVESTMENTSINANDADVANCESTOAFFILIATESDetails</Role>
      <ShortName>Schedule 12-14s - CONSOLIDATED SCHEDULE OF INVESTMENTS IN AND ADVANCES TO AFFILIATES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.htgc.com/role/Schedule1214sCONSOLIDATEDSCHEDULEOFINVESTMENTSINANDADVANCESTOAFFILIATESTables</ParentRole>
      <Position>85</Position>
    </Report>
    <Report instance="htgc-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>9954760 - Disclosure - Schedule 12-14s - CONSOLIDATED SCHEDULE OF INVESTMENTS IN AND ADVANCES TO AFFILIATES (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.htgc.com/role/Schedule1214sCONSOLIDATEDSCHEDULEOFINVESTMENTSINANDADVANCESTOAFFILIATESParentheticalDetails</Role>
      <ShortName>Schedule 12-14s - CONSOLIDATED SCHEDULE OF INVESTMENTS IN AND ADVANCES TO AFFILIATES (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.htgc.com/role/Schedule1214sCONSOLIDATEDSCHEDULEOFINVESTMENTSINANDADVANCESTOAFFILIATESTables</ParentRole>
      <Position>86</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-K" isDefinitelyFs="true" isUsgaap="true" original="htgc-20231231.htm">htgc-20231231.htm</File>
    <File>htgc-20231231.xsd</File>
    <File>htgc-20231231_cal.xml</File>
    <File>htgc-20231231_def.xml</File>
    <File>htgc-20231231_lab.xml</File>
    <File>htgc-20231231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>htgc-20231231_g1.jpg</File>
    <File>htgc-20231231_g2.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1">http://fasb.org/srt/2023</BaseTaxonomy>
    <BaseTaxonomy items="5714">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="447">http://xbrl.sec.gov/cef/2023</BaseTaxonomy>
    <BaseTaxonomy items="42">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
