<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2024"
  xmlns:hrzn="http://www.hrzn.com/20260804"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:us-gaap="http://fasb.org/us-gaap/2024"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="hrzn-20260804.xsd" xlink:type="simple"/>
    <context id="d20268K">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001487428</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <context id="d20268K_StatementClassOfStockAxis_CommonStockParValue0001PerShare">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001487428</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">hrzn:CommonStockParValue0001PerShareCustomMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <context id="d20268K_StatementClassOfStockAxis_625NotesDue2027">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001487428</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">hrzn:NotesDue2027625CustomMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <dei:AmendmentFlag contextRef="d20268K" id="ixv-467">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="d20268K" id="ixv-468">0001487428</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="d20268K" id="ixv-494">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="d20268K" id="ixv-495">2026-08-04</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="d20268K" id="ixv-496">HORIZON TECHNOLOGY FINANCE CORPORATION</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="d20268K" id="ixv-497">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="d20268K" id="ixv-498">814-00802</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="d20268K" id="ixv-499">27-2114934</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="d20268K" id="ixv-500">312 Farmington Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown contextRef="d20268K" id="ixv-501">Farmington</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="d20268K" id="ixv-502">CT</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="d20268K" id="ixv-503">06032</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="d20268K" id="ixv-504">860</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="d20268K" id="ixv-505">676-8654</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="d20268K" id="ixv-506">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="d20268K" id="ixv-507">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="d20268K" id="ixv-508">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="d20268K" id="ixv-509">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="d20268K_StatementClassOfStockAxis_CommonStockParValue0001PerShare"
      id="ixv-510">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="d20268K_StatementClassOfStockAxis_CommonStockParValue0001PerShare"
      id="ixv-511">HRZN</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="d20268K_StatementClassOfStockAxis_CommonStockParValue0001PerShare"
      id="ixv-512">NASDAQ</dei:SecurityExchangeName>
    <dei:Security12bTitle
      contextRef="d20268K_StatementClassOfStockAxis_625NotesDue2027"
      id="ixv-513">6.25% Notes due 2027</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="d20268K_StatementClassOfStockAxis_625NotesDue2027"
      id="ixv-514">HTFC</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="d20268K_StatementClassOfStockAxis_625NotesDue2027"
      id="ixv-515">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="d20268K" id="ixv-516">false</dei:EntityEmergingGrowthCompany>
</xbrl>
