<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2022"
  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-20220930.xsd" xlink:type="simple"/>
    <context id="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001383414</identifier>
        </entity>
        <period>
            <startDate>2021-10-01</startDate>
            <endDate>2022-09-30</endDate>
        </period>
    </context>
    <context id="C_97cf608e-9399-4f92-8b4d-a27fb6e2228e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001383414</identifier>
        </entity>
        <period>
            <instant>2022-12-22</instant>
        </period>
    </context>
    <context id="C_14856ff5-700a-4d68-9e28-2d56a011de61">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001383414</identifier>
        </entity>
        <period>
            <instant>2022-03-31</instant>
        </period>
    </context>
    <unit id="U_shares">
        <measure>shares</measure>
    </unit>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_c5e65d06-9d1e-448c-a51d-5f16690bef21">0001383414</dei:EntityCentralIndexKey>
    <dei:DocumentFiscalPeriodFocus
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_ba678f81-227d-4e27-8f4c-2833017cbb23">FY</dei:DocumentFiscalPeriodFocus>
    <dei:CurrentFiscalYearEndDate
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_7769d177-346f-4fac-964b-144971046318">--09-30</dei:CurrentFiscalYearEndDate>
    <dei:AmendmentFlag
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_6c878b63-4943-44e4-90f1-890a694389c9">true</dei:AmendmentFlag>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_5b4b33a6-c593-41cd-b013-b036dc9efab5">MD</dei:EntityIncorporationStateCountryCode>
    <dei:DocumentType
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_0b7807fd-da1d-4ce5-b5df-2aa61e1f0c74">10-K/A</dei:DocumentType>
    <dei:DocumentAnnualReport
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_d36c743d-9168-4842-8838-aa0b79499e0f">true</dei:DocumentAnnualReport>
    <dei:DocumentPeriodEndDate
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_6b4dcd61-1ae8-4a5f-a306-b74e3170d1f8">2022-09-30</dei:DocumentPeriodEndDate>
    <dei:DocumentFiscalYearFocus
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_831dcd58-3d0f-48e2-80e0-fee2185fd543">2022</dei:DocumentFiscalYearFocus>
    <dei:DocumentTransitionReport
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_a624cbf0-a644-4c1a-9498-9dcb734eaf65">false</dei:DocumentTransitionReport>
    <dei:EntityFileNumber
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_3512d487-5d6c-4258-80c3-965d6dc641e1">814-00736</dei:EntityFileNumber>
    <dei:EntityRegistrantName
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_6a5e62a0-2f1f-4269-958b-e994539e962e">PENNANTPARK INVESTMENT CORPORATION</dei:EntityRegistrantName>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_c5afc6ae-af2c-49ee-82a0-32cbde64d4a8">20-8250744</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_0ee04a1c-bbed-42ab-9498-6cdf119d7dd5">1691 Michigan Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_22192c87-b1bd-4a6b-b7c1-47eb01b37396">Miami</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_d02c1814-a5c6-4205-86ab-7fde6e25bdb5">FL</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_3696af40-ea6f-4918-857b-8a04bf54dc69">33319</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_362e1494-3b25-4236-99c0-c70627f45bcb">(786</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_bf9f27cf-ecb3-4992-9703-c97673cdaedb">297-9500</dei:LocalPhoneNumber>
    <dei:Security12bTitle
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_ec4de0e5-6b29-4231-82af-8962bd0c0ae2">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_4d11f29d-23e7-4ca6-b4fd-161c14e60a30">PNNT</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_d12e26e8-5b7c-4767-8404-82cf38b14eed">NYSE</dei:SecurityExchangeName>
    <dei:EntityWellKnownSeasonedIssuer
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_ac8b934e-859d-4147-acff-b73a56475f0d">No</dei:EntityWellKnownSeasonedIssuer>
    <dei:EntityVoluntaryFilers
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_957eeeef-e2ef-4db2-9660-1ef611f9dfb1">No</dei:EntityVoluntaryFilers>
    <dei:EntityCurrentReportingStatus
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_579c0408-4312-4eb7-b4cf-425c0445801a">Yes</dei:EntityCurrentReportingStatus>
    <dei:EntityInteractiveDataCurrent
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_3aa33423-f90a-470a-8f8a-b5e76e435c72">Yes</dei:EntityInteractiveDataCurrent>
    <dei:EntityFilerCategory
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_8896d52a-eb22-4e3b-b198-c0dd903013cf">Non-accelerated Filer</dei:EntityFilerCategory>
    <dei:EntitySmallBusiness
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_995905fd-b62c-48f9-94f1-d663422b3e4a">false</dei:EntitySmallBusiness>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_d8950cf1-3b15-4793-8ce9-750087a5100b">false</dei:EntityEmergingGrowthCompany>
    <dei:IcfrAuditorAttestationFlag
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_75668987-5520-487e-9417-1f46247ca07a">false</dei:IcfrAuditorAttestationFlag>
    <dei:EntityShellCompany
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_33d5dd65-cade-425f-b344-1989a81406c0">false</dei:EntityShellCompany>
    <dei:EntityPublicFloat
      contextRef="C_14856ff5-700a-4d68-9e28-2d56a011de61"
      decimals="-5"
      id="F_2b7acd42-6dab-40d5-adaf-8c819378d551"
      unitRef="U_USD">514500000</dei:EntityPublicFloat>
    <dei:EntityCommonStockSharesOutstanding
      contextRef="C_97cf608e-9399-4f92-8b4d-a27fb6e2228e"
      decimals="0"
      id="F_e35b342c-46ed-4da1-92b0-90870406bbd4"
      unitRef="U_shares">65224500</dei:EntityCommonStockSharesOutstanding>
    <dei:DocumentsIncorporatedByReferenceTextBlock
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_cea851f7-fabd-447e-b630-f76d08ed7567">&lt;p style="text-indent:4.0%;font-size:10.0pt;margin-top:0.0pt;font-family:Times New Roman;margin-bottom:0.0pt;text-align:left;"&gt;&lt;span style="background-color:rgba(0,0,0,0);color:rgba(0,0,0,1);white-space:pre-wrap;font-weight:normal;font-size:8.0pt;font-family:&amp;quot;Times New Roman&amp;quot;, serif;min-width:fit-content;"&gt;Documents Incorporated by Reference: Portions of the Registrant&#x2019;s Proxy Statement relating to its 2022 Annual Meeting of Stockholders, filed pursuant to Regulation 14A with the Securities and Exchange Commission on December 7, 2022, are incorporated by reference into Part III of this Annual Report on Form 10-K.&lt;/span&gt;&lt;/p&gt;</dei:DocumentsIncorporatedByReferenceTextBlock>
    <dei:AmendmentDescription
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_27e40ddf-2860-4a97-8224-feb6faa492d2">EXPLANATORY NOTE  &#160;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. 1, or the Amendment, to our Annual Report on Form 10-K for the fiscal year ended September 30, 2022, or the Form 10-K, which was initially filed with the Securities and Exchange Commission, or the SEC, on November 17, 2022.  &#160;We are filing this Amendment to provide stand-alone audited financial statements for our investment in an unconsolidated controlled portfolio company, RAM Energy Holdings LLC, or RAM Holdings, as of and for the year ended September 30, 2022 (as Exhibit 99.2) as well as of and for the years ended September 30, 2021 (as Exhibit 99.3) and September 30, 2020 (as Exhibit 99.4). &#160;We have determined that this unconsolidated controlled 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 audited financial statements as exhibits to the Form 10-K. In accordance with Rule 3-09(b)(1), the separate audited financial statements of RAM Holdings are being filed as an amendment to the Form 10-K, within 90 days after the end of RAM Holdings' fiscal year. &#160;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) of the Securities Exchange Act of 1934, as amended, and also corrects the numbering, hyperlink and exhibit description for Exhibit 10.9 below.  &#160;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>
    <dei:AuditorName
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_d8a454c8-0e6e-41a9-a56b-6da34248ae0e">RSM US LLP</dei:AuditorName>
    <dei:AuditorLocation
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_4b53f0eb-8709-40e9-b892-aba32f8108cb">New York, New York</dei:AuditorLocation>
    <dei:AuditorFirmId
      contextRef="C_e7b62fbd-d48e-4dfd-8488-1b2f9f5e9f8c"
      id="F_2c252828-40fe-4563-b8ab-1acc3b2ef9be">49</dei:AuditorFirmId>
</xbrl>
