<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:cef="http://xbrl.sec.gov/cef/2026"
  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="cik0002078146-20261019.xsd" xlink:type="simple"/>
    <context id="AsOf2026-10-19">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0002078146</identifier>
        </entity>
        <period>
            <startDate>2026-10-19</startDate>
            <endDate>2026-10-19</endDate>
        </period>
    </context>
    <dei:AmendmentFlag contextRef="AsOf2026-10-19" id="Fact000003">false</dei:AmendmentFlag>
    <dei:DocumentType contextRef="AsOf2026-10-19" id="Fact000004">424B3</dei:DocumentType>
    <dei:EntityCentralIndexKey contextRef="AsOf2026-10-19" id="Fact000005">0002078146</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="AsOf2026-10-19" id="Fact000011">PENNANTPARK ENHANCED INCOME FUND</dei:EntityRegistrantName>
    <cef:InvestmentObjectivesAndPracticesTextBlock contextRef="AsOf2026-10-19" id="Fact000013">&lt;p id="xdx_803_ecef--InvestmentObjectivesAndPracticesTextBlock_zTKOvu1QdqS2" style="font: 11pt Times New Roman, Times, Serif; margin: 0 0 8pt; text-align: justify"&gt;&lt;b&gt;Effective immediately, the following replaces
the last sentence of the tenth paragraph under the section of the Prospectus entitled &#x201c;PROSPECTUS SUMMARY&#x2014;Investment Objective
and Policies&#x201d; (page 1):&lt;/b&gt;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0 0 12pt 0.5in; text-align: justify; text-indent: 0in"&gt;To enhance our returns,
we may borrow funds from time to time at the discretion of our Adviser within the levels permitted by the 1940 Act (which generally allows
us to incur leverage for up to one-third of our assets for securities representing indebtedness and up to one-half of our assets for preferred
stock) when the terms and conditions available are favorable to long-term investing and well-aligned with our investment strategy and
portfolio composition. In addition to borrowing funds directly, we expect to enter into repurchase agreement borrowing transactions as
a means of obtaining leverage. In determining whether to borrow funds, we will analyze the maturity, covenant package and rate structure
of the proposed financing as well as the risks of such financings compared to our investment outlook. The use of borrowed funds, the proceeds
of repurchase agreement borrowings or other similar financing transactions, or the proceeds of issuing preferred shares to make investments
would have its own specific set of benefits and risks, and all of the costs of such leverage would be borne by holders of our shares.
See &#x201c;Risk Factors&#x201d; for a discussion of the risks inherent to employing leverage.&lt;/p&gt;




&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0 0 8pt; text-align: justify"&gt;&lt;b&gt;Effective immediately, the following replaces
the eleventh paragraph under the section of the Prospectus entitled &#x201c;PRINCIPAL INVESTMENT OBJECTIVE, POLICIES AND STRATEGIES&#x2014;Investment
Objective&#x201d; (page 20):&lt;/b&gt;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0 0 12pt 0.5in; text-align: justify; text-indent: 0in"&gt;To enhance our returns,
we may borrow funds from time to time at the discretion of our Adviser within the levels permitted by the 1940 Act (which generally allows
us to incur leverage for up to one-third of our assets for securities representing indebtedness and up to one-half of our assets for
preferred stock) when the terms and conditions available are favorable to long-term investing and well-aligned with our investment strategy
and portfolio composition. In addition to borrowing funds directly, we expect to enter into repurchase agreement borrowing transactions
as a means of obtaining leverage. In determining whether to borrow funds, we will analyze the maturity, covenant package and rate structure
of the proposed financing as well as the risks of such financings compared to our investment outlook. The use of borrowed funds, the
proceeds of repurchase agreement borrowings or other similar financing transactions, or the proceeds of issuing preferred shares to make
investments would have its own specific set of benefits and risks, and all of the costs of such leverage would be borne by holders of
our shares. See &#x201c;Risk Factors&#x201d; for a discussion of the risks inherent to employing leverage.&lt;/p&gt;

</cef:InvestmentObjectivesAndPracticesTextBlock>
    <cef:RiskFactorsTableTextBlock contextRef="AsOf2026-10-19" id="Fact000015">&lt;p id="xdx_806_ecef--RiskFactorsTableTextBlock_zLoYAit05Cyl" style="font: bold 11pt Times New Roman, Times, Serif; margin: 0 0 12pt; text-align: justify"&gt;Effective immediately, the following replaces
the second paragraph of the section of the Prospectus entitled &#x201c;RISK FACTORS&#x2014; Risks Related to Our Business and Structure
(page 32)&#x2014;&lt;i&gt;Rising interest rates may adversely affect the value of our portfolio investments which could have an adverse effect
on our business, financial condition and results of operations.&lt;/i&gt;&#x201d;:&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0 0 12pt 0.5in; text-align: justify; text-indent: 0in"&gt;Because we may borrow
funds, enter into repurchase agreement borrowing transactions or other similar financing transactions, and may issue preferred shares
to finance investments, our net investment income may depend, in part, upon the difference between the rate at which we borrow funds,
finance investments through repurchase agreement borrowings or other similar financing transactions, or pay distributions on preferred
shares and the rate that our investments yield. As a result, we can offer no assurance that a significant change in market interest rates
will not have a material adverse effect on our net investment income. In periods of rising interest rates, our cost of funds would increase
except to the extent we have issued fixed rate debt or preferred shares, which could reduce our net investment income.&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0 0 12pt; text-align: justify"&gt;&lt;b&gt;Effective immediately, the following disclosure
is added following the fifth paragraph of the section of the Prospectus entitled &#x201c;RISK FACTORS&#x2014;Risks Related to Debt Financing
(page 52)&#x2014;&lt;i&gt;We may incur indebtedness to make investments, which magnifies the potential for gain or loss on amounts invested in
our shares and may increase the risk of investing in our shares.&lt;/i&gt;&#x201d;:&lt;/b&gt;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0 0 12pt 0.5in; text-align: justify; text-indent: 0in"&gt;We may enter into repurchase
agreement borrowing transactions, which would be a source of leverage for the Fund. Such arrangements involve heightened risks, including
the risk that the counterparty may default on its obligations.&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0 0 12pt; text-align: justify"&gt;&lt;b&gt;Effective immediately, the following disclosure
is added immediately following the section of the Prospectus entitled &#x201c;RISK FACTORS&#x2014;Risks Related to Our Investments (page
51)&#x2014;&lt;i&gt;Mezzanine debt, including senior unsecured and subordinated loans, is not secured by any collateral and is effectively subordinated
to the borrower&#x2019;s secured indebtedness (to the extent of the collateral securing such indebtedness).&lt;/i&gt;&#x201d;:&lt;/b&gt;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0 0 12pt 0.5in; text-align: justify"&gt;&lt;b&gt;&lt;i&gt;Repurchase agreement borrowings
have the same economic effect as borrowing money and therefore gives risk to leverage and other risks, including counterparty risks. &lt;/i&gt;&lt;/b&gt;&lt;/p&gt;




&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0 0 12pt 0.5in; text-align: justify"&gt;The Fund may enter into repurchase agreement
borrowing transactions with respect to its portfolio investments subject to the investment restrictions set forth herein. Repurchase agreement
borrowing transactions involve the sale of securities held by the Fund with an agreement by the Fund to repurchase the securities at an
agreed upon price, date and interest payment. The Fund expects to use repurchase agreement borrowings as a primary means of obtaining
leverage for investment purposes, as the Fund, acting as seller, would receive cash from a counterparty at the outset of such a transaction
and generally reinvests those proceeds in additional portfolio investments in accordance with its investment objective and policies, while
remaining obligated to repurchase the same securities from the counterparty at an agreed-upon price (which reflects a financing or &#x201c;repo&#x201d;
rate) on an agreed-upon date. Although structured as a sale and repurchase transaction, a repurchase agreement borrowing transaction functions
as a financing transaction in which the Fund effectively pledges the subject securities as collateral to secure a short-term loan, with
the counterparty advancing cash in an amount equal to a percentage of the market value of the pledged securities. A reverse repurchase
agreement has the same economic effect as borrowing money and therefore gives rise to leverage risk.&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0 0 12pt 0.5in; text-align: justify"&gt;Repurchase agreement borrowing transactions
also involve the risk that the buyer of the securities sold might be unable to deliver them when the selling investor seeks to repurchase.
If a counterparty fails to perform, the Fund could lose money to the extent that the proceeds it received from the transaction, together
with any collateral held by the Fund (including the value of any investments made with cash proceeds), are less than the value of the
securities the Fund is obligated to repurchase, or to the extent the Fund is delayed or limited in recovering the securities or the collateral.
The Fund will seek to enter into repurchase agreement borrowing transactions only with counterparties that the Adviser believes present
acceptable credit risk, and the Adviser will monitor the Fund&#x2019;s exposure to each counterparty, but there can be no assurance that
these measures will be sufficient to protect the Fund against loss. In the event that the buyer of securities under such an arrangement
files for bankruptcy or becomes insolvent, the buyer, trustee or receiver may receive an extension of time to determine whether to enforce
the seller&#x2019;s (e.g., the Fund) obligation to repurchase the securities, and the seller&#x2019;s use of the proceeds of the repurchase
agreement borrowing transaction may effectively be restricted pending such decision. Also, the seller would bear the risk of loss to the
extent that the proceeds of the repurchase agreement borrowing transaction are less than the value of the securities subject to such agreement.&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0 0 12pt 0.5in; text-align: justify"&gt;In October 2020, the SEC adopted Rule
18f-4 related to the use of derivatives, short sales, reverse repurchase agreements, and certain other transactions by registered investment
companies (the &#x201c;derivatives rule&#x201d;). Under the derivatives rule, when a fund trades reverse repurchase agreements or similar
financing transactions, it needs to aggregate the amount of indebtedness associated with the reverse repurchase agreements or similar
financing transactions with the aggregate amount of any other senior securities representing indebtedness (e.g., bank borrowings, if
applicable) when calculating the Fund&#x2019;s asset coverage ratio or treat all such transactions as derivatives transactions.&lt;/p&gt;

</cef:RiskFactorsTableTextBlock>
</xbrl>
