<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2022"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="pnnt-20230208.xsd" xlink:type="simple"/>
    <context id="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001383414</identifier>
        </entity>
        <period>
            <startDate>2023-02-08</startDate>
            <endDate>2023-02-08</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_24a7d872-dc37-4036-9a88-61eb4f4f744a">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_09e26c7b-f93c-423f-abf4-dc5f5afcdd50">0001383414</dei:EntityCentralIndexKey>
    <dei:DocumentType
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_db762e76-3300-49e3-b8ba-9455e9af55dd">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_41540e0d-fe46-4d4d-85ad-8e1492568670">2023-05-10</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_fb5b645f-2b63-40aa-a34a-5c3f6a29a739">PennantPark Investment Corporation</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_bb66b865-70f1-4c2e-a587-cb2dbb0365fb">MD</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_d0631ec8-3778-4137-bfc5-bad82036d08e">814-00736</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_634a85df-0444-47e9-80e3-07e41187ed12">20-8250744</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_ffc074e5-97c2-4aa5-ae26-6926148fb0c3">1691 Michigan Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_cd217473-04cb-4798-925e-33fd5210f593">Miami Beach</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_897a2d96-51e3-43e2-a32a-45fbc43f2870">FL</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_66dc4669-effe-4df2-a1b4-8f9548908f4c">33139</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_8b67c7e1-058d-4c89-9b7c-176a0f2a0d39">786</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_59a46a49-b23f-43ee-8a3c-ef8524349c7a">297-9500</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_f47ee220-d17a-41b6-91d5-c71369273519">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_ddf7646f-f601-4713-b95a-4302f5c3894e">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_04353226-4a68-4df5-b171-33ba14d42313">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_83cb1822-e48e-4477-9aed-13c9776c0c8f">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_08ddaefd-bd8a-4bfc-a54a-281201c84525">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_b355384a-c37b-418d-ad70-a82919bc1821">PNNT</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_162460b1-e53d-46d2-8f57-ddebf1df28d9">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_c4b874a0-884a-4a17-b41e-5ad775ccdaf0"
      id="F_4b70430e-a467-4f43-b558-876ff7c43a37">false</dei:EntityEmergingGrowthCompany>
</xbrl>
