<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xml:lang="en-US"
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:_2="http://www.w3.org/1999/xhtml"
  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-1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001347178</identifier>
        </entity>
        <period>
            <startDate>2025-06-05</startDate>
            <endDate>2025-06-05</endDate>
        </period>
    </context>
    <context id="c-2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001347178</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-06-05</startDate>
            <endDate>2025-06-05</endDate>
        </period>
    </context>
    <unit id="share">
        <measure>_2:share</measure>
    </unit>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="number">
        <measure>pure</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="c-1" id="f-16">0001347178</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp contextRef="c-1" id="f-17">S-8</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="c-1" id="f-18">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FeeRate contextRef="c-2" decimals="8" id="f-19" unitRef="number">0.00015310</ffd:FeeRate>
    <ffd:FormTp contextRef="c-1" id="f-1">S-8</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="c-1" id="f-2">Vanda Pharmaceuticals Inc.</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="c-2" id="f-3">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="c-2" id="f-4">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c-2" id="f-5">Stock Options and Common Stock, $0.001 par value per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c-2" id="f-6">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd contextRef="c-2" decimals="0" id="f-7" unitRef="share">2500000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty contextRef="c-2" decimals="2" id="f-8" unitRef="usd">4.32</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric contextRef="c-2" decimals="0" id="f-9" unitRef="usd">10800000</ffd:MaxAggtOfferingPric>
    <ffd:FeeAmt contextRef="c-2" decimals="2" id="f-10" unitRef="usd">1653.48</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="c-1" decimals="0" id="f-11" unitRef="usd">10800000</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="c-1" decimals="2" id="f-12" unitRef="usd">1653.48</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt contextRef="c-1" decimals="2" id="f-13" unitRef="usd">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="c-1" decimals="2" id="f-14" unitRef="usd">1653.48</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c-2" id="f-15">&lt;div style="padding-left:21.2pt;padding-right:3pt;text-indent:-21.2pt"&gt;&lt;span style="color:#000000;font-family:'Times New Roman',sans-serif;font-size:10pt;font-weight:400;line-height:100%"&gt;(1)&lt;/span&gt;&lt;span style="color:#000000;font-family:'Times New Roman',sans-serif;font-size:10pt;font-weight:400;line-height:100%;padding-left:9.54pt"&gt;This Registration Statement shall also cover any additional shares of Common Stock which become issuable under the Amended and Restated 2016 Equity Incentive Plan by reason of any stock dividend, stock split, recapitalization or other similar transaction effected without the receipt of consideration which results in an increase in the number of the outstanding shares of Common Stock of Vanda Pharmaceuticals Inc.&lt;/span&gt;&lt;/div&gt;&lt;div style="padding-right:3pt;text-indent:-3.2pt"&gt;&lt;span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="padding-left:21.2pt;padding-right:3pt;text-indent:-21.2pt"&gt;&lt;span style="color:#000000;font-family:'Times New Roman',sans-serif;font-size:10pt;font-weight:400;line-height:100%"&gt;(2)&lt;/span&gt;&lt;span style="color:#000000;font-family:'Times New Roman',sans-serif;font-size:10pt;font-weight:400;line-height:100%;padding-left:9.54pt"&gt;These shares are Reserved for future issuance under the Vanda Pharmaceuticals Inc. Amended and Restated 2016 Equity Incentive Plan.&lt;/span&gt;&lt;/div&gt;&lt;span style="color:#000000;font-family:'Times New Roman',sans-serif;font-size:10pt;font-weight:400;line-height:112%"&gt;(3)&lt;/span&gt;Estimated solely for the purpose of calculating the amount of the registration fee pursuant to Rule 457(c) and (h)(1) under the Securities Act of 1933, as amended. The offering price per share and aggregate offering price for the unissued stock options and shares of Common Stock are based upon the average of the high and low prices of the Registrant&#x2019;s common stock as reported on The Nasdaq Global Market on June 3, 2025.</ffd:OfferingNote>
</xbrl>
