<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:massmutual="http://www.massmutual.com/20251231"
  xmlns:vip="http://xbrl.sec.gov/vip/2026"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="massmutual-20251231.xsd" xlink:type="simple"/>
    <context id="c0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001052766</identifier>
        </entity>
        <period>
            <startDate>2025-12-31</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="c1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001052766</identifier>
            <segment>
                <xbrldi:explicitMember dimension="vip:PortfolioCompanyAxis">massmutual:MMLVIPWellingtonSmallCapGrowthEquityFundServiceClassMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-31</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <vip:InvestmentOptionsN4TextBlock contextRef="c0" id="ixv-68">&lt;table cellpadding="0" style="font: 10pt Times New Roman, Times, Serif; width: 100%; border-collapse: collapse; border-spacing: 0px;"&gt; &lt;tr style="font: 10pt Times New Roman, Times, Serif; vertical-align: top; background-color: #D9D9D9"&gt; &lt;td rowspan="2" style="font: 10pt Times New Roman, Times, Serif; text-align: center; padding: 4pt; border: black 1pt solid; text-indent: 0pt; vertical-align: bottom"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;&lt;b&gt;Fund &lt;span style="letter-spacing: -0.2pt"&gt;Type&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt; &lt;td rowspan="2" style="font: 10pt Times New Roman, Times, Serif; vertical-align: bottom; padding: 4pt; border-top: black 1pt solid; border-right: black 1pt solid; border-bottom: black 1pt solid; text-align: center; text-indent: 0pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;&lt;b&gt;Fund and &lt;span style="letter-spacing: -0.1pt"&gt;Adviser/Sub-Adviser&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt; &lt;td rowspan="2" style="font: 10pt Times New Roman, Times, Serif; vertical-align: bottom; padding: 4pt; border-top: black 1pt solid; border-right: black 1pt solid; border-bottom: black 1pt solid; text-align: center; text-indent: 0pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt; letter-spacing: -0.1pt"&gt;&lt;b&gt;Current Expenses&lt;br/&gt; (expenses/&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;average assets)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt; &lt;td colspan="3" style="font: 10pt Times New Roman, Times, Serif; text-align: center; padding: 4pt; border-top: black 1pt solid; border-right: black 1pt solid; border-bottom: black 1pt solid; text-indent: 0pt; vertical-align: bottom"&gt;&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0; text-align: center"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt; letter-spacing: -0.1pt"&gt;&lt;b&gt;Average Annual &lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;Total Returns&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0 0 0 76.15pt; text-align: center; text-indent: -76.15pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;&lt;b&gt;(as of &lt;span style="letter-spacing: -0.1pt"&gt;12/31/2025)&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr style="font: 10pt Times New Roman, Times, Serif; vertical-align: top; background-color: #D9D9D9"&gt; &lt;td style="font: 10pt Times New Roman, Times, Serif; padding: 4pt; border-right: black 1pt solid; border-bottom: black 1pt solid; text-align: center; text-indent: 0pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;&lt;b&gt;1 &lt;span style="letter-spacing: -0.2pt"&gt;Year&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt; &lt;td style="font: 10pt Times New Roman, Times, Serif; padding: 4pt; border-right: black 1pt solid; border-bottom: black 1pt solid; text-align: center; text-indent: 0pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;&lt;b&gt;5 &lt;span style="letter-spacing: -0.2pt"&gt;Year&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt; &lt;td style="font: 10pt Times New Roman, Times, Serif; padding: 4pt; border-right: black 1pt solid; border-bottom: black 1pt solid; text-align: center; text-indent: 0pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;&lt;b&gt;10 &lt;span style="letter-spacing: -0.2pt"&gt;Year&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr style="font: 10pt Times New Roman, Times, Serif; vertical-align: top"&gt; &lt;td style="font: 10pt Times New Roman, Times, Serif; padding: 4pt; width: 15%; border-right: black 1pt solid; border-bottom: black 1pt solid; border-left: black 1pt solid; text-align: center; text-indent: 0pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;Small/Mid-Cap Growth&lt;/span&gt;&lt;/td&gt; &lt;td style="font: 10pt Times New Roman, Times, Serif; padding: 4pt; width: 37%; border-bottom: black 1pt solid; border-right: black 1pt solid; text-indent: 0pt"&gt;&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0; text-align: center"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;MML VIP Wellington Small Cap Growth Equity Fund (Service Class)&lt;/span&gt;&lt;/p&gt; &lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0; text-align: center"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;&lt;b&gt;&lt;i&gt;Adviser:&lt;/i&gt;&lt;/b&gt; MML Investment Advisers, LLC&lt;/span&gt;&lt;/p&gt; &lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0; text-align: center"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;&lt;b&gt;&lt;i&gt;Sub-Adviser: &lt;/i&gt;&lt;/b&gt;Wellington Management Company LLP&lt;/span&gt;&lt;/p&gt;&lt;/td&gt; &lt;td style="font: 10pt Times New Roman, Times, Serif; padding: 4pt; width: 18%; border-bottom: black 1pt solid; border-right: black 1pt solid; text-align: center; text-indent: 0pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;1.19%&lt;sup&gt;(*)&lt;/sup&gt;&lt;/span&gt;&lt;/td&gt; &lt;td style="font: 10pt Times New Roman, Times, Serif; padding: 4pt; width: 10%; border-bottom: black 1pt solid; border-right: black 1pt solid; text-align: center; text-indent: 0pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;7.07%&lt;/span&gt;&lt;/td&gt; &lt;td style="font: 10pt Times New Roman, Times, Serif; padding: 4pt; width: 10%; border-bottom: black 1pt solid; border-right: black 1pt solid; text-align: center; text-indent: 0pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;2.41%&lt;/span&gt;&lt;/td&gt; &lt;td style="font: 10pt Times New Roman, Times, Serif; padding: 4pt; width: 10%; border-bottom: black 1pt solid; border-right: black 1pt solid; text-align: center; text-indent: 0pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;10.32%&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt;</vip:InvestmentOptionsN4TextBlock>
    <vip:PortfolioCompaniesTableTextBlock contextRef="c0" id="ixv-69">&lt;table cellpadding="0" style="font: 10pt Times New Roman, Times, Serif; width: 100%; border-collapse: collapse; border-spacing: 0px;"&gt; &lt;tr style="font: 10pt Times New Roman, Times, Serif; vertical-align: top; background-color: #D9D9D9"&gt; &lt;td rowspan="2" style="font: 10pt Times New Roman, Times, Serif; text-align: center; padding: 4pt; border: black 1pt solid; text-indent: 0pt; vertical-align: bottom"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;&lt;b&gt;Fund &lt;span style="letter-spacing: -0.2pt"&gt;Type&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt; &lt;td rowspan="2" style="font: 10pt Times New Roman, Times, Serif; vertical-align: bottom; padding: 4pt; border-top: black 1pt solid; border-right: black 1pt solid; border-bottom: black 1pt solid; text-align: center; text-indent: 0pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;&lt;b&gt;Fund and &lt;span style="letter-spacing: -0.1pt"&gt;Adviser/Sub-Adviser&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt; &lt;td rowspan="2" style="font: 10pt Times New Roman, Times, Serif; vertical-align: bottom; padding: 4pt; border-top: black 1pt solid; border-right: black 1pt solid; border-bottom: black 1pt solid; text-align: center; text-indent: 0pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt; letter-spacing: -0.1pt"&gt;&lt;b&gt;Current Expenses&lt;br/&gt; (expenses/&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;average assets)&lt;/span&gt;&lt;/b&gt;&lt;/td&gt; &lt;td colspan="3" style="font: 10pt Times New Roman, Times, Serif; text-align: center; padding: 4pt; border-top: black 1pt solid; border-right: black 1pt solid; border-bottom: black 1pt solid; text-indent: 0pt; vertical-align: bottom"&gt;&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0; text-align: center"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt; letter-spacing: -0.1pt"&gt;&lt;b&gt;Average Annual &lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;Total Returns&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0 0 0 76.15pt; text-align: center; text-indent: -76.15pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;&lt;b&gt;(as of &lt;span style="letter-spacing: -0.1pt"&gt;12/31/2025)&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr style="font: 10pt Times New Roman, Times, Serif; vertical-align: top; background-color: #D9D9D9"&gt; &lt;td style="font: 10pt Times New Roman, Times, Serif; padding: 4pt; border-right: black 1pt solid; border-bottom: black 1pt solid; text-align: center; text-indent: 0pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;&lt;b&gt;1 &lt;span style="letter-spacing: -0.2pt"&gt;Year&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt; &lt;td style="font: 10pt Times New Roman, Times, Serif; padding: 4pt; border-right: black 1pt solid; border-bottom: black 1pt solid; text-align: center; text-indent: 0pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;&lt;b&gt;5 &lt;span style="letter-spacing: -0.2pt"&gt;Year&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt; &lt;td style="font: 10pt Times New Roman, Times, Serif; padding: 4pt; border-right: black 1pt solid; border-bottom: black 1pt solid; text-align: center; text-indent: 0pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;&lt;b&gt;10 &lt;span style="letter-spacing: -0.2pt"&gt;Year&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr style="font: 10pt Times New Roman, Times, Serif; vertical-align: top"&gt; &lt;td style="font: 10pt Times New Roman, Times, Serif; padding: 4pt; width: 15%; border-right: black 1pt solid; border-bottom: black 1pt solid; border-left: black 1pt solid; text-align: center; text-indent: 0pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;Small/Mid-Cap Growth&lt;/span&gt;&lt;/td&gt; &lt;td style="font: 10pt Times New Roman, Times, Serif; padding: 4pt; width: 37%; border-bottom: black 1pt solid; border-right: black 1pt solid; text-indent: 0pt"&gt;&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0; text-align: center"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;MML VIP Wellington Small Cap Growth Equity Fund (Service Class)&lt;/span&gt;&lt;/p&gt; &lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0; text-align: center"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;&lt;b&gt;&lt;i&gt;Adviser:&lt;/i&gt;&lt;/b&gt; MML Investment Advisers, LLC&lt;/span&gt;&lt;/p&gt; &lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0; text-align: center"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;&lt;b&gt;&lt;i&gt;Sub-Adviser: &lt;/i&gt;&lt;/b&gt;Wellington Management Company LLP&lt;/span&gt;&lt;/p&gt;&lt;/td&gt; &lt;td style="font: 10pt Times New Roman, Times, Serif; padding: 4pt; width: 18%; border-bottom: black 1pt solid; border-right: black 1pt solid; text-align: center; text-indent: 0pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;1.19%&lt;sup&gt;(*)&lt;/sup&gt;&lt;/span&gt;&lt;/td&gt; &lt;td style="font: 10pt Times New Roman, Times, Serif; padding: 4pt; width: 10%; border-bottom: black 1pt solid; border-right: black 1pt solid; text-align: center; text-indent: 0pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;7.07%&lt;/span&gt;&lt;/td&gt; &lt;td style="font: 10pt Times New Roman, Times, Serif; padding: 4pt; width: 10%; border-bottom: black 1pt solid; border-right: black 1pt solid; text-align: center; text-indent: 0pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;2.41%&lt;/span&gt;&lt;/td&gt; &lt;td style="font: 10pt Times New Roman, Times, Serif; padding: 4pt; width: 10%; border-bottom: black 1pt solid; border-right: black 1pt solid; text-align: center; text-indent: 0pt"&gt;&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;10.32%&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt;</vip:PortfolioCompaniesTableTextBlock>
    <vip:PortfolioCompanyNameTextBlock contextRef="c1" id="ixv-114">&lt;span style="font-family: Times New Roman, Times, Serif; font-size: 10pt"&gt;MML VIP Wellington Small Cap Growth Equity Fund (Service Class)&lt;/span&gt;</vip:PortfolioCompanyNameTextBlock>
    <vip:PortfolioCompanyAdviserTextBlock contextRef="c1" id="ixv-208">MML Investment Advisers, LLC</vip:PortfolioCompanyAdviserTextBlock>
    <vip:PortfolioCompanySubadviserTextBlock contextRef="c1" id="ixv-209">Wellington Management Company LLP</vip:PortfolioCompanySubadviserTextBlock>
    <vip:CurrentExpensesPercent contextRef="c1" decimals="4" id="ixv-210" unitRef="pure">0.0119</vip:CurrentExpensesPercent>
    <vip:AverageAnnualTotalReturns1YearPercent contextRef="c1" decimals="4" id="ixv-211" unitRef="pure">0.0707</vip:AverageAnnualTotalReturns1YearPercent>
    <vip:AverageAnnualTotalReturns5YearsPercent contextRef="c1" decimals="4" id="ixv-212" unitRef="pure">0.0241</vip:AverageAnnualTotalReturns5YearsPercent>
    <vip:AverageAnnualTotalReturns10YearsPercent contextRef="c1" decimals="4" id="ixv-213" unitRef="pure">0.1032</vip:AverageAnnualTotalReturns10YearsPercent>
    <dei:EntityRegistrantName contextRef="c0" id="ixv-214">MASSACHUSETTS MUTUAL VARIABLE ANNUITY SEPARATE ACCOUNT 4</dei:EntityRegistrantName>
    <dei:DocumentType contextRef="c0" id="ixv-217">N-4</dei:DocumentType>
    <dei:EntityInvCompanyType contextRef="c0" id="ixv-218">N-4</dei:EntityInvCompanyType>
    <dei:EntityCentralIndexKey contextRef="c0" id="ixv-219">0001052766</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag contextRef="c0" id="ixv-220">false</dei:AmendmentFlag>
    <dei:DocumentPeriodEndDate contextRef="c0" id="ixv-221">2025-12-31</dei:DocumentPeriodEndDate>
</xbrl>
