<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>70</ContextCount>
  <ElementCount>213</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>16</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>5</UnitCount>
  <MyReports>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001001 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/DocumentandEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001002 - Statement - Consolidated Balance Sheets-Unaudited</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/ConsolidatedBalanceSheetsUnaudited</Role>
      <ShortName>Consolidated Balance Sheets-Unaudited</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1002003 - Statement - Consolidated Balance Sheets Parentheticals</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/ConsolidatedBalanceSheetsParentheticals</Role>
      <ShortName>Consolidated Balance Sheets Parentheticals</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1003004 - Statement - Consolidated Statements of Comprehensive Loss-Unaudited</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/ConsolidatedStatementsofComprehensiveLossUnaudited</Role>
      <ShortName>Consolidated Statements of Comprehensive Loss-Unaudited</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1004005 - Statement - Consolidated Statements of Comprehensive Loss Parentheticals</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/ConsolidatedStatementsofComprehensiveLossParentheticals</Role>
      <ShortName>Consolidated Statements of Comprehensive Loss Parentheticals</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1005006 - Statement - Consolidated Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/ConsolidatedStatementsofCashFlowsUnaudited</Role>
      <ShortName>Consolidated Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1006007 - Statement - Consolidated Statements of Stockholders' Equity/Deficit-Unaudited</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/ConsolidatedStatementsofStockholdersEquityDeficitUnaudited</Role>
      <ShortName>Consolidated Statements of Stockholders' Equity/Deficit-Unaudited</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>2101101 - Disclosure - Summary of Significant Accounting Policies (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.lexpharma.com/role/SummaryofSignificantAccountingPoliciesNotes</Role>
      <ShortName>Summary of Significant Accounting Policies (Notes)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2109102 - Disclosure - Recent Accounting Pronouncements Level 1 (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.lexpharma.com/role/RecentAccountingPronouncementsLevel1Notes</Role>
      <ShortName>Recent Accounting Pronouncements Level 1 (Notes)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2110103 - Disclosure - Cash and Cash Equivalents and Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/CashandCashEquivalentsandInvestments</Role>
      <ShortName>Cash and Cash Equivalents and Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2114104 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/FairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2117105 - Disclosure - Debt Obligations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/DebtObligations</Role>
      <ShortName>Debt Obligations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2120106 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2122107 - Disclosure - Collaboration and License Agreements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/CollaborationandLicenseAgreements</Role>
      <ShortName>Collaboration and License Agreements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2125108 - Disclosure - Other Capital Agreements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/OtherCapitalAgreements</Role>
      <ShortName>Other Capital Agreements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2202201 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/SummaryofSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.lexpharma.com/role/SummaryofSignificantAccountingPoliciesNotes</ParentRole>
      <Position>16</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2303301 - Disclosure - Summary of Significant Accounting Policies Equity Incentive Awards (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/SummaryofSignificantAccountingPoliciesEquityIncentiveAwardsTables</Role>
      <ShortName>Summary of Significant Accounting Policies Equity Incentive Awards (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2311302 - Disclosure - Cash and Cash Equivalents and Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/CashandCashEquivalentsandInvestmentsTables</Role>
      <ShortName>Cash and Cash Equivalents and Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.lexpharma.com/role/CashandCashEquivalentsandInvestments</ParentRole>
      <Position>18</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2315303 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/FairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.lexpharma.com/role/FairValueMeasurements</ParentRole>
      <Position>19</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2404401 - Disclosure - Summary of Significant Accounting Policies Stock-based Compensation Valuation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/SummaryofSignificantAccountingPoliciesStockbasedCompensationValuationDetails</Role>
      <ShortName>Summary of Significant Accounting Policies Stock-based Compensation Valuation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2405402 - Disclosure - Summary of Significant Accounting Policies Stock-based Compensation Summary (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/SummaryofSignificantAccountingPoliciesStockbasedCompensationSummaryDetails1</Role>
      <ShortName>Summary of Significant Accounting Policies Stock-based Compensation Summary (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2407404 - Disclosure - Summary of Significant Accounting Policies Accrued Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/SummaryofSignificantAccountingPoliciesAccruedLiabilitiesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies Accrued Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2412406 - Disclosure - Cash and Cash Equivalents and Investments (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/CashandCashEquivalentsandInvestmentsDetails1</Role>
      <ShortName>Cash and Cash Equivalents and Investments (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.lexpharma.com/role/CashandCashEquivalentsandInvestmentsTables</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2413407 - Disclosure - Cash and Cash Equivalents and Investments (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/CashandCashEquivalentsandInvestmentsDetails2</Role>
      <ShortName>Cash and Cash Equivalents and Investments (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.lexpharma.com/role/CashandCashEquivalentsandInvestmentsTables</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2416408 - Disclosure - Fair Value Measurements (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/FairValueMeasurementsDetails1</Role>
      <ShortName>Fair Value Measurements (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.lexpharma.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2419409 - Disclosure - Debt Obligations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/DebtObligationsDetails</Role>
      <ShortName>Debt Obligations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.lexpharma.com/role/DebtObligations</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2421410 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/CommitmentsandContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.lexpharma.com/role/CommitmentsandContingencies</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="lxrx-20220331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2426412 - Disclosure - Other Capital Agreements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.lexpharma.com/role/OtherCapitalAgreementsDetails</Role>
      <ShortName>Other Capital Agreements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.lexpharma.com/role/OtherCapitalAgreements</ParentRole>
      <Position>28</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" original="lxrx-20220331.htm">lxrx-20220331.htm</File>
    <File>exh101oxfordloanandsecurit.htm</File>
    <File>exh311certificationofprinc.htm</File>
    <File>exh312certificationofprinc.htm</File>
    <File>exh321certificationofprinc.htm</File>
    <File>lxrx-20220331.xsd</File>
    <File>lxrx-20220331_cal.xml</File>
    <File>lxrx-20220331_def.xml</File>
    <File>lxrx-20220331_lab.xml</File>
    <File>lxrx-20220331_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="363">http://fasb.org/us-gaap/2022</BaseTaxonomy>
    <BaseTaxonomy items="30">http://xbrl.sec.gov/dei/2022</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
