<?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-20260115.xsd" xlink:type="simple"/>
    <context id="C_e0668462-3626-4b97-8252-f8863fca64e4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001383414</identifier>
        </entity>
        <period>
            <startDate>2026-01-15</startDate>
            <endDate>2026-01-15</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_a8e92462-7b6d-4cee-b561-4fe2452deba3">0001383414</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_ee61ea2c-3a19-4431-bcd9-5f84d31a0819">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_102eaf85-b0ed-4647-858f-5499c187e293">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_5e374042-5a4a-47b7-ba99-c3bdcac0f48e">2026-01-16</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_6b6e56c5-d3c2-4bae-a2f9-358d5d56096f">PennantPark Investment Corporation</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_48e4f2a5-48de-43bf-ab77-8e84169d36f5">MD</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_41762109-dba6-481d-b1cb-3ef231c3bc99">814-00736</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_1b30551b-a31a-405b-b668-ab7e024db014">20-8250744</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_ac1d7cb6-c15b-4aaa-bdd1-5645b134d403">1691 Michigan Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_99d6685e-a57a-447d-87cd-7ded134b247f">Miami Beach</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_0928bf6e-b873-419d-9005-9593332c3fe0">FL</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_6c2f1a01-9059-4b57-a51d-84378a1a5676">33139</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_43c626ef-abd1-46bc-ad54-d51f71955d02">786</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_c7885d77-59d1-43e6-987b-8573e2caf195">297-9500</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_10adc305-72d4-4684-bc70-88d47bdb0300">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_44a4fe61-f6c3-4294-8f2d-8af7b45af5f3">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_a9ce2e40-767e-4cf7-97dc-e24037f6afc6">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_68130284-790c-4fd2-9bce-1a47b78d10ed">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_484c8f94-6293-49ef-ab52-33427a723d4e">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_5a0fe9cd-a569-4ad7-b342-98d112cec798">PNNT</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_51ee330a-2a63-4aeb-a05d-81c37762508e">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_e0668462-3626-4b97-8252-f8863fca64e4"
      id="F_fc601e9d-bbd6-41b2-ada6-fba07f75e4da">false</dei:EntityEmergingGrowthCompany>
</xbrl>
