<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:cik0001065698="http://www.MFS.com/20251231"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:oef="http://xbrl.sec.gov/oef/2025"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="c497-20260127.xsd" xlink:type="simple"/>
    <context id="Context_20251231_20251231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001065698</identifier>
        </entity>
        <period>
            <startDate>2025-12-31</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="Context_20251231_20251231_S000023374Member_S000023374SummaryMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001065698</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001065698:S000023374Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-31</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <oef:SupplementToProspectusTextBlock
      contextRef="Context_20251231_20251231_S000023374Member_S000023374SummaryMember"
      id="ixv-10">&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; font-weight:normal; text-decoration:none;"&gt;SUPPLEMENT TO THE PROSPECTUS&lt;/p&gt;&lt;p style="font-size:24.0pt; font-family:Serif; text-align:left; color:#762136; font-weight:normal; font-style:italic;"&gt;&lt;span style="font-size:10.0pt; font-family:Serif; font-style:italic; color:#000000; font-weight:normal; text-decoration:none;"&gt;Supplement
dated January 27, 2026, to the Prospectus dated April 30, 2025.&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:24.0pt; font-family:Serif; text-align:left; font-weight:normal; font-style:normal;"&gt;&lt;span style="font-size:24.0pt; font-family:Serif; font-style:normal; font-weight:normal; text-decoration:none;"&gt;MFS&lt;/span&gt;&lt;span style="font-size:24.0pt; font-family:Serif; font-style:normal; font-weight:normal; text-decoration:none;"&gt;&lt;sup&gt;&#xae;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:24.0pt; font-family:Serif; font-style:normal; font-weight:normal; text-decoration:none;"&gt;
New Discovery Value Portfolio&lt;/span&gt;&lt;/p&gt;&lt;div style="border-bottom:3pt; border-bottom-style:solid; border-bottom-color:#999999; padding:0pt 0pt 1pt 0pt;"&gt;&lt;div style="font-size:5.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt; &lt;/p&gt;&lt;p style="font-size:11.0pt; font-family:Arial; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Effective June 10, 2026, the
following is added as the first paragraph in the sub-sections entitled "Principal Investment Strategies"
under the main headings entitled "Summary of Key Information" and "Investment Objective, Strategies,
and Risks":&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS (Massachusetts Financial Services Company, the fund's
investment adviser) normally invests at least 80% of the fund&#x2019;s net assets in value companies. Value
companies are companies that MFS believes are undervalued compared to their perceived worth in the marketplace.
 MFS considers a number of factors when determining whether a company is undervalued, including whether
(i) the issuer is included in an index which is representative of value companies; (ii) the issuer is
classified as a value company by an independent third party financial data provider and/or (iii) the
issuer exhibits the characteristics of a value company, considering metrics such as such as price-to-book
ratio, price-to-earnings ratio, and dividend yield relative to the applicable equity market. Value companies
tend to have stock prices that are low relative to their earnings, dividends, assets, or other financial
measures.&lt;/p&gt;&lt;p style="font-size:11.0pt; font-family:Arial; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Effective June 10, 2026, the following sentence in the sub-section entitled "Principal
Investment Strategies" under the main heading entitled "Summary of Key Information" is deleted in its
entirety:&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;MFS focuses on investing the fund's assets in the stocks of
companies it believes are undervalued compared to their perceived worth (value companies).&lt;/p&gt;&lt;p style="font-size:11.0pt; font-family:Arial; text-align:left; color:#000000; font-weight:bold; text-decoration:none;"&gt;Effective
June 10, 2026, the following sentence is added as the last paragraph in the sub-sections entitled "Principal
Investment Strategies" under the main headings entitled "Summary of Key Information" and "Investment
Objective, Strategies, and Risks":&lt;/p&gt;&lt;p style="font-size:10.0pt; font-family:Serif; font-style:normal; text-align:left; color:#000000; font-weight:normal; text-decoration:none;"&gt;For purposes of the fund's
80% policy, net assets include the amount of any borrowings for investment purposes.&lt;/p&gt;</oef:SupplementToProspectusTextBlock>
    <oef:ProspectusDate contextRef="Context_20251231_20251231" id="ixv-46">2025-04-30</oef:ProspectusDate>
    <oef:RiskReturnHeading
      contextRef="Context_20251231_20251231_S000023374Member_S000023374SummaryMember"
      id="ixv-47">MFS&#xae;
New Discovery Value Portfolio</oef:RiskReturnHeading>
    <dei:EntityInvCompanyType contextRef="Context_20251231_20251231" id="ixv-50">N-1A</dei:EntityInvCompanyType>
    <dei:DocumentEffectiveDate contextRef="Context_20251231_20251231" id="ixv-51">2026-01-27</dei:DocumentEffectiveDate>
    <dei:DocumentType contextRef="Context_20251231_20251231" id="ixv-52">497</dei:DocumentType>
    <dei:DocumentEffectiveDate contextRef="Context_20251231_20251231" id="ixv-53">2026-01-27</dei:DocumentEffectiveDate>
    <dei:DocumentPeriodEndDate contextRef="Context_20251231_20251231" id="ixv-54">2025-12-31</dei:DocumentPeriodEndDate>
    <dei:EntityCentralIndexKey contextRef="Context_20251231_20251231" id="ixv-55">0001065698</dei:EntityCentralIndexKey>
    <dei:DocumentCreationDate contextRef="Context_20251231_20251231" id="ixv-56">2026-01-27</dei:DocumentCreationDate>
    <dei:AmendmentFlag contextRef="Context_20251231_20251231" id="ixv-57">false</dei:AmendmentFlag>
    <dei:EntityRegistrantName contextRef="Context_20251231_20251231" id="ixv-81">MFS VARIABLE INSURANCE TRUST III</dei:EntityRegistrantName>
</xbrl>
