<?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/20260513"
  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-20260513.xsd" xlink:type="simple"/>
    <context id="d20268K">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001487428</identifier>
        </entity>
        <period>
            <startDate>2026-05-13</startDate>
            <endDate>2026-05-13</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-05-13</startDate>
            <endDate>2026-05-13</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-05-13</startDate>
            <endDate>2026-05-13</endDate>
        </period>
    </context>
    <dei:AmendmentFlag contextRef="d20268K" id="ixv-248">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="d20268K" id="ixv-249">0001487428</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="d20268K" id="ixv-275">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="d20268K" id="ixv-276">2026-05-13</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="d20268K" id="ixv-277">HORIZON TECHNOLOGY FINANCE CORPORATION</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="d20268K" id="ixv-278">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="d20268K" id="ixv-279">814-00802</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="d20268K" id="ixv-280">27-2114934</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="d20268K" id="ixv-281">312 Farmington Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown contextRef="d20268K" id="ixv-282">Farmington</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="d20268K" id="ixv-283">CT</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="d20268K" id="ixv-284">06032</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="d20268K" id="ixv-285">860</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="d20268K" id="ixv-286">676-8654</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="d20268K" id="ixv-287">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="d20268K" id="ixv-288">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="d20268K" id="ixv-289">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="d20268K" id="ixv-290">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="d20268K_StatementClassOfStockAxis_CommonStockParValue0001PerShare"
      id="ixv-291">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="d20268K_StatementClassOfStockAxis_CommonStockParValue0001PerShare"
      id="ixv-292">HRZN</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="d20268K_StatementClassOfStockAxis_CommonStockParValue0001PerShare"
      id="ixv-293">NASDAQ</dei:SecurityExchangeName>
    <dei:Security12bTitle
      contextRef="d20268K_StatementClassOfStockAxis_625NotesDue2027"
      id="ixv-294">6.25% Notes due 2027</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="d20268K_StatementClassOfStockAxis_625NotesDue2027"
      id="ixv-295">HTFC</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="d20268K_StatementClassOfStockAxis_625NotesDue2027"
      id="ixv-296">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="d20268K" id="ixv-297">false</dei:EntityEmergingGrowthCompany>
</xbrl>
