<?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: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">0000939767</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-05</startDate>
            <endDate>2026-08-05</endDate>
        </period>
    </context>
    <context id="c-2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000939767</identifier>
        </entity>
        <period>
            <startDate>2026-08-05</startDate>
            <endDate>2026-08-05</endDate>
        </period>
    </context>
    <unit id="shares">
        <measure>shares</measure>
    </unit>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="number">
        <measure>pure</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="c-2" id="f-16">0000939767</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="c-2" id="f-17">Exelixis Inc</dei:EntityRegistrantName>
    <ffd:FormTp contextRef="c-2" id="f-18">S-8</ffd:FormTp>
    <ffd:SubmissnTp contextRef="c-2" id="f-19">S-8</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="c-2" id="f-20">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa contextRef="c-2" id="f-21">N/A</ffd:OffsetTableNa>
    <ffd:PrevslyPdFlg contextRef="c-1" id="f-1">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="c-1" id="f-2">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c-1" id="f-3">Common Stock, $0.001 par value per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c-1" id="f-4">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd contextRef="c-1" decimals="0" id="f-5" unitRef="shares">2000000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty contextRef="c-1" decimals="3" id="f-6" unitRef="usd">55.360</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric contextRef="c-1" decimals="0" id="f-7" unitRef="usd">110720000</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate contextRef="c-1" decimals="8" id="f-8" unitRef="number">0.00013810</ffd:FeeRate>
    <ffd:FeeAmt contextRef="c-1" decimals="2" id="f-9" unitRef="usd">15290</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="c-2" decimals="0" id="f-10" unitRef="usd">110720000</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="c-2" decimals="2" id="f-11" unitRef="usd">15290</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt contextRef="c-2" decimals="0" id="f-12" unitRef="usd">0</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt contextRef="c-2" decimals="2" id="f-13" unitRef="usd">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="c-2" decimals="2" id="f-14" unitRef="usd">15290</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c-1" id="f-15">&lt;div style="margin-top:5pt;padding-left:36pt;text-indent:-18pt"&gt;&lt;span style="color:#000000;font-family:'Calibri',sans-serif;font-size:10pt;font-weight:400;line-height:120%"&gt;(1)&#160;&#160;&#160;&#160;This Registration Statement covers the offer and sale of 2,000,000 shares of Common Stock of Exelixis, Inc. (the &#x201c;Registrant&#x201d; or the &#x201c;Company&#x201d;) under the Exelixis, Inc. Amended and Restated 2017 Equity Incentive Plan (the &#x201c;Plan&#x201d;). Pursuant to Rule 416(a) of the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), this Registration Statement shall also cover any additional shares of the Registrant&#x2019;s Common Stock that become issuable under the Plan by reason of any stock dividend, stock split, recapitalization or other similar transaction effected without receipt of consideration that increases the number of outstanding shares of the Registrant&#x2019;s Common Stock. &lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:3pt;padding-left:36pt;text-indent:-18pt"&gt;&lt;span style="color:#000000;font-family:'Calibri',sans-serif;font-size:10pt;font-weight:400;line-height:120%"&gt;(2)&#160;&#160;&#160;&#160;Estimated solely for the purpose of calculating the amount of the registration fee pursuant to Rule 457(h) under the Securities Act. The offering price per share and aggregate offering price are based upon the average of the high and low prices of the Registrant&#x2019;s Common Stock on July&#160;30, 2026, as reported on the Nasdaq Global Select Market.&lt;/span&gt;&lt;/div&gt;</ffd:OfferingNote>
</xbrl>
