<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2024"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="pnnt-20241125.xsd" xlink:type="simple"/>
    <context id="AsOf2024-11-25">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001383414</identifier>
        </entity>
        <period>
            <startDate>2024-11-25</startDate>
            <endDate>2024-11-25</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Shares">
        <measure>shares</measure>
    </unit>
    <unit id="USDPShares">
        <divide>
            <unitNumerator>
                <measure>iso4217:USD</measure>
            </unitNumerator>
            <unitDenominator>
                <measure>shares</measure>
            </unitDenominator>
        </divide>
    </unit>
    <dei:AmendmentFlag contextRef="AsOf2024-11-25" id="Fact000003">true</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="AsOf2024-11-25" id="Fact000004">0001383414</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="AsOf2024-11-25" id="Fact000009">8-K/A</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="AsOf2024-11-25" id="Fact000010">2024-11-25</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="AsOf2024-11-25" id="Fact000011">PennantPark Investment Corporation</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="AsOf2024-11-25" id="Fact000012">MD</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="AsOf2024-11-25" id="Fact000013">814-00736</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="AsOf2024-11-25" id="Fact000014">20-8250744</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="AsOf2024-11-25" id="Fact000015">1691 Michigan Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressPostalZipCode contextRef="AsOf2024-11-25" id="Fact000016">33319</dei:EntityAddressPostalZipCode>
    <dei:EntityAddressCityOrTown contextRef="AsOf2024-11-25" id="Fact000017">Miami Beach</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="AsOf2024-11-25" id="Fact000018">FL</dei:EntityAddressStateOrProvince>
    <dei:CityAreaCode contextRef="AsOf2024-11-25" id="Fact000019">(786)</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="AsOf2024-11-25" id="Fact000020">297-9500</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="AsOf2024-11-25" id="Fact000021">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="AsOf2024-11-25" id="Fact000022">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="AsOf2024-11-25" id="Fact000023">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="AsOf2024-11-25" id="Fact000024">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle contextRef="AsOf2024-11-25" id="Fact000025">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="AsOf2024-11-25" id="Fact000026">PNNT</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="AsOf2024-11-25" id="Fact000027">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="AsOf2024-11-25" id="Fact000028">false</dei:EntityEmergingGrowthCompany>
    <dei:AmendmentDescription contextRef="AsOf2024-11-25" id="ixv-271">This Current Report on Form 8-K/A (this &#x201c;Form 8-K/A&#x201d;)
amends the Current Report on Form 8-K of PennantPark Investment Corporation (the &#x201c;Company&#x201d;) originally furnished by the Company
to the Securities and Exchange Commission on November 25, 2024 (the &#x201c;Initial 8-K&#x201d;). The sole purpose for filing this Form
8-K/A is to correct certain information contained in Exhibit 99.1 to the Initial 8-K related to the Company&#x2019;s financial statements,
as described below.</dei:AmendmentDescription>
</xbrl>
