<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_2b308922-e5a1-4626-b8df-d65fc38ee3fd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001582313</identifier>
        </entity>
        <period>
            <startDate>2026-04-13</startDate>
            <endDate>2026-04-13</endDate>
        </period>
    </context>
    <context id="C_7e51ff6e-e326-4939-9391-29551ff736e9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001582313</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-04-13</startDate>
            <endDate>2026-04-13</endDate>
        </period>
    </context>
    <unit id="U_pure">
        <measure>pure</measure>
    </unit>
    <unit id="U_shares">
        <measure>shares</measure>
    </unit>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:PrevslyPdFlg
      contextRef="C_7e51ff6e-e326-4939-9391-29551ff736e9"
      id="F_b5050431-61be-4fc8-b9b3-b9f4764162b9">false</ffd:PrevslyPdFlg>
    <dei:EntityCentralIndexKey
      contextRef="C_2b308922-e5a1-4626-b8df-d65fc38ee3fd"
      id="F_2aa28d42-55aa-4f9f-955f-933429f7ff30">0001582313</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_2b308922-e5a1-4626-b8df-d65fc38ee3fd"
      id="F_fa500b70-5c52-41a3-a50d-3a3dbb272b1a">N/A</ffd:OffsetTableNa>
    <ffd:Securities424iNa
      contextRef="C_2b308922-e5a1-4626-b8df-d65fc38ee3fd"
      id="F_af5ed873-2f0f-4423-85cb-9815706701fe">N/A</ffd:Securities424iNa>
    <ffd:FeeExhibitTp
      contextRef="C_2b308922-e5a1-4626-b8df-d65fc38ee3fd"
      id="F_f1ed0ba2-c232-48a7-adfc-98ece169dc4e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_2b308922-e5a1-4626-b8df-d65fc38ee3fd"
      id="F_5ced2ef5-8d66-4d5a-ba59-ce81d0efdad6">S-8</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_2b308922-e5a1-4626-b8df-d65fc38ee3fd"
      id="F_96af2cb6-d399-4b97-8d1e-b6c0a4683d19">S-8</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_2b308922-e5a1-4626-b8df-d65fc38ee3fd"
      id="F_0ae3402d-3922-4bcd-9b3f-02fd958de03f">Xenon Pharmaceuticals Inc.</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp
      contextRef="C_7e51ff6e-e326-4939-9391-29551ff736e9"
      id="F_56c20d2d-463b-45bc-995a-5b0fe2d131ae">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="C_7e51ff6e-e326-4939-9391-29551ff736e9"
      id="F_b4016a40-e3de-4336-a52f-e6c9e19c9cb4">Common Shares, no par value per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg
      contextRef="C_7e51ff6e-e326-4939-9391-29551ff736e9"
      id="F_f10822cf-c94c-4565-9741-79d2dde51e66">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="C_7e51ff6e-e326-4939-9391-29551ff736e9"
      decimals="0"
      id="F_616fac6e-9fd2-4b4c-be0c-f05d30307b95"
      unitRef="U_shares">275000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="C_7e51ff6e-e326-4939-9391-29551ff736e9"
      decimals="2"
      id="F_c9193194-af17-4d51-bab3-f01634c7200a"
      unitRef="U_USD">58.4</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="C_7e51ff6e-e326-4939-9391-29551ff736e9"
      decimals="0"
      id="F_8876acc4-af35-4127-99c3-57b280b3674a"
      unitRef="U_USD">16060000</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="C_7e51ff6e-e326-4939-9391-29551ff736e9"
      decimals="8"
      id="F_9ca28b32-5c34-49f7-92a4-9e3bb078a050"
      unitRef="U_pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="C_7e51ff6e-e326-4939-9391-29551ff736e9"
      decimals="2"
      id="F_3bd7581a-209c-4141-9902-245825804df1"
      unitRef="U_USD">2217.89</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="C_2b308922-e5a1-4626-b8df-d65fc38ee3fd"
      decimals="0"
      id="F_a6a15803-25a8-41e0-b4bc-521ad6eb35bd"
      unitRef="U_USD">16060000</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="C_2b308922-e5a1-4626-b8df-d65fc38ee3fd"
      decimals="2"
      id="F_36ef70bf-2da1-49d0-b39e-e8978a5b69c9"
      unitRef="U_USD">2217.89</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt
      contextRef="C_2b308922-e5a1-4626-b8df-d65fc38ee3fd"
      decimals="0"
      id="F_2399b17f-03a2-4e20-bd25-b823392b2018"
      unitRef="U_USD">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="C_2b308922-e5a1-4626-b8df-d65fc38ee3fd"
      decimals="2"
      id="F_6562f608-4be7-4c15-9225-03799a3c40ba"
      unitRef="U_USD">2217.89</ffd:NetFeeAmt>
    <ffd:OfferingNote
      contextRef="C_7e51ff6e-e326-4939-9391-29551ff736e9"
      id="F_93d13b5d-c8eb-49d9-8f04-4534536c12a1">&lt;div class="item-list-element-wrapper" style="margin-left:2.528%;display:flex;margin-top:0;justify-content:flex-start;align-items:baseline;margin-bottom:6pt;margin-right:1.333%;min-width:2.537%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:7.5pt;font-family:Times New Roman;font-kerning:none;min-width:2.602798752462246%;word-break:keep-all;display:inline-flex;justify-content:flex-start;"&gt;(1)&lt;/span&gt;&lt;div style="display:inline;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;Pursuant to Rule 416(a) of the Securities Act of 1933, as amended (the &#x201c;&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;Securities Act&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#x201d;), this Registration Statement shall also cover any additional common shares of the Registrant that become issuable under the Amended and Restated 2025 Inducement Equity Incentive Plan (the &#x201c;&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;Amended and Restated 2025 Plan&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#x201d;) by reason of any share dividend, share split, recapitalization or other similar transaction effected without receipt of consideration that increases the number of the Registrant&#x2019;s outstanding common shares.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</ffd:OfferingNote>
</xbrl>
