<?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-20240930.xsd" xlink:type="simple"/>
    <context id="P10_01_2023To09_30_2024">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001383414</identifier>
        </entity>
        <period>
            <startDate>2023-10-01</startDate>
            <endDate>2024-09-30</endDate>
        </period>
    </context>
    <context id="PAsOn03_31_2024">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001383414</identifier>
        </entity>
        <period>
            <instant>2024-03-31</instant>
        </period>
    </context>
    <context id="PAsOn02_10_2025">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001383414</identifier>
        </entity>
        <period>
            <instant>2025-02-10</instant>
        </period>
    </context>
    <unit id="Unit_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Unit_shares">
        <measure>shares</measure>
    </unit>
    <dei:AmendmentFlag contextRef="P10_01_2023To09_30_2024" id="ixv-888">true</dei:AmendmentFlag>
    <dei:DocumentFiscalPeriodFocus contextRef="P10_01_2023To09_30_2024" id="ixv-889">FY</dei:DocumentFiscalPeriodFocus>
    <dei:EntityCentralIndexKey contextRef="P10_01_2023To09_30_2024" id="ixv-890">0001383414</dei:EntityCentralIndexKey>
    <dei:EntityIncorporationStateCountryCode contextRef="P10_01_2023To09_30_2024" id="hidden140354528">MD</dei:EntityIncorporationStateCountryCode>
    <dei:DocumentType contextRef="P10_01_2023To09_30_2024" id="ixv-915">10-K/A</dei:DocumentType>
    <dei:DocumentAnnualReport contextRef="P10_01_2023To09_30_2024" id="ixv-916">true</dei:DocumentAnnualReport>
    <dei:DocumentPeriodEndDate contextRef="P10_01_2023To09_30_2024" id="ixv-917">2024-09-30</dei:DocumentPeriodEndDate>
    <dei:CurrentFiscalYearEndDate contextRef="P10_01_2023To09_30_2024" id="ixv-918">--09-30</dei:CurrentFiscalYearEndDate>
    <dei:DocumentFiscalYearFocus contextRef="P10_01_2023To09_30_2024" id="ixv-919">2024</dei:DocumentFiscalYearFocus>
    <dei:DocumentTransitionReport contextRef="P10_01_2023To09_30_2024" id="ixv-920">false</dei:DocumentTransitionReport>
    <dei:EntityFileNumber contextRef="P10_01_2023To09_30_2024" id="ixv-921">814-00736</dei:EntityFileNumber>
    <dei:EntityRegistrantName contextRef="P10_01_2023To09_30_2024" id="ixv-922">PENNANTPARK INVESTMENT CORPORATION</dei:EntityRegistrantName>
    <dei:EntityTaxIdentificationNumber contextRef="P10_01_2023To09_30_2024" id="ixv-923">20-8250744</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="P10_01_2023To09_30_2024" id="ixv-924">1691 Michigan Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown contextRef="P10_01_2023To09_30_2024" id="ixv-925">Miami</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="P10_01_2023To09_30_2024" id="ixv-926">FL</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="P10_01_2023To09_30_2024" id="ixv-927">33319</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="P10_01_2023To09_30_2024" id="ixv-928">786</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="P10_01_2023To09_30_2024" id="ixv-929">297-9500</dei:LocalPhoneNumber>
    <dei:Security12bTitle contextRef="P10_01_2023To09_30_2024" id="ixv-930">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="P10_01_2023To09_30_2024" id="ixv-931">PNNT</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="P10_01_2023To09_30_2024" id="ixv-932">NYSE</dei:SecurityExchangeName>
    <dei:EntityWellKnownSeasonedIssuer contextRef="P10_01_2023To09_30_2024" id="ixv-933">No</dei:EntityWellKnownSeasonedIssuer>
    <dei:EntityVoluntaryFilers contextRef="P10_01_2023To09_30_2024" id="ixv-934">No</dei:EntityVoluntaryFilers>
    <dei:EntityCurrentReportingStatus contextRef="P10_01_2023To09_30_2024" id="ixv-935">Yes</dei:EntityCurrentReportingStatus>
    <dei:EntityInteractiveDataCurrent contextRef="P10_01_2023To09_30_2024" id="ixv-936">Yes</dei:EntityInteractiveDataCurrent>
    <dei:EntityFilerCategory contextRef="P10_01_2023To09_30_2024" id="ixv-937">Accelerated Filer</dei:EntityFilerCategory>
    <dei:EntitySmallBusiness contextRef="P10_01_2023To09_30_2024" id="ixv-938">false</dei:EntitySmallBusiness>
    <dei:EntityEmergingGrowthCompany contextRef="P10_01_2023To09_30_2024" id="ixv-939">false</dei:EntityEmergingGrowthCompany>
    <dei:IcfrAuditorAttestationFlag contextRef="P10_01_2023To09_30_2024" id="ixv-940">false</dei:IcfrAuditorAttestationFlag>
    <dei:DocumentFinStmtErrorCorrectionFlag contextRef="P10_01_2023To09_30_2024" id="ixv-941">false</dei:DocumentFinStmtErrorCorrectionFlag>
    <dei:EntityShellCompany contextRef="P10_01_2023To09_30_2024" id="ixv-942">false</dei:EntityShellCompany>
    <dei:EntityPublicFloat
      contextRef="PAsOn03_31_2024"
      decimals="-5"
      id="ixv-943"
      unitRef="Unit_USD">433600000</dei:EntityPublicFloat>
    <dei:EntityCommonStockSharesOutstanding
      contextRef="PAsOn02_10_2025"
      decimals="-6"
      id="ixv-944"
      unitRef="Unit_shares">65296094000000</dei:EntityCommonStockSharesOutstanding>
    <dei:DocumentsIncorporatedByReferenceTextBlock contextRef="P10_01_2023To09_30_2024" id="ixv-226">Documents Incorporated by Reference: Portions of the Registrant&#x2019;s Proxy Statement relating to the Registrant&#x2019;s 2025 Annual Meeting of Stockholders, filed pursuant to Regulation 14A with the Securities and Exchange Commission on December&#160;11, 2024, are incorporated by reference into Part III of this Annual Report on Form &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;10-K.&lt;/div&gt;</dei:DocumentsIncorporatedByReferenceTextBlock>
    <dei:AmendmentDescription contextRef="P10_01_2023To09_30_2024" id="ixv-243">PennantPark Investment Corporation, a Maryland corporation, or together with its subsidiaries, where applicable, or the Company, which may also be referred to as &#x201c;we,&#x201d; &#x201c;us&#x201d; or &#x201c;our,&#x201d; is filing this Amendment No.&#160;1, or the Amendment, to our Annual Report on Form 10-K for the fiscal year ended September&#160;30, 2024, or the Form 10-K, which was initially filed with the Securities and Exchange Commission, or the SEC, on November&#160;26, 2024. We are filing this Amendment to provide audited financial statements for our investment in an unconsolidated portfolio company, JF Holdings Corp. (&#x201c;JF Holdings&#x201d;), for the years ended December&#160;31, 2024 and 2023 (as Exhibit 99.3), and financial statements for our investment in JF Holdings for the years ended December&#160;31, 2023 and 2022 (as Exhibit 99.2). We have determined that this unconsolidated portfolio company has met the conditions of a significant subsidiary under Rule 1-02(w) of Regulation S-X for which we are required, pursuant to Rule 3-09 of Regulation S-X, to provide separate financial statements as exhibits to the Form 10-K. In accordance with Rule 3-09(b)(1), the separate audited financial statements of JF Holdings are being filed as an amendment to the Form 10-K. This Amendment also includes the filing of new Exhibits 31.1, 31.2, 32.1 and 32.2, certifications of our Chief Executive Officer and Chief Financial Officer, pursuant to Rule 13a-14(a) and (b)&#160;of the Securities Exchange Act of 1934, as amended. Except as described above, no other changes have been made to the Form 10-K. This Amendment does not reflect subsequent events that may have occurred after the original filing date of the Form 10-K or modify or update in any way disclosures made in the Form 10-K, except as required to reflect the revisions discussed above. Among other things, forward-looking statements made in the Form 10-K have not been revised to reflect events that occurred or facts that became known to us after filing of the Form 10-K, and such forward-looking statements should be read in their historical context. Furthermore, this Amendment should be read in conjunction with the Form 10-K and with our subsequent filings with the SEC. </dei:AmendmentDescription>
</xbrl>
