v3.26.1
Label Element Value
MFS Diversified Income Fund  
Risk/Return: oef_RiskReturnAbstract  
Risk/Return [Heading] oef_RiskReturnHeading MFS® Diversified Income Fund Summary of Key Information
Objective [Heading] oef_ObjectiveHeading Investment Objective
Objective, Primary [Text Block] oef_ObjectivePrimaryTextBlock

The fund’s investment objective is to seek total return with an emphasis on current income, but also considering capital appreciation.

Expense Heading [Optional Text] oef_ExpenseHeading Fees and Expenses
Expense Narrative [Text Block] oef_ExpenseNarrativeTextBlock

This table describes the fees and expenses that you may pay when you buy, hold, and sell shares of the fund. Investors may also pay commissions or other fees to their financial intermediaries when they buy, hold, and sell shares of the fund, which are not reflected below.

You may qualify for sales charge reductions if, with respect to Class A shares, you and certain members of your family invest, or agree to invest in the future, at least $100,000 in MFS funds. More information about these and other waivers and reductions is available from your financial intermediary and in “Sales Charges and Waivers and Reductions” on page 15 and “Appendix A – Waivers and Reductions of Sales Charges” on page A-1 of the fund’s prospectus.

Shareholder Fees Caption [Optional Text] oef_ShareholderFeesCaption Shareholder Fees (fees paid directly from your investment):
Operating Expenses Caption [Optional Text] oef_OperatingExpensesCaption Annual Fund Operating Expenses (expenses that you pay each year as a percentage of the value of your investment):
Portfolio Turnover [Heading] oef_PortfolioTurnoverHeading Portfolio Turnover
Portfolio Turnover [Text Block] oef_PortfolioTurnoverTextBlock

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 shares are held in a taxable account. These transaction costs, which are not reflected in “Annual Fund Operating Expenses” or in the “Example,” affect the fund’s performance. During the most recent fiscal year, the fund’s portfolio turnover rate was 43% of the average value of its portfolio.

Portfolio Turnover, Rate oef_PortfolioTurnoverRate 43.00%
Expense Breakpoint Discounts [Text] oef_ExpenseBreakpointDiscounts You may qualify for sales charge reductions if, with respect to Class A shares, you and certain members of your family invest, or agree to invest in the future, at least $100,000 in MFS funds.
Expense Breakpoint, Minimum Investment Required [Amount] oef_ExpenseBreakpointMinimumInvestmentRequiredAmount $ 100,000
Expense Example [Heading] oef_ExpenseExampleHeading Example
Expense Example Narrative [Text Block] oef_ExpenseExampleNarrativeTextBlock

This example is intended to help you compare the cost of investing in the fund with the cost of investing in other mutual funds.

The example assumes that: you invest $10,000 in the fund for the time periods indicated and you redeem your shares at the end of the time periods (unless otherwise indicated); your investment has a 5% return each year; and the fund’s operating expenses remain the same.

Expense Example by, Year, Caption [Text] oef_ExpenseExampleByYearCaption Although your actual costs will likely be higher or lower, under these assumptions your costs would be:
Strategy [Heading] oef_StrategyHeading Principal Investment Strategies
Strategy Narrative [Text Block] oef_StrategyNarrativeTextBlock

MFS (Massachusetts Financial Services Company, the fund’s investment adviser) normally invests the fund’s assets primarily in a broad range of debt instruments and equity securities of U.S. and foreign issuers, including real estate-related investments and emerging market securities.

MFS allocates the fund’s assets across the following categories based on its interpretation of economic and money market conditions, fiscal and monetary policy and asset class and/or security values. When MFS' assessment of the relative attractiveness of these categories is neutral, the fund's exposure to these categories is expected to be approximately:

  

Category

Neutral Position

Investment Grade Quality Debt Instruments

15%

Lower Quality Debt Instruments

25%

U.S. Government Securities

10%

Emerging Market Debt Instruments

15%

Dividend-Paying Equity Securities

20%

Real Estate-Related Investments

15%

These allocations may vary significantly from time to time.

For the debt instrument portion of the fund, MFS normally focuses on investing the fund's assets in investment grade quality corporate debt instruments, U.S. Government securities, below investment grade quality debt instruments of developed market issuers, and debt instruments of emerging market issuers (including below investment grade quality debt instruments of emerging market issuers). Of the fund’s investments in debt instruments, MFS may invest up to 100% of these investments in below investment grade quality debt instruments. MFS may purchase or sell securities for the fund on a when-issued, delayed delivery, or forward commitment basis where payment and delivery take place at a future settlement date, including mortgage-backed securities purchased or sold in the to be announced (TBA) market.

For the equity portion of the fund, MFS focuses on investing the fund’s assets in dividend-paying stocks of U.S. and foreign issuers. In selecting equity investments for the fund, MFS is not constrained by any particular investment style. MFS may invest the fund’s assets in the stocks of companies it believes to have above average earnings growth potential compared to other companies (growth companies), in the stocks of companies it believes are undervalued compared to their perceived worth (value companies), or in a combination of growth and value companies. While MFS may invest the equity portion of the fund’s assets in securities of companies of any size, MFS primarily invests in securities of companies with large capitalizations.

For the real estate-related portion of the fund, MFS invests the fund’s assets in real estate investment trusts (REITs) and other companies principally engaged in the real estate industry. MFS generally focuses the fund’s real estate-related investments in equity REITs, but may also invest the fund’s assets in mortgage REITs and other real estate-related investments. Issuers of real estate-related investments tend to have small-to-medium market capitalizations.

MFS normally invests the fund's assets across different industries, sectors, countries, and regions, but MFS may invest a significant percentage of the fund’s assets in issuers in a single industry, sector, country, or region.

While MFS may use derivatives for any investment purpose, to the extent MFS uses derivatives, MFS expects to use derivatives primarily to increase or decrease exposure to a particular market, segment of the market, or security, to increase or decrease interest rate or currency exposure, or as alternatives to direct investments. Derivatives include futures, forward contracts, options, and swaps.

MFS uses an active bottom-up investment approach to buying and selling investments for the fund. For the debt and real estate-related portions of the fund, investments are selected primarily based on fundamental analysis of individual issuers and instruments. For the equity portion of the fund, investments are selected primarily based on blending fundamental and quantitative research and then constructing a portfolio of equity securities while managing various risk factors (e.g., issuer, industry, and sector weightings, market capitalization, and volatility). Quantitative models that systematically evaluate issuers and instruments are used by the fund's equity securities portfolio manager and may also be considered by the fund's other portfolio managers.

MFS may invest the fund's assets in other mutual funds advised by MFS that invest in particular investment types rather than invest directly in such investments.

Bar Chart and Performance Table [Heading] oef_BarChartAndPerformanceTableHeading Performance Information
Performance Narrative [Text Block] oef_PerformanceNarrativeTextBlock

The bar chart and performance table below are intended to provide some indication of the risks of investing in the fund by showing changes in the fund’s performance over time and how the fund’s performance over time compares with that of (i) a broad measure of market performance and (ii) the performance of an additional index that the adviser believes more closely reflects the market segments in which the funds invests.

Performance information prior to June 15, 2021, reflects time periods when the fund did not have an investment strategy of allocating a portion of its assets to investment grade quality debt instruments. The fund's investment strategies changed effective June 15, 2021. The fund’s past performance (before and after taxes) does not necessarily indicate how the fund will perform in the future. Updated performance is available online at mfs.com or by calling 1-800-225-2606.

Performance Information Illustrates Variability of Returns [Text] oef_PerformanceInformationIllustratesVariabilityOfReturns The bar chart and performance table below are intended to provide some indication of the risks of investing in the fund by showing changes in the fund’s performance over time and how the fund’s performance over time compares with that of (i) a broad measure of market performance and (ii) the performance of an additional index that the adviser believes more closely reflects the market segments in which the funds invests.
Performance Additional Market Index [Text] oef_PerformanceAdditionalMarketIndex As of December 31, 2025, the MFS Diversified Income Fund Blended Index (the Blended Index) consisted of the following indices and weightings: 15% MSCI US REIT Index; 15% JPMorgan Emerging Markets Bond Index Global Diversified; 10% Bloomberg U.S. Government/Mortgage Index; 25% Bloomberg U.S. Corporate High-Yield 2% Issuer Capped Index; 20% MSCI All Country World (ACWI) High Dividend Yield Index; and 15% Bloomberg U.S. Credit Index. The components and weightings of the Blended Index may have differed during the periods, and may differ in the future.
Performance Availability Phone [Text] oef_PerformanceAvailabilityPhone 1-800-225-2606
Performance Availability Website Address [Text] oef_PerformanceAvailabilityWebSiteAddress mfs.com
Performance Past Does Not Indicate Future [Text] oef_PerformancePastDoesNotIndicateFuture The fund’s past performance (before and after taxes) does not necessarily indicate how the fund will perform in the future.
Bar Chart [Heading] oef_BarChartHeading Class A Bar Chart.
Bar Chart Narrative [Text Block] oef_BarChartNarrativeTextBlock The bar chart does not take into account any sales charges (loads) that you may be required to pay upon purchase or redemption of the fund’s shares. If these sales charges were included, they would reduce the returns shown.
Bar Chart Does Not Reflect Sales Loads [Text] oef_BarChartDoesNotReflectSalesLoads The bar chart does not take into account any sales charges (loads) that you may be required to pay upon purchase or redemption of the fund’s shares. If these sales charges were included, they would reduce the returns shown.
Bar Chart Closing [Text Block] oef_BarChartClosingTextBlock

The total return for the three-month period ended March 31, 2026, was 1.26%. During the period(s) shown in the bar chart, the highest quarterly return was 8.65% (for the calendar quarter ended December 31, 2023) and the lowest quarterly return was (13.45)% (for the calendar quarter ended March 31, 2020).

Performance Table Heading oef_PerformanceTableHeading Performance Table.
Index No Deduction for Fees, Expenses, or Taxes [Text] oef_IndexNoDeductionForFeesExpensesTaxes Reflects no deduction for fees, expenses, or taxes
Performance Table Not Relevant to Tax Deferred oef_PerformanceTableNotRelevantToTaxDeferred Your actual after-tax returns will depend on your own tax situation, and may differ from those shown. The after-tax returns shown are not relevant to investors who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual retirement accounts (IRAs).
Performance Table One Class of after Tax Shown [Text] oef_PerformanceTableOneClassOfAfterTaxShown The after-tax returns are shown for only one of the fund’s classes of shares, and after-tax returns for the fund’s other classes of shares will vary from the returns shown.
Performance Table Closing [Text Block] oef_PerformanceTableClosingTextBlock

As of December 31, 2025, the MFS Diversified Income Fund Blended Index (the Blended Index) consisted of the following indices and weightings: 15% MSCI US REIT Index; 15% JPMorgan Emerging Markets Bond Index Global Diversified; 10% Bloomberg U.S. Government/Mortgage Index; 25% Bloomberg U.S. Corporate High-Yield 2% Issuer Capped Index; 20% MSCI All Country World (ACWI) High Dividend Yield Index; and 15% Bloomberg U.S. Credit Index. The components and weightings of the Blended Index may have differed during the periods, and may differ in the future.

After-tax returns are calculated using the historical highest individual U.S. federal marginal income tax rates and do not reflect

the impact of state and local taxes. Your actual after-tax returns will depend on your own tax situation, and may differ from those shown. The after-tax returns shown are not relevant to investors who hold their shares through tax-advantaged arrangements, such as 401(k) plans or individual retirement accounts (IRAs). The after-tax returns are shown for only one of the fund’s classes of shares, and after-tax returns for the fund’s other classes of shares will vary from the returns shown.

Average Annual Return, Caption [Optional Text] oef_AverageAnnualReturnCaption Average Annual Total Returns (For the Periods Ended December 31, 2025)
MFS Diversified Income Fund | Principal Risks  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock

Principal Risks

As with any mutual fund, the fund may not achieve its objective and/or you could lose money on your investment in the fund. An investment in the fund is not a bank deposit and is not insured or guaranteed by the Federal Deposit Insurance Corporation or any other governmental agency.

The principal risks of investing in the fund are:

MFS Diversified Income Fund | Risk Lose Money [Member]  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock As with any mutual fund, the fund may not achieve its objective and/or you could lose money on your investment in the fund.
MFS Diversified Income Fund | Risk Not Insured [Member]  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock An investment in the fund is not a bank deposit and is not insured or guaranteed by the Federal Deposit Insurance Corporation or any other governmental agency.
MFS Diversified Income Fund | Allocation Risk  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock

Allocation Risk: MFS’ assessment of the risk/return potential of asset classes and the resulting allocation among asset classes may not produce the intended results and/or can lead to an investment focus that results in the fund underperforming other funds with similar investment strategies and/or underperforming the markets in which the fund invests.

MFS Diversified Income Fund | Investment Selection Risk  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock

Investment Selection Risk: MFS' investment analysis, its development and use of quantitative models, and its selection of investments may not produce the intended results and/or can lead to an investment focus that results in the fund underperforming other funds with similar investment strategies and/or underperforming the markets in which the fund invests. The quantitative models used by MFS (both proprietary and third-party) may not produce the intended results for a variety of reasons, including the factors used in the models, the weight placed on each factor in the models, changes from the market factors' historical trends, changing sources of market return or market risk, and technical issues in the design, development, implementation, application, and maintenance of the models (e.g., incomplete, stale, or inaccurate data, human error, programming or other software issues, coding errors, and technology failures).

MFS Diversified Income Fund | Debt Market Risk  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock

Debt Market Risk: Debt markets can be volatile and can decline significantly in response to changes in, or investor perceptions of, issuer, market, economic, industry, political, regulatory, geopolitical, environmental, public health, and other conditions. These conditions can affect a single instrument, issuer, or borrower, a particular type of instrument, issuer, or borrower, a segment of the debt markets or the debt markets generally. Certain events can have a dramatic adverse effect on debt markets and may lead to periods of high volatility and reduced liquidity in a debt market or segment of a debt market.

MFS Diversified Income Fund | Interest Rate Risk  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock

Interest Rate Risk: In general, the price of a debt instrument falls when interest rates rise and rises when interest rates fall. Interest rate risk is generally greater for instruments with longer maturities or durations, or that do not pay current interest.

MFS Diversified Income Fund | Credit Risk  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock

Credit Risk: The price of a debt instrument depends, in part, on the credit quality of the issuer, borrower, counterparty, or other entity responsible for payment, or underlying collateral or assets and the terms of the instrument. The price of a debt instrument can decline in response to changes in, or perceptions of, the financial condition of the issuer, borrower, counterparty, or other entity, or underlying collateral or assets, or changes in, or perceptions of, specific or general market, economic, industry, political, regulatory, geopolitical, environmental, public health, and other conditions. Debt instruments may be more susceptible to downgrades or defaults during economic downturns or similar periods of economic stress, which in turn could negatively affect the market value and liquidity of a debt instrument.

Below investment grade quality debt instruments (commonly referred to as “high yield securities” or “junk bonds”) can involve a substantially greater risk of default or can already be in default, and their values can decline significantly. Below investment grade quality debt instruments are regarded as having predominantly speculative characteristics. Below investment grade quality debt instruments tend to be more sensitive to adverse news about the issuer, or the market or economy in general, than higher quality debt instruments.

MFS Diversified Income Fund | Foreign Risk  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock

Foreign Risk: Exposure to foreign markets through issuers or currencies can involve additional risks relating to market, economic, industry, political, regulatory, geopolitical, environmental, public health, and other conditions. These factors can make foreign investments, especially those tied economically to emerging markets or countries subject to sanctions or the threat of new or modified sanctions, more volatile and less liquid than U.S. investments. In addition, foreign markets can react differently to these conditions than the U.S. market.

MFS Diversified Income Fund | Emerging Markets Risk  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock

Emerging Markets Risk: Investments tied economically to emerging markets, especially frontier markets, can involve additional and greater risks than the risks associated with investments in developed markets. Emerging markets can have less developed markets, greater custody and operational risk, less developed legal, regulatory, and accounting systems, greater government involvement in the economy, greater risk of new or inconsistent government treatment of or restrictions on issuers and instruments, and greater political, social, geopolitical, and economic instability than developed markets.

MFS Diversified Income Fund | Focus Risk  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock

Focus Risk: Issuers in a single industry, sector, country, or region can react similarly to market, currency, political, economic, regulatory, geopolitical, environmental, public health, and other conditions, and the fund's performance will be affected by the conditions in the industries, sectors, countries, and regions to which the fund is exposed. Furthermore, investments in particular industries, sectors, countries, or regions may be more volatile than the broader market as a whole.

MFS Diversified Income Fund | Currency Risk  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock

Currency Risk: The value of foreign currencies relative to the U.S. dollar fluctuates in response to market, economic, industry, political, regulatory, geopolitical, environmental, public health, and other conditions, and changes in currency exchange rates impact the financial condition of companies or other issuers and may change the value in U.S. dollars of investments denominated in foreign currencies.

MFS Diversified Income Fund | Prepayment/Extension Risk  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock

Prepayment/Extension Risk: Instruments subject to prepayment and/or extension can reduce the potential for gain for the instrument’s holders if the instrument is prepaid and increase the potential for loss if the maturity of the instrument is extended.

MFS Diversified Income Fund | Equity Market Risk/Company Risk  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock

Equity Market Risk/Company Risk: Equity markets are volatile and can decline significantly in response to changes in, or investor perceptions of, issuer, market, economic, industry, political, regulatory, geopolitical, environmental, public health, and other conditions. These conditions can affect a single issuer or type of security, issuers within a broad market sector, industry or geographic region, or the equity markets in general. Certain events can have a dramatic adverse effect on equity markets and may lead to periods of high volatility in an equity market or a segment of an equity market. The value of an investment held by the fund may decline due to factors directly related to the issuer.

MFS Diversified Income Fund | Growth Company Risk  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock

Growth Company Risk: The stocks of growth companies can be more sensitive to the company’s earnings and more volatile than the market in general.

MFS Diversified Income Fund | Value Company Risk  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock

Value Company Risk: The stocks of value companies can continue to be undervalued for long periods of time and not realize their expected value and can be more volatile than the market in general.

MFS Diversified Income Fund | Real Estate-Related Investment Risk  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock

Real Estate-Related Investment Risk: The risks of investing in real estate-related securities include certain risks associated with the direct ownership of real estate and the real estate industry in general. These include risks related to general, regional and local economic conditions; difficulties in valuing and disposing of real estate; fluctuations in interest rates and property tax rates; shifts in zoning laws, environmental regulations and other governmental action; cash flow dependency; increased operating expenses; lack of availability of mortgage funds; losses due to natural disasters; overbuilding; losses due to casualty or condemnation; changes in property values and rental rates; the management skill and creditworthiness of the REIT manager; and other factors. The

securities of smaller real estate-related issuers can be more volatile and less liquid than securities of larger issuers and their issuers can have more limited financial resources.

MFS Diversified Income Fund | When-Issued, Delayed Delivery, and Forward Commitment Transaction Risk  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock

When-Issued, Delayed Delivery, and Forward Commitment Transaction Risk: The purchaser in a when-issued, delayed delivery or forward commitment transaction assumes the rights and risks of ownership, including the risks of price and yield fluctuations and the risk that the security will not be issued or delivered as anticipated. When-issued, delayed delivery, and forward commitment transactions can involve leverage. TBA transactions may significantly increase the fund's portfolio turnover rate.

MFS Diversified Income Fund | Derivatives Risk  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock

Derivatives Risk: Derivatives can be highly volatile and involve risks in addition to the risks of the underlying indicator(s) on which the derivative is based. Gains or losses from derivatives can be substantially greater than the derivatives’ original cost. Derivatives can involve leverage.

MFS Diversified Income Fund | Leveraging Risk  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock

Leveraging Risk: Leverage involves investment exposure in an amount exceeding the initial investment. Leverage can cause increased volatility by magnifying gains or losses.

MFS Diversified Income Fund | Counterparty and Third Party Risk  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock

Counterparty and Third Party Risk: Transactions involving a counterparty or third party other than the issuer of the instrument are subject to the credit risk of the counterparty or third party, and to the counterparty’s or third party’s ability or willingness to perform in accordance with the terms of the transaction.

MFS Diversified Income Fund | Liquidity Risk  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock

Liquidity Risk: It may be difficult to value, and it may not be possible to sell, certain investments, types of investments, and/or investments in certain segments of the market, and the fund may have to sell certain of these investments at prices or times that are not advantageous in order to meet redemptions or other cash needs.

MFS Diversified Income Fund | Large Shareholder Risk  
Risk/Return: oef_RiskReturnAbstract  
Risk [Text Block] oef_RiskTextBlock

Large Shareholder Risk: From time to time, shareholders of the fund (which may include institutional investors, financial intermediaries, or other MFS funds) may make relatively large redemptions or purchases of fund shares. These transactions may cause the fund to sell securities or invest additional cash, as the case may be, at disadvantageous prices. Redemptions of a large number of shares also may increase transaction and other costs or have adverse tax consequences for shareholders of the fund by requiring a sale of portfolio securities. Purchases of a large number of shares may adversely affect the fund's performance to the extent that it takes time to invest new cash and the fund maintains a larger cash position than it ordinarily would.

MFS Diversified Income Fund | Standard & Poor's 500 Stock Index  
Risk/Return: oef_RiskReturnAbstract  
Average Annual Return, Label [Optional Text] oef_AverageAnnualReturnLabel Standard & Poor's 500 Stock Index
Average Annual Return, Percent oef_AvgAnnlRtrPct 17.88%
Average Annual Return, Percent oef_AvgAnnlRtrPct 14.42%
Average Annual Return, Percent oef_AvgAnnlRtrPct 14.82%
MFS Diversified Income Fund | MFS Diversified Income Fund Blended Index  
Risk/Return: oef_RiskReturnAbstract  
Average Annual Return, Label [Optional Text] oef_AverageAnnualReturnLabel MFS Diversified Income Fund Blended Index
Average Annual Return, Percent oef_AvgAnnlRtrPct 10.53%
Average Annual Return, Percent oef_AvgAnnlRtrPct 4.02%
Average Annual Return, Percent oef_AvgAnnlRtrPct 5.62%
MFS Diversified Income Fund | Class A  
Risk/Return: oef_RiskReturnAbstract  
Trading Symbol dei_TradingSymbol DIFAX
Maximum Sales Charge Imposed on Purchases (as a percentage of Offering Price) oef_MaximumSalesChargeImposedOnPurchasesOverOfferingPrice 4.25%
Maximum Deferred Sales Charge (as a percentage of Offering Price) oef_MaximumDeferredSalesChargeOverOfferingPrice 1.00% [1]
Management Fees (as a percentage of Assets) oef_ManagementFeesOverAssets 0.55%
Distribution and Service (12b-1) Fees oef_DistributionAndService12b1FeesOverAssets 0.25%
Other Expenses (as a percentage of Assets): oef_OtherExpensesOverAssets 0.15%
Expenses (as a percentage of Assets) oef_ExpensesOverAssets 0.95%
Fee Waiver or Reimbursement oef_FeeWaiverOrReimbursementOverAssets (0.06%) [2]
Net Expenses (as a percentage of Assets) oef_NetExpensesOverAssets 0.89%
Fee Waiver or Reimbursement over Assets, Date of Termination oef_FeeWaiverOrReimbursementOverAssetsDateOfTermination June 30, 2027
Expenses Deferred Charges [Text Block] oef_ExpensesDeferredChargesTextBlock This contingent deferred sales charge (CDSC) applies to shares purchased without an initial sales charge and redeemed within 18 months of purchase.
Expense Example, with Redemption, 1 Year oef_ExpenseExampleYear01 $ 512
Expense Example, with Redemption, 3 Years oef_ExpenseExampleYear03 709
Expense Example, with Redemption, 5 Years oef_ExpenseExampleYear05 923
Expense Example, with Redemption, 10 Years oef_ExpenseExampleYear10 $ 1,537
Year to Date Return, Label [Optional Text] oef_YearToDateReturnLabel The total return for the three-month period ended
Bar Chart, Year to Date Return, Date oef_BarChartYearToDateReturnDate Mar. 31, 2026
Bar Chart, Year to Date Return oef_BarChartYearToDateReturn 1.26%
Highest Quarterly Return, Label [Optional Text] oef_HighestQuarterlyReturnLabel highest quarterly return
Highest Quarterly Return, Date oef_BarChartHighestQuarterlyReturnDate Dec. 31, 2023
Highest Quarterly Return oef_BarChartHighestQuarterlyReturn 8.65%
Lowest Quarterly Return, Label [Optional Text] oef_LowestQuarterlyReturnLabel lowest quarterly return
Lowest Quarterly Return, Date oef_BarChartLowestQuarterlyReturnDate Mar. 31, 2020
Lowest Quarterly Return oef_BarChartLowestQuarterlyReturn (13.45%)
Average Annual Return, Label [Optional Text] oef_AverageAnnualReturnLabel Returns Before Taxes
Average Annual Return, Percent oef_AvgAnnlRtrPct 4.70%
Average Annual Return, Percent oef_AvgAnnlRtrPct 2.71%
Average Annual Return, Percent oef_AvgAnnlRtrPct 4.52%
Annual Return [Percent] oef_AnnlRtrPct 8.49%
Annual Return [Percent] oef_AnnlRtrPct 8.64%
Annual Return [Percent] oef_AnnlRtrPct (3.69%)
Annual Return [Percent] oef_AnnlRtrPct 17.38%
Annual Return [Percent] oef_AnnlRtrPct 2.15%
Annual Return [Percent] oef_AnnlRtrPct 9.30%
Annual Return [Percent] oef_AnnlRtrPct (13.01%)
Annual Return [Percent] oef_AnnlRtrPct 9.23%
Annual Return [Percent] oef_AnnlRtrPct 5.14%
Annual Return [Percent] oef_AnnlRtrPct 9.34%
MFS Diversified Income Fund | Class A | After Taxes on Distributions  
Risk/Return: oef_RiskReturnAbstract  
Average Annual Return, Label [Optional Text] oef_AverageAnnualReturnLabel Returns After Taxes on Distributions
Average Annual Return, Percent oef_AvgAnnlRtrPct 2.53%
Average Annual Return, Percent oef_AvgAnnlRtrPct 1.08%
Average Annual Return, Percent oef_AvgAnnlRtrPct 3.05%
MFS Diversified Income Fund | Class A | After Taxes on Distributions and Sales  
Risk/Return: oef_RiskReturnAbstract  
Average Annual Return, Label [Optional Text] oef_AverageAnnualReturnLabel Returns After Taxes on Distributions and Sale of Fund Shares
Average Annual Return, Percent oef_AvgAnnlRtrPct 2.85%
Average Annual Return, Percent oef_AvgAnnlRtrPct 1.47%
Average Annual Return, Percent oef_AvgAnnlRtrPct 2.95%
MFS Diversified Income Fund | Class C  
Risk/Return: oef_RiskReturnAbstract  
Trading Symbol dei_TradingSymbol DIFCX
Maximum Sales Charge Imposed on Purchases (as a percentage of Offering Price) oef_MaximumSalesChargeImposedOnPurchasesOverOfferingPrice 0.00%
Maximum Deferred Sales Charge (as a percentage of Offering Price) oef_MaximumDeferredSalesChargeOverOfferingPrice 1.00%
Management Fees (as a percentage of Assets) oef_ManagementFeesOverAssets 0.55%
Distribution and Service (12b-1) Fees oef_DistributionAndService12b1FeesOverAssets 1.00%
Other Expenses (as a percentage of Assets): oef_OtherExpensesOverAssets 0.15%
Expenses (as a percentage of Assets) oef_ExpensesOverAssets 1.70%
Fee Waiver or Reimbursement oef_FeeWaiverOrReimbursementOverAssets (0.06%) [2]
Net Expenses (as a percentage of Assets) oef_NetExpensesOverAssets 1.64%
Fee Waiver or Reimbursement over Assets, Date of Termination oef_FeeWaiverOrReimbursementOverAssetsDateOfTermination June 30, 2027
Expense Example, with Redemption, 1 Year oef_ExpenseExampleYear01 $ 267 [3]
Expense Example, with Redemption, 3 Years oef_ExpenseExampleYear03 530 [3]
Expense Example, with Redemption, 5 Years oef_ExpenseExampleYear05 917 [3]
Expense Example, with Redemption, 10 Years oef_ExpenseExampleYear10 1,804 [3]
Expense Example, No Redemption, 1 Year oef_ExpenseExampleNoRedemptionYear01 167 [3]
Expense Example, No Redemption, 3 Years oef_ExpenseExampleNoRedemptionYear03 530 [3]
Expense Example, No Redemption, 5 Years oef_ExpenseExampleNoRedemptionYear05 917 [3]
Expense Example, No Redemption, 10 Years oef_ExpenseExampleNoRedemptionYear10 $ 1,804 [3]
Average Annual Return, Label [Optional Text] oef_AverageAnnualReturnLabel Returns Before Taxes
Average Annual Return, Percent oef_AvgAnnlRtrPct 7.62%
Average Annual Return, Percent oef_AvgAnnlRtrPct 2.85%
Average Annual Return, Percent oef_AvgAnnlRtrPct 4.36%
MFS Diversified Income Fund | Class I  
Risk/Return: oef_RiskReturnAbstract  
Trading Symbol dei_TradingSymbol DIFIX
Maximum Sales Charge Imposed on Purchases (as a percentage of Offering Price) oef_MaximumSalesChargeImposedOnPurchasesOverOfferingPrice 0.00%
Maximum Deferred Sales Charge (as a percentage of Offering Price) oef_MaximumDeferredSalesChargeOverOfferingPrice 0.00%
Management Fees (as a percentage of Assets) oef_ManagementFeesOverAssets 0.55%
Distribution and Service (12b-1) Fees oef_DistributionAndService12b1FeesOverAssets 0.00%
Other Expenses (as a percentage of Assets): oef_OtherExpensesOverAssets 0.15%
Expenses (as a percentage of Assets) oef_ExpensesOverAssets 0.70%
Fee Waiver or Reimbursement oef_FeeWaiverOrReimbursementOverAssets (0.06%) [2]
Net Expenses (as a percentage of Assets) oef_NetExpensesOverAssets 0.64%
Fee Waiver or Reimbursement over Assets, Date of Termination oef_FeeWaiverOrReimbursementOverAssetsDateOfTermination June 30, 2027
Expense Example, with Redemption, 1 Year oef_ExpenseExampleYear01 $ 65
Expense Example, with Redemption, 3 Years oef_ExpenseExampleYear03 218
Expense Example, with Redemption, 5 Years oef_ExpenseExampleYear05 384
Expense Example, with Redemption, 10 Years oef_ExpenseExampleYear10 $ 865
Average Annual Return, Label [Optional Text] oef_AverageAnnualReturnLabel Returns Before Taxes
Average Annual Return, Percent oef_AvgAnnlRtrPct 9.70%
Average Annual Return, Percent oef_AvgAnnlRtrPct 3.87%
Average Annual Return, Percent oef_AvgAnnlRtrPct 5.24%
MFS Diversified Income Fund | Class R1  
Risk/Return: oef_RiskReturnAbstract  
Trading Symbol dei_TradingSymbol DIFDX
Maximum Sales Charge Imposed on Purchases (as a percentage of Offering Price) oef_MaximumSalesChargeImposedOnPurchasesOverOfferingPrice 0.00%
Maximum Deferred Sales Charge (as a percentage of Offering Price) oef_MaximumDeferredSalesChargeOverOfferingPrice 0.00%
Management Fees (as a percentage of Assets) oef_ManagementFeesOverAssets 0.55%
Distribution and Service (12b-1) Fees oef_DistributionAndService12b1FeesOverAssets 1.00%
Other Expenses (as a percentage of Assets): oef_OtherExpensesOverAssets 0.15%
Expenses (as a percentage of Assets) oef_ExpensesOverAssets 1.70%
Fee Waiver or Reimbursement oef_FeeWaiverOrReimbursementOverAssets (0.06%) [2]
Net Expenses (as a percentage of Assets) oef_NetExpensesOverAssets 1.64%
Fee Waiver or Reimbursement over Assets, Date of Termination oef_FeeWaiverOrReimbursementOverAssetsDateOfTermination June 30, 2027
Expense Example, with Redemption, 1 Year oef_ExpenseExampleYear01 $ 167
Expense Example, with Redemption, 3 Years oef_ExpenseExampleYear03 530
Expense Example, with Redemption, 5 Years oef_ExpenseExampleYear05 917
Expense Example, with Redemption, 10 Years oef_ExpenseExampleYear10 $ 2,004
Average Annual Return, Label [Optional Text] oef_AverageAnnualReturnLabel Returns Before Taxes
Average Annual Return, Percent oef_AvgAnnlRtrPct 8.63%
Average Annual Return, Percent oef_AvgAnnlRtrPct 2.85%
Average Annual Return, Percent oef_AvgAnnlRtrPct 4.20%
MFS Diversified Income Fund | Class R2  
Risk/Return: oef_RiskReturnAbstract  
Trading Symbol dei_TradingSymbol DIFEX
Maximum Sales Charge Imposed on Purchases (as a percentage of Offering Price) oef_MaximumSalesChargeImposedOnPurchasesOverOfferingPrice 0.00%
Maximum Deferred Sales Charge (as a percentage of Offering Price) oef_MaximumDeferredSalesChargeOverOfferingPrice 0.00%
Management Fees (as a percentage of Assets) oef_ManagementFeesOverAssets 0.55%
Distribution and Service (12b-1) Fees oef_DistributionAndService12b1FeesOverAssets 0.50%
Other Expenses (as a percentage of Assets): oef_OtherExpensesOverAssets 0.15%
Expenses (as a percentage of Assets) oef_ExpensesOverAssets 1.20%
Fee Waiver or Reimbursement oef_FeeWaiverOrReimbursementOverAssets (0.06%) [2]
Net Expenses (as a percentage of Assets) oef_NetExpensesOverAssets 1.14%
Fee Waiver or Reimbursement over Assets, Date of Termination oef_FeeWaiverOrReimbursementOverAssetsDateOfTermination June 30, 2027
Expense Example, with Redemption, 1 Year oef_ExpenseExampleYear01 $ 116
Expense Example, with Redemption, 3 Years oef_ExpenseExampleYear03 375
Expense Example, with Redemption, 5 Years oef_ExpenseExampleYear05 654
Expense Example, with Redemption, 10 Years oef_ExpenseExampleYear10 $ 1,449
Average Annual Return, Label [Optional Text] oef_AverageAnnualReturnLabel Returns Before Taxes
Average Annual Return, Percent oef_AvgAnnlRtrPct 9.16%
Average Annual Return, Percent oef_AvgAnnlRtrPct 3.37%
Average Annual Return, Percent oef_AvgAnnlRtrPct 4.72%
MFS Diversified Income Fund | Class R3  
Risk/Return: oef_RiskReturnAbstract  
Trading Symbol dei_TradingSymbol DIFFX
Maximum Sales Charge Imposed on Purchases (as a percentage of Offering Price) oef_MaximumSalesChargeImposedOnPurchasesOverOfferingPrice 0.00%
Maximum Deferred Sales Charge (as a percentage of Offering Price) oef_MaximumDeferredSalesChargeOverOfferingPrice 0.00%
Management Fees (as a percentage of Assets) oef_ManagementFeesOverAssets 0.55%
Distribution and Service (12b-1) Fees oef_DistributionAndService12b1FeesOverAssets 0.25%
Other Expenses (as a percentage of Assets): oef_OtherExpensesOverAssets 0.15%
Expenses (as a percentage of Assets) oef_ExpensesOverAssets 0.95%
Fee Waiver or Reimbursement oef_FeeWaiverOrReimbursementOverAssets (0.06%) [2]
Net Expenses (as a percentage of Assets) oef_NetExpensesOverAssets 0.89%
Fee Waiver or Reimbursement over Assets, Date of Termination oef_FeeWaiverOrReimbursementOverAssetsDateOfTermination June 30, 2027
Expense Example, with Redemption, 1 Year oef_ExpenseExampleYear01 $ 91
Expense Example, with Redemption, 3 Years oef_ExpenseExampleYear03 297
Expense Example, with Redemption, 5 Years oef_ExpenseExampleYear05 520
Expense Example, with Redemption, 10 Years oef_ExpenseExampleYear10 $ 1,161
Average Annual Return, Label [Optional Text] oef_AverageAnnualReturnLabel Returns Before Taxes
Average Annual Return, Percent oef_AvgAnnlRtrPct 9.43%
Average Annual Return, Percent oef_AvgAnnlRtrPct 3.62%
Average Annual Return, Percent oef_AvgAnnlRtrPct 4.98%
MFS Diversified Income Fund | Class R4  
Risk/Return: oef_RiskReturnAbstract  
Trading Symbol dei_TradingSymbol DIFGX
Maximum Sales Charge Imposed on Purchases (as a percentage of Offering Price) oef_MaximumSalesChargeImposedOnPurchasesOverOfferingPrice 0.00%
Maximum Deferred Sales Charge (as a percentage of Offering Price) oef_MaximumDeferredSalesChargeOverOfferingPrice 0.00%
Management Fees (as a percentage of Assets) oef_ManagementFeesOverAssets 0.55%
Distribution and Service (12b-1) Fees oef_DistributionAndService12b1FeesOverAssets 0.00%
Other Expenses (as a percentage of Assets): oef_OtherExpensesOverAssets 0.15%
Expenses (as a percentage of Assets) oef_ExpensesOverAssets 0.70%
Fee Waiver or Reimbursement oef_FeeWaiverOrReimbursementOverAssets (0.06%) [2]
Net Expenses (as a percentage of Assets) oef_NetExpensesOverAssets 0.64%
Fee Waiver or Reimbursement over Assets, Date of Termination oef_FeeWaiverOrReimbursementOverAssetsDateOfTermination June 30, 2027
Expense Example, with Redemption, 1 Year oef_ExpenseExampleYear01 $ 65
Expense Example, with Redemption, 3 Years oef_ExpenseExampleYear03 218
Expense Example, with Redemption, 5 Years oef_ExpenseExampleYear05 384
Expense Example, with Redemption, 10 Years oef_ExpenseExampleYear10 $ 865
Average Annual Return, Label [Optional Text] oef_AverageAnnualReturnLabel Returns Before Taxes
Average Annual Return, Percent oef_AvgAnnlRtrPct 9.61%
Average Annual Return, Percent oef_AvgAnnlRtrPct 3.87%
Average Annual Return, Percent oef_AvgAnnlRtrPct 5.24%
MFS Diversified Income Fund | Class R6  
Risk/Return: oef_RiskReturnAbstract  
Trading Symbol dei_TradingSymbol DIFHX
Maximum Sales Charge Imposed on Purchases (as a percentage of Offering Price) oef_MaximumSalesChargeImposedOnPurchasesOverOfferingPrice 0.00%
Maximum Deferred Sales Charge (as a percentage of Offering Price) oef_MaximumDeferredSalesChargeOverOfferingPrice 0.00%
Management Fees (as a percentage of Assets) oef_ManagementFeesOverAssets 0.55%
Distribution and Service (12b-1) Fees oef_DistributionAndService12b1FeesOverAssets 0.00%
Other Expenses (as a percentage of Assets): oef_OtherExpensesOverAssets 0.06%
Expenses (as a percentage of Assets) oef_ExpensesOverAssets 0.61%
Fee Waiver or Reimbursement oef_FeeWaiverOrReimbursementOverAssets (0.06%) [2]
Net Expenses (as a percentage of Assets) oef_NetExpensesOverAssets 0.55%
Fee Waiver or Reimbursement over Assets, Date of Termination oef_FeeWaiverOrReimbursementOverAssetsDateOfTermination June 30, 2027
Expense Example, with Redemption, 1 Year oef_ExpenseExampleYear01 $ 56
Expense Example, with Redemption, 3 Years oef_ExpenseExampleYear03 189
Expense Example, with Redemption, 5 Years oef_ExpenseExampleYear05 334
Expense Example, with Redemption, 10 Years oef_ExpenseExampleYear10 $ 756
Average Annual Return, Label [Optional Text] oef_AverageAnnualReturnLabel Returns Before Taxes
Average Annual Return, Percent oef_AvgAnnlRtrPct 9.71%
Average Annual Return, Percent oef_AvgAnnlRtrPct 3.96%
Average Annual Return, Percent oef_AvgAnnlRtrPct 5.33%
[1] This contingent deferred sales charge (CDSC) applies to shares purchased without an initial sales charge and redeemed within 18 months of purchase.
[2] Massachusetts Financial Services Company (MFS) has agreed in writing to waive at least 0.01% of the fund's management fee as part of an agreement pursuant to which MFS has agreed to reduce its management fee by a specified amount if certain MFS mutual fund assets exceed thresholds agreed to by MFS and the fund's Board of Trustees. The agreement to waive at least 0.01% of the management fee will continue until modified by the fund's Board of Trustees, but such agreement will continue until at least June 30, 2027. MFS has agreed in writing to bear the fund's expenses, excluding interest, taxes, extraordinary expenses, brokerage and transaction costs, certain tax reclaim recovery expenses (including contingency fees and closing agreement expenses), and investment-related expenses (such as interest and borrowing expenses incurred in connection with the fund's investment activity), such that "Total Annual Fund Operating Expenses" do not exceed 0.89% of the class' average daily net assets annually for each of Class A and Class R3 shares, 1.64% of the class' average daily net assets annually for each of Class C and Class R1 shares, 0.64% of the class' average daily net assets annually for each of Class I and Class R4 shares, 1.14% of the class' average daily net assets annually for Class R2 shares, and 0.55% of the class' average daily net assets annually for Class R6 shares. This written agreement will continue until modified by the fund's Board of Trustees, but such agreement will continue until at least June 30, 2027.
[3] Shares automatically convert to Class A shares approximately eight years after purchase; therefore, the expense examples reflect Class A share expenses after eight years.