<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xml:lang="en-US"
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="c-1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000875320</identifier>
        </entity>
        <period>
            <startDate>2026-05-13</startDate>
            <endDate>2026-05-13</endDate>
        </period>
    </context>
    <context id="c-2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000875320</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-13</startDate>
            <endDate>2026-05-13</endDate>
        </period>
    </context>
    <unit id="shares">
        <measure>shares</measure>
    </unit>
    <unit id="usdPerShare">
        <divide>
            <unitNumerator>
                <measure>iso4217:USD</measure>
            </unitNumerator>
            <unitDenominator>
                <measure>shares</measure>
            </unitDenominator>
        </divide>
    </unit>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="number">
        <measure>pure</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="c-1" id="f-16">0000875320</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="c-1" id="f-17">VERTEX PHARMACEUTICALS INC / MA</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp contextRef="c-1" id="f-18">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:PrevslyPdFlg contextRef="c-2" id="f-19">false</ffd:PrevslyPdFlg>
    <ffd:OffsetTableNa contextRef="c-1" id="f-20">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp contextRef="c-1" id="f-1">S-8</ffd:SubmissnTp>
    <ffd:FormTp contextRef="c-1" id="f-2">S-8</ffd:FormTp>
    <ffd:OfferingSctyTp contextRef="c-2" id="f-3">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c-2" id="f-4">Common stock, $0.01 par value per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c-2" id="f-5">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd contextRef="c-2" decimals="0" id="f-6" unitRef="shares">6400000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="c-2"
      decimals="2"
      id="f-7"
      unitRef="usdPerShare">426.53</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric contextRef="c-2" decimals="0" id="f-8" unitRef="usd">2729792000</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate contextRef="c-2" decimals="7" id="f-9" unitRef="number">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt contextRef="c-2" decimals="2" id="f-10" unitRef="usd">376984.28</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="c-1" decimals="0" id="f-11" unitRef="usd">2729792000</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="c-1" decimals="2" id="f-12" unitRef="usd">376984.28</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt contextRef="c-1" decimals="2" id="f-13" unitRef="usd">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="c-1" decimals="2" id="f-14" unitRef="usd">376984.28</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c-2" id="f-15">&lt;div&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:9pt;font-weight:400;line-height:100%"&gt;Pursuant to Rules 457(c) and 457(h) under the Securities Act, the registration fee was computed on the basis of the average of the high and low prices of the registrant&#x2019;s common stock on the Nasdaq Global Select Market on May 8, 2026.&lt;/span&gt;&lt;/div&gt;</ffd:OfferingNote>
    <link:footnoteLink
      xlink:role="http://www.xbrl.org/2003/role/link"
      xlink:type="extended">
        <link:loc xlink:href="#f-6" xlink:label="f-6" xlink:type="locator"/>
        <link:footnote id="fn-1" xlink:label="fn-1" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span style="color:#000000;font-family:'Times New Roman',serif;font-size:9pt;font-weight:400;line-height:100%">Consists of 6,400,000 shares of common stock, par value $0.01 per share, that may be issued under the Vertex Pharmaceuticals Incorporated 2026 Stock and Option Plan (the &#x201c;2026 Plan&#x201d;) that became effective May 13, 2026 (the &#x201c;Effective Date&#x201d;). The maximum number of shares that may be issued under the 2026 Plan is subject to adjustment in accordance with certain anti-dilution and other provisions of the 2026 Plan. Accordingly, pursuant to Rule 416 under the Securities Act of 1933, as amended, this Registration Statement covers, in addition to the number of shares stated above, an indeterminate number of shares that may be subject to grant or otherwise issuable after the operation of any such anti-dilution provisions, stock splits, or other similar transactions.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="f-6"
          xlink:to="fn-1"
          xlink:type="arc"/>
        <link:loc xlink:href="#f-7" xlink:label="f-7" xlink:type="locator"/>
        <link:loc xlink:href="#f-11" xlink:label="f-11" xlink:type="locator"/>
        <link:loc xlink:href="#f-14" xlink:label="f-14" xlink:type="locator"/>
        <link:loc xlink:href="#f-8" xlink:label="f-8" xlink:type="locator"/>
        <link:loc xlink:href="#f-10" xlink:label="f-10" xlink:type="locator"/>
        <link:loc xlink:href="#f-13" xlink:label="f-13" xlink:type="locator"/>
        <link:loc xlink:href="#f-12" xlink:label="f-12" xlink:type="locator"/>
        <link:footnote id="fn-2" xlink:label="fn-2" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:div><xhtml:span style="color:#000000;font-family:'Times New Roman',serif;font-size:9pt;font-weight:400;line-height:100%">Pursuant to Rules 457(c) and 457(h) under the Securities Act, the registration fee was computed on the basis of the average of the high and low prices of the registrant&#x2019;s common stock on the Nasdaq Global Select Market on May 8, 2026.</xhtml:span></xhtml:div></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="f-7"
          xlink:to="fn-2"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="f-11"
          xlink:to="fn-2"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="f-14"
          xlink:to="fn-2"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="f-8"
          xlink:to="fn-2"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="f-10"
          xlink:to="fn-2"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="f-13"
          xlink:to="fn-2"
          xlink:type="arc"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="f-12"
          xlink:to="fn-2"
          xlink:type="arc"/>
    </link:footnoteLink>
</xbrl>
