<?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_b7050ef6-88c6-4c83-a66c-92bf4091af0a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001582313</identifier>
        </entity>
        <period>
            <startDate>2026-06-03</startDate>
            <endDate>2026-06-03</endDate>
        </period>
    </context>
    <context id="C_77d7c65a-d771-497c-8463-909a5993c1c2">
        <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-06-03</startDate>
            <endDate>2026-06-03</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>
    <dei:EntityCentralIndexKey
      contextRef="C_b7050ef6-88c6-4c83-a66c-92bf4091af0a"
      id="F_21e17202-693c-40c3-8c2b-8db2d254fff3">0001582313</dei:EntityCentralIndexKey>
    <ffd:PrevslyPdFlg
      contextRef="C_77d7c65a-d771-497c-8463-909a5993c1c2"
      id="F_ad504103-a83d-4e10-89f3-296c28c64ab3">false</ffd:PrevslyPdFlg>
    <ffd:OffsetTableNa
      contextRef="C_b7050ef6-88c6-4c83-a66c-92bf4091af0a"
      id="F_7c0c32b0-a01c-4416-a3af-1819135e53ed">N/A</ffd:OffsetTableNa>
    <ffd:Securities424iNa
      contextRef="C_b7050ef6-88c6-4c83-a66c-92bf4091af0a"
      id="F_293def09-5f32-45d9-aa4f-4a288a4f15f5">N/A</ffd:Securities424iNa>
    <ffd:FeeExhibitTp
      contextRef="C_b7050ef6-88c6-4c83-a66c-92bf4091af0a"
      id="F_7f046c8a-5626-4d11-8092-acbc595df175">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_b7050ef6-88c6-4c83-a66c-92bf4091af0a"
      id="F_6ee13f1e-867d-4603-a6b3-7f1196ce7e60">S-8</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_b7050ef6-88c6-4c83-a66c-92bf4091af0a"
      id="F_e8de0ef6-3546-4f94-af4a-3e389a320146">S-8</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_b7050ef6-88c6-4c83-a66c-92bf4091af0a"
      id="F_aa1bf09d-a25a-4b29-bcda-e669db8d29b2">Xenon Pharmaceuticals Inc.</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp
      contextRef="C_77d7c65a-d771-497c-8463-909a5993c1c2"
      id="F_129827e8-367a-499c-a3ee-8a4b2ff4728f">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="C_77d7c65a-d771-497c-8463-909a5993c1c2"
      id="F_2f74be15-dd41-42dc-b526-09529d9e41d8">Common Shares, no par value per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg
      contextRef="C_77d7c65a-d771-497c-8463-909a5993c1c2"
      id="F_08cbcd26-6bad-45fb-856e-beb2f2cede15">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="C_77d7c65a-d771-497c-8463-909a5993c1c2"
      decimals="-3"
      id="F_cc5a3aa8-40bc-4547-8a71-a0bc9ae68f61"
      unitRef="U_shares">4400000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="C_77d7c65a-d771-497c-8463-909a5993c1c2"
      decimals="2"
      id="F_9ed56d24-93c1-4a84-b1d3-478fed2738c3"
      unitRef="U_USD">53.3</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="C_77d7c65a-d771-497c-8463-909a5993c1c2"
      decimals="-3"
      id="F_22f14712-dd0a-47b9-9b48-95457d193acf"
      unitRef="U_USD">234520000</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="C_77d7c65a-d771-497c-8463-909a5993c1c2"
      decimals="8"
      id="F_8aecf00f-13d8-41dd-8e68-d5ed057aaf22"
      unitRef="U_pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="C_77d7c65a-d771-497c-8463-909a5993c1c2"
      decimals="2"
      id="F_e9ca618d-dd80-4d22-8749-907e82c40387"
      unitRef="U_USD">32387.21</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="C_b7050ef6-88c6-4c83-a66c-92bf4091af0a"
      decimals="-3"
      id="F_b101b0e8-0c51-43d1-9fc8-749c91a379fa"
      unitRef="U_USD">234520000</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="C_b7050ef6-88c6-4c83-a66c-92bf4091af0a"
      decimals="2"
      id="F_c668c176-92c9-4c39-997b-02eb712c3064"
      unitRef="U_USD">32387.21</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt
      contextRef="C_b7050ef6-88c6-4c83-a66c-92bf4091af0a"
      decimals="0"
      id="F_90e47b16-19e2-46ab-b0d0-438a69805be0"
      unitRef="U_USD">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="C_b7050ef6-88c6-4c83-a66c-92bf4091af0a"
      decimals="2"
      id="F_00001c25-77a3-4547-bbbb-1e94da9bd90f"
      unitRef="U_USD">32387.21</ffd:NetFeeAmt>
    <ffd:OfferingNote
      contextRef="C_77d7c65a-d771-497c-8463-909a5993c1c2"
      id="F_f0cbdaf8-31ef-4ec5-84d9-4033029359f6">&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 2026 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;2026 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;&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:0;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;(2)&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;Estimated in accordance with Rules 457(c) and 457(h) of the Securities Act solely for the purpose of calculating the registration fee on the basis of $53.30 per share, the average of the high and low prices of the Registrant&#x2019;s common shares as reported on The Nasdaq Global Market on June 2, 2026.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</ffd:OfferingNote>
</xbrl>
