<?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-20251010.xsd" xlink:type="simple"/>
    <context id="C_aaa6f187-47e2-481f-9130-e3c30c4b086a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001383414</identifier>
        </entity>
        <period>
            <startDate>2025-10-10</startDate>
            <endDate>2025-10-10</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_f8ead24c-9063-4013-8e02-a4af5b0f7e0b">true</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_a8d6d1fc-a37a-4daf-84b0-fba034186024">0001383414</dei:EntityCentralIndexKey>
    <dei:DocumentType
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_975ad33d-7df0-4ef8-a4d1-8c6c978fd7ed">8-K/A</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_e3551168-9ea6-4ed5-9a54-1429b7774377">2025-10-10</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_39d341c2-7bb9-431e-8dc9-c7a668de5568">PENNANTPARK INVESTMENT CORPORATION</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_0f72d962-e420-4b92-ba2f-731ae3d786b1">MD</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_a4b2b149-4523-4f06-8caa-0c8e5168acc6">814-00736</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_9d084f07-2e05-4d6d-9a4a-6626986e1666">20-8250744</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_4766f112-9111-43a2-b023-14554389d6c0">1691 Michigan Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_0bd91d11-b504-4320-a68f-4663b096ae21">Miami Beach</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_0da994c1-8f9a-4eab-b0d5-c7f8f89d6687">FL</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_dcd4ba46-6e30-4c40-b4ad-ab89d80f1577">33139</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_7727dea6-a082-47f0-a65b-2dcbf259c054">786</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_7e649122-c6cd-4ca1-a22f-ed489355e87e">297-9500</dei:LocalPhoneNumber>
    <dei:EntityInformationFormerLegalOrRegisteredName
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_e7f7daf4-d5aa-424d-be44-c1f03fe6204b">Not Applicable</dei:EntityInformationFormerLegalOrRegisteredName>
    <dei:WrittenCommunications
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_da8fce90-7879-4750-a973-13bb4909e2ec">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_596a98a8-f667-494a-88a7-7691e92b343f">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_edeb2097-7c7d-4402-9582-164eb083b5fe">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_409551df-8d44-4717-80f5-35f284677ca7">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_0795fe1f-907a-4ff7-98ae-fd0f7bf02992">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_5dc78ff5-83e1-49d3-8d33-950b45c1c568">PNNT</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_15ae1452-2eba-4abc-9770-7f855035a352">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_0055242d-0d86-4c53-9ecd-778673376006">false</dei:EntityEmergingGrowthCompany>
    <dei:AmendmentDescription
      contextRef="C_aaa6f187-47e2-481f-9130-e3c30c4b086a"
      id="F_286eaea7-4f78-4252-8026-cf0e4d59ec9e">	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 filed by the Company with the Securities and Exchange Commission (the &#x201c;SEC&#x201d;) on June 6, 2025 (the &#x201c;Initial 8-K&#x201d;). The sole purpose for filing this Form 8-K/A is to update certain information contained in Item 8.01 of the Initial 8-K, as described below.</dei:AmendmentDescription>
</xbrl>
