<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:hrzn="http://www.hrzn.com/20261105"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:us-gaap="http://fasb.org/us-gaap/2026"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="hrzn-20261105.xsd" xlink:type="simple"/>
    <context id="d20268K">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001487428</identifier>
        </entity>
        <period>
            <startDate>2026-11-05</startDate>
            <endDate>2026-11-05</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-11-05</startDate>
            <endDate>2026-11-05</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-11-05</startDate>
            <endDate>2026-11-05</endDate>
        </period>
    </context>
    <dei:AmendmentFlag contextRef="d20268K" id="ixv-271">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="d20268K" id="ixv-272">0001487428</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="d20268K" id="ixv-298">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="d20268K" id="ixv-299">2026-11-05</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="d20268K" id="ixv-300">HORIZON TECHNOLOGY FINANCE CORPORATION</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="d20268K" id="ixv-301">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="d20268K" id="ixv-302">814-00802</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="d20268K" id="ixv-303">27-2114934</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="d20268K" id="ixv-304">312 Farmington Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown contextRef="d20268K" id="ixv-305">Farmington</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="d20268K" id="ixv-306">CT</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="d20268K" id="ixv-307">06032</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="d20268K" id="ixv-308">860</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="d20268K" id="ixv-309">676-8654</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="d20268K" id="ixv-310">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="d20268K" id="ixv-311">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="d20268K" id="ixv-312">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="d20268K" id="ixv-313">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="d20268K_StatementClassOfStockAxis_CommonStockParValue0001PerShare"
      id="ixv-314">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="d20268K_StatementClassOfStockAxis_CommonStockParValue0001PerShare"
      id="ixv-315">HRZN</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="d20268K_StatementClassOfStockAxis_CommonStockParValue0001PerShare"
      id="ixv-316">NASDAQ</dei:SecurityExchangeName>
    <dei:Security12bTitle
      contextRef="d20268K_StatementClassOfStockAxis_625NotesDue2027"
      id="ixv-317">6.25% Notes due 2027</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="d20268K_StatementClassOfStockAxis_625NotesDue2027"
      id="ixv-318">HTFC</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="d20268K_StatementClassOfStockAxis_625NotesDue2027"
      id="ixv-319">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="d20268K" id="ixv-320">false</dei:EntityEmergingGrowthCompany>
</xbrl>
