<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.19.3</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>258</ContextCount>
  <ElementCount>362</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>72</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>6</UnitCount>
  <MyReports>
    <Report instance="exdx-20190930.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-20190930.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-20190930.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-20190930.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-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1006005 - Statement - Unaudited Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/UnauditedStatementsofCashFlows</Role>
      <ShortName>Unaudited Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="exdx-20190930.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-20190930.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-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.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>8</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.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>9</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.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>10</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.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>11</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.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>12</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.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>13</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2127108 - 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>14</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2131109 - 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>15</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2133110 - 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>16</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2135111 - 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>17</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2141112 - Disclosure - Related Parties</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/RelatedParties</Role>
      <ShortName>Related Parties</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2143113 - Disclosure - Correction of Immaterial Misstatements in the Financial Statements for the Year Ended December 31, 2018</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/CorrectionofImmaterialMisstatementsintheFinancialStatementsfortheYearEndedDecember312018</Role>
      <ShortName>Correction of Immaterial Misstatements in the Financial Statements for the Year Ended December 31, 2018</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.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>20</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.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>21</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.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>22</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.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>23</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.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>24</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2328305 - 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>25</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2336306 - 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>26</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2344307 - Disclosure - Accounting Changes and Error Corrections (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/AccountingChangesandErrorCorrectionsTables</Role>
      <ShortName>Accounting Changes and Error Corrections (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2402402 - 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>28</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2406403 - 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>29</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2407404 - Disclosure - Summary Of Significant Accounting Policeies - Revenue by Major Payers (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/SummaryOfSignificantAccountingPoliceiesRevenuebyMajorPayersDetails</Role>
      <ShortName>Summary Of Significant Accounting Policeies - Revenue by Major Payers (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2408405 - 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>31</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2409406 - 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>32</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2410407 - 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>33</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2413408 - 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>34</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2414409 - 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>35</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2415410 - 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>36</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2416411 - 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>37</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2419412 - 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>38</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2420413 - 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>39</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2423414 - 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>40</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2424415 - 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>41</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2426416 - 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>42</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2429417 - 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>43</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2430418 - 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>44</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2432419 - 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>45</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2434420 - 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>46</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2437421 - 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>47</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2438422 - 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>48</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2439423 - 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>49</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2440424 - 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>50</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2442425 - 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>51</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2445426 - Disclosure - Accounting Changes and Error Corrections - Balance Sheet (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/AccountingChangesandErrorCorrectionsBalanceSheetDetails</Role>
      <ShortName>Accounting Changes and Error Corrections - Balance Sheet (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2446427 - Disclosure - Accounting Changes and Error Corrections - Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/AccountingChangesandErrorCorrectionsOperationsDetails</Role>
      <ShortName>Accounting Changes and Error Corrections - Operations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2447428 - Disclosure - Accounting Changes and Error Corrections - Warrant Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.exagen.com/role/AccountingChangesandErrorCorrectionsWarrantLiabilitiesDetails</Role>
      <ShortName>Accounting Changes and Error Corrections - Warrant Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="exdx-20190930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9999.htm</HtmlFileName>
      <LongName>Uncategorized Items - exdx-20190930.htm</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/role/uncategorizedFacts</Role>
      <ShortName>Uncategorized Items - exdx-20190930.htm</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>55</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="exdx-20190930.htm">exdx-20190930.htm</File>
    <File>exdx-20190930.xsd</File>
    <File>exdx-20190930_cal.xml</File>
    <File>exdx-20190930_def.xml</File>
    <File>exdx-20190930_lab.xml</File>
    <File>exdx-20190930_pre.xml</File>
    <File>xgn311-93019.htm</File>
    <File>xgn312-93019.htm</File>
    <File>xgn321-93019.htm</File>
  </InputFiles>
  <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>
