<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.20.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>186</ContextCount>
  <ElementCount>436</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>79</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>5</UnitCount>
  <MyReports>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001001 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001002 - Statement - Condensed Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/CondensedBalanceSheets</Role>
      <ShortName>Condensed Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1003003 - Statement - Unaudited Condensed Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/UnauditedCondensedStatementsofOperations</Role>
      <ShortName>Unaudited Condensed Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1004004 - Statement - Unaudited Condensed Statements of Redeemable Convertible Preferred Stock and Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/UnauditedCondensedStatementsofRedeemableConvertiblePreferredStockandStockholdersEquity</Role>
      <ShortName>Unaudited Condensed Statements of Redeemable Convertible Preferred Stock and Stockholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1006005 - Statement - Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/StatementsofCashFlows</Role>
      <ShortName>Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1105101 - Statement - Unaudited Condensed Statements of Redeemable Convertible Preferred Stock and Stockholders' Equity (Deficit) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/UnauditedCondensedStatementsofRedeemableConvertiblePreferredStockandStockholdersEquityDeficitParenthetical</Role>
      <ShortName>Unaudited Condensed Statements of Redeemable Convertible Preferred Stock and Stockholders' Equity (Deficit) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1402401 - Statement - Condensed Balance Sheets - (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/CondensedBalanceSheetsParenthetical</Role>
      <ShortName>Condensed Balance Sheets - (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>1407402 - Statement - Statement of Cash Flows (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/StatementofCashFlowsParenthetical</Role>
      <ShortName>Statement of Cash Flows (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2101102 - Disclosure - Organization - (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.exagen.com/role/OrganizationNotes</Role>
      <ShortName>Organization - (Notes)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2103103 - Disclosure - Summary Of Significant Accounting Policies - (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.exagen.com/role/SummaryOfSignificantAccountingPoliciesNotes</Role>
      <ShortName>Summary Of Significant Accounting Policies - (Notes)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2111104 - Disclosure - Other Financial Information - (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.exagen.com/role/OtherFinancialInformationNotes</Role>
      <ShortName>Other Financial Information - (Notes)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2117105 - Disclosure - Borrowings - (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.exagen.com/role/BorrowingsNotes</Role>
      <ShortName>Borrowings - (Notes)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2121106 - Disclosure - Warrants to Purchase Common or Preferred Stock - (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.exagen.com/role/WarrantstoPurchaseCommonorPreferredStockNotes</Role>
      <ShortName>Warrants to Purchase Common or Preferred Stock - (Notes)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2125107 - Disclosure - Commitment and Contingencies - (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.exagen.com/role/CommitmentandContingenciesNotes</Role>
      <ShortName>Commitment and Contingencies - (Notes)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2129108 - Disclosure - Fair Value Measurements - (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.exagen.com/role/FairValueMeasurementsNotes</Role>
      <ShortName>Fair Value Measurements - (Notes)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2133109 - Disclosure - Redeemable Convertible Preferred Stock</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/RedeemableConvertiblePreferredStock</Role>
      <ShortName>Redeemable Convertible Preferred Stock</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2135110 - Disclosure - Stockholders' Equity (Deficit)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/StockholdersEquityDeficit</Role>
      <ShortName>Stockholders' Equity (Deficit)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2137111 - Disclosure - Stock Option Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/StockOptionPlan</Role>
      <ShortName>Stock Option Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2144112 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2151113 - Disclosure - Related Parties</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/RelatedParties</Role>
      <ShortName>Related Parties</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2153114 - Disclosure - 401(k) Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/A401kPlan</Role>
      <ShortName>401(k) Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2155115 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2204201 - Disclosure - Summary Of Significant Accounting Policies - Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/SummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary Of Significant Accounting Policies - Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2305301 - Disclosure - Summary Of Significant Accounting Policies - (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/SummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary Of Significant Accounting Policies - (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.exagen.com/role/SummaryOfSignificantAccountingPoliciesNotes</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2312302 - Disclosure - Other Financial Information - (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/OtherFinancialInformationTables</Role>
      <ShortName>Other Financial Information - (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.exagen.com/role/OtherFinancialInformationNotes</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2318303 - Disclosure - Borrowings - (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/BorrowingsTables</Role>
      <ShortName>Borrowings - (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.exagen.com/role/BorrowingsNotes</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2322304 - Disclosure - Warrants to Purchase Common or Preferred Stock - (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/WarrantstoPurchaseCommonorPreferredStockTables</Role>
      <ShortName>Warrants to Purchase Common or Preferred Stock - (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.exagen.com/role/WarrantstoPurchaseCommonorPreferredStockNotes</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2326305 - Disclosure - Commitment and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/CommitmentandContingenciesTables</Role>
      <ShortName>Commitment and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.exagen.com/role/CommitmentandContingenciesNotes</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2330306 - Disclosure - Fair Value Measures and Disclosures (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/FairValueMeasuresandDisclosuresTables</Role>
      <ShortName>Fair Value Measures and Disclosures (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2338307 - Disclosure - Stock Option Plan (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/StockOptionPlanTables</Role>
      <ShortName>Stock Option Plan (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.exagen.com/role/StockOptionPlan</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2345308 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.exagen.com/role/IncomeTaxes</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2402403 - Disclosure - Organization - (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/OrganizationDetails</Role>
      <ShortName>Organization - (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.exagen.com/role/OrganizationNotes</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2406404 - Disclosure - Summary Of Significant Accounting Policies - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/SummaryOfSignificantAccountingPoliciesNarrativeDetails</Role>
      <ShortName>Summary Of Significant Accounting Policies - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.exagen.com/role/SummaryOfSignificantAccountingPoliciesTables</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2407405 - Disclosure - Summary Of Significant Accounting Policies - Revenue by Major Payers (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/SummaryOfSignificantAccountingPoliciesRevenuebyMajorPayersDetails</Role>
      <ShortName>Summary Of Significant Accounting Policies - Revenue by Major Payers (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2408406 - Disclosure - Summary Of Significant Accounting Policies - Disaggregation of Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/SummaryOfSignificantAccountingPoliciesDisaggregationofRevenueDetails</Role>
      <ShortName>Summary Of Significant Accounting Policies - Disaggregation of Revenue (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2409407 - Disclosure - Summary Of Significant Accounting Policies - Cash, cash equivalents and restricted cash (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/SummaryOfSignificantAccountingPoliciesCashcashequivalentsandrestrictedcashDetails</Role>
      <ShortName>Summary Of Significant Accounting Policies - Cash, cash equivalents and restricted cash (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2410408 - Disclosure - Summary Of Significant Accounting Policies - Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/SummaryOfSignificantAccountingPoliciesSecuritiesDetails</Role>
      <ShortName>Summary Of Significant Accounting Policies - Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.exagen.com/role/SummaryOfSignificantAccountingPoliciesTables</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2413409 - Disclosure - Other Financial Information - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/OtherFinancialInformationNarrativeDetails</Role>
      <ShortName>Other Financial Information - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2414410 - Disclosure - Other Financial Information - Prepaid expenses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/OtherFinancialInformationPrepaidexpensesDetails</Role>
      <ShortName>Other Financial Information - Prepaid expenses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2415411 - Disclosure - Other Financial Information - Property and equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/OtherFinancialInformationPropertyandequipmentDetails</Role>
      <ShortName>Other Financial Information - Property and equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2416412 - Disclosure - Other Financial Information - Accrued liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/OtherFinancialInformationAccruedliabilitiesDetails</Role>
      <ShortName>Other Financial Information - Accrued liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2419413 - Disclosure - Borrowings - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/BorrowingsNarrativeDetails</Role>
      <ShortName>Borrowings - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2420414 - Disclosure - Borrowings - Future minimum payments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/BorrowingsFutureminimumpaymentsDetails</Role>
      <ShortName>Borrowings - Future minimum payments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2423415 - Disclosure - Warrants to Purchase Common or Preferred Stock - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/WarrantstoPurchaseCommonorPreferredStockNarrativeDetails</Role>
      <ShortName>Warrants to Purchase Common or Preferred Stock - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.exagen.com/role/WarrantstoPurchaseCommonorPreferredStockTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2424416 - Disclosure - Warrants to Purchase Common or Preferred Stock - Outstanding warrants (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/WarrantstoPurchaseCommonorPreferredStockOutstandingwarrantsDetails</Role>
      <ShortName>Warrants to Purchase Common or Preferred Stock - Outstanding warrants (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2427417 - Disclosure - Commitment and Contingencies - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/CommitmentandContingenciesNarrativeDetails</Role>
      <ShortName>Commitment and Contingencies - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2428418 - Disclosure - Commitment and Contingencies - Minimum annual lease payments under non-cancelable lease arrangements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/CommitmentandContingenciesMinimumannualleasepaymentsundernoncancelableleasearrangementsDetails</Role>
      <ShortName>Commitment and Contingencies - Minimum annual lease payments under non-cancelable lease arrangements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2431419 - Disclosure - Fair Value Measurements - Fair value measurement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/FairValueMeasurementsFairvaluemeasurementDetails</Role>
      <ShortName>Fair Value Measurements - Fair value measurement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2432420 - Disclosure - Fair Value Measurements- Fair value level 3 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/FairValueMeasurementsFairvaluelevel3Details</Role>
      <ShortName>Fair Value Measurements- Fair value level 3 (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2434421 - Disclosure - Redeemable Convertible Preferred Stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/RedeemableConvertiblePreferredStockDetails</Role>
      <ShortName>Redeemable Convertible Preferred Stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.exagen.com/role/RedeemableConvertiblePreferredStock</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2436422 - Disclosure - Stockholders' Equity (Deficit) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/StockholdersEquityDeficitDetails</Role>
      <ShortName>Stockholders' Equity (Deficit) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.exagen.com/role/StockholdersEquityDeficit</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2439423 - Disclosure - Stock Option Plan - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/StockOptionPlanNarrativeDetails</Role>
      <ShortName>Stock Option Plan - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2440424 - Disclosure - Stock Option Plan - Stock Option Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/StockOptionPlanStockOptionActivityDetails</Role>
      <ShortName>Stock Option Plan - Stock Option Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2441425 - Disclosure - Stock Option Plan - Fair Value Assumptions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/StockOptionPlanFairValueAssumptionsDetails</Role>
      <ShortName>Stock Option Plan - Fair Value Assumptions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>2442426 - Disclosure - Stock Option Plan - Stock-Based Compensation Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/StockOptionPlanStockBasedCompensationExpenseDetails</Role>
      <ShortName>Stock Option Plan - Stock-Based Compensation Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>2443427 - Disclosure - Stock Option Plan - Common Stock Reserved For Future Issuance (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/StockOptionPlanCommonStockReservedForFutureIssuanceDetails</Role>
      <ShortName>Stock Option Plan - Common Stock Reserved For Future Issuance (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>2446428 - Disclosure - Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/IncomeTaxesDetails</Role>
      <ShortName>Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.exagen.com/role/IncomeTaxesTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>2447429 - Disclosure - Income Taxes - Components of Income Tax Expense (Benefit) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/IncomeTaxesComponentsofIncomeTaxExpenseBenefitDetails</Role>
      <ShortName>Income Taxes - Components of Income Tax Expense (Benefit) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>2448430 - Disclosure - Income Taxes - Reconciliation of Effective Income Tax Rate (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/IncomeTaxesReconciliationofEffectiveIncomeTaxRateDetails</Role>
      <ShortName>Income Taxes - Reconciliation of Effective Income Tax Rate (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>2449431 - Disclosure - Income Taxes - Reconciliation of Deferred Tax Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/IncomeTaxesReconciliationofDeferredTaxAssetsandLiabilitiesDetails</Role>
      <ShortName>Income Taxes - Reconciliation of Deferred Tax Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>2450432 - Disclosure - Income Taxes - Change In Valuation Allowance (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/IncomeTaxesChangeInValuationAllowanceDetails</Role>
      <ShortName>Income Taxes - Change In Valuation Allowance (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>2452433 - Disclosure - Related Parties (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/RelatedPartiesDetails</Role>
      <ShortName>Related Parties (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.exagen.com/role/RelatedParties</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>2454434 - Disclosure - 401(k) Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/A401kPlanDetails</Role>
      <ShortName>401(k) Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.exagen.com/role/A401kPlan</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>2456435 - Disclosure - Subsequent Events (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/SubsequentEventsDetails</Role>
      <ShortName>Subsequent Events (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.exagen.com/role/SubsequentEvents</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="exdx-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9999.htm</HtmlFileName>
      <LongName>Uncategorized Items - exdx-20191231.htm</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/role/uncategorizedFacts</Role>
      <ShortName>Uncategorized Items - exdx-20191231.htm</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>65</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-K" original="exdx-20191231.htm">exdx-20191231.htm</File>
    <File>a1221libertyway-leasea.htm</File>
    <File>ex10331261suitealeasev2.htm</File>
    <File>ex1036-innovatusxexage.htm</File>
    <File>ex1041-zackofferletter.htm</File>
    <File>ex231-bdoconsent.htm</File>
    <File>exdx-20191231.xsd</File>
    <File>exdx-20191231_cal.xml</File>
    <File>exdx-20191231_def.xml</File>
    <File>exdx-20191231_lab.xml</File>
    <File>exdx-20191231_pre.xml</File>
    <File>firstamend1221lease.htm</File>
    <File>fourthamendmenttolease.htm</File>
    <File>secondamend1261suitebc.htm</File>
    <File>thirdamend1261suitebc.htm</File>
    <File>xgn311-123119.htm</File>
    <File>xgn312-123119.htm</File>
    <File>xgn321-123119.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>exdx-20191231_g1.jpg</File>
    <File>exdx-20191231_g2.jpg</File>
    <File>exdx-20191231_g3.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy>http://fasb.org/us-gaap/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2019-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
