<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:cef="http://xbrl.sec.gov/cef/2025"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:pmhifi="http://pmhifi.com/20260430"
  xmlns:us-gaap="http://fasb.org/us-gaap/2025"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="pmhifi-20260430.xsd" xlink:type="simple"/>
    <context id="P05_01_2025To04_30_2026">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001223026</identifier>
        </entity>
        <period>
            <startDate>2025-05-01</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="PAsOn04_30_2026">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001223026</identifier>
        </entity>
        <period>
            <instant>2026-04-30</instant>
        </period>
    </context>
    <context id="P05_01_2025To04_30_2026_RiskMembercefRiskAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001223026</identifier>
            <segment>
                <xbrldi:explicitMember dimension="cef:RiskAxis">pmhifi:RiskMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-05-01</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="P05_01_2025To04_30_2026_CommonSharesMemberusgaapStatementClassOfStockAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001223026</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">pmhifi:CommonSharesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-05-01</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="P05_01_2024To04_30_2025_CommonSharesMemberusgaapStatementClassOfStockAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001223026</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">pmhifi:CommonSharesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-05-01</startDate>
            <endDate>2025-04-30</endDate>
        </period>
    </context>
    <unit id="Unit_shares">
        <measure>shares</measure>
    </unit>
    <unit id="Unit_USD_per_Share">
        <divide>
            <unitNumerator>
                <measure>iso4217:USD</measure>
            </unitNumerator>
            <unitDenominator>
                <measure>shares</measure>
            </unitDenominator>
        </divide>
    </unit>
    <dei:EntityCentralIndexKey contextRef="P05_01_2025To04_30_2026" id="ixv-3440">0001223026</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag contextRef="P05_01_2025To04_30_2026" id="ixv-3441">false</dei:AmendmentFlag>
    <dei:DocumentType contextRef="P05_01_2025To04_30_2026" id="ixv-3490">N-CSR</dei:DocumentType>
    <dei:EntityRegistrantName contextRef="P05_01_2025To04_30_2026" id="ixv-3491">Pioneer Municipal High Income Fund, Inc.</dei:EntityRegistrantName>
    <us-gaap:NetAssetValuePerShare
      contextRef="PAsOn04_30_2026"
      decimals="2"
      id="Fact_168437245"
      unitRef="Unit_USD_per_Share">0.19</us-gaap:NetAssetValuePerShare>
    <cef:InvestmentObjectivesAndPracticesTextBlock contextRef="P05_01_2025To04_30_2026" id="ixv-3493">the Fund has been operating under a Plan of Liquidation and Dissolution, and is in the process of winding up its business and affairs, paying its liabilities and distributing its remaining assets to stockholders (see Note 8). Accordingly, the Fund no longer pursues its stated investment objective, complies with its investment limitations or engages in normal business activities.</cef:InvestmentObjectivesAndPracticesTextBlock>
    <cef:RiskTextBlock
      contextRef="P05_01_2025To04_30_2026_RiskMembercefRiskAxis"
      id="ixv-1823">
&lt;table style="text-align:start; border-collapse:collapse;empty-cells:show;margin-top:0pt;width:100%"&gt;
&lt;tr style="page-break-inside:avoid"&gt;
&lt;td style="color: rgb(0, 0, 0); font-family: Arial; font-size: 9pt; font-style: normal; line-height: 12pt; padding-left: 0pt; padding-right: 2pt; text-align: left; text-decoration: none; text-transform: none; vertical-align: top; white-space: nowrap; width: 3.8%;"&gt;&lt;div style="font-weight:bolder;display:inline;"&gt;E. &lt;/div&gt;&lt;/td&gt;
&lt;td style="color: rgb(0, 0, 0); font-family: Arial; font-size: 9pt; font-style: normal; line-height: 12pt; padding-left: 2pt; text-align: left; text-decoration: none; text-transform: none; vertical-align: top; white-space: nowrap; width: 96.2%;"&gt;&lt;div style="font-weight:bolder;display:inline;"&gt;Risks &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="page-break-inside:avoid"&gt;
&lt;td style="line-height:0pt;padding-bottom:0pt;padding-left:0pt;padding-right:2pt;text-align:left;vertical-align:top;width:3.80%"&gt;&#160; &lt;/td&gt;
&lt;td style="color:#000000;font-family:Arial;font-size:9pt;font-style:Normal;font-weight:Normal;line-height:12pt;padding-bottom:0pt;padding-left:2pt;text-align:left;text-decoration:none;text-transform:none;vertical-align:top; width:96.20%"&gt;Prior to the Fund's liquidation (See Note 8), the Fund invested substantially all of its assets in municipal securities. The municipal bond market can be susceptible to unusual volatility, particularly for lower-rated and unrated securities. Liquidity can be reduced unpredictably in response to overall economic conditions or credit tightening. Municipal issuers may be adversely affected by rising health care costs, increasing unfunded pension liabilities, and by the phasing out of federal programs providing financial support. Unfavorable conditions and developments relating to projects financed with municipal securities can result in lower revenues to issuers of municipal securities, potentially resulting in defaults. Issuers often depend on revenues from these projects to make principal and interest payments. The value of municipal securities can also be adversely affected by changes in the financial condition of one or more individual municipal issuers or insurers of municipal issuers, regulatory and political developments, tax law changes or other legislative actions, and by uncertainties and public perceptions &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt; 
&lt;table cellpadding="7" cellspacing="0" style="text-align:start; border-collapse:collapse;empty-cells:show;margin-top:0pt;width:100%"&gt;
&lt;tr style="page-break-inside:avoid"&gt;
&lt;td style="line-height:0pt;padding-left:0pt;padding-right:2pt;text-align:left;vertical-align:top;width:3.80%"&gt;&#160; &lt;/td&gt;
&lt;td style="color:#000000;font-family:Arial;font-size:9pt;font-style:Normal;font-weight:Normal;line-height:12pt;padding-left:2pt;text-align:left;text-decoration:none;text-transform:none;vertical-align:top;width:96.20%"&gt;concerning these and other factors. Municipal securities may be more susceptible to down-grades or defaults during recessions or similar periods of economic stress. Financial difficulties of municipal issuers may continue or get worse, particularly in the event of economic or market turmoil or a recession. To the extent the Fund invests significantly in a single state (including California and Massachusetts), city, territory (including Puerto Rico), or region, or in securities the payments on which are dependent upon a single project or source of revenues, or that relate to a sector or industry, including health care facilities, education, transportation, special revenues and pollution control, the Fund will be more susceptible to associated risks and developments. &lt;/td&gt;&lt;/tr&gt;
&lt;tr style="page-break-inside:avoid"&gt;
&lt;td style="line-height:0pt;padding-left:0pt;padding-right:2pt;text-align:left;vertical-align:top;width:3.80%"&gt;&#160; &lt;/td&gt;
&lt;td style="color:#000000;font-family:Arial;font-size:9pt;font-style:Normal;font-weight:Normal;line-height:12pt;padding-left:2pt;text-align:left;text-decoration:none;text-transform:none;vertical-align:top;width:96.20%"&gt;The Fund invested in below investment grade (high yield) municipal securities. Debt securities rated below investment grade are commonly referred to as &#x201c;junk bonds&#x201d; and are considered speculative with respect to the issuer&#x2019;s capacity to pay interest and repay principal. These securities involve greater risk of loss, are subject to greater price volatility, and may be less liquid and more difficult to value, especially during periods of economic uncertainty or change, than higher rated debt securities. &lt;/td&gt;&lt;/tr&gt;
&lt;tr style="page-break-inside:avoid"&gt;
&lt;td style="line-height:0pt;padding-left:0pt;padding-right:2pt;text-align:left;vertical-align:top;width:3.80%"&gt;&#160; &lt;/td&gt;
&lt;td style="color:#000000;font-family:Arial;font-size:9pt;font-style:Normal;font-weight:Normal;line-height:12pt;padding-left:2pt;text-align:left;text-decoration:none;text-transform:none;vertical-align:top;width:96.20%"&gt;The market prices of the Fund&#x2019;s fixed income securities may fluctuate significantly when interest rates change. The value of your investment will generally go down when interest rates rise. A rise in rates tends to have a greater impact on the prices of longer term or duration securities. For example, if interest rates increase by 1%, the value of a Fund&#x2019;s portfolio with a portfolio duration of ten years would be expected to decrease by 10%, all other things being equal. A general rise in interest rates could adversely affect the price and liquidity of fixed income securities. The maturity of a security may be significantly longer than its effective duration. A security&#x2019;s maturity and other features may be more relevant than its effective duration in determining the security&#x2019;s sensitivity to other factors affecting the issuer or markets generally, such as changes in credit quality or in the yield premium that the market may establish for certain types of securities (sometimes called &#x201c;credit spread&#x201d;). In general, the longer its maturity the more a security may be susceptible to these factors. When the credit spread for a fixed income security goes up, or &#x201c;widens&#x201d;, the value of the security will generally go down. &lt;/td&gt;&lt;/tr&gt;
&lt;tr style="page-break-inside:avoid"&gt;
&lt;td style="line-height:0pt;padding-bottom:0pt;padding-left:0pt;padding-right:2pt;text-align:left;vertical-align:top;width:3.80%"&gt;&#160; &lt;/td&gt;
&lt;td style="color:#000000;font-family:Arial;font-size:9pt;font-style:Normal;font-weight:Normal;line-height:12pt;padding-bottom:0pt;padding-left:2pt;text-align:left;text-decoration:none;text-transform:none;vertical-align:top; width:96.20%"&gt;If an issuer or guarantor of a security held by the Fund or a counterparty to a financial contract with the Fund defaults on its obligation to pay principal and/or interest, has its credit rating downgraded or is perceived to be less creditworthy, or the credit quality &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;table cellpadding="7" cellspacing="0" style="text-align:start; border-collapse:collapse;empty-cells:show;margin-top:0pt;width:100%"&gt;
&lt;tr style="page-break-inside:avoid"&gt;
&lt;td style="line-height:0pt;padding-left:0pt;padding-right:2pt;text-align:left;vertical-align:top;width:3.80%"&gt;&#160; &lt;/td&gt;
&lt;td style="color:#000000;font-family:Arial;font-size:9pt;font-style:Normal;font-weight:Normal;line-height:12pt;padding-left:2pt;text-align:left;text-decoration:none;text-transform:none;vertical-align:top;width:96.20%"&gt;or value of any underlying assets declines, the value of your investment will typically decline. Changes in actual or perceived creditworthiness may occur quickly. The Fund could be delayed or hindered in its enforcement of rights against an issuer, guarantor or counterparty. &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</cef:RiskTextBlock>
    <cef:RiskFactorsTableTextBlock contextRef="P05_01_2025To04_30_2026" id="ixv-1824">
&lt;table style="text-align:start; border-collapse:collapse;empty-cells:show;margin-top:0pt;width:100%"&gt;
&lt;tr style="page-break-inside:avoid"&gt;
&lt;td style="color: rgb(0, 0, 0); font-family: Arial; font-size: 9pt; font-style: normal; line-height: 12pt; padding-left: 0pt; padding-right: 2pt; text-align: left; text-decoration: none; text-transform: none; vertical-align: top; white-space: nowrap; width: 3.8%;"&gt;&lt;div style="font-weight:bolder;display:inline;"&gt;E. &lt;/div&gt;&lt;/td&gt;
&lt;td style="color: rgb(0, 0, 0); font-family: Arial; font-size: 9pt; font-style: normal; line-height: 12pt; padding-left: 2pt; text-align: left; text-decoration: none; text-transform: none; vertical-align: top; white-space: nowrap; width: 96.2%;"&gt;&lt;div style="font-weight:bolder;display:inline;"&gt;Risks &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="page-break-inside:avoid"&gt;
&lt;td style="line-height:0pt;padding-bottom:0pt;padding-left:0pt;padding-right:2pt;text-align:left;vertical-align:top;width:3.80%"&gt;&#160; &lt;/td&gt;
&lt;td style="color:#000000;font-family:Arial;font-size:9pt;font-style:Normal;font-weight:Normal;line-height:12pt;padding-bottom:0pt;padding-left:2pt;text-align:left;text-decoration:none;text-transform:none;vertical-align:top; width:96.20%"&gt;Prior to the Fund's liquidation (See Note 8), the Fund invested substantially all of its assets in municipal securities. The municipal bond market can be susceptible to unusual volatility, particularly for lower-rated and unrated securities. Liquidity can be reduced unpredictably in response to overall economic conditions or credit tightening. Municipal issuers may be adversely affected by rising health care costs, increasing unfunded pension liabilities, and by the phasing out of federal programs providing financial support. Unfavorable conditions and developments relating to projects financed with municipal securities can result in lower revenues to issuers of municipal securities, potentially resulting in defaults. Issuers often depend on revenues from these projects to make principal and interest payments. The value of municipal securities can also be adversely affected by changes in the financial condition of one or more individual municipal issuers or insurers of municipal issuers, regulatory and political developments, tax law changes or other legislative actions, and by uncertainties and public perceptions &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;table cellpadding="7" cellspacing="0" style="text-align:start; border-collapse:collapse;empty-cells:show;margin-top:0pt;width:100%"&gt;
&lt;tr style="page-break-inside:avoid"&gt;
&lt;td style="line-height:0pt;padding-left:0pt;padding-right:2pt;text-align:left;vertical-align:top;width:3.80%"&gt;&#160; &lt;/td&gt;
&lt;td style="color:#000000;font-family:Arial;font-size:9pt;font-style:Normal;font-weight:Normal;line-height:12pt;padding-left:2pt;text-align:left;text-decoration:none;text-transform:none;vertical-align:top;width:96.20%"&gt;concerning these and other factors. Municipal securities may be more susceptible to down-grades or defaults during recessions or similar periods of economic stress. Financial difficulties of municipal issuers may continue or get worse, particularly in the event of economic or market turmoil or a recession. To the extent the Fund invests significantly in a single state (including California and Massachusetts), city, territory (including Puerto Rico), or region, or in securities the payments on which are dependent upon a single project or source of revenues, or that relate to a sector or industry, including health care facilities, education, transportation, special revenues and pollution control, the Fund will be more susceptible to associated risks and developments. &lt;/td&gt;&lt;/tr&gt;
&lt;tr style="page-break-inside:avoid"&gt;
&lt;td style="line-height:0pt;padding-left:0pt;padding-right:2pt;text-align:left;vertical-align:top;width:3.80%"&gt;&#160; &lt;/td&gt;
&lt;td style="color:#000000;font-family:Arial;font-size:9pt;font-style:Normal;font-weight:Normal;line-height:12pt;padding-left:2pt;text-align:left;text-decoration:none;text-transform:none;vertical-align:top;width:96.20%"&gt;The Fund invested in below investment grade (high yield) municipal securities. Debt securities rated below investment grade are commonly referred to as &#x201c;junk bonds&#x201d; and are considered speculative with respect to the issuer&#x2019;s capacity to pay interest and repay principal. These securities involve greater risk of loss, are subject to greater price volatility, and may be less liquid and more difficult to value, especially during periods of economic uncertainty or change, than higher rated debt securities. &lt;/td&gt;&lt;/tr&gt;
&lt;tr style="page-break-inside:avoid"&gt;
&lt;td style="line-height:0pt;padding-left:0pt;padding-right:2pt;text-align:left;vertical-align:top;width:3.80%"&gt;&#160; &lt;/td&gt;
&lt;td style="color:#000000;font-family:Arial;font-size:9pt;font-style:Normal;font-weight:Normal;line-height:12pt;padding-left:2pt;text-align:left;text-decoration:none;text-transform:none;vertical-align:top;width:96.20%"&gt;The market prices of the Fund&#x2019;s fixed income securities may fluctuate significantly when interest rates change. The value of your investment will generally go down when interest rates rise. A rise in rates tends to have a greater impact on the prices of longer term or duration securities. For example, if interest rates increase by 1%, the value of a Fund&#x2019;s portfolio with a portfolio duration of ten years would be expected to decrease by 10%, all other things being equal. A general rise in interest rates could adversely affect the price and liquidity of fixed income securities. The maturity of a security may be significantly longer than its effective duration. A security&#x2019;s maturity and other features may be more relevant than its effective duration in determining the security&#x2019;s sensitivity to other factors affecting the issuer or markets generally, such as changes in credit quality or in the yield premium that the market may establish for certain types of securities (sometimes called &#x201c;credit spread&#x201d;). In general, the longer its maturity the more a security may be susceptible to these factors. When the credit spread for a fixed income security goes up, or &#x201c;widens&#x201d;, the value of the security will generally go down. &lt;/td&gt;&lt;/tr&gt;
&lt;tr style="page-break-inside:avoid"&gt;
&lt;td style="line-height:0pt;padding-bottom:0pt;padding-left:0pt;padding-right:2pt;text-align:left;vertical-align:top;width:3.80%"&gt;&#160; &lt;/td&gt;
&lt;td style="color:#000000;font-family:Arial;font-size:9pt;font-style:Normal;font-weight:Normal;line-height:12pt;padding-bottom:0pt;padding-left:2pt;text-align:left;text-decoration:none;text-transform:none;vertical-align:top; width:96.20%"&gt;If an issuer or guarantor of a security held by the Fund or a counterparty to a financial contract with the Fund defaults on its obligation to pay principal and/or interest, has its credit rating downgraded or is perceived to be less creditworthy, or the credit quality &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;table cellpadding="7" cellspacing="0" style="text-align:start; border-collapse:collapse;empty-cells:show;margin-top:0pt;width:100%"&gt;
&lt;tr style="page-break-inside:avoid"&gt;
&lt;td style="line-height:0pt;padding-left:0pt;padding-right:2pt;text-align:left;vertical-align:top;width:3.80%"&gt;&#160; &lt;/td&gt;
&lt;td style="color:#000000;font-family:Arial;font-size:9pt;font-style:Normal;font-weight:Normal;line-height:12pt;padding-left:2pt;text-align:left;text-decoration:none;text-transform:none;vertical-align:top;width:96.20%"&gt;or value of any underlying assets declines, the value of your investment will typically decline. Changes in actual or perceived creditworthiness may occur quickly. The Fund could be delayed or hindered in its enforcement of rights against an issuer, guarantor or counterparty. &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</cef:RiskFactorsTableTextBlock>
    <cef:OutstandingSecurityAuthorizedShares
      contextRef="P05_01_2025To04_30_2026_CommonSharesMemberusgaapStatementClassOfStockAxis"
      decimals="0"
      id="ixv-3494"
      unitRef="Unit_shares">1000000000</cef:OutstandingSecurityAuthorizedShares>
    <cef:OutstandingSecurityTitleTextBlock
      contextRef="P05_01_2025To04_30_2026_CommonSharesMemberusgaapStatementClassOfStockAxis"
      id="ixv-3495">common stock</cef:OutstandingSecurityTitleTextBlock>
    <cef:OutstandingSecurityHeldShares
      contextRef="P05_01_2025To04_30_2026_CommonSharesMemberusgaapStatementClassOfStockAxis"
      decimals="0"
      id="ixv-3496"
      unitRef="Unit_shares">22771349</cef:OutstandingSecurityHeldShares>
    <cef:OutstandingSecurityHeldShares
      contextRef="P05_01_2024To04_30_2025_CommonSharesMemberusgaapStatementClassOfStockAxis"
      decimals="0"
      id="ixv-3497"
      unitRef="Unit_shares">22771349</cef:OutstandingSecurityHeldShares>
    <link:footnoteLink
      xlink:role="http://www.xbrl.org/2003/role/link"
      xlink:type="extended">
        <link:loc
          xlink:href="#Fact_168437245"
          xlink:label="Fact_168437245"
          xlink:type="locator"/>
        <link:footnote id="FN_723611" xlink:label="FN_723611" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US">The Fund is in the process of liquidating its assets pursuant to the Plan of Liquidation and Dissolution approved by stockholders at a meeting held on July 17, 2025 (see Notes to Financial Statements, Note 8).</link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact_168437245"
          xlink:to="FN_723611"
          xlink:type="arc"/>
    </link:footnoteLink>
</xbrl>
