<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2023"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:jhvit="http://www.johnhancock.com/20241001"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:rr="http://xbrl.sec.gov/rr/2023"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="jhvit-20241001.xsd" xlink:type="simple"/>
    <context id="DefaultContext">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000756913</identifier>
        </entity>
        <period>
            <startDate>2024-04-29</startDate>
            <endDate>2024-04-29</endDate>
        </period>
    </context>
    <context id="S000008340Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000756913</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">jhvit:S000008340Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-04-29</startDate>
            <endDate>2024-04-29</endDate>
        </period>
    </context>
    <context id="S000008340Member_RiskNondiversifiedStatusMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000756913</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">jhvit:S000008340Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="rr:RiskAxis">rr:RiskNondiversifiedStatusMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-04-29</startDate>
            <endDate>2024-04-29</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <dei:AmendmentFlag
      contextRef="DefaultContext"
      id="h3_e3b52d4a_a11b_4975_bd28_880cf86c4b5d">false</dei:AmendmentFlag>
    <dei:DocumentEffectiveDate
      contextRef="DefaultContext"
      id="h5_775dc1d9_c694_4d8a_acda_6cf745b8f1f1">2024-10-01</dei:DocumentEffectiveDate>
    <dei:DocumentPeriodEndDate
      contextRef="DefaultContext"
      id="h8_3d995b69_2cdf_4cc4_b586_e449022558b1">2023-12-31</dei:DocumentPeriodEndDate>
    <dei:DocumentType
      contextRef="DefaultContext"
      id="h7_57750b24_feb5_428c_a80f_bdf094284e31">497</dei:DocumentType>
    <dei:EntityCentralIndexKey
      contextRef="DefaultContext"
      id="h1_2633fdc9_0d23_4039_b0ea_af5277bc5602">0000756913</dei:EntityCentralIndexKey>
    <dei:EntityInvCompanyType
      contextRef="DefaultContext"
      id="h2_a4064341_6362_4816_a9c8_43e0ccf028b3">N-1A</dei:EntityInvCompanyType>
    <rr:ProspectusDate
      contextRef="DefaultContext"
      id="h4_90647f68_89ae_43e7_ba38_df5a4c83c9cf">2024-04-29</rr:ProspectusDate>
    <rr:SupplementToProspectusTextBlock
      contextRef="DefaultContext"
      id="t_3_011eb8e0_e03f_9417_3941_32630fd2c346">&lt;div style="margin-top:9pt;"&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:18pt"&gt;Prospectus Supplement&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:6pt;"&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt;font-weight:bold"&gt;John Hancock Variable Insurance Trust (the Trust)&lt;/span&gt; &lt;br/&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt;font-weight:bold"&gt;Science &amp;amp; Technology Trust (the fund)&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:6pt;"&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt;font-weight:bold"&gt;Supplement dated October 1, 2024 to the current Prospectus, as may be supplemented (the Prospectus)&lt;/span&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:10pt;font-weight:bold;line-height:11pt"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:14pt;"&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt;The following information supplements and supersedes any information to the contrary relating to the fund contained in the Prospectus.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:6pt;"&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt;At a special meeting of shareholders of the fund held on October 1, 2024, the fund&#x2019;s shareholders approved a proposal to change the fund&#x2019;s &lt;/span&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt;diversification status from diversified to non-diversified effective on October 1, 2024 (the Effective Date).&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:6pt;"&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt;Accordingly, as of the Effective Date, the following disclosure is added as the final paragraph of the fund&#x2019;s &#x201c;Principal investment strategies&#x201d; in the &#x201c;Fund &lt;/span&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt;summary&#x201d; section:&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:6pt;"&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt;The fund is a non-diversified fund, which means that it may invest in a smaller number of issuers than a diversified fund and may invest more of its assets &lt;/span&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt;in the securities of a single issuer.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:6pt;"&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt;Additionally, as of the Effective Date, the following risk is added to the fund&#x2019;s &#x201c;Principal risks&#x201d; in the &#x201c;Fund summary&#x201d; section:&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:6pt;"&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt;font-weight:bold"&gt;Non-diversified risk.&lt;/span&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt; Adverse events affecting a particular issuer or group of issuers may magnify losses for non-diversified funds, which may invest a &lt;/span&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt;large portion of assets in any one issuer or a small number of issuers.&lt;/span&gt;&lt;/div&gt;</rr:SupplementToProspectusTextBlock>
    <rr:SupplementToProspectusTextBlock
      contextRef="S000008340Member"
      id="t_4_ae43d7e0_143c_cb50_b3be_c3aee83543c5">&lt;div style="margin-top:9pt;"&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:18pt"&gt;Prospectus Supplement&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:6pt;"&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt;font-weight:bold"&gt;John Hancock Variable Insurance Trust (the Trust)&lt;/span&gt; &lt;br/&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt;font-weight:bold"&gt;Science &amp;amp; Technology Trust (the fund)&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:6pt;"&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt;font-weight:bold"&gt;Supplement dated October 1, 2024 to the current Prospectus, as may be supplemented (the Prospectus)&lt;/span&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:10pt;font-weight:bold;line-height:11pt"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:14pt;"&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt;The following information supplements and supersedes any information to the contrary relating to the fund contained in the Prospectus.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:6pt;"&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt;At a special meeting of shareholders of the fund held on October 1, 2024, the fund&#x2019;s shareholders approved a proposal to change the fund&#x2019;s &lt;/span&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt;diversification status from diversified to non-diversified effective on October 1, 2024 (the Effective Date).&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:6pt;"&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt;Accordingly, as of the Effective Date, the following disclosure is added as the final paragraph of the fund&#x2019;s &#x201c;Principal investment strategies&#x201d; in the &#x201c;Fund &lt;/span&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt;summary&#x201d; section:&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:6pt;"&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt;The fund is a non-diversified fund, which means that it may invest in a smaller number of issuers than a diversified fund and may invest more of its assets &lt;/span&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt;in the securities of a single issuer.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:6pt;"&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt;Additionally, as of the Effective Date, the following risk is added to the fund&#x2019;s &#x201c;Principal risks&#x201d; in the &#x201c;Fund summary&#x201d; section:&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:6pt;"&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt;font-weight:bold"&gt;Non-diversified risk.&lt;/span&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt; Adverse events affecting a particular issuer or group of issuers may magnify losses for non-diversified funds, which may invest a &lt;/span&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt;large portion of assets in any one issuer or a small number of issuers.&lt;/span&gt;&lt;/div&gt;</rr:SupplementToProspectusTextBlock>
    <dei:EntityRegistrantName
      contextRef="DefaultContext"
      id="t_1_db3dab13_6f82_6cb0_caa2_1c4197b43e73">John Hancock Variable Insurance Trust</dei:EntityRegistrantName>
    <dei:DocumentCreationDate
      contextRef="DefaultContext"
      id="t_2_19dacfbc_11c6_05f7_ced0_3416065f1f19">2024-10-01</dei:DocumentCreationDate>
    <rr:RiskTextBlock
      contextRef="S000008340Member_RiskNondiversifiedStatusMember"
      id="t_5_220246d2_15df_8e2b_2ad9_0ffa417c5cc8">&lt;div style="margin-top:6pt;"&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt;font-weight:bold"&gt;Non-diversified risk.&lt;/span&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt; Adverse events affecting a particular issuer or group of issuers may magnify losses for non-diversified funds, which may invest a &lt;/span&gt;&lt;span style="color:#000000;font-family:arial narrow;font-size:9pt"&gt;large portion of assets in any one issuer or a small number of issuers.&lt;/span&gt;&lt;/div&gt;</rr:RiskTextBlock>
</xbrl>
