<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:nationwide="http://www.nationwide.com/20260701"
  xmlns:vip="http://xbrl.sec.gov/vip/2025"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="nationwide-20260701.xsd" xlink:type="simple"/>
    <context id="D_10Jul2026_10Jul2026">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001041357</identifier>
        </entity>
        <period>
            <startDate>2026-07-10</startDate>
            <endDate>2026-07-10</endDate>
        </period>
    </context>
    <context id="C000211469_VanguardVariableInsuranceFundMorningstarMidCapIndexPortfolioMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001041357</identifier>
            <segment>
                <xbrldi:explicitMember dimension="vip:ContractAxis">nationwide:C000211469Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="vip:PortfolioCompanyAxis">nationwide:VanguardVariableInsuranceFundMorningstarMidCapIndexPortfolioMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-07-10</startDate>
            <endDate>2026-07-10</endDate>
        </period>
    </context>
    <context id="C000211469">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001041357</identifier>
            <segment>
                <xbrldi:explicitMember dimension="vip:ContractAxis">nationwide:C000211469Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-07-10</startDate>
            <endDate>2026-07-10</endDate>
        </period>
    </context>
    <dei:EntityRegistrantName contextRef="D_10Jul2026_10Jul2026" id="apid_1">NATIONWIDE VLI SEPARATE ACCOUNT 4</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey contextRef="D_10Jul2026_10Jul2026" id="apid_2">0001041357</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag contextRef="D_10Jul2026_10Jul2026" id="apid_3">false</dei:AmendmentFlag>
    <dei:EntityInvCompanyType contextRef="D_10Jul2026_10Jul2026" id="apid_7">N-6</dei:EntityInvCompanyType>
    <dei:DocumentType contextRef="D_10Jul2026_10Jul2026" id="apid_8">N-6</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="D_10Jul2026_10Jul2026"
      id="apid_8880800f-403e-4681-b3a6-8dcd0c5e7136">2026-07-10</dei:DocumentPeriodEndDate>
    <vip:PortfolioCompaniesN6TextBlock
      contextRef="C000211469"
      id="x_5451a3ec-7fc0-45e5-9ff0-2b566e5a630c">&lt;span style="color:#000000;font-family:Arial;font-size:10pt;"&gt;The following underlying mutual fund is offered as an investment option under the contract or policy. &lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;"&gt;Effective July 29, 2026, the name of the investment option is updated as indicated below:&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:1pt;line-height:1pt;"&gt;&#x2003;&lt;/span&gt; 
&lt;table cellpadding="0" cellspacing="0" style="border-bottom:0.5pt solid #000000;border-left:0.5pt solid #000000;border-right:0.5pt solid #000000;border-top:0.5pt solid #000000;empty-cells:show;width:541pt;"&gt; 
&lt;tr style="height:17.5pt;"&gt; 
&lt;td style="border-bottom:0.5pt solid #000000;border-right:0.5pt solid #000000;padding-bottom:3.125pt;padding-top:3.125pt;vertical-align:Bottom;width:270.5pt;"&gt; &lt;div style="line-height:11.0pt;text-align:left;"&gt; &lt;div style="margin-left:3pt;margin-right:5.75pt;text-align:Center;white-space:nowrap;"&gt;&lt;span style="color:#000000;font-family:Arial;font-size:8pt;font-weight:bold;"&gt;CURRENT NAME&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt; 
&lt;td style="border-bottom:0.5pt solid #000000;padding-bottom:3.125pt;padding-top:3.125pt;vertical-align:Bottom;width:270.5pt;"&gt; &lt;div style="line-height:11.0pt;text-align:left;"&gt; &lt;div style="margin-left:5.75pt;margin-right:3pt;text-align:Center;white-space:nowrap;"&gt;&lt;span style="color:#000000;font-family:Arial;font-size:8pt;font-weight:bold;"&gt;UPDATED NAME&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt; 
&lt;tr style="height:25.5pt;"&gt; 
&lt;td style="border-right:0.5pt solid #000000;padding-bottom:1.5pt;padding-top:3.125pt;vertical-align:Top;width:270.5pt;"&gt; &lt;div style="line-height:11pt;text-align:left;"&gt; &lt;div style="margin-left:3pt;margin-right:5.75pt;text-align:Left;white-space:nowrap;"&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9pt;margin-left:0.0pt;"&gt;Vanguard Variable Insurance Fund - Mid-Cap Index Portfolio&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt; 
&lt;td style="padding-bottom:1.5pt;padding-top:3.125pt;vertical-align:Top;width:270.5pt;"&gt; &lt;div style="line-height:11pt;text-align:left;"&gt; &lt;div style="margin-left:5.75pt;margin-right:3pt;text-align:Left;white-space:nowrap;"&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9pt;margin-left:0.0pt;"&gt;Vanguard Variable Insurance Fund - Morningstar Mid-Cap Index &lt;/span&gt;&lt;/div&gt; &lt;div style="margin-left:5.75pt;margin-right:3pt;text-align:Left;white-space:nowrap;"&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9pt;margin-left:0.0pt;"&gt;Portfolio&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</vip:PortfolioCompaniesN6TextBlock>
    <vip:PortfolioCompanyNameTextBlock
      contextRef="C000211469_VanguardVariableInsuranceFundMorningstarMidCapIndexPortfolioMember"
      id="bb607cfd-b2ee-4dca-a58b-a19f7beebd40">&lt;span style="color:#000000;font-family:Arial;font-size:9pt;margin-left:0.0pt;"&gt;Vanguard Variable Insurance Fund - Morningstar Mid-Cap Index &lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9pt;margin-left:0.0pt;"&gt;Portfolio&lt;/span&gt;</vip:PortfolioCompanyNameTextBlock>
</xbrl>
