<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2022"
  xmlns:fmr="http://www.fidelity.com/20240330"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:rr="http://xbrl.sec.gov/rr/2022"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="fmr-20240330.xsd" xlink:type="simple"/>
    <context id="Trust">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000357057</identifier>
        </entity>
        <period>
            <startDate>2024-03-30</startDate>
            <endDate>2024-03-30</endDate>
        </period>
    </context>
    <context id="S000007113SMA-PRO">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000357057</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:FidelityMassachusettsMunicipalMoneyMarketFund-PremiumPROMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007113Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-03-30</startDate>
            <endDate>2024-03-30</endDate>
        </period>
    </context>
    <context id="S000007113C000019442">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000357057</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:FidelityMassachusettsMunicipalMoneyMarketFund-PremiumPROMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007113Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="rr:ProspectusShareClassAxis">fmr:C000019442Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-03-30</startDate>
            <endDate>2024-03-30</endDate>
        </period>
    </context>
    <context id="S000007113C000019442ReturnBeforeTaxes">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000357057</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:FidelityMassachusettsMunicipalMoneyMarketFund-PremiumPROMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007113Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="rr:PerformanceMeasureAxis">fmr:ReturnBeforeTaxesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="rr:ProspectusShareClassAxis">fmr:C000019442Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-03-30</startDate>
            <endDate>2024-03-30</endDate>
        </period>
    </context>
    <context id="S000007113MAA-PRO">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000357057</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:FidelityMassachusettsMunicipalMoneyMarketFund-InstitutionalPROMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007113Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-03-30</startDate>
            <endDate>2024-03-30</endDate>
        </period>
    </context>
    <context id="S000007113C000047913">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000357057</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:FidelityMassachusettsMunicipalMoneyMarketFund-InstitutionalPROMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007113Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="rr:ProspectusShareClassAxis">fmr:C000047913Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-03-30</startDate>
            <endDate>2024-03-30</endDate>
        </period>
    </context>
    <context id="S000007113C000047913ReturnBeforeTaxes">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000357057</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:FidelityMassachusettsMunicipalMoneyMarketFund-InstitutionalPROMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007113Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="rr:PerformanceMeasureAxis">fmr:ReturnBeforeTaxesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="rr:ProspectusShareClassAxis">fmr:C000047913Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-03-30</startDate>
            <endDate>2024-03-30</endDate>
        </period>
    </context>
    <context id="S000007114MAS-PRO">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000357057</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:FidelityMassachusettsMunicipalIncomeandMunicipalMoneyMarketFund-RetailComboPROMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007114Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-03-30</startDate>
            <endDate>2024-03-30</endDate>
        </period>
    </context>
    <context id="S000007114C000019443">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000357057</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:FidelityMassachusettsMunicipalIncomeandMunicipalMoneyMarketFund-RetailComboPROMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007114Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="rr:ProspectusShareClassAxis">fmr:C000019443Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-03-30</startDate>
            <endDate>2024-03-30</endDate>
        </period>
    </context>
    <context id="S000007114C000019443ReturnBeforeTaxes">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000357057</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:FidelityMassachusettsMunicipalIncomeandMunicipalMoneyMarketFund-RetailComboPROMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007114Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="rr:PerformanceMeasureAxis">fmr:ReturnBeforeTaxesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="rr:ProspectusShareClassAxis">fmr:C000019443Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-03-30</startDate>
            <endDate>2024-03-30</endDate>
        </period>
    </context>
    <context id="S000007114C000019443AfterTaxesOnDistributions">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000357057</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:FidelityMassachusettsMunicipalIncomeandMunicipalMoneyMarketFund-RetailComboPROMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007114Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="rr:PerformanceMeasureAxis">rr:AfterTaxesOnDistributionsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="rr:ProspectusShareClassAxis">fmr:C000019443Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-03-30</startDate>
            <endDate>2024-03-30</endDate>
        </period>
    </context>
    <context id="S000007114C000019443AfterTaxesOnDistributionsAndSales">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000357057</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:FidelityMassachusettsMunicipalIncomeandMunicipalMoneyMarketFund-RetailComboPROMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007114Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="rr:PerformanceMeasureAxis">rr:AfterTaxesOnDistributionsAndSalesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="rr:ProspectusShareClassAxis">fmr:C000019443Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-03-30</startDate>
            <endDate>2024-03-30</endDate>
        </period>
    </context>
    <context id="S000007114IndexLB015MAS-PRO">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000357057</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:FidelityMassachusettsMunicipalIncomeandMunicipalMoneyMarketFund-RetailComboPROMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007114Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="rr:PerformanceMeasureAxis">fmr:IndexLB015Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-03-30</startDate>
            <endDate>2024-03-30</endDate>
        </period>
    </context>
    <context id="S000007114IndexIXYHYMAS-PRO">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000357057</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:FidelityMassachusettsMunicipalIncomeandMunicipalMoneyMarketFund-RetailComboPROMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007114Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="rr:PerformanceMeasureAxis">fmr:IndexIXYHYMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-03-30</startDate>
            <endDate>2024-03-30</endDate>
        </period>
    </context>
    <context id="S000007113MAS-PRO">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000357057</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:FidelityMassachusettsMunicipalIncomeandMunicipalMoneyMarketFund-RetailComboPROMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007113Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-03-30</startDate>
            <endDate>2024-03-30</endDate>
        </period>
    </context>
    <context id="S000007113C000238262">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000357057</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:FidelityMassachusettsMunicipalIncomeandMunicipalMoneyMarketFund-RetailComboPROMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007113Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="rr:ProspectusShareClassAxis">fmr:C000238262Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-03-30</startDate>
            <endDate>2024-03-30</endDate>
        </period>
    </context>
    <context id="S000007113C000238262ReturnBeforeTaxes">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000357057</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:DocumentInformationDocumentAxis">fmr:FidelityMassachusettsMunicipalIncomeandMunicipalMoneyMarketFund-RetailComboPROMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">fmr:S000007113Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="rr:PerformanceMeasureAxis">fmr:ReturnBeforeTaxesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="rr:ProspectusShareClassAxis">fmr:C000238262Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-03-30</startDate>
            <endDate>2024-03-30</endDate>
        </period>
    </context>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <dei:DocumentType contextRef="Trust" id="ixv-24524">485BPOS</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="Trust" id="ixv-24525">2024-01-31</dei:DocumentPeriodEndDate>
    <dei:AmendmentFlag contextRef="Trust" id="ixv-24526">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="Trust" id="ixv-24527">0000357057</dei:EntityCentralIndexKey>
    <dei:EntityInvCompanyType contextRef="Trust" id="ixv-24528">N-1A</dei:EntityInvCompanyType>
    <dei:EntityRegistrantName contextRef="Trust" id="ixv-24529">Fidelity Massachusetts Municipal Trust</dei:EntityRegistrantName>
    <rr:RiskReturnHeading contextRef="S000007114MAS-PRO" id="ixv-244">


     Fund Summary

     Fund:
     Fidelity&#xae; Massachusetts Municipal Income Fund


   </rr:RiskReturnHeading>
    <rr:ObjectiveHeading contextRef="S000007114MAS-PRO" id="ixv-258">


     Investment Objective


   </rr:ObjectiveHeading>
    <rr:ObjectivePrimaryTextBlock contextRef="S000007114MAS-PRO" id="ixv-266">


     Fidelity&#xae; Massachusetts Municipal Income Fund seeks a high level of current income exempt from federal income tax and Massachusetts personal income tax.


   </rr:ObjectivePrimaryTextBlock>
    <rr:ExpenseHeading contextRef="S000007114MAS-PRO" id="ixv-271">


     Fee Table


   </rr:ExpenseHeading>
    <rr:ExpenseNarrativeTextBlock contextRef="S000007114MAS-PRO" id="ixv-277">


     The following table describes the fees and expenses that may be incurred when you buy, hold, and
       sell shares of the fund. In addition to the fees and expenses described below, your broker may also require you to pay brokerage commissions on purchases and sales of the fund, which are not reflected in the table and example below.

   </rr:ExpenseNarrativeTextBlock>
    <rr:ShareholderFeesCaption contextRef="S000007114MAS-PRO" id="ixv-297">


     Shareholder fees


   </rr:ShareholderFeesCaption>
    <rr:ShareholderFeeOther
      contextRef="S000007114MAS-PRO"
      decimals="0"
      id="ixv-24710"
      unitRef="usd">0</rr:ShareholderFeeOther>
    <rr:OperatingExpensesCaption contextRef="S000007114MAS-PRO" id="ixv-312">


     Annual Operating Expenses


   </rr:OperatingExpensesCaption>
    <rr:ManagementFeesOverAssets
      contextRef="S000007114C000019443"
      decimals="6"
      id="footnoteS000007114MAS-PROAOE_AC000019443_MF_footnoteS000007114MAS-PROAOE_BC000019443_MF"
      unitRef="pure">0.0044</rr:ManagementFeesOverAssets>
    <rr:DistributionAndService12b1FeesOverAssets
      contextRef="S000007114C000019443"
      decimals="6"
      id="ixv-24712"
      unitRef="pure">0</rr:DistributionAndService12b1FeesOverAssets>
    <rr:OtherExpensesOverAssets
      contextRef="S000007114C000019443"
      decimals="6"
      id="footnoteS000007114MAS-PROAOE_AC000019443_OE"
      unitRef="pure">0.0001</rr:OtherExpensesOverAssets>
    <rr:ExpensesOverAssets
      contextRef="S000007114C000019443"
      decimals="6"
      id="ixv-24714"
      unitRef="pure">0.0045</rr:ExpensesOverAssets>
    <rr:ExpensesRestatedToReflectCurrent contextRef="S000007114MAS-PRO" id="ixv-366">

      Adjusted to reflect current fees.

     </rr:ExpensesRestatedToReflectCurrent>
    <rr:ExpenseExampleNarrativeTextBlock contextRef="S000007114MAS-PRO" id="ixv-378">


     This
     example

     helps compare the cost of investing in the fund with the cost of investing in other funds.


     Let's say, hypothetically, that the annual return for shares of the fund is 5% and that the fees and the annual operating expenses for shares of the fund are exactly as described in the fee table. This example illustrates the effect of fees and expenses, but is not meant to suggest actual or expected fees and expenses or returns, all of which may vary. For every $10,000 you invested, here's how much you would pay in total expenses if you sell all of your shares at the end of each time period indicated:


   </rr:ExpenseExampleNarrativeTextBlock>
    <rr:ExpenseExampleYear01
      contextRef="S000007114C000019443"
      decimals="0"
      id="ixv-24715"
      unitRef="usd">46</rr:ExpenseExampleYear01>
    <rr:ExpenseExampleYear03
      contextRef="S000007114C000019443"
      decimals="0"
      id="ixv-24716"
      unitRef="usd">144</rr:ExpenseExampleYear03>
    <rr:ExpenseExampleYear05
      contextRef="S000007114C000019443"
      decimals="0"
      id="ixv-24717"
      unitRef="usd">252</rr:ExpenseExampleYear05>
    <rr:ExpenseExampleYear10
      contextRef="S000007114C000019443"
      decimals="0"
      id="ixv-24718"
      unitRef="usd">567</rr:ExpenseExampleYear10>
    <rr:PortfolioTurnoverHeading contextRef="S000007114MAS-PRO" id="ixv-436">


     Portfolio Turnover


   </rr:PortfolioTurnoverHeading>
    <rr:PortfolioTurnoverTextBlock contextRef="S000007114MAS-PRO" id="ixv-444">


     The fund pays transaction costs, such as commissions, when it buys and sells securities (or "turns over" its portfolio). A higher portfolio turnover rate may indicate higher transaction costs and may result in higher taxes when fund shares are held in a taxable account. These costs, which are not reflected in annual operating expenses or in the example, affect the fund's performance. During the most recent fiscal year, the fund's portfolio turnover rate was




       14


     % of the average value of its portfolio.


   </rr:PortfolioTurnoverTextBlock>
    <rr:PortfolioTurnoverRate
      contextRef="S000007114MAS-PRO"
      decimals="4"
      id="ixv-24719"
      unitRef="pure">0.14</rr:PortfolioTurnoverRate>
    <rr:StrategyHeading contextRef="S000007114MAS-PRO" id="ixv-454">


     Principal Investment Strategies


   </rr:StrategyHeading>
    <rr:StrategyNarrativeTextBlock contextRef="S000007114MAS-PRO" id="ixv-459">



      Normally investing at least 80% of assets in investment-grade municipal securities whose interest is exempt from federal and Massachusetts personal income taxes.
      Managing the fund to have similar overall interest rate risk to the supplemental index.
      Allocating assets across different market sectors and maturities.
      Potentially investing more than 25% of total assets in municipal securities that finance similar types of projects.
      Analyzing the credit quality of the issuer, security-specific features, current and potential future valuation, and trading opportunities to select investments.


   </rr:StrategyNarrativeTextBlock>
    <rr:RiskHeading contextRef="S000007114MAS-PRO" id="ixv-473">


     Principal Investment Risks


   </rr:RiskHeading>
    <rr:RiskNarrativeTextBlock contextRef="S000007114MAS-PRO" id="ixv-478">



      Municipal Market Volatility.

     The municipal market is volatile and can be significantly affected by adverse tax, legislative, or political changes and the financial condition of the issuers of municipal securities.

      Interest Rate Changes.

     Interest rate increases can cause the price of a debt security to decrease.

      Geographic Concentration.

     Unfavorable political or economic conditions within Massachusetts can affect the credit quality of issuers located in that state.

      Issuer-Specific Changes.

     The value of an individual security or particular type of security can be more volatile than, and can perform differently from, the market as a whole.
     A decline in the credit quality of an issuer or a provider of credit support or a maturity-shortening structure for a security can cause the price of a security to decrease.


      In addition, the fund is classified as non-diversified under the Investment Company Act of 1940 (1940 Act), which means that it has the ability to invest a greater portion of assets in securities of a smaller number of individual issuers than a diversified fund. As a result, changes in the market value of a single investment could cause greater fluctuations in share price than would occur in a more diversified fund.




      An investment in the fund is not a deposit of a bank and is not insured or guaranteed by the Federal Deposit Insurance Corporation or any other government agency

      .





      &#160;

      You could lose money by investing in the fund.


     Unlike individual debt securities, which typically pay principal at maturity, the value of an investment in the fund will fluctuate.

   </rr:RiskNarrativeTextBlock>
    <rr:RiskNondiversifiedStatus contextRef="S000007114MAS-PRO" id="ixv-503">

      In addition, the fund is classified as non-diversified under the Investment Company Act of 1940 (1940 Act), which means that it has the ability to invest a greater portion of assets in securities of a smaller number of individual issuers than a diversified fund. As a result, changes in the market value of a single investment could cause greater fluctuations in share price than would occur in a more diversified fund.

     </rr:RiskNondiversifiedStatus>
    <rr:RiskNotInsuredDepositoryInstitution contextRef="S000007114MAS-PRO" id="ixv-507">

      An investment in the fund is not a deposit of a bank and is not insured or guaranteed by the Federal Deposit Insurance Corporation or any other government agency

      .

     </rr:RiskNotInsuredDepositoryInstitution>
    <rr:RiskLoseMoney contextRef="S000007114MAS-PRO" id="ixv-514">

      &#160;

      You could lose money by investing in the fund.

     </rr:RiskLoseMoney>
    <rr:BarChartAndPerformanceTableHeading contextRef="S000007114MAS-PRO" id="ixv-522">


     Performance


   </rr:BarChartAndPerformanceTableHeading>
    <rr:PerformanceNarrativeTextBlock contextRef="S000007114MAS-PRO" id="ixv-527">


     The following information is intended to help you understand the risks of investing in the fund.


      The information illustrates the changes in the performance of the fund's shares from year to year and compares the performance of the fund's shares to the performance of a securities market index and an additional index over various periods of time.



     The indexes have characteristics relevant to the fund's investment strategies. Index descriptions appear in the "Additional Index Information" section of the prospectus.



      Past performance (before and after taxes) is not an indication of future performance.


     Visit



      www.fidelity.com


     for more recent performance information.

   </rr:PerformanceNarrativeTextBlock>
    <rr:PerformanceInformationIllustratesVariabilityOfReturns contextRef="S000007114MAS-PRO" id="ixv-532">

      The information illustrates the changes in the performance of the fund's shares from year to year and compares the performance of the fund's shares to the performance of a securities market index and an additional index over various periods of time.

     </rr:PerformanceInformationIllustratesVariabilityOfReturns>
    <rr:PerformancePastDoesNotIndicateFuture contextRef="S000007114MAS-PRO" id="ixv-539">

      Past performance (before and after taxes) is not an indication of future performance.

     </rr:PerformancePastDoesNotIndicateFuture>
    <rr:PerformanceAvailabilityWebSiteAddress contextRef="S000007114MAS-PRO" id="ixv-545">

      www.fidelity.com
     </rr:PerformanceAvailabilityWebSiteAddress>
    <rr:BarChartHeading contextRef="S000007114MAS-PRO" id="ixv-553">


     Year-by-Year Returns

   </rr:BarChartHeading>
    <rr:AnnualReturn2014
      contextRef="S000007114C000019443"
      decimals="INF"
      id="ixv-24720"
      unitRef="pure">0.0996</rr:AnnualReturn2014>
    <rr:AnnualReturn2015
      contextRef="S000007114C000019443"
      decimals="INF"
      id="ixv-24721"
      unitRef="pure">0.0336</rr:AnnualReturn2015>
    <rr:AnnualReturn2016
      contextRef="S000007114C000019443"
      decimals="INF"
      id="ixv-24722"
      unitRef="pure">-0.0011</rr:AnnualReturn2016>
    <rr:AnnualReturn2017
      contextRef="S000007114C000019443"
      decimals="INF"
      id="ixv-24723"
      unitRef="pure">0.0548</rr:AnnualReturn2017>
    <rr:AnnualReturn2018
      contextRef="S000007114C000019443"
      decimals="INF"
      id="ixv-24724"
      unitRef="pure">0.0024</rr:AnnualReturn2018>
    <rr:AnnualReturn2019
      contextRef="S000007114C000019443"
      decimals="INF"
      id="ixv-24725"
      unitRef="pure">0.0708</rr:AnnualReturn2019>
    <rr:AnnualReturn2020
      contextRef="S000007114C000019443"
      decimals="INF"
      id="ixv-24726"
      unitRef="pure">0.0444</rr:AnnualReturn2020>
    <rr:AnnualReturn2021
      contextRef="S000007114C000019443"
      decimals="INF"
      id="ixv-24727"
      unitRef="pure">0.0144</rr:AnnualReturn2021>
    <rr:AnnualReturn2022
      contextRef="S000007114C000019443"
      decimals="INF"
      id="ixv-24728"
      unitRef="pure">-0.0905</rr:AnnualReturn2022>
    <rr:AnnualReturn2023
      contextRef="S000007114C000019443"
      decimals="INF"
      id="ixv-24729"
      unitRef="pure">0.0575</rr:AnnualReturn2023>
    <rr:HighestQuarterlyReturnLabel contextRef="S000007114MAS-PRO" id="ixv-677">
         &#160;&#160;&#160;Highest Quarter Return
        </rr:HighestQuarterlyReturnLabel>
    <rr:BarChartHighestQuarterlyReturn
      contextRef="S000007114MAS-PRO"
      decimals="4"
      id="ixv-24730"
      unitRef="pure">0.0691</rr:BarChartHighestQuarterlyReturn>
    <rr:BarChartHighestQuarterlyReturnDate contextRef="S000007114MAS-PRO" id="ixv-687">2023-12-31</rr:BarChartHighestQuarterlyReturnDate>
    <rr:LowestQuarterlyReturnLabel contextRef="S000007114MAS-PRO" id="ixv-692">
         &#160;&#160;&#160;Lowest Quarter Return
        </rr:LowestQuarterlyReturnLabel>
    <rr:BarChartLowestQuarterlyReturn
      contextRef="S000007114MAS-PRO"
      decimals="4"
      id="ixv-24731"
      unitRef="pure">-0.0601</rr:BarChartLowestQuarterlyReturn>
    <rr:BarChartLowestQuarterlyReturnDate contextRef="S000007114MAS-PRO" id="ixv-703">2022-03-31</rr:BarChartLowestQuarterlyReturnDate>
    <rr:PerformanceTableHeading contextRef="S000007114MAS-PRO" id="ixv-708">


     Average Annual Returns


   </rr:PerformanceTableHeading>
    <rr:PerformanceTableNarrativeTextBlock contextRef="S000007114MAS-PRO" id="ixv-716">




      After-tax returns are calculated using the historical highest individual federal marginal income tax rates, but do not reflect the impact of state or local taxes.



     Actual after-tax returns may differ depending on your individual circumstances.



      Return After Taxes on Distributions and Sale of Fund Shares may be higher than other returns for the same period due to a tax benefit of realizing a capital loss upon the sale of fund shares.




   </rr:PerformanceTableNarrativeTextBlock>
    <rr:PerformanceTableUsesHighestFederalRate contextRef="S000007114MAS-PRO" id="ixv-719">

      After-tax returns are calculated using the historical highest individual federal marginal income tax rates, but do not reflect the impact of state or local taxes.

     </rr:PerformanceTableUsesHighestFederalRate>
    <rr:PerformanceTableExplanationAfterTaxHigher contextRef="S000007114MAS-PRO" id="ixv-726">

      Return After Taxes on Distributions and Sale of Fund Shares may be higher than other returns for the same period due to a tax benefit of realizing a capital loss upon the sale of fund shares.

     </rr:PerformanceTableExplanationAfterTaxHigher>
    <rr:AverageAnnualReturnLabel
      contextRef="S000007114C000019443ReturnBeforeTaxes"
      id="ixv-771">
         Return Before Taxes
        </rr:AverageAnnualReturnLabel>
    <rr:AverageAnnualReturnYear01
      contextRef="S000007114C000019443ReturnBeforeTaxes"
      decimals="4"
      id="ixv-24732"
      unitRef="pure">0.0575</rr:AverageAnnualReturnYear01>
    <rr:AverageAnnualReturnYear05
      contextRef="S000007114C000019443ReturnBeforeTaxes"
      decimals="4"
      id="ixv-24733"
      unitRef="pure">0.0176</rr:AverageAnnualReturnYear05>
    <rr:AverageAnnualReturnYear10
      contextRef="S000007114C000019443ReturnBeforeTaxes"
      decimals="4"
      id="ixv-24734"
      unitRef="pure">0.0273</rr:AverageAnnualReturnYear10>
    <rr:AverageAnnualReturnLabel
      contextRef="S000007114C000019443AfterTaxesOnDistributions"
      id="ixv-786">
         Return After Taxes on Distributions
        </rr:AverageAnnualReturnLabel>
    <rr:AverageAnnualReturnYear01
      contextRef="S000007114C000019443AfterTaxesOnDistributions"
      decimals="4"
      id="ixv-24735"
      unitRef="pure">0.0575</rr:AverageAnnualReturnYear01>
    <rr:AverageAnnualReturnYear05
      contextRef="S000007114C000019443AfterTaxesOnDistributions"
      decimals="4"
      id="ixv-24736"
      unitRef="pure">0.0172</rr:AverageAnnualReturnYear05>
    <rr:AverageAnnualReturnYear10
      contextRef="S000007114C000019443AfterTaxesOnDistributions"
      decimals="4"
      id="ixv-24737"
      unitRef="pure">0.0265</rr:AverageAnnualReturnYear10>
    <rr:AverageAnnualReturnLabel
      contextRef="S000007114C000019443AfterTaxesOnDistributionsAndSales"
      id="ixv-801">
         Return After Taxes on Distributions and Sale of Fund Shares
        </rr:AverageAnnualReturnLabel>
    <rr:AverageAnnualReturnYear01
      contextRef="S000007114C000019443AfterTaxesOnDistributionsAndSales"
      decimals="4"
      id="ixv-24738"
      unitRef="pure">0.0444</rr:AverageAnnualReturnYear01>
    <rr:AverageAnnualReturnYear05
      contextRef="S000007114C000019443AfterTaxesOnDistributionsAndSales"
      decimals="4"
      id="ixv-24739"
      unitRef="pure">0.0190</rr:AverageAnnualReturnYear05>
    <rr:AverageAnnualReturnYear10
      contextRef="S000007114C000019443AfterTaxesOnDistributionsAndSales"
      decimals="4"
      id="ixv-24740"
      unitRef="pure">0.0274</rr:AverageAnnualReturnYear10>
    <rr:AverageAnnualReturnLabel contextRef="S000007114IndexLB015MAS-PRO" id="ixv-818">
         Bloomberg Municipal Bond Index
        </rr:AverageAnnualReturnLabel>
    <rr:AverageAnnualReturnYear01
      contextRef="S000007114IndexLB015MAS-PRO"
      decimals="4"
      id="ixv-24741"
      unitRef="pure">0.0640</rr:AverageAnnualReturnYear01>
    <rr:AverageAnnualReturnYear05
      contextRef="S000007114IndexLB015MAS-PRO"
      decimals="4"
      id="ixv-24742"
      unitRef="pure">0.0225</rr:AverageAnnualReturnYear05>
    <rr:AverageAnnualReturnYear10
      contextRef="S000007114IndexLB015MAS-PRO"
      decimals="4"
      id="ixv-24743"
      unitRef="pure">0.0303</rr:AverageAnnualReturnYear10>
    <rr:AverageAnnualReturnLabel contextRef="S000007114IndexIXYHYMAS-PRO" id="ixv-840">
         Bloomberg Massachusetts Enhanced Municipal Linked Index
        </rr:AverageAnnualReturnLabel>
    <rr:AverageAnnualReturnYear01
      contextRef="S000007114IndexIXYHYMAS-PRO"
      decimals="4"
      id="ixv-24744"
      unitRef="pure">0.0557</rr:AverageAnnualReturnYear01>
    <rr:AverageAnnualReturnYear05
      contextRef="S000007114IndexIXYHYMAS-PRO"
      decimals="4"
      id="ixv-24745"
      unitRef="pure">0.0194</rr:AverageAnnualReturnYear05>
    <rr:AverageAnnualReturnYear10
      contextRef="S000007114IndexIXYHYMAS-PRO"
      decimals="4"
      id="ixv-24746"
      unitRef="pure">0.0295</rr:AverageAnnualReturnYear10>
    <rr:RiskReturnHeading contextRef="S000007113MAS-PRO" id="ixv-957">


     Fund Summary

     Fund /Class:
     Fidelity&#xae; Massachusetts Municipal Money Market Fund
     /Fidelity&#xae; Massachusetts Municipal Money Market Fund
     &#160;

   </rr:RiskReturnHeading>
    <rr:ObjectiveHeading contextRef="S000007113MAS-PRO" id="ixv-978">


     Investment Objective


   </rr:ObjectiveHeading>
    <rr:ObjectivePrimaryTextBlock contextRef="S000007113MAS-PRO" id="ixv-986">


     Fidelity&#xae; Massachusetts Municipal Money Market Fund seeks as high a level of income, exempt from federal and Massachusetts personal income tax, as is consistent with the preservation of capital and liquidity.


   </rr:ObjectivePrimaryTextBlock>
    <rr:ExpenseHeading contextRef="S000007113MAS-PRO" id="ixv-991">


     Fee Table


   </rr:ExpenseHeading>
    <rr:ExpenseNarrativeTextBlock contextRef="S000007113MAS-PRO" id="ixv-997">


     The following table describes the fees and expenses that may be incurred when you buy, hold, and
       sell shares of the fund. In addition to the fees and expenses described below, your broker may also require you to pay other fees, such as brokerage commissions on purchases and sales of certain
       classes of
       shares of the fund and other fees to financial intermediaries, which are not reflected in the tables and examples below.

   </rr:ExpenseNarrativeTextBlock>
    <rr:ShareholderFeesCaption contextRef="S000007113MAS-PRO" id="ixv-1022">


     Shareholder fees


   </rr:ShareholderFeesCaption>
    <rr:ShareholderFeeOther
      contextRef="S000007113MAS-PRO"
      decimals="0"
      id="ixv-24747"
      unitRef="usd">0</rr:ShareholderFeeOther>
    <rr:OperatingExpensesCaption contextRef="S000007113MAS-PRO" id="ixv-1037">


     Annual Operating Expenses


   </rr:OperatingExpensesCaption>
    <rr:ManagementFeesOverAssets
      contextRef="S000007113C000238262"
      decimals="6"
      id="ixv-24748"
      unitRef="pure">0.0020</rr:ManagementFeesOverAssets>
    <rr:DistributionAndService12b1FeesOverAssets
      contextRef="S000007113C000238262"
      decimals="6"
      id="ixv-24749"
      unitRef="pure">0</rr:DistributionAndService12b1FeesOverAssets>
    <rr:OtherExpensesOverAssets
      contextRef="S000007113C000238262"
      decimals="6"
      id="ixv-24750"
      unitRef="pure">0.0022</rr:OtherExpensesOverAssets>
    <rr:ExpensesOverAssets
      contextRef="S000007113C000238262"
      decimals="6"
      id="ixv-24751"
      unitRef="pure">0.0042</rr:ExpensesOverAssets>
    <rr:ExpenseExampleNarrativeTextBlock contextRef="S000007113MAS-PRO" id="ixv-1084">


     This
     example

     helps compare the cost of investing in the fund with the cost of investing in other funds.


     Let's say, hypothetically, that the annual return for shares of the fund is 5% and that the fees and the annual operating expenses for shares of the fund are exactly as described in the fee table. This example illustrates the effect of fees and expenses, but is not meant to suggest actual or expected fees and expenses or returns, all of which may vary. For every $10,000 you invested, here's how much you would pay in total expenses if you sell all of your shares at the end of each time period indicated:


   </rr:ExpenseExampleNarrativeTextBlock>
    <rr:ExpenseExampleYear01
      contextRef="S000007113C000238262"
      decimals="0"
      id="ixv-24752"
      unitRef="usd">43</rr:ExpenseExampleYear01>
    <rr:ExpenseExampleYear03
      contextRef="S000007113C000238262"
      decimals="0"
      id="ixv-24753"
      unitRef="usd">135</rr:ExpenseExampleYear03>
    <rr:ExpenseExampleYear05
      contextRef="S000007113C000238262"
      decimals="0"
      id="ixv-24754"
      unitRef="usd">235</rr:ExpenseExampleYear05>
    <rr:ExpenseExampleYear10
      contextRef="S000007113C000238262"
      decimals="0"
      id="ixv-24755"
      unitRef="usd">530</rr:ExpenseExampleYear10>
    <rr:StrategyHeading contextRef="S000007113MAS-PRO" id="ixv-1142">


     Principal Investment Strategies


   </rr:StrategyHeading>
    <rr:StrategyNarrativeTextBlock contextRef="S000007113MAS-PRO" id="ixv-1147">



      Normally investing in municipal money market securities.
      Normally investing at least 80% of assets in municipal securities whose interest is exempt from federal and Massachusetts personal income taxes.
      Potentially investing up to 20% of assets in municipal securities whose interest is subject to Massachusetts personal income tax.
      Potentially investing more than 25% of total assets in municipal securities that finance similar types of projects.
      Investing in compliance with industry-standard regulatory requirements for money market funds for the quality, maturity, liquidity, and diversification of investments.


   </rr:StrategyNarrativeTextBlock>
    <rr:RiskHeading contextRef="S000007113MAS-PRO" id="ixv-1161">


     Principal Investment Risks


   </rr:RiskHeading>
    <rr:RiskNarrativeTextBlock contextRef="S000007113MAS-PRO" id="ixv-1166">



      Municipal Market Volatility.

     The municipal market is volatile and can be significantly affected by adverse tax, legislative, or political changes and the financial condition of the issuers of municipal securities.

      Interest Rate Changes.

     Interest rate increases can cause the price of a money market security to decrease.

      Income Risk.

     A low or negative interest rate environment can adversely affect the fund's yield.

      Foreign Exposure.

     Entities providing credit support or a maturity-shortening structure that are located in foreign countries can be affected by adverse political, regulatory, market, or economic developments in those countries .

      Geographic Concentration.

     Unfavorable political or economic conditions within Massachusetts can affect the credit quality of issuers located in that state.

      Issuer-Specific Changes.

     A decline in the credit quality of an issuer or a provider of credit support or a maturity-shortening structure for a security can cause the price of a money market security to decrease.


      &#160;

      You could lose money by investing in the fund.





      &#160;

      Although the fund seeks to preserve the value of your investment at $1.00 per share, it cannot guarantee it will do so.






      The fund may impose a fee upon the sale of your shares


      .





      &#160;

      An investment in the fund is not
      a bank account and is not
      insured or guaranteed by the Federal Deposit Insurance Corporation or any other government agency.



     &#160;



      Fidelity Investments and its affiliates, the fund's sponsor,


      is not required to reimburse the fund for losses
      , and you should not expect that the sponsor will provide financial support to the fund at any time
      , including during periods of market stress
      .



   </rr:RiskNarrativeTextBlock>
    <rr:RiskLoseMoney contextRef="S000007113MAS-PRO" id="ixv-1201">

      &#160;

      You could lose money by investing in the fund.

     </rr:RiskLoseMoney>
    <rr:RiskMoneyMarketFundMayNotPreserveDollar contextRef="S000007113MAS-PRO" id="ixv-1208">

      &#160;

      Although the fund seeks to preserve the value of your investment at $1.00 per share, it cannot guarantee it will do so.

      </rr:RiskMoneyMarketFundMayNotPreserveDollar>
    <rr:RiskMoneyMarketFundMayImposeFeesOrSuspendSales contextRef="S000007113MAS-PRO" id="ixv-1215">

      The fund may impose a fee upon the sale of your shares


      .

     </rr:RiskMoneyMarketFundMayImposeFeesOrSuspendSales>
    <rr:RiskNotInsuredDepositoryInstitution contextRef="S000007113MAS-PRO" id="ixv-1222">

      &#160;

      An investment in the fund is not
      a bank account and is not
      insured or guaranteed by the Federal Deposit Insurance Corporation or any other government agency.

     </rr:RiskNotInsuredDepositoryInstitution>
    <rr:RiskMoneyMarketFundSponsorMayNotProvideSupport contextRef="S000007113MAS-PRO" id="ixv-1233">

      Fidelity Investments and its affiliates, the fund's sponsor,


      is not required to reimburse the fund for losses
      , and you should not expect that the sponsor will provide financial support to the fund at any time
      , including during periods of market stress
      .

     </rr:RiskMoneyMarketFundSponsorMayNotProvideSupport>
    <rr:BarChartAndPerformanceTableHeading contextRef="S000007113MAS-PRO" id="ixv-1242">


     Performance


   </rr:BarChartAndPerformanceTableHeading>
    <rr:PerformanceNarrativeTextBlock contextRef="S000007113MAS-PRO" id="ixv-1247">


     The following information is intended to help you understand the risks of investing in the fund.


      The information illustrates the


      performance of


      the fund's
       shares


      over the past
       year
      .





     &#160;



      Past performance is not an indication of future performance.



     Visit



      www.fidelity.com


     for more recent performance information.



   </rr:PerformanceNarrativeTextBlock>
    <rr:PerformanceInformationIllustratesVariabilityOfReturns contextRef="S000007113MAS-PRO" id="ixv-1252">

      The information illustrates the


      performance of


      the fund's
       shares


      over the past
       year
      .

     </rr:PerformanceInformationIllustratesVariabilityOfReturns>
    <rr:PerformancePastDoesNotIndicateFuture contextRef="S000007113MAS-PRO" id="ixv-1269">

      Past performance is not an indication of future performance.


     </rr:PerformancePastDoesNotIndicateFuture>
    <rr:PerformanceAvailabilityWebSiteAddress contextRef="S000007113MAS-PRO" id="ixv-1276">

      www.fidelity.com
     </rr:PerformanceAvailabilityWebSiteAddress>
    <rr:BarChartHeading contextRef="S000007113MAS-PRO" id="ixv-1285">


     Year-by-Year Returns

   </rr:BarChartHeading>
    <rr:AnnualReturn2023
      contextRef="S000007113C000238262"
      decimals="INF"
      id="ixv-24756"
      unitRef="pure">0.0273</rr:AnnualReturn2023>
    <rr:HighestQuarterlyReturnLabel contextRef="S000007113MAS-PRO" id="ixv-1372">
         &#160;&#160;&#160;Highest Quarter Return
        </rr:HighestQuarterlyReturnLabel>
    <rr:BarChartHighestQuarterlyReturn
      contextRef="S000007113MAS-PRO"
      decimals="4"
      id="ixv-24757"
      unitRef="pure">0.0075</rr:BarChartHighestQuarterlyReturn>
    <rr:BarChartHighestQuarterlyReturnDate contextRef="S000007113MAS-PRO" id="ixv-1382">2023-12-31</rr:BarChartHighestQuarterlyReturnDate>
    <rr:LowestQuarterlyReturnLabel contextRef="S000007113MAS-PRO" id="ixv-1387">
         &#160;&#160;&#160;Lowest Quarter Return
        </rr:LowestQuarterlyReturnLabel>
    <rr:BarChartLowestQuarterlyReturn
      contextRef="S000007113MAS-PRO"
      decimals="4"
      id="ixv-24758"
      unitRef="pure">0.0058</rr:BarChartLowestQuarterlyReturn>
    <rr:BarChartLowestQuarterlyReturnDate contextRef="S000007113MAS-PRO" id="ixv-1397">2023-03-31</rr:BarChartLowestQuarterlyReturnDate>
    <rr:PerformanceTableHeading contextRef="S000007113MAS-PRO" id="ixv-1402">




     Average Annual Returns


   </rr:PerformanceTableHeading>
    <rr:AverageAnnualReturnLabel
      contextRef="S000007113C000238262ReturnBeforeTaxes"
      id="ixv-1437">
         Fidelity&#xae; Massachusetts Municipal Money Market Fund
        </rr:AverageAnnualReturnLabel>
    <rr:AverageAnnualReturnYear01
      contextRef="S000007113C000238262ReturnBeforeTaxes"
      decimals="4"
      id="ixv-24759"
      unitRef="pure">0.0273</rr:AverageAnnualReturnYear01>
    <rr:AverageAnnualReturnSinceInception
      contextRef="S000007113C000238262ReturnBeforeTaxes"
      decimals="4"
      id="footnoteMAS-PROS000007113AAR_A_RBT"
      unitRef="pure">0.0256</rr:AverageAnnualReturnSinceInception>
    <rr:AnnualReturnInceptionDate contextRef="S000007113MAS-PRO" id="ixv-1462">2022-09-22</rr:AnnualReturnInceptionDate>
    <rr:RiskReturnHeading contextRef="S000007113MAA-PRO" id="ixv-4274">


     Fund Summary

     Fund /Class:
     Fidelity&#xae; Massachusetts Municipal Money Market Fund
     /Institutional &#160;

   </rr:RiskReturnHeading>
    <rr:ObjectiveHeading contextRef="S000007113MAA-PRO" id="ixv-4294">


     Investment Objective


   </rr:ObjectiveHeading>
    <rr:ObjectivePrimaryTextBlock contextRef="S000007113MAA-PRO" id="ixv-4302">


     Fidelity&#xae; Massachusetts Municipal Money Market Fund seeks as high a level of income, exempt from federal and Massachusetts personal income tax, as is consistent with the preservation of capital and liquidity.


   </rr:ObjectivePrimaryTextBlock>
    <rr:ExpenseHeading contextRef="S000007113MAA-PRO" id="ixv-4307">


     Fee Table


   </rr:ExpenseHeading>
    <rr:ExpenseNarrativeTextBlock contextRef="S000007113MAA-PRO" id="ixv-4313">


     The following table describes the fees and expenses that may be incurred when you buy, hold, and
       sell shares of the fund. In addition to the fees and expenses described below, your broker may also require you to pay other fees, such as brokerage commissions on purchases and sales of certain
       classes of
       shares of the fund and other fees to financial intermediaries, which are not reflected in the tables and examples below.

   </rr:ExpenseNarrativeTextBlock>
    <rr:ShareholderFeesCaption contextRef="S000007113MAA-PRO" id="ixv-4338">


     Shareholder fees


   </rr:ShareholderFeesCaption>
    <rr:ShareholderFeeOther
      contextRef="S000007113MAA-PRO"
      decimals="0"
      id="ixv-24761"
      unitRef="usd">0</rr:ShareholderFeeOther>
    <rr:OperatingExpensesCaption contextRef="S000007113MAA-PRO" id="ixv-4353">


     Annual Operating Expenses


   </rr:OperatingExpensesCaption>
    <rr:ManagementFeesOverAssets
      contextRef="S000007113C000047913"
      decimals="6"
      id="ixv-24762"
      unitRef="pure">0.0020</rr:ManagementFeesOverAssets>
    <rr:DistributionAndService12b1FeesOverAssets
      contextRef="S000007113C000047913"
      decimals="6"
      id="ixv-24763"
      unitRef="pure">0</rr:DistributionAndService12b1FeesOverAssets>
    <rr:OtherExpensesOverAssets
      contextRef="S000007113C000047913"
      decimals="6"
      id="ixv-24764"
      unitRef="pure">0.0005</rr:OtherExpensesOverAssets>
    <rr:ExpensesOverAssets
      contextRef="S000007113C000047913"
      decimals="6"
      id="ixv-24765"
      unitRef="pure">0.0025</rr:ExpensesOverAssets>
    <rr:FeeWaiverOrReimbursementOverAssets
      contextRef="S000007113C000047913"
      decimals="6"
      id="footnoteS000007113MAA-PROAOE_AC000047913_FW"
      unitRef="pure">-0.0005</rr:FeeWaiverOrReimbursementOverAssets>
    <rr:NetExpensesOverAssets
      contextRef="S000007113C000047913"
      decimals="6"
      id="ixv-24767"
      unitRef="pure">0.0020</rr:NetExpensesOverAssets>
    <rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination contextRef="S000007113MAA-PRO" id="ixv-4429">

      will remain in effect for at least one year from the effective date of the prospectus

     </rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination>
    <rr:ExpenseExampleNarrativeTextBlock contextRef="S000007113MAA-PRO" id="ixv-4436">


     This
     example

     helps compare the cost of investing in the fund with the cost of investing in other funds.


     Let's say, hypothetically, that the annual return for shares of the fund is 5% and that the fees and the annual operating expenses for shares of the fund are exactly as described in the fee table. This example illustrates the effect of fees and expenses, but is not meant to suggest actual or expected fees and expenses or returns, all of which may vary. For every $10,000 you invested, here's how much you would pay in total expenses if you sell all of your shares at the end of each time period indicated:


   </rr:ExpenseExampleNarrativeTextBlock>
    <rr:ExpenseExampleYear01
      contextRef="S000007113C000047913"
      decimals="0"
      id="ixv-24768"
      unitRef="usd">20</rr:ExpenseExampleYear01>
    <rr:ExpenseExampleYear03
      contextRef="S000007113C000047913"
      decimals="0"
      id="ixv-24769"
      unitRef="usd">64</rr:ExpenseExampleYear03>
    <rr:ExpenseExampleYear05
      contextRef="S000007113C000047913"
      decimals="0"
      id="ixv-24770"
      unitRef="usd">113</rr:ExpenseExampleYear05>
    <rr:ExpenseExampleYear10
      contextRef="S000007113C000047913"
      decimals="0"
      id="ixv-24771"
      unitRef="usd">255</rr:ExpenseExampleYear10>
    <rr:StrategyHeading contextRef="S000007113MAA-PRO" id="ixv-4494">


     Principal Investment Strategies


   </rr:StrategyHeading>
    <rr:StrategyNarrativeTextBlock contextRef="S000007113MAA-PRO" id="ixv-4499">



      Normally investing in municipal money market securities.
      Normally investing at least 80% of assets in municipal securities whose interest is exempt from federal and Massachusetts personal income taxes.
      Potentially investing up to 20% of assets in municipal securities whose interest is subject to Massachusetts personal income tax.
      Potentially investing more than 25% of total assets in municipal securities that finance similar types of projects.
      Investing in compliance with industry-standard regulatory requirements for money market funds for the quality, maturity, liquidity, and diversification of investments.


   </rr:StrategyNarrativeTextBlock>
    <rr:RiskHeading contextRef="S000007113MAA-PRO" id="ixv-4513">


     Principal Investment Risks


   </rr:RiskHeading>
    <rr:RiskNarrativeTextBlock contextRef="S000007113MAA-PRO" id="ixv-4518">



      Municipal Market Volatility.

     The municipal market is volatile and can be significantly affected by adverse tax, legislative, or political changes and the financial condition of the issuers of municipal securities.

      Interest Rate Changes.

     Interest rate increases can cause the price of a money market security to decrease.

      Income Risk.

     A low or negative interest rate environment can adversely affect the fund's yield.

      Foreign Exposure.

     Entities providing credit support or a maturity-shortening structure that are located in foreign countries can be affected by adverse political, regulatory, market, or economic developments in those countries .

      Geographic Concentration.

     Unfavorable political or economic conditions within Massachusetts can affect the credit quality of issuers located in that state.

      Issuer-Specific Changes.

     A decline in the credit quality of an issuer or a provider of credit support or a maturity-shortening structure for a security can cause the price of a money market security to decrease.


      &#160;

      You could lose money by investing in the fund.





      &#160;

      Although the fund seeks to preserve the value of your investment at $1.00 per share, it cannot guarantee it will do so.






      The fund may impose a fee upon the sale of your shares


      .





      &#160;

      An investment in the fund is not
      a bank account and is not
      insured or guaranteed by the Federal Deposit Insurance Corporation or any other government agency.



     &#160;



      Fidelity Investments and its affiliates, the fund's sponsor,


      is not required to reimburse the fund for losses
      , and you should not expect that the sponsor will provide financial support to the fund at any time
      , including during periods of market stress
      .



   </rr:RiskNarrativeTextBlock>
    <rr:RiskLoseMoney contextRef="S000007113MAA-PRO" id="ixv-4553">

      &#160;

      You could lose money by investing in the fund.

     </rr:RiskLoseMoney>
    <rr:RiskMoneyMarketFundMayNotPreserveDollar contextRef="S000007113MAA-PRO" id="ixv-4560">

      &#160;

      Although the fund seeks to preserve the value of your investment at $1.00 per share, it cannot guarantee it will do so.

     </rr:RiskMoneyMarketFundMayNotPreserveDollar>
    <rr:RiskMoneyMarketFundMayImposeFeesOrSuspendSales contextRef="S000007113MAA-PRO" id="ixv-4567">

      The fund may impose a fee upon the sale of your shares


      .

     </rr:RiskMoneyMarketFundMayImposeFeesOrSuspendSales>
    <rr:RiskNotInsuredDepositoryInstitution contextRef="S000007113MAA-PRO" id="ixv-4574">

      &#160;

      An investment in the fund is not
      a bank account and is not
      insured or guaranteed by the Federal Deposit Insurance Corporation or any other government agency.

     </rr:RiskNotInsuredDepositoryInstitution>
    <rr:RiskMoneyMarketFundSponsorMayNotProvideSupport contextRef="S000007113MAA-PRO" id="ixv-4585">

      Fidelity Investments and its affiliates, the fund's sponsor,


      is not required to reimburse the fund for losses
      , and you should not expect that the sponsor will provide financial support to the fund at any time
      , including during periods of market stress
      .

     </rr:RiskMoneyMarketFundSponsorMayNotProvideSupport>
    <rr:BarChartAndPerformanceTableHeading contextRef="S000007113MAA-PRO" id="ixv-4594">


     Performance


   </rr:BarChartAndPerformanceTableHeading>
    <rr:PerformanceNarrativeTextBlock contextRef="S000007113MAA-PRO" id="ixv-4599">


     The following information is intended to help you understand the risks of investing in the fund.


      The information illustrates the changes in the performance of the fund's shares from year to year.



     &#160;



      Past performance is not an indication of future performance.


     Visit



      www.fidelity.com or institutional.fidelity.com


     for more recent performance information.

   </rr:PerformanceNarrativeTextBlock>
    <rr:PerformanceInformationIllustratesVariabilityOfReturns contextRef="S000007113MAA-PRO" id="ixv-4604">

      The information illustrates the changes in the performance of the fund's shares from year to year.

     </rr:PerformanceInformationIllustratesVariabilityOfReturns>
    <rr:PerformancePastDoesNotIndicateFuture contextRef="S000007113MAA-PRO" id="ixv-4611">

      Past performance is not an indication of future performance.

     </rr:PerformancePastDoesNotIndicateFuture>
    <rr:PerformanceAvailabilityWebSiteAddress contextRef="S000007113MAA-PRO" id="ixv-4617">

      www.fidelity.com or institutional.fidelity.com
     </rr:PerformanceAvailabilityWebSiteAddress>
    <rr:BarChartHeading contextRef="S000007113MAA-PRO" id="ixv-4625">


     Year-by-Year Returns

   </rr:BarChartHeading>
    <rr:AnnualReturn2014
      contextRef="S000007113C000047913"
      decimals="INF"
      id="ixv-24772"
      unitRef="pure">0.0004</rr:AnnualReturn2014>
    <rr:AnnualReturn2015
      contextRef="S000007113C000047913"
      decimals="INF"
      id="ixv-24773"
      unitRef="pure">0.0006</rr:AnnualReturn2015>
    <rr:AnnualReturn2016
      contextRef="S000007113C000047913"
      decimals="INF"
      id="ixv-24774"
      unitRef="pure">0.0031</rr:AnnualReturn2016>
    <rr:AnnualReturn2017
      contextRef="S000007113C000047913"
      decimals="INF"
      id="ixv-24775"
      unitRef="pure">0.0066</rr:AnnualReturn2017>
    <rr:AnnualReturn2018
      contextRef="S000007113C000047913"
      decimals="INF"
      id="ixv-24776"
      unitRef="pure">0.0123</rr:AnnualReturn2018>
    <rr:AnnualReturn2019
      contextRef="S000007113C000047913"
      decimals="INF"
      id="ixv-24777"
      unitRef="pure">0.0131</rr:AnnualReturn2019>
    <rr:AnnualReturn2020
      contextRef="S000007113C000047913"
      decimals="INF"
      id="ixv-24778"
      unitRef="pure">0.0043</rr:AnnualReturn2020>
    <rr:AnnualReturn2021
      contextRef="S000007113C000047913"
      decimals="INF"
      id="ixv-24779"
      unitRef="pure">0.0002</rr:AnnualReturn2021>
    <rr:AnnualReturn2022
      contextRef="S000007113C000047913"
      decimals="INF"
      id="ixv-24780"
      unitRef="pure">0.0096</rr:AnnualReturn2022>
    <rr:AnnualReturn2023
      contextRef="S000007113C000047913"
      decimals="INF"
      id="ixv-24781"
      unitRef="pure">0.0296</rr:AnnualReturn2023>
    <rr:HighestQuarterlyReturnLabel contextRef="S000007113MAA-PRO" id="ixv-4747">
         &#160;&#160;&#160;Highest Quarter Return
        </rr:HighestQuarterlyReturnLabel>
    <rr:BarChartHighestQuarterlyReturn
      contextRef="S000007113MAA-PRO"
      decimals="4"
      id="ixv-24782"
      unitRef="pure">0.0080</rr:BarChartHighestQuarterlyReturn>
    <rr:BarChartHighestQuarterlyReturnDate contextRef="S000007113MAA-PRO" id="ixv-4757">2023-12-31</rr:BarChartHighestQuarterlyReturnDate>
    <rr:LowestQuarterlyReturnLabel contextRef="S000007113MAA-PRO" id="ixv-4762">
         &#160;&#160;&#160;Lowest Quarter Return
        </rr:LowestQuarterlyReturnLabel>
    <rr:BarChartLowestQuarterlyReturn
      contextRef="S000007113MAA-PRO"
      decimals="4"
      id="ixv-24783"
      unitRef="pure">0.0000</rr:BarChartLowestQuarterlyReturn>
    <rr:BarChartLowestQuarterlyReturnDate contextRef="S000007113MAA-PRO" id="ixv-4772">2021-03-31</rr:BarChartLowestQuarterlyReturnDate>
    <rr:PerformanceTableHeading contextRef="S000007113MAA-PRO" id="ixv-4777">


     Average Annual Returns


   </rr:PerformanceTableHeading>
    <rr:AverageAnnualReturnLabel
      contextRef="S000007113C000047913ReturnBeforeTaxes"
      id="ixv-4813">
         Institutional Class
        </rr:AverageAnnualReturnLabel>
    <rr:AverageAnnualReturnYear01
      contextRef="S000007113C000047913ReturnBeforeTaxes"
      decimals="4"
      id="ixv-24784"
      unitRef="pure">0.0296</rr:AverageAnnualReturnYear01>
    <rr:AverageAnnualReturnYear05
      contextRef="S000007113C000047913ReturnBeforeTaxes"
      decimals="4"
      id="ixv-24785"
      unitRef="pure">0.0113</rr:AverageAnnualReturnYear05>
    <rr:AverageAnnualReturnYear10
      contextRef="S000007113C000047913ReturnBeforeTaxes"
      decimals="4"
      id="ixv-24786"
      unitRef="pure">0.0079</rr:AverageAnnualReturnYear10>
    <rr:RiskReturnHeading contextRef="S000007113SMA-PRO" id="ixv-6770">


     Fund Summary

     Fund /Class:
     Fidelity&#xae; Massachusetts Municipal Money Market Fund
     /Premium &#160;

   </rr:RiskReturnHeading>
    <rr:ObjectiveHeading contextRef="S000007113SMA-PRO" id="ixv-6790">


     Investment Objective


   </rr:ObjectiveHeading>
    <rr:ObjectivePrimaryTextBlock contextRef="S000007113SMA-PRO" id="ixv-6798">


     Fidelity&#xae; Massachusetts Municipal Money Market Fund seeks as high a level of income, exempt from federal and Massachusetts personal income tax, as is consistent with the preservation of capital and liquidity.


   </rr:ObjectivePrimaryTextBlock>
    <rr:ExpenseHeading contextRef="S000007113SMA-PRO" id="ixv-6803">


     Fee Table


   </rr:ExpenseHeading>
    <rr:ExpenseNarrativeTextBlock contextRef="S000007113SMA-PRO" id="ixv-6809">


     The following table describes the fees and expenses that may be incurred when you buy, hold, and
       sell shares of the fund. In addition to the fees and expenses described below, your broker may also require you to pay other fees, such as brokerage commissions on purchases and sales of certain
       classes of
       shares of the fund and other fees to financial intermediaries, which are not reflected in the tables and examples below.

   </rr:ExpenseNarrativeTextBlock>
    <rr:ShareholderFeesCaption contextRef="S000007113SMA-PRO" id="ixv-6834">


     Shareholder fees


   </rr:ShareholderFeesCaption>
    <rr:ShareholderFeeOther
      contextRef="S000007113SMA-PRO"
      decimals="0"
      id="ixv-24787"
      unitRef="usd">0</rr:ShareholderFeeOther>
    <rr:OperatingExpensesCaption contextRef="S000007113SMA-PRO" id="ixv-6849">


     Annual Operating Expenses


   </rr:OperatingExpensesCaption>
    <rr:ManagementFeesOverAssets
      contextRef="S000007113C000019442"
      decimals="6"
      id="ixv-24788"
      unitRef="pure">0.0020</rr:ManagementFeesOverAssets>
    <rr:DistributionAndService12b1FeesOverAssets
      contextRef="S000007113C000019442"
      decimals="6"
      id="ixv-24789"
      unitRef="pure">0</rr:DistributionAndService12b1FeesOverAssets>
    <rr:OtherExpensesOverAssets
      contextRef="S000007113C000019442"
      decimals="6"
      id="ixv-24790"
      unitRef="pure">0.0010</rr:OtherExpensesOverAssets>
    <rr:ExpensesOverAssets
      contextRef="S000007113C000019442"
      decimals="6"
      id="ixv-24791"
      unitRef="pure">0.0030</rr:ExpensesOverAssets>
    <rr:ExpenseExampleNarrativeTextBlock contextRef="S000007113SMA-PRO" id="ixv-6896">


     This
     example

     helps compare the cost of investing in the fund with the cost of investing in other funds.


     Let's say, hypothetically, that the annual return for shares of the fund is 5% and that the fees and the annual operating expenses for shares of the fund are exactly as described in the fee table. This example illustrates the effect of fees and expenses, but is not meant to suggest actual or expected fees and expenses or returns, all of which may vary. For every $10,000 you invested, here's how much you would pay in total expenses if you sell all of your shares at the end of each time period indicated:


   </rr:ExpenseExampleNarrativeTextBlock>
    <rr:ExpenseExampleYear01
      contextRef="S000007113C000019442"
      decimals="0"
      id="ixv-24792"
      unitRef="usd">31</rr:ExpenseExampleYear01>
    <rr:ExpenseExampleYear03
      contextRef="S000007113C000019442"
      decimals="0"
      id="ixv-24793"
      unitRef="usd">97</rr:ExpenseExampleYear03>
    <rr:ExpenseExampleYear05
      contextRef="S000007113C000019442"
      decimals="0"
      id="ixv-24794"
      unitRef="usd">169</rr:ExpenseExampleYear05>
    <rr:ExpenseExampleYear10
      contextRef="S000007113C000019442"
      decimals="0"
      id="ixv-24795"
      unitRef="usd">381</rr:ExpenseExampleYear10>
    <rr:StrategyHeading contextRef="S000007113SMA-PRO" id="ixv-6954">


     Principal Investment Strategies


   </rr:StrategyHeading>
    <rr:StrategyNarrativeTextBlock contextRef="S000007113SMA-PRO" id="ixv-6959">



      Normally investing in municipal money market securities.
      Normally investing at least 80% of assets in municipal securities whose interest is exempt from federal and Massachusetts personal income taxes.
      Potentially investing up to 20% of assets in municipal securities whose interest is subject to Massachusetts personal income tax.
      Potentially investing more than 25% of total assets in municipal securities that finance similar types of projects.
      Investing in compliance with industry-standard regulatory requirements for money market funds for the quality, maturity, liquidity, and diversification of investments.


   </rr:StrategyNarrativeTextBlock>
    <rr:RiskHeading contextRef="S000007113SMA-PRO" id="ixv-6973">


     Principal Investment Risks


   </rr:RiskHeading>
    <rr:RiskNarrativeTextBlock contextRef="S000007113SMA-PRO" id="ixv-6978">



      Municipal Market Volatility.

     The municipal market is volatile and can be significantly affected by adverse tax, legislative, or political changes and the financial condition of the issuers of municipal securities.

      Interest Rate Changes.

     Interest rate increases can cause the price of a money market security to decrease.

      Income Risk.

     A low or negative interest rate environment can adversely affect the fund's yield.

      Foreign Exposure.

     Entities providing credit support or a maturity-shortening structure that are located in foreign countries can be affected by adverse political, regulatory, market, or economic developments in those countries .

      Geographic Concentration.

     Unfavorable political or economic conditions within Massachusetts can affect the credit quality of issuers located in that state.

      Issuer-Specific Changes.

     A decline in the credit quality of an issuer or a provider of credit support or a maturity-shortening structure for a security can cause the price of a money market security to decrease.


      &#160;

      You could lose money by investing in the fund.





      &#160;

      Although the fund seeks to preserve the value of your investment at $1.00 per share, it cannot guarantee it will do so.






      The fund may impose a fee upon the sale of your shares


      .





      &#160;

      An investment in the fund is not
      a bank account and is not
      insured or guaranteed by the Federal Deposit Insurance Corporation or any other government agency.



     &#160;



      Fidelity Investments and its affiliates, the fund's sponsor,


      is not required to reimburse the fund for losses
      , and you should not expect that the sponsor will provide financial support to the fund at any time
      , including during periods of market stress
      .



   </rr:RiskNarrativeTextBlock>
    <rr:RiskLoseMoney contextRef="S000007113SMA-PRO" id="ixv-7013">

      &#160;

      You could lose money by investing in the fund.

     </rr:RiskLoseMoney>
    <rr:RiskMoneyMarketFundMayNotPreserveDollar contextRef="S000007113SMA-PRO" id="ixv-7020">

      &#160;

      Although the fund seeks to preserve the value of your investment at $1.00 per share, it cannot guarantee it will do so.

     </rr:RiskMoneyMarketFundMayNotPreserveDollar>
    <rr:RiskMoneyMarketFundMayImposeFeesOrSuspendSales contextRef="S000007113SMA-PRO" id="ixv-7027">

      The fund may impose a fee upon the sale of your shares


      .

     </rr:RiskMoneyMarketFundMayImposeFeesOrSuspendSales>
    <rr:RiskNotInsuredDepositoryInstitution contextRef="S000007113SMA-PRO" id="ixv-7034">

      &#160;

      An investment in the fund is not
      a bank account and is not
      insured or guaranteed by the Federal Deposit Insurance Corporation or any other government agency.

     </rr:RiskNotInsuredDepositoryInstitution>
    <rr:RiskMoneyMarketFundSponsorMayNotProvideSupport contextRef="S000007113SMA-PRO" id="ixv-7045">

      Fidelity Investments and its affiliates, the fund's sponsor,


      is not required to reimburse the fund for losses
      , and you should not expect that the sponsor will provide financial support to the fund at any time
      , including during periods of market stress
      .

     </rr:RiskMoneyMarketFundSponsorMayNotProvideSupport>
    <rr:BarChartAndPerformanceTableHeading contextRef="S000007113SMA-PRO" id="ixv-7054">


     Performance


   </rr:BarChartAndPerformanceTableHeading>
    <rr:PerformanceNarrativeTextBlock contextRef="S000007113SMA-PRO" id="ixv-7059">


     The following information is intended to help you understand the risks of investing in the fund.


      The information illustrates the changes in the performance of the fund's shares from year to year.



     &#160;



      Past performance is not an indication of future performance.


     Visit



      www.fidelity.com


     for more recent performance information.

   </rr:PerformanceNarrativeTextBlock>
    <rr:PerformanceInformationIllustratesVariabilityOfReturns contextRef="S000007113SMA-PRO" id="ixv-7064">

      The information illustrates the changes in the performance of the fund's shares from year to year.

     </rr:PerformanceInformationIllustratesVariabilityOfReturns>
    <rr:PerformancePastDoesNotIndicateFuture contextRef="S000007113SMA-PRO" id="ixv-7071">

      Past performance is not an indication of future performance.

     </rr:PerformancePastDoesNotIndicateFuture>
    <rr:PerformanceAvailabilityWebSiteAddress contextRef="S000007113SMA-PRO" id="ixv-7077">

      www.fidelity.com
     </rr:PerformanceAvailabilityWebSiteAddress>
    <rr:BarChartHeading contextRef="S000007113SMA-PRO" id="ixv-7085">


     Year-by-Year Returns

   </rr:BarChartHeading>
    <rr:AnnualReturn2014
      contextRef="S000007113C000019442"
      decimals="INF"
      id="ixv-24796"
      unitRef="pure">0.0004</rr:AnnualReturn2014>
    <rr:AnnualReturn2015
      contextRef="S000007113C000019442"
      decimals="INF"
      id="ixv-24797"
      unitRef="pure">0.0006</rr:AnnualReturn2015>
    <rr:AnnualReturn2016
      contextRef="S000007113C000019442"
      decimals="INF"
      id="ixv-24798"
      unitRef="pure">0.0024</rr:AnnualReturn2016>
    <rr:AnnualReturn2017
      contextRef="S000007113C000019442"
      decimals="INF"
      id="ixv-24799"
      unitRef="pure">0.0056</rr:AnnualReturn2017>
    <rr:AnnualReturn2018
      contextRef="S000007113C000019442"
      decimals="INF"
      id="ixv-24800"
      unitRef="pure">0.0113</rr:AnnualReturn2018>
    <rr:AnnualReturn2019
      contextRef="S000007113C000019442"
      decimals="INF"
      id="ixv-24801"
      unitRef="pure">0.0121</rr:AnnualReturn2019>
    <rr:AnnualReturn2020
      contextRef="S000007113C000019442"
      decimals="INF"
      id="ixv-24802"
      unitRef="pure">0.0037</rr:AnnualReturn2020>
    <rr:AnnualReturn2021
      contextRef="S000007113C000019442"
      decimals="INF"
      id="ixv-24803"
      unitRef="pure">0.0002</rr:AnnualReturn2021>
    <rr:AnnualReturn2022
      contextRef="S000007113C000019442"
      decimals="INF"
      id="ixv-24804"
      unitRef="pure">0.0088</rr:AnnualReturn2022>
    <rr:AnnualReturn2023
      contextRef="S000007113C000019442"
      decimals="INF"
      id="ixv-24805"
      unitRef="pure">0.0285</rr:AnnualReturn2023>
    <rr:HighestQuarterlyReturnLabel contextRef="S000007113SMA-PRO" id="ixv-7207">
         &#160;&#160;&#160;Highest Quarter Return
        </rr:HighestQuarterlyReturnLabel>
    <rr:BarChartHighestQuarterlyReturn
      contextRef="S000007113SMA-PRO"
      decimals="4"
      id="ixv-24806"
      unitRef="pure">0.0078</rr:BarChartHighestQuarterlyReturn>
    <rr:BarChartHighestQuarterlyReturnDate contextRef="S000007113SMA-PRO" id="ixv-7217">2023-12-31</rr:BarChartHighestQuarterlyReturnDate>
    <rr:LowestQuarterlyReturnLabel contextRef="S000007113SMA-PRO" id="ixv-7222">
         &#160;&#160;&#160;Lowest Quarter Return
        </rr:LowestQuarterlyReturnLabel>
    <rr:BarChartLowestQuarterlyReturn
      contextRef="S000007113SMA-PRO"
      decimals="4"
      id="ixv-24807"
      unitRef="pure">0.0000</rr:BarChartLowestQuarterlyReturn>
    <rr:BarChartLowestQuarterlyReturnDate contextRef="S000007113SMA-PRO" id="ixv-7232">2021-03-31</rr:BarChartLowestQuarterlyReturnDate>
    <rr:PerformanceTableHeading contextRef="S000007113SMA-PRO" id="ixv-7237">


     Average Annual Returns


   </rr:PerformanceTableHeading>
    <rr:AverageAnnualReturnLabel
      contextRef="S000007113C000019442ReturnBeforeTaxes"
      id="ixv-7273">
         Premium Class
        </rr:AverageAnnualReturnLabel>
    <rr:AverageAnnualReturnYear01
      contextRef="S000007113C000019442ReturnBeforeTaxes"
      decimals="4"
      id="ixv-24808"
      unitRef="pure">0.0285</rr:AverageAnnualReturnYear01>
    <rr:AverageAnnualReturnYear05
      contextRef="S000007113C000019442ReturnBeforeTaxes"
      decimals="4"
      id="ixv-24809"
      unitRef="pure">0.0106</rr:AverageAnnualReturnYear05>
    <rr:AverageAnnualReturnYear10
      contextRef="S000007113C000019442ReturnBeforeTaxes"
      decimals="4"
      id="ixv-24810"
      unitRef="pure">0.0073</rr:AverageAnnualReturnYear10>
    <link:footnoteLink
      xlink:role="http://www.xbrl.org/2003/role/link"
      xlink:type="extended">
        <link:loc
          xlink:href="#footnoteS000007114MAS-PROAOE_AC000019443_MF_footnoteS000007114MAS-PROAOE_BC000019443_MF"
          xlink:label="footnoteS000007114MAS-PROAOE_AC000019443_MF_footnoteS000007114MAS-PROAOE_BC000019443_MF"
          xlink:type="locator"/>
        <link:footnote id="footnoteS000007114MAS-PROAOE_A" xlink:label="footnoteS000007114MAS-PROAOE_A" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:div style="margin:10px"><xhtml:span> </xhtml:span><xhtml:span
      class="redlineClass"
      style="font-family:Arial; font-size:4.67pt; vertical-align:super; ">A</xhtml:span><xhtml:span> </xhtml:span><xhtml:span> </xhtml:span><xhtml:span
      class="redlineClass"
      style="font-family:Arial; font-size:8.5pt; ">Adjusted to reflect current fees.</xhtml:span><xhtml:span> </xhtml:span><xhtml:span> </xhtml:span></xhtml:div></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="footnoteS000007114MAS-PROAOE_AC000019443_MF_footnoteS000007114MAS-PROAOE_BC000019443_MF"
          xlink:to="footnoteS000007114MAS-PROAOE_A"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#footnoteS000007114MAS-PROAOE_AC000019443_OE"
          xlink:label="footnoteS000007114MAS-PROAOE_AC000019443_OE"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="footnoteS000007114MAS-PROAOE_AC000019443_OE"
          xlink:to="footnoteS000007114MAS-PROAOE_A"
          xlink:type="arc"/>
        <link:footnote id="footnoteS000007114MAS-PROAOE_B" xlink:label="footnoteS000007114MAS-PROAOE_B" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:div style="margin:10px"><xhtml:span> </xhtml:span><xhtml:span
      class="redlineClass"
      style="font-family:Arial; font-size:4.67pt; vertical-align:super; ">B</xhtml:span><xhtml:span> </xhtml:span><xhtml:span
      class="redlineClass"
      style="font-family:Arial; font-size:8.5pt; ">The management fee covers administrative services previously provided under separate services agreements with the fund, for which 0.11% was previously charged under the services agreements.</xhtml:span><xhtml:span> </xhtml:span></xhtml:div></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="footnoteS000007114MAS-PROAOE_AC000019443_MF_footnoteS000007114MAS-PROAOE_BC000019443_MF"
          xlink:to="footnoteS000007114MAS-PROAOE_B"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#footnoteMAS-PROS000007113AAR_A_RBT"
          xlink:label="footnoteMAS-PROS000007113AAR_A_RBT"
          xlink:type="locator"/>
        <link:footnote id="footnoteMAS-PROS000007113AAR_A" xlink:label="footnoteMAS-PROS000007113AAR_A" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:div style="margin:10px"><xhtml:span> </xhtml:span><xhtml:span
      class="delClass"
      style="-sec-ix-redline:true; ; color:#ff0000; display:none;">
      </xhtml:span><xhtml:span
      class="redlineClass"
      style="font-family:Arial; font-size:4.67pt; vertical-align:super; ">A</xhtml:span><xhtml:span> </xhtml:span><xhtml:span
      class="redlineClass"
      style="font-family:Arial; font-size:8.5pt; font-style:italic; ">From </xhtml:span><xhtml:span> </xhtml:span><xhtml:span
      class="redlineClass"
      style="font-family:Arial; font-size:8.5pt; font-style:italic; ">September 22, 2022</xhtml:span><xhtml:span> </xhtml:span><xhtml:span> </xhtml:span><xhtml:span
      class="redlineClass"
      style="font-family:Arial; font-size:8.5pt; font-style:italic; ">.</xhtml:span><xhtml:span> </xhtml:span></xhtml:div></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="footnoteMAS-PROS000007113AAR_A_RBT"
          xlink:to="footnoteMAS-PROS000007113AAR_A"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#footnoteS000007113MAA-PROAOE_AC000047913_FW"
          xlink:label="footnoteS000007113MAA-PROAOE_AC000047913_FW"
          xlink:type="locator"/>
        <link:footnote id="footnoteS000007113MAA-PROAOE_A" xlink:label="footnoteS000007113MAA-PROAOE_A" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:div style="margin:10px"><xhtml:span> </xhtml:span><xhtml:span style="font-family:Arial; font-size:4.67pt; vertical-align:super">A</xhtml:span><xhtml:span> </xhtml:span><xhtml:span style="font-family:Arial; font-size:8.5pt; font-style:italic">Fidelity Management &amp; Research Company LLC (FMR) has contractually agreed to reimburse Institutional Class of the fund to the extent that total operating expenses (excluding interest, certain taxes, fees and expenses of the Independent Trustees, extraordinary expenses, and acquired fund fees and expenses (including fees and expenses associated with a wholly owned subsidiary), if any, as well as non-operating expenses such as brokerage commissions and fees and expenses associated with the fund's securities lending program, if applicable), as a percentage of its average net assets, exceed 0.20% </xhtml:span><xhtml:span style="font-family:Arial; font-size:8.5pt; font-style:italic">&#160;</xhtml:span><xhtml:span style="font-family:Arial; font-size:8.5pt; font-style:italic">(the Expense Cap). If at any time during the current fiscal year expenses for Institutional Class of the fund fall below the Expense Cap, FMR reserves the right to recoup through the end of the fiscal year any expenses that were reimbursed during the current fiscal year up to, but not in excess of, the Expense Cap. This arrangement </xhtml:span><xhtml:span> </xhtml:span><xhtml:span style="font-family:Arial; font-size:8.5pt; font-style:italic">will remain in effect for at least one year from the effective date of the prospectus</xhtml:span><xhtml:span> </xhtml:span><xhtml:span> </xhtml:span><xhtml:span style="font-family:Arial; font-size:8.5pt; font-style:italic">. FMR may not terminate this arrangement without the approval of the Board of Trustees and may extend it in its discretion after that date.</xhtml:span><xhtml:span> </xhtml:span></xhtml:div></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="footnoteS000007113MAA-PROAOE_AC000047913_FW"
          xlink:to="footnoteS000007113MAA-PROAOE_A"
          xlink:type="arc"/>
    </link:footnoteLink>
</xbrl>
