<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:JH="http://JohnHancockTax-FreeBondFund/20211209"
  xmlns:dei="http://xbrl.sec.gov/dei/2020-01-31"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:rr="http://xbrl.sec.gov/rr/2018-01-31"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="jh-20211209.xsd" xlink:type="simple"/>
    <context id="AsOf2021-12-09">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000857769</identifier>
        </entity>
        <period>
            <startDate>2021-12-09</startDate>
            <endDate>2021-12-09</endDate>
        </period>
    </context>
    <context id="AsOf2021-12-09_custom_S000000652Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000857769</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">JH:S000000652Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2021-12-09</startDate>
            <endDate>2021-12-09</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Ratio">
        <measure>pure</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="AsOf2021-12-09">0000857769</dei:EntityCentralIndexKey>
    <dei:DocumentPeriodEndDate contextRef="AsOf2021-12-09">2021-05-31</dei:DocumentPeriodEndDate>
    <dei:DocumentType contextRef="AsOf2021-12-09">497</dei:DocumentType>
    <dei:EntityInvCompanyType contextRef="AsOf2021-12-09">N-1A</dei:EntityInvCompanyType>
    <dei:EntityRegistrantName contextRef="AsOf2021-12-09">JOHN HANCOCK MUNICIPAL SECURITIES TRUST</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey contextRef="AsOf2021-12-09">0000857769</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag contextRef="AsOf2021-12-09">false</dei:AmendmentFlag>
    <dei:DocumentCreationDate contextRef="AsOf2021-12-09">2021-12-09</dei:DocumentCreationDate>
    <dei:DocumentEffectiveDate contextRef="AsOf2021-12-09">2021-12-09</dei:DocumentEffectiveDate>
    <rr:StrategyNarrativeTextBlock contextRef="AsOf2021-12-09_custom_S000000652Member">&lt;p id="xdx_A8F_err--StrategyNarrativeTextBlock_zKwTWluzHgzg" style="font: 10pt/115% Arial, Helvetica, Sans-Serif; margin: 12pt 0pt 0pt 36pt; text-align: justify"&gt;The fund&#x2019;s investment objective
is to seek as high a level of interest income exempt from federal income tax as is consistent with preservation of capital. Under normal
market conditions, the fund invests at least 80% of its net assets, plus amounts borrowed for investment purposes, in tax-exempt bonds
of any maturity. The fund primarily invests in bonds that are investment grade when purchased, but the fund may also invest up to 35%
of its net assets in non-investment grade bonds rated BB or lower by S&amp;amp;P Global Ratings (S&amp;amp;P), Fitch Ratings (Fitch), or Moody&#x2019;s Investors Service, Inc. (Moody&#x2019;s), or comparable rating by any nationally recognized statistical ratings
organization (NRSRO) or unrated equivalents. The fund may invest in other fixed income securities which include bonds, debt securities
and other similar instruments. The fund&#x2019;s investment policies are based on credit ratings at the time of purchase.&lt;/p&gt;

&lt;p style="font: 10pt/115% Arial, Helvetica, Sans-Serif; margin: 0pt 0pt 0pt 36pt; text-align: justify"&gt;&#160;&lt;/p&gt;

&lt;p style="font: 10pt/115% Arial, Helvetica, Sans-Serif; margin: 0pt 0pt 0pt 36pt; text-align: justify"&gt;The fund may invest in general
obligation bonds, however, in general, the manager favors bonds backed by revenue from a specific public project or facility, such as
a power plant (revenue bonds), as they tend to offer higher yields than general obligation bonds. The manager also favors bonds that have
limitations on early payoff (call protection), which can help minimize the effect of falling interest rates on the fund&#x2019;s yield.
To the extent that the fund invests in bonds that are subject to the alternative minimum tax (AMT), the income paid by the fund may not
be entirely tax-free to all investors. Investments in bonds subject to the AMT will not be counted toward the fund&#x2019;s 80% investment
policy.&lt;/p&gt;

&lt;p style="font: 10pt/115% Arial, Helvetica, Sans-Serif; margin: 0pt 0pt 0pt 36pt; text-align: justify"&gt;&#160;&lt;/p&gt;

&lt;p style="font: 10pt/115% Arial, Helvetica, Sans-Serif; margin: 0pt 0pt 0pt 36pt; text-align: justify"&gt;The fund may buy bonds of any maturity
or duration. The fund may invest heavily in bonds from any given state or region, and may have substantial investments in obligations
of certain states and their agencies, instrumentalities, and/or political subdivisions. The fund may engage in derivative transactions
that include futures contracts on debt securities and debt securities indexes; options on futures, debt securities, and debt indexes;
and inverse floating-rate securities, in each case, for the purposes of reducing risk and/or enhancing investment returns.&lt;/p&gt;</rr:StrategyNarrativeTextBlock>
</xbrl>
