<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2024"
  xmlns:ecd="http://xbrl.sec.gov/ecd/2024"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="ptmn-20241231.xsd" xlink:type="simple"/>
    <context id="P01_01_2024To12_31_2024">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001372807</identifier>
        </entity>
        <period>
            <startDate>2024-01-01</startDate>
            <endDate>2024-12-31</endDate>
        </period>
    </context>
    <dei:DocumentType contextRef="P01_01_2024To12_31_2024" id="hidden140173485">DEF 14A</dei:DocumentType>
    <dei:AmendmentFlag contextRef="P01_01_2024To12_31_2024" id="ixv-3089">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="P01_01_2024To12_31_2024" id="ixv-3090">0001372807</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="P01_01_2024To12_31_2024" id="ixv-3100">Portman Ridge Finance Corporation</dei:EntityRegistrantName>
    <ecd:InsiderTrdPoliciesProcAdoptedFlag contextRef="P01_01_2024To12_31_2024" id="ixv-3104">true</ecd:InsiderTrdPoliciesProcAdoptedFlag>
</xbrl>
