<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="pnnt-20240206.xsd" xlink:type="simple"/>
    <context id="C_443ef9cd-6048-4871-85d3-9db0ab771ed6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001383414</identifier>
        </entity>
        <period>
            <startDate>2024-02-06</startDate>
            <endDate>2024-02-06</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_8fd863dc-e0ce-4db8-86c2-17075c54e111">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_2c0fe98b-d225-4afd-babe-6c433e1b1ac2">0001383414</dei:EntityCentralIndexKey>
    <dei:DocumentType
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_21d2ada3-1f8a-4b2d-8579-16c184b3ac90">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_f87e9c75-6bac-4bc2-bf5f-2c88a0990d67">2026-02-03</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_635fba3d-aca0-4be2-a6c0-d369aaddb2b2">PennantPark Investment Corporation</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_ef1ab6c8-21b0-4b89-bd36-e010f9ac248a">MD</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_83838307-275d-41e7-884f-1af0b8a56294">814-00736</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_76ec21ba-4280-463c-9d4b-fd6497e17889">20-8250744</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_9885343f-b264-489a-8ee0-1c6f0a7fb7a6">1691 Michigan Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_b6e65f66-8a8c-4575-a567-963ae776f021">Miami Beach</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_15fe964c-6720-4f0c-bd5c-5540c8c710e4">FL</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_c33968a3-8939-4ecf-8a32-57be2ab61238">33139</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_052d8f14-0a90-40a3-8b97-3eb549e7b095">786</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_1857c5c0-2ece-44ba-a285-a2ba024c5224">297-9500</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_15d0f67f-41e6-48c6-8d71-f31867a0bc4e">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_71ec8ceb-138b-4fa7-9fe1-4624ae2ab388">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_6953fadf-e896-473c-8657-9ea5055df2ca">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_19506434-fc71-4b55-be32-d327aee69adb">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_1dad5465-d1dd-4ed3-ac9b-cc951dce1d01">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_7b9fddd7-8c55-40d6-9f97-7b7ecba34cbb">PNNT</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_9492b443-a165-4f59-9edc-8bdfb8181749">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_443ef9cd-6048-4871-85d3-9db0ab771ed6"
      id="F_7c4c0aba-3483-4cda-9ab0-4c0a4d562d19">false</dei:EntityEmergingGrowthCompany>
</xbrl>
