<?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/20260505"
  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-20260505.xsd" xlink:type="simple"/>
    <context id="d20268K">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001487428</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-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-05-05</startDate>
            <endDate>2026-05-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-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <dei:AmendmentFlag contextRef="d20268K" id="ixv-406">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="d20268K" id="ixv-407">0001487428</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="d20268K" id="ixv-433">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="d20268K" id="ixv-434">2026-05-05</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="d20268K" id="ixv-435">HORIZON TECHNOLOGY FINANCE CORPORATION</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="d20268K" id="ixv-436">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="d20268K" id="ixv-437">814-00802</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="d20268K" id="ixv-438">27-2114934</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="d20268K" id="ixv-439">312 Farmington Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown contextRef="d20268K" id="ixv-440">Farmington</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="d20268K" id="ixv-441">CT</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="d20268K" id="ixv-442">06032</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="d20268K" id="ixv-443">860</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="d20268K" id="ixv-444">676-8654</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="d20268K" id="ixv-445">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="d20268K" id="ixv-446">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="d20268K" id="ixv-447">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="d20268K" id="ixv-448">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="d20268K_StatementClassOfStockAxis_CommonStockParValue0001PerShare"
      id="ixv-449">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="d20268K_StatementClassOfStockAxis_CommonStockParValue0001PerShare"
      id="ixv-450">HRZN</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="d20268K_StatementClassOfStockAxis_CommonStockParValue0001PerShare"
      id="ixv-451">NASDAQ</dei:SecurityExchangeName>
    <dei:Security12bTitle
      contextRef="d20268K_StatementClassOfStockAxis_625NotesDue2027"
      id="ixv-452">6.25% Notes due 2027</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="d20268K_StatementClassOfStockAxis_625NotesDue2027"
      id="ixv-453">HTFC</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="d20268K_StatementClassOfStockAxis_625NotesDue2027"
      id="ixv-454">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="d20268K" id="ixv-455">false</dei:EntityEmergingGrowthCompany>
</xbrl>
