<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="ck0002089126-20261005.xsd" xlink:type="simple"/>
    <context id="C_ae51950b-40ea-4c6e-996e-fa6584119cca">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0002089126</identifier>
        </entity>
        <period>
            <startDate>2026-10-05</startDate>
            <endDate>2026-10-05</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="C_ae51950b-40ea-4c6e-996e-fa6584119cca"
      id="F_021998f3-3e3b-43bb-b2a1-d6f01f68c3f2">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="C_ae51950b-40ea-4c6e-996e-fa6584119cca"
      id="F_11f2c14c-b996-410e-9400-fbeb89a86b41">0002089126</dei:EntityCentralIndexKey>
    <dei:DocumentType
      contextRef="C_ae51950b-40ea-4c6e-996e-fa6584119cca"
      id="F_87caa4f0-c434-4362-866a-20543342ca09">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_ae51950b-40ea-4c6e-996e-fa6584119cca"
      id="F_b0d23d24-9dd0-4378-a68d-146738cfe966">2026-10-05</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_ae51950b-40ea-4c6e-996e-fa6584119cca"
      id="F_11f4fa81-d488-497a-8261-b5747c578336">PennantPark Private Income Fund</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_ae51950b-40ea-4c6e-996e-fa6584119cca"
      id="F_4e274102-ca93-4238-b710-0ae755974c46">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="C_ae51950b-40ea-4c6e-996e-fa6584119cca"
      id="F_a57129bc-1b19-4625-a83f-19ced44a4e19">000-56787</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_ae51950b-40ea-4c6e-996e-fa6584119cca"
      id="F_89ef5b05-dced-4d0c-9a3a-906e3c082e28">33-4777837</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_ae51950b-40ea-4c6e-996e-fa6584119cca"
      id="F_de603f92-9e7f-4bbd-a29b-7ec59805a943">1691 Michigan Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_ae51950b-40ea-4c6e-996e-fa6584119cca"
      id="F_3b80971e-ed6c-40b9-9ca2-2f1adea15acd">Miami Beach</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_ae51950b-40ea-4c6e-996e-fa6584119cca"
      id="F_2cc82544-92f4-43f5-bf85-048d380d2817">FL</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_ae51950b-40ea-4c6e-996e-fa6584119cca"
      id="F_07f32342-90f0-4634-9918-800a0936750a">33139</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_ae51950b-40ea-4c6e-996e-fa6584119cca"
      id="F_63318cad-e4fa-4f5a-8149-df75dee9eeca">(786)</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_ae51950b-40ea-4c6e-996e-fa6584119cca"
      id="F_415655f4-5447-4898-9fdb-8a4cc66cc5b3">297-9500</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="C_ae51950b-40ea-4c6e-996e-fa6584119cca"
      id="F_0c697199-748f-4abb-8975-783973df098d">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_ae51950b-40ea-4c6e-996e-fa6584119cca"
      id="F_06d685da-a5c1-46af-bdd6-4c780c3e4428">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_ae51950b-40ea-4c6e-996e-fa6584119cca"
      id="F_27dff1ff-956b-4a58-83ad-2b1b38e59ca9">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_ae51950b-40ea-4c6e-996e-fa6584119cca"
      id="F_5a957019-8a13-47fd-9878-5fe537ced354">false</dei:PreCommencementIssuerTenderOffer>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_ae51950b-40ea-4c6e-996e-fa6584119cca"
      id="F_f97839ce-c304-4f90-b4f5-6d4b24c00045">true</dei:EntityEmergingGrowthCompany>
    <dei:EntityExTransitionPeriod
      contextRef="C_ae51950b-40ea-4c6e-996e-fa6584119cca"
      id="F_4cc374b0-3ea8-4ab2-9a18-f3dcaa944b6e">true</dei:EntityExTransitionPeriod>
</xbrl>
