<?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="palmer-20260731.xsd" xlink:type="simple"/>
    <context id="From2025-08-01to2026-07-31">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001608016</identifier>
        </entity>
        <period>
            <startDate>2025-08-01</startDate>
            <endDate>2026-07-31</endDate>
        </period>
    </context>
    <dei:AmendmentFlag contextRef="From2025-08-01to2026-07-31" id="Fact000003">false</dei:AmendmentFlag>
    <dei:EntityInvCompanyType contextRef="From2025-08-01to2026-07-31" id="Fact000004">N-2</dei:EntityInvCompanyType>
    <dei:EntityCentralIndexKey contextRef="From2025-08-01to2026-07-31" id="Fact000005">0001608016</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="From2025-08-01to2026-07-31" id="Fact000011">N-CSR</dei:DocumentType>
    <dei:EntityRegistrantName contextRef="From2025-08-01to2026-07-31" id="Fact000012">Palmer Square Opportunistic Income Fund</dei:EntityRegistrantName>
    <dei:DocumentPeriodEndDate contextRef="From2025-08-01to2026-07-31" id="Fact000013">2026-07-31</dei:DocumentPeriodEndDate>
    <cef:InvestmentObjectivesAndPracticesTextBlock contextRef="From2025-08-01to2026-07-31" id="Fact000015">&lt;p id="xdx_806_ecef--InvestmentObjectivesAndPracticesTextBlock_dU_zI971IStkag7" style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: justify"&gt;The Fund&#x2019;s investment objective is to seek a
high level of current income. As a secondary objective, the Fund seeks long-term capital appreciation.&lt;/p&gt;

</cef:InvestmentObjectivesAndPracticesTextBlock>
    <cef:CapitalStockTableTextBlock contextRef="From2025-08-01to2026-07-31" id="Fact000017">&lt;p id="xdx_806_ecef--CapitalStockTableTextBlock_dU_zoqhpK8z5iQ9" style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: justify"&gt;&lt;b&gt;14. Capital Stock&lt;/b&gt;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: justify"&gt;The Fund is authorized as a Delaware statutory trust
to issue an unlimited number of Shares. The minimum initial investment in the Fund by any investor is $100,000. However, there is no initial
or subsequent investment minimums for accounts maintained by financial institutions (such as registered investment advisers and trusts)
for the benefit of their clients who purchase shares through investment programs such as (1) fee-based advisory programs; (2) employee
benefit plans (e.g., 401(k) or 457(b) retirement plans; (3) mutual fund platforms; and (4) consulting firms. In addition, there is no
initial or subsequent investment minimum for Trustees or officers of the Fund, directors, officers and employees of Palmer Square Capital
Management, LLC (the &#x201c;Advisor&#x201d;) or Foreside Fund Services, LLC (the &#x201c;Distributor&#x201d;) or any of their affiliates.
Minimum investment amounts may be waived in the discretion of the Fund or the Advisor. The Distributor is not required to sell any specific
number or dollar amount of the Fund&#x2019;s shares but will use commercially reasonable efforts to sell the shares.&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: justify"&gt;&#160;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: justify"&gt;A substantial portion of the Fund&#x2019;s investments
will be illiquid. For this reason, the Fund is structured as a closed-end interval fund, which means that the Shareholders will not have
the right to redeem their Shares on a daily basis. In addition, the Fund does not expect any trading market to develop for the Shares.
As a result, if investors decide to invest in the Fund, they will have very limited opportunity to sell their Shares. For each repurchase
offer the Board will set an amount between 5% and 25% of the Fund&#x2019;s Shares based on relevant factors, including the liquidity of
the Fund&#x2019;s positions and the Shareholders&#x2019; desire for liquidity. A Shareholder whose Shares (or a portion thereof) are repurchased
by the Fund will not be entitled to a return of any sales charge that was charged in connection with the Shareholder&#x2019;s purchase
of the Shares.&lt;/p&gt;

</cef:CapitalStockTableTextBlock>
    <cef:ExpenseExampleTableTextBlock contextRef="From2025-08-01to2026-07-31" id="Fact000019">&lt;p id="xdx_807_ecef--ExpenseExampleTableTextBlock_dU_zZsXADTDaPij" style="font: 11pt Times New Roman, Times, Serif; margin: 0"&gt;&lt;b&gt;Expense Example&lt;/b&gt;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: justify"&gt;As a shareholder of the Fund, you incur two types
of costs: (1) transaction costs, and (2) ongoing costs, including management fees and other Fund expenses. The examples below are intended
to help you understand your ongoing costs (in dollars) of investing in the Fund and to compare these costs with the ongoing costs of investing
in other mutual funds.&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: justify"&gt;&#160;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: justify"&gt;These examples are based on an investment of $1,000
invested at the beginning of the period and held for the entire period from February 1, 2026 to July 31, 2026.&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: justify"&gt;&lt;b&gt;&#160;&lt;/b&gt;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: justify"&gt;&lt;b&gt;Actual Expenses&lt;/b&gt;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: justify"&gt;The information in the row titled &#x201c;Actual Performance&#x201d;
of the table below provides actual account values and actual expenses. You may use the information in these columns, together with the
amount you invested, to estimate the expenses that you paid over the period. Simply divide your account value by $1,000 (for example,
an $8,600 account value divided by $1,000 = 8.6), then multiply the result by the number in the appropriate row under the column titled
&#x201c;Expenses Paid During Period&#x201d; to estimate the expenses you paid on your account during this period.&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: justify"&gt;&lt;b&gt;&#160;&lt;/b&gt;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: justify"&gt;&lt;b&gt;Hypothetical Example for Comparison Purposes&lt;/b&gt;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: justify"&gt;The information in the row titled &#x201c;Hypothetical
(5% annual return before expenses)&#x201d; of the table below provides hypothetical account values and hypothetical expenses based on the
Fund&#x2019;s actual expense ratios and an assumed rate of return of 5% per year before expenses, which is not the Fund&#x2019;s actual
return. The hypothetical account values and expenses may not be used to estimate the actual ending account balance or expenses you paid
for the period. You may use this information to compare the ongoing costs of investing in the Fund and other funds. To do so, compare
these 5% hypothetical examples with the 5% hypothetical examples that appear in the shareholder reports of the other funds.&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: justify"&gt;&#160;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: justify"&gt;Please note that the expenses shown in the table are
meant to highlight your ongoing costs only and do not reflect any transaction costs, such as sales charges (load) or contingent deferred
sales charges. Therefore, the information in the row titled &#x201c;Hypothetical (5% annual return before expenses)&#x201d; is useful in
comparing ongoing costs only, and will not help you determine the relative total costs of owning different funds. In addition, if these
transactional costs were included, your costs would have been higher.&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0"&gt;&#160;&lt;/p&gt;

&lt;table cellpadding="0" cellspacing="0" style="font: 11pt Times New Roman, Times, Serif; width: 100%; border-collapse: collapse"&gt;
  &lt;tr style="vertical-align: top"&gt;
    &lt;td style="border-top: Black 1pt solid; border-bottom: Black 1pt solid; border-left: Black 1pt solid; padding-left: 2pt; width: 55%"&gt;&#160;&lt;/td&gt;
    &lt;td style="border-top: Black 1pt solid; border-bottom: Black 1pt solid; vertical-align: bottom; width: 15%; text-align: center"&gt;&lt;span style="font-size: 11pt"&gt;Beginning&lt;br/&gt;
Account Value&lt;/span&gt;&lt;/td&gt;
    &lt;td style="border-top: Black 1pt solid; border-bottom: Black 1pt solid; text-align: center; width: 15%; vertical-align: bottom"&gt;
    &lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0"&gt;Ending&lt;/p&gt;
    &lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0"&gt;Account Value&lt;/p&gt;&lt;/td&gt;
    &lt;td style="border-top: Black 1pt solid; border-right: Black 1pt solid; border-bottom: Black 1pt solid; vertical-align: bottom; width: 15%; text-align: center"&gt;&lt;span style="font-size: 11pt"&gt;Expenses Paid&lt;br/&gt;
During Period*&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr style="vertical-align: top"&gt;
    &lt;td style="border-bottom: Black 1pt solid; border-left: Black 1pt solid; padding-left: 2pt"&gt;&#160;&lt;/td&gt;
    &lt;td style="border-bottom: Black 1pt solid; text-align: center"&gt;&lt;span style="font-size: 11pt"&gt;2/1/26&lt;/span&gt;&lt;/td&gt;
    &lt;td style="border-bottom: Black 1pt solid; text-align: center"&gt;&lt;span style="font-size: 11pt"&gt;7/31/26&lt;/span&gt;&lt;/td&gt;
    &lt;td style="border-right: Black 1pt solid; border-bottom: Black 1pt solid; text-align: center"&gt;&lt;span style="font-size: 11pt"&gt;2/1/26-7/31/26&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr style="vertical-align: top; background-color: Gainsboro"&gt;
    &lt;td style="border-bottom: Black 1pt solid; border-left: Black 1pt solid; padding-left: 2pt"&gt;&lt;span style="font-size: 11pt"&gt;Actual Performance&lt;/span&gt;&lt;/td&gt;
    &lt;td style="border-bottom: Black 1pt solid; text-align: center"&gt;&lt;span style="font-size: 11pt"&gt;$1,000.00&lt;/span&gt;&lt;/td&gt;
    &lt;td style="border-bottom: Black 1pt solid; text-align: center"&gt;&lt;span style="font-size: 11pt"&gt;$1,010.10&lt;/span&gt;&lt;/td&gt;
    &lt;td style="border-right: Black 1pt solid; border-bottom: Black 1pt solid; text-align: center"&gt;&lt;span style="font-size: 11pt"&gt;$9.64&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr style="vertical-align: top; background-color: White"&gt;
    &lt;td style="border-bottom: Black 1pt solid; border-left: Black 1pt solid; padding-left: 2pt"&gt;&lt;span style="font-size: 11pt"&gt;Hypothetical (5% annual return before expenses)&lt;/span&gt;&lt;/td&gt;
    &lt;td style="border-bottom: Black 1pt solid; text-align: center"&gt;&lt;span style="font-size: 11pt"&gt;$1,000.00&lt;/span&gt;&lt;/td&gt;
    &lt;td style="border-bottom: Black 1pt solid; text-align: center"&gt;&lt;span style="font-size: 11pt"&gt;$1,024.79&lt;/span&gt;&lt;/td&gt;
    &lt;td style="border-right: Black 1pt solid; border-bottom: Black 1pt solid; text-align: center"&gt;&lt;span style="font-size: 11pt"&gt;$9.71&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0 0 0 4.4pt"&gt;&#160;&lt;/p&gt;

&lt;table cellpadding="0" cellspacing="0" style="font: 11pt Times New Roman, Times, Serif; margin-top: 0pt; margin-bottom: 0pt; width: 100%"&gt;&lt;tr style="vertical-align: top; text-align: justify"&gt;
&lt;td style="width: 0pt"&gt;&lt;/td&gt;&lt;td style="width: 20pt; text-align: left"&gt;*&lt;/td&gt;&lt;td style="text-align: justify"&gt;Expenses are equal to the Fund&#x2019;s annualized expense ratio
of 1.93% multiplied by the average account value over the period, multiplied by 181/365 (to reflect the six month period). Assumes all
dividends and distributions were reinvested.&lt;/td&gt;
&lt;/tr&gt;&lt;/table&gt;

</cef:ExpenseExampleTableTextBlock>
</xbrl>
