<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.4</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>333</ContextCount>
  <ElementCount>509</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>100</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>14</UnitCount>
  <MyReports>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Document - Audit Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/AuditInformation</Role>
      <ShortName>Audit Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>9952151 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>9952152 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>9952153 - Statement - Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/ConsolidatedStatementsofOperations</Role>
      <ShortName>Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>9952154 - Statement - Consolidated Statements of Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/ConsolidatedStatementsofComprehensiveLoss</Role>
      <ShortName>Consolidated Statements of Comprehensive Loss</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>9952155 - Statement - Consolidated Statements of Stockholders??? Equity (Deficit)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/ConsolidatedStatementsofStockholdersEquityDeficit</Role>
      <ShortName>Consolidated Statements of Stockholders??? Equity (Deficit)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>9952156 - Statement - Consolidated Statements of Stockholders??? Equity (Deficit) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/ConsolidatedStatementsofStockholdersEquityDeficitParenthetical</Role>
      <ShortName>Consolidated Statements of Stockholders??? Equity (Deficit) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>9952157 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/ConsolidatedStatementsofCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>9952158 - Disclosure - Description of Business</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/DescriptionofBusiness</Role>
      <ShortName>Description of Business</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>9952159 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/SummaryofSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>9952160 - Disclosure - Consolidated Balance Sheet Components</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/ConsolidatedBalanceSheetComponents</Role>
      <ShortName>Consolidated Balance Sheet Components</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>9952161 - Disclosure - Acquisition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/Acquisition</Role>
      <ShortName>Acquisition</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>9952162 - Disclosure - Fair Value Measurements, Cash Equivalents and Marketable Securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/FairValueMeasurementsCashEquivalentsandMarketableSecurities</Role>
      <ShortName>Fair Value Measurements, Cash Equivalents and Marketable Securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>9952163 - Disclosure - Intangible Assets, Net and Goodwill</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/IntangibleAssetsNetandGoodwill</Role>
      <ShortName>Intangible Assets, Net and Goodwill</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>9952164 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/Debt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>9952165 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/Leases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>9952166 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>9952167 - Disclosure - Common Stock</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/CommonStock</Role>
      <ShortName>Common Stock</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9952168 - Disclosure - Stock-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/StockBasedCompensation</Role>
      <ShortName>Stock-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9952169 - Disclosure - Net Loss Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/NetLossPerShare</Role>
      <ShortName>Net Loss Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9952170 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9952171 - Disclosure - Employee Benefit Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/EmployeeBenefitPlan</Role>
      <ShortName>Employee Benefit Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9952172 - Disclosure - Segment and Geographic Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/SegmentandGeographicInformation</Role>
      <ShortName>Segment and Geographic Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>995447 - Disclosure - Insider Trading Policies and Procedures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc</Role>
      <ShortName>Insider Trading Policies and Procedures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>995550 - Disclosure - Cybersecurity Risk Management and Strategy Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure</Role>
      <ShortName>Cybersecurity Risk Management and Strategy Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9955511 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/SummaryofSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://guardanthealth.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9955512 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/SummaryofSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://guardanthealth.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9955513 - Disclosure - Consolidated Balance Sheet Components (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/ConsolidatedBalanceSheetComponentsTables</Role>
      <ShortName>Consolidated Balance Sheet Components (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://guardanthealth.com/role/ConsolidatedBalanceSheetComponents</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9955514 - Disclosure - Acquisition (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/AcquisitionTables</Role>
      <ShortName>Acquisition (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://guardanthealth.com/role/Acquisition</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9955515 - Disclosure - Fair Value Measurements, Cash Equivalents and Marketable Securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/FairValueMeasurementsCashEquivalentsandMarketableSecuritiesTables</Role>
      <ShortName>Fair Value Measurements, Cash Equivalents and Marketable Securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://guardanthealth.com/role/FairValueMeasurementsCashEquivalentsandMarketableSecurities</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9955516 - Disclosure - Intangible Assets, Net and Goodwill (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/IntangibleAssetsNetandGoodwillTables</Role>
      <ShortName>Intangible Assets, Net and Goodwill (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://guardanthealth.com/role/IntangibleAssetsNetandGoodwill</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9955517 - Disclosure - Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/DebtTables</Role>
      <ShortName>Debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://guardanthealth.com/role/Debt</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9955518 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/LeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://guardanthealth.com/role/Leases</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9955519 - Disclosure - Common Stock (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/CommonStockTables</Role>
      <ShortName>Common Stock (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://guardanthealth.com/role/CommonStock</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9955520 - Disclosure - Stock-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/StockBasedCompensationTables</Role>
      <ShortName>Stock-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://guardanthealth.com/role/StockBasedCompensation</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9955521 - Disclosure - Net Loss Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/NetLossPerShareTables</Role>
      <ShortName>Net Loss Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://guardanthealth.com/role/NetLossPerShare</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9955522 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://guardanthealth.com/role/IncomeTaxes</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9955523 - Disclosure - Segment and Geographic Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/SegmentandGeographicInformationTables</Role>
      <ShortName>Segment and Geographic Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://guardanthealth.com/role/SegmentandGeographicInformation</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9955524 - Disclosure - Summary of Significant Accounting Policies - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/SummaryofSignificantAccountingPoliciesNarrativeDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9955525 - Disclosure - Summary of Significant Accounting Policies - Schedules of Concentration of Risk, by Risk Factor (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/SummaryofSignificantAccountingPoliciesSchedulesofConcentrationofRiskbyRiskFactorDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedules of Concentration of Risk, by Risk Factor (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9955526 - Disclosure - Summary of Significant Accounting Policies - Schedule of Property, Plant and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/SummaryofSignificantAccountingPoliciesScheduleofPropertyPlantandEquipmentDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Property, Plant and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9955527 - Disclosure - Summary of Significant Accounting Policies - Schedule of Disaggregated By Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/SummaryofSignificantAccountingPoliciesScheduleofDisaggregatedByRevenueDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Disaggregated By Revenue (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9955528 - Disclosure - Consolidated Balance Sheet Components - Schedule of Property, Plant and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/ConsolidatedBalanceSheetComponentsScheduleofPropertyPlantandEquipmentDetails</Role>
      <ShortName>Consolidated Balance Sheet Components - Schedule of Property, Plant and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9955529 - Disclosure - Consolidated Balance Sheet Components - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/ConsolidatedBalanceSheetComponentsNarrativeDetails</Role>
      <ShortName>Consolidated Balance Sheet Components - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9955530 - Disclosure - Consolidated Balance Sheet Components - Schedule of Accounts Payable and Accrued Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/ConsolidatedBalanceSheetComponentsScheduleofAccountsPayableandAccruedLiabilitiesDetails</Role>
      <ShortName>Consolidated Balance Sheet Components - Schedule of Accounts Payable and Accrued Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9955531 - Disclosure - Acquisition - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/AcquisitionNarrativeDetails</Role>
      <ShortName>Acquisition - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9955532 - Disclosure - Acquisition - Schedule of Assets Acquired and Liabilities Assumed (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/AcquisitionScheduleofAssetsAcquiredandLiabilitiesAssumedDetails</Role>
      <ShortName>Acquisition - Schedule of Assets Acquired and Liabilities Assumed (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9955533 - Disclosure - Fair Value Measurements, Cash Equivalents and Marketable Securities - Schedule of Fair Value Measurements, Recurring and Nonrecurring (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/FairValueMeasurementsCashEquivalentsandMarketableSecuritiesScheduleofFairValueMeasurementsRecurringandNonrecurringDetails</Role>
      <ShortName>Fair Value Measurements, Cash Equivalents and Marketable Securities - Schedule of Fair Value Measurements, Recurring and Nonrecurring (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9955534 - Disclosure - Fair Value Measurements, Cash Equivalents and Marketable Securities - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/FairValueMeasurementsCashEquivalentsandMarketableSecuritiesNarrativeDetails</Role>
      <ShortName>Fair Value Measurements, Cash Equivalents and Marketable Securities - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://guardanthealth.com/role/FairValueMeasurementsCashEquivalentsandMarketableSecuritiesTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9955535 - Disclosure - Fair Value Measurements, Cash Equivalents and Marketable Securities - Schedule of Level 3 Financial Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/FairValueMeasurementsCashEquivalentsandMarketableSecuritiesScheduleofLevel3FinancialInstrumentsDetails</Role>
      <ShortName>Fair Value Measurements, Cash Equivalents and Marketable Securities - Schedule of Level 3 Financial Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9955536 - Disclosure - Fair Value Measurements, Cash Equivalents and Marketable Securities - Schedule of Cash Equivalents and Marketable Securities' (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/FairValueMeasurementsCashEquivalentsandMarketableSecuritiesScheduleofCashEquivalentsandMarketableSecuritiesDetails</Role>
      <ShortName>Fair Value Measurements, Cash Equivalents and Marketable Securities - Schedule of Cash Equivalents and Marketable Securities' (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9955537 - Disclosure - Intangible Assets, Net and Goodwill - Schedule of Intangible Assets by Class (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/IntangibleAssetsNetandGoodwillScheduleofIntangibleAssetsbyClassDetails</Role>
      <ShortName>Intangible Assets, Net and Goodwill - Schedule of Intangible Assets by Class (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9955538 - Disclosure - Intangible Assets, Net and Goodwill - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/IntangibleAssetsNetandGoodwillNarrativeDetails</Role>
      <ShortName>Intangible Assets, Net and Goodwill - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9955539 - Disclosure - Intangible Assets, Net and Goodwill - Schedule of Future Amortization (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/IntangibleAssetsNetandGoodwillScheduleofFutureAmortizationDetails</Role>
      <ShortName>Intangible Assets, Net and Goodwill - Schedule of Future Amortization (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9955540 - Disclosure - Debt - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/DebtNarrativeDetails</Role>
      <ShortName>Debt - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9955541 - Disclosure - Debt - Schedule of Components of Convertible Senior Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://guardanthealth.com/role/DebtScheduleofComponentsofConvertibleSeniorNotesDetails</Role>
      <ShortName>Debt - Schedule of Components of Convertible Senior Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9955542 - Disclosure - Debt - Schedule of Interest Expense Recognition (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/DebtScheduleofInterestExpenseRecognitionDetails</Role>
      <ShortName>Debt - Schedule of Interest Expense Recognition (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9955543 - Disclosure - Leases - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/LeasesNarrativeDetails</Role>
      <ShortName>Leases - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9955544 - Disclosure - Leases - Schedule of Lease Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/LeasesScheduleofLeaseInformationDetails</Role>
      <ShortName>Leases - Schedule of Lease Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9955545 - Disclosure - Leases - Schedule of Operating Liability Maturities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/LeasesScheduleofOperatingLiabilityMaturitiesDetails</Role>
      <ShortName>Leases - Schedule of Operating Liability Maturities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9955546 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/CommitmentsandContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://guardanthealth.com/role/CommitmentsandContingencies</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9955547 - Disclosure - Common Stock - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/CommonStockNarrativeDetails</Role>
      <ShortName>Common Stock - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9955548 - Disclosure - Common Stock - Schedule of Common Stock Reserved for Future Issuance (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/CommonStockScheduleofCommonStockReservedforFutureIssuanceDetails</Role>
      <ShortName>Common Stock - Schedule of Common Stock Reserved for Future Issuance (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9955549 - Disclosure - Stock-Based Compensation - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/StockBasedCompensationNarrativeDetails</Role>
      <ShortName>Stock-Based Compensation - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9955550 - Disclosure - Stock-Based Compensation - Schedule of Stock Option Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/StockBasedCompensationScheduleofStockOptionActivityDetails</Role>
      <ShortName>Stock-Based Compensation - Schedule of Stock Option Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9955551 - Disclosure - Stock-Based Compensation - Schedule of Restricted Stock Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/StockBasedCompensationScheduleofRestrictedStockActivityDetails</Role>
      <ShortName>Stock-Based Compensation - Schedule of Restricted Stock Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9955552 - Disclosure - Stock-Based Compensation - Schedule of Stock Based Compensation Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/StockBasedCompensationScheduleofStockBasedCompensationExpenseDetails</Role>
      <ShortName>Stock-Based Compensation - Schedule of Stock Based Compensation Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9955553 - Disclosure - Stock-Based Compensation - Schedule of Valuation of Stock Options (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/StockBasedCompensationScheduleofValuationofStockOptionsDetails</Role>
      <ShortName>Stock-Based Compensation - Schedule of Valuation of Stock Options (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9955554 - Disclosure - Stock-Based Compensation - Schedule of Valuation of Employee Stock Purchase Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/StockBasedCompensationScheduleofValuationofEmployeeStockPurchasePlanDetails</Role>
      <ShortName>Stock-Based Compensation - Schedule of Valuation of Employee Stock Purchase Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>9955555 - Disclosure - Net Loss Per Share - Schedule of Net Loss Per Share Attributable to Common Stockholders (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/NetLossPerShareScheduleofNetLossPerShareAttributabletoCommonStockholdersDetails</Role>
      <ShortName>Net Loss Per Share - Schedule of Net Loss Per Share Attributable to Common Stockholders (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>9955556 - Disclosure - Net Loss Per Share - Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/NetLossPerShareScheduleofAntidilutiveSecuritiesExcludedfromComputationofEarningsPerShareDetails</Role>
      <ShortName>Net Loss Per Share - Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>9955557 - Disclosure - Income Taxes - Schedule of (Loss) Income Before Components of the Provision for Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/IncomeTaxesScheduleofLossIncomeBeforeComponentsoftheProvisionforIncomeTaxesDetails</Role>
      <ShortName>Income Taxes - Schedule of (Loss) Income Before Components of the Provision for Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>9955558 - Disclosure - Income Taxes - Schedule of Components of the Provision for Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/IncomeTaxesScheduleofComponentsoftheProvisionforIncomeTaxesDetails</Role>
      <ShortName>Income Taxes - Schedule of Components of the Provision for Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>9955559 - Disclosure - Income Taxes - Schedule of the Components of Deferred Tax Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/IncomeTaxesScheduleoftheComponentsofDeferredTaxAssetsandLiabilitiesDetails</Role>
      <ShortName>Income Taxes - Schedule of the Components of Deferred Tax Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>9955560 - Disclosure - Income Taxes - Schedule of Income Tax Expense Computed at the Statutory Federal Rate (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/IncomeTaxesScheduleofIncomeTaxExpenseComputedattheStatutoryFederalRateDetails</Role>
      <ShortName>Income Taxes - Schedule of Income Tax Expense Computed at the Statutory Federal Rate (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>9955561 - Disclosure - Income Taxes - Schedule of Effective Tax Rate Reconciliation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/IncomeTaxesScheduleofEffectiveTaxRateReconciliationDetails</Role>
      <ShortName>Income Taxes - Schedule of Effective Tax Rate Reconciliation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>9955562 - Disclosure - Income Taxes - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/IncomeTaxesNarrativeDetails</Role>
      <ShortName>Income Taxes - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>9955563 - Disclosure - Income Taxes - Schedule of Income Taxes Paid (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/IncomeTaxesScheduleofIncomeTaxesPaidDetails</Role>
      <ShortName>Income Taxes - Schedule of Income Taxes Paid (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>9955564 - Disclosure - Income Taxes - Schedule of reconciliation of the balance of total gross unrecognized tax benefits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/IncomeTaxesScheduleofreconciliationofthebalanceoftotalgrossunrecognizedtaxbenefitsDetails</Role>
      <ShortName>Income Taxes - Schedule of reconciliation of the balance of total gross unrecognized tax benefits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>9955565 - Disclosure - Employee Benefit Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/EmployeeBenefitPlanDetails</Role>
      <ShortName>Employee Benefit Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://guardanthealth.com/role/EmployeeBenefitPlan</ParentRole>
      <Position>82</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>9955566 - Disclosure - Segment and Geographic Information - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/SegmentandGeographicInformationNarrativeDetails</Role>
      <ShortName>Segment and Geographic Information - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>9955567 - Disclosure - Segment and Geographic Information - Schedule of Company's Segment Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/SegmentandGeographicInformationScheduleofCompanysSegmentInformationDetails</Role>
      <ShortName>Segment and Geographic Information - Schedule of Company's Segment Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="gh-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>9955568 - Disclosure - Segment and Geographic Information - Schedule of Revenue By Geographic Areas (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://guardanthealth.com/role/SegmentandGeographicInformationScheduleofRevenueByGeographicAreasDetails</Role>
      <ShortName>Segment and Geographic Information - Schedule of Revenue By Geographic Areas (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</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" isDefinitelyFs="true" isUsgaap="true" original="gh-20251231.htm">gh-20251231.htm</File>
    <File>gh-20251231.xsd</File>
    <File>gh-20251231_cal.xml</File>
    <File>gh-20251231_def.xml</File>
    <File>gh-20251231_lab.xml</File>
    <File>gh-20251231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>gh-20251231_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1243">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="15">http://xbrl.sec.gov/cyd/2025</BaseTaxonomy>
    <BaseTaxonomy items="38">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="22">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
