<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="xene-20260806.xsd" xlink:type="simple"/>
    <context id="C_e8a67901-576b-4f73-8470-ad9bfccb243e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001582313</identifier>
        </entity>
        <period>
            <startDate>2026-08-06</startDate>
            <endDate>2026-08-06</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_edbe8b7d-9fca-4034-aa08-3bc27ecaaf3a">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_d8ca41af-24c1-4c0d-83d6-35c3ea374238">0001582313</dei:EntityCentralIndexKey>
    <dei:DocumentType
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_ab06d485-71e3-44ec-a342-3d11f2fa874b">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_e4d98e47-601e-4131-9964-fdca36efdf4d">2026-08-06</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_b744a36e-667f-410b-81c0-7562f133fa5e">XENON PHARMACEUTICALS INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_e513be0c-1017-46af-86b4-73ed85831c76">Z4</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_a4b06a44-4332-4c64-896b-204f6b3e36c4">001-36687</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_02d5c5d2-6ef9-4299-96cc-2d1198b468bb">98-0661854</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_618063a2-b524-4509-b884-088cff1bb28c">3650 Gilmore Way</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_1bd31bba-52b3-4699-8e99-bf92bb286a02">Burnaby</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_9b5cf0ec-12db-4bbd-b52d-b020a3f9ada3">BC</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressCountry
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_d4e7aa0a-ad46-4ddb-8a04-8ad777b7711f">CA</dei:EntityAddressCountry>
    <dei:EntityAddressPostalZipCode
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_cb6b7f09-fbb2-45b3-8395-6a59ebb75287">V5G 4W8</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_71a0d461-4331-4140-a243-e2e8f40c021e">(604)</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_fea19d5a-b9d5-48bf-8c93-4463da1f3924">484-3300</dei:LocalPhoneNumber>
    <dei:EntityInformationFormerLegalOrRegisteredName
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_86abc5c8-a522-4568-93d1-c156b390219a">Not Applicable</dei:EntityInformationFormerLegalOrRegisteredName>
    <dei:WrittenCommunications
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_b00a6920-d292-456e-aa7c-fa1e4385e5be">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_d47cd0d4-1ea9-48cb-98cd-18f6ae663dd0">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_097a3b5b-7b5b-4820-9a2c-2b3873025a7d">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_eef19318-dcfd-4845-823c-d10faf62b4b8">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_74e27021-698b-47ab-8f28-1a0502e7460c">Common Shares, without par value</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_1380164d-2695-4597-b7f8-7eefc3d16967">XENE</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_03af6661-0bb8-4f1e-a95a-48bb6948a3f4">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_e8a67901-576b-4f73-8470-ad9bfccb243e"
      id="F_dcc2989e-7728-4bae-9fc9-530281080743">false</dei:EntityEmergingGrowthCompany>
</xbrl>
