<?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">0001062822</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-06</startDate>
            <endDate>2026-08-06</endDate>
        </period>
    </context>
    <context id="c-2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001062822</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-06</startDate>
            <endDate>2026-08-06</endDate>
        </period>
    </context>
    <context id="c-3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001062822</identifier>
        </entity>
        <period>
            <startDate>2026-08-06</startDate>
            <endDate>2026-08-06</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-3" id="f-25">0001062822</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="c-3" id="f-26">Lexicon Pharmaceuticals, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp contextRef="c-3" id="f-27">S-8</ffd:FormTp>
    <ffd:SubmissnTp contextRef="c-3" id="f-28">S-8</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="c-3" id="f-29">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa contextRef="c-3" id="f-30">N/A</ffd:OffsetTableNa>
    <ffd:OfferingSctyTp contextRef="c-1" id="f-1">Equity</ffd:OfferingSctyTp>
    <ffd:PrevslyPdFlg contextRef="c-1" id="f-2">false</ffd:PrevslyPdFlg>
    <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">15000000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty contextRef="c-1" decimals="5" id="f-6" unitRef="usd">2.28</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric contextRef="c-1" decimals="0" id="f-7" unitRef="usd">34200000</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate contextRef="c-1" decimals="8" id="f-8" unitRef="number">0.00013810</ffd:FeeRate>
    <ffd:FeeAmt contextRef="c-1" decimals="0" id="f-9" unitRef="usd">4724</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="c-2" id="f-10">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="c-2" id="f-11">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c-2" id="f-12">Common Stock, $0.001 par value per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c-2" id="f-13">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd contextRef="c-2" decimals="0" id="f-14" unitRef="shares">2000000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty contextRef="c-2" decimals="5" id="f-15" unitRef="usd">2.28</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric contextRef="c-2" decimals="0" id="f-16" unitRef="usd">4560000</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate contextRef="c-2" decimals="8" id="f-17" unitRef="number">0.00013810</ffd:FeeRate>
    <ffd:FeeAmt contextRef="c-2" decimals="0" id="f-18" unitRef="usd">630</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="c-3" decimals="0" id="f-19" unitRef="usd">38760000</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="c-3" decimals="0" id="f-20" unitRef="usd">5354</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt contextRef="c-3" decimals="0" id="f-21" unitRef="usd">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="c-3" decimals="0" id="f-22" unitRef="usd">5354</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c-1" id="f-24">&lt;div&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:8pt;font-weight:400;line-height:112%"&gt;(1)   The Form S-8 registration statement to which this Exhibit 107.1 is attached registers 17,000,000 shares of common stock, par value $0.001 of Lexicon Pharmaceuticals, Inc., a Delaware corporation, pursuant to the 2026 Equity Incentive Plan or 2026 Non-Employee Directors&#x2019; Equity Incentive Plan (the &#x201c;Plans&#x201d;), as noted above. Pursuant to Rule 416 under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), the Registration Statement shall be deemed to cover an indeterminate number of additional shares of Common Stock as may be necessary to adjust the number of shares of common stock that may become issuable by reason of stock splits, stock dividends or similar transactions pursuant to the anti-dilution provisions of the Plans.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:8pt;font-weight:400;line-height:112%"&gt;(2)   Estimated solely for purposes of calculating the registration fee, in accordance with Rule 457(h), on the basis of the price of securities of the same class, as determined in accordance with Rule 457(c), using the average of the high and low prices for the common stock reported on The Nasdaq Capital Market on August 3, 2026.&lt;/span&gt;&lt;/div&gt;</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="c-2" id="f-23">&lt;div&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:8pt;font-weight:400;line-height:112%"&gt;(1)   The Form S-8 registration statement to which this Exhibit 107.1 is attached registers 17,000,000 shares of common stock, par value $0.001 of Lexicon Pharmaceuticals, Inc., a Delaware corporation, pursuant to the 2026 Equity Incentive Plan or 2026 Non-Employee Directors&#x2019; Equity Incentive Plan (the &#x201c;Plans&#x201d;), as noted above. Pursuant to Rule 416 under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), the Registration Statement shall be deemed to cover an indeterminate number of additional shares of Common Stock as may be necessary to adjust the number of shares of common stock that may become issuable by reason of stock splits, stock dividends or similar transactions pursuant to the anti-dilution provisions of the Plans.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:8pt;font-weight:400;line-height:112%"&gt;(2)   Estimated solely for purposes of calculating the registration fee, in accordance with Rule 457(h), on the basis of the price of securities of the same class, as determined in accordance with Rule 457(c), using the average of the high and low prices for the common stock reported on The Nasdaq Capital Market on August 3, 2026.&lt;/span&gt;&lt;/div&gt;</ffd:OfferingNote>
</xbrl>
