<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.24.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>333</ContextCount>
  <ElementCount>504</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>96</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>9</UnitCount>
  <MyReports>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Document - Audit Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/AuditInformation</Role>
      <ShortName>Audit Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>0000003 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>0000004 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>0000005 - Statement - Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/ConsolidatedStatementsofOperations</Role>
      <ShortName>Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>0000006 - Statement - Consolidated Statements of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/ConsolidatedStatementsofComprehensiveIncome</Role>
      <ShortName>Consolidated Statements of Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>0000007 - Statement - Consolidated Statements of Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/ConsolidatedStatementsofStockholdersEquity</Role>
      <ShortName>Consolidated Statements of Stockholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>0000008 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/ConsolidatedStatementsofCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>0000009 - Disclosure - Organization and Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/OrganizationandSignificantAccountingPolicies</Role>
      <ShortName>Organization and Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>0000010 - Disclosure - Development and Other Agreements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/DevelopmentandOtherAgreements</Role>
      <ShortName>Development and Other Agreements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>0000011 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/FairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>0000012 - Disclosure - Balance Sheet Details and Other Financial Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BalanceSheetDetailsandOtherFinancialInformation</Role>
      <ShortName>Balance Sheet Details and Other Financial Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>0000013 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/Debt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>0000014 - Disclosure - Leases and Other Commitments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/LeasesandOtherCommitments</Role>
      <ShortName>Leases and Other Commitments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>0000015 - Disclosure - Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/Contingencies</Role>
      <ShortName>Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>0000016 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>0000017 - Disclosure - Employee Benefit Plans and Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/EmployeeBenefitPlansandStockholdersEquity</Role>
      <ShortName>Employee Benefit Plans and Stockholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>0000018 - Disclosure - Business Segment and Geographic Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BusinessSegmentandGeographicInformation</Role>
      <ShortName>Business Segment and Geographic Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>0000019 - Disclosure - SCHEDULE II - VALUATION AND QUALIFYING ACCOUNTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/SCHEDULEIIVALUATIONANDQUALIFYINGACCOUNTS</Role>
      <ShortName>SCHEDULE II - VALUATION AND QUALIFYING ACCOUNTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.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>21</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9954471 - Disclosure - Organization and Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/OrganizationandSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Organization and Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.dexcom.com/role/OrganizationandSignificantAccountingPolicies</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9954472 - Disclosure - Organization and Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/OrganizationandSignificantAccountingPoliciesTables</Role>
      <ShortName>Organization and Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.dexcom.com/role/OrganizationandSignificantAccountingPolicies</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9954473 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/FairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.dexcom.com/role/FairValueMeasurements</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9954474 - Disclosure - Balance Sheet Details and Other Financial Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BalanceSheetDetailsandOtherFinancialInformationTables</Role>
      <ShortName>Balance Sheet Details and Other Financial Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.dexcom.com/role/BalanceSheetDetailsandOtherFinancialInformation</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9954475 - Disclosure - Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/DebtTables</Role>
      <ShortName>Debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.dexcom.com/role/Debt</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9954476 - Disclosure - Leases and Other Commitments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/LeasesandOtherCommitmentsTables</Role>
      <ShortName>Leases and Other Commitments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.dexcom.com/role/LeasesandOtherCommitments</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9954477 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.dexcom.com/role/IncomeTaxes</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9954478 - Disclosure - Employee Benefit Plans and Stockholders' Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/EmployeeBenefitPlansandStockholdersEquityTables</Role>
      <ShortName>Employee Benefit Plans and Stockholders' Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.dexcom.com/role/EmployeeBenefitPlansandStockholdersEquity</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9954479 - Disclosure - Business Segment and Geographic Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BusinessSegmentandGeographicInformationTables</Role>
      <ShortName>Business Segment and Geographic Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.dexcom.com/role/BusinessSegmentandGeographicInformation</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9954480 - Disclosure - Organization and Significant Accounting Policies - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/OrganizationandSignificantAccountingPoliciesNarrativeDetails</Role>
      <ShortName>Organization and Significant Accounting Policies - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.dexcom.com/role/OrganizationandSignificantAccountingPoliciesTables</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9954481 - Disclosure - Organization and Significant Accounting Policies - Schedule of Percentage of Total Revenues and Accounts Receivable by Customer (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/OrganizationandSignificantAccountingPoliciesScheduleofPercentageofTotalRevenuesandAccountsReceivablebyCustomerDetails</Role>
      <ShortName>Organization and Significant Accounting Policies - Schedule of Percentage of Total Revenues and Accounts Receivable by Customer (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9954482 - Disclosure - Organization and Significant Accounting Policies - Schedule of Basic and Diluted Net Income (Loss) Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/OrganizationandSignificantAccountingPoliciesScheduleofBasicandDilutedNetIncomeLossPerShareDetails</Role>
      <ShortName>Organization and Significant Accounting Policies - Schedule of Basic and Diluted Net Income (Loss) Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9954483 - Disclosure - Organization and Significant Accounting Policies - Schedule of Outstanding Anti-Dilutive Securities Excluded in Diluted Net Income (Loss) per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/OrganizationandSignificantAccountingPoliciesScheduleofOutstandingAntiDilutiveSecuritiesExcludedinDilutedNetIncomeLossperShareDetails</Role>
      <ShortName>Organization and Significant Accounting Policies - Schedule of Outstanding Anti-Dilutive Securities Excluded in Diluted Net Income (Loss) per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9954484 - Disclosure - Development and Other Agreements - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/DevelopmentandOtherAgreementsNarrativeDetails</Role>
      <ShortName>Development and Other Agreements - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9954485 - Disclosure - Fair Value Measurements - Schedule of Fair Value Hierarchy for Financial Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/FairValueMeasurementsScheduleofFairValueHierarchyforFinancialAssetsDetails</Role>
      <ShortName>Fair Value Measurements - Schedule of Fair Value Hierarchy for Financial Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9954486 - Disclosure - Fair Value Measurements - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/FairValueMeasurementsNarrativeDetails</Role>
      <ShortName>Fair Value Measurements - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9954487 - Disclosure - Fair Value Measurements - Schedule of Fair Value of Senior Convertible Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.dexcom.com/role/FairValueMeasurementsScheduleofFairValueofSeniorConvertibleNotesDetails</Role>
      <ShortName>Fair Value Measurements - Schedule of Fair Value of Senior Convertible Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9954488 - Disclosure - Balance Sheet Details and Other Financial Information - Schedule of Short-Term Marketable Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BalanceSheetDetailsandOtherFinancialInformationScheduleofShortTermMarketableSecuritiesDetails</Role>
      <ShortName>Balance Sheet Details and Other Financial Information - Schedule of Short-Term Marketable Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9954489 - Disclosure - Balance Sheet Details and Other Financial Information - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BalanceSheetDetailsandOtherFinancialInformationNarrativeDetails</Role>
      <ShortName>Balance Sheet Details and Other Financial Information - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.dexcom.com/role/BalanceSheetDetailsandOtherFinancialInformationTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9954490 - Disclosure - Balance Sheet Details and Other Financial Information - Schedule of Accounts Receivable (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BalanceSheetDetailsandOtherFinancialInformationScheduleofAccountsReceivableDetails</Role>
      <ShortName>Balance Sheet Details and Other Financial Information - Schedule of Accounts Receivable (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9954491 - Disclosure - Balance Sheet Details and Other Financial Information - Schedule of Inventory (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BalanceSheetDetailsandOtherFinancialInformationScheduleofInventoryDetails</Role>
      <ShortName>Balance Sheet Details and Other Financial Information - Schedule of Inventory (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9954492 - Disclosure - Balance Sheet Details and Other Financial Information - Schedule of Prepaid and Other Current Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BalanceSheetDetailsandOtherFinancialInformationScheduleofPrepaidandOtherCurrentAssetsDetails</Role>
      <ShortName>Balance Sheet Details and Other Financial Information - Schedule of Prepaid and Other Current Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9954493 - Disclosure - Balance Sheet Details and Other Financial Information - Schedule of Property and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BalanceSheetDetailsandOtherFinancialInformationScheduleofPropertyandEquipmentDetails</Role>
      <ShortName>Balance Sheet Details and Other Financial Information - Schedule of Property and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9954494 - Disclosure - Balance Sheet Details and Other Financial Information - Schedule of Intangible Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BalanceSheetDetailsandOtherFinancialInformationScheduleofIntangibleNetDetails</Role>
      <ShortName>Balance Sheet Details and Other Financial Information - Schedule of Intangible Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9954495 - Disclosure - Balance Sheet Details and Other Financial Information - Schedule of Amortization Expenses of Intangible Assets, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BalanceSheetDetailsandOtherFinancialInformationScheduleofAmortizationExpensesofIntangibleAssetsNetDetails</Role>
      <ShortName>Balance Sheet Details and Other Financial Information - Schedule of Amortization Expenses of Intangible Assets, Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9954496 - Disclosure - Balance Sheet Details and Other Financial Information - Schedule of Finite-Lived Intangible Assets, Future Amortization Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BalanceSheetDetailsandOtherFinancialInformationScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseDetails</Role>
      <ShortName>Balance Sheet Details and Other Financial Information - Schedule of Finite-Lived Intangible Assets, Future Amortization Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9954497 - Disclosure - Balance Sheet Details and Other Financial Information - Schedule of Other Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BalanceSheetDetailsandOtherFinancialInformationScheduleofOtherAssetsDetails</Role>
      <ShortName>Balance Sheet Details and Other Financial Information - Schedule of Other Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9954498 - Disclosure - Balance Sheet Details and Other Financial Information - Schedule of Accounts Payable and Accrued Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BalanceSheetDetailsandOtherFinancialInformationScheduleofAccountsPayableandAccruedLiabilitiesDetails</Role>
      <ShortName>Balance Sheet Details and Other Financial Information - Schedule of Accounts Payable and Accrued Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9954499 - Disclosure - Balance Sheet Details and Other Financial Information - Schedule of Accrued Payroll and Related Expenses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BalanceSheetDetailsandOtherFinancialInformationScheduleofAccruedPayrollandRelatedExpensesDetails</Role>
      <ShortName>Balance Sheet Details and Other Financial Information - Schedule of Accrued Payroll and Related Expenses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9954500 - Disclosure - Balance Sheet Details and Other Financial Information - Schedule of Accrued Warranty (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BalanceSheetDetailsandOtherFinancialInformationScheduleofAccruedWarrantyDetails</Role>
      <ShortName>Balance Sheet Details and Other Financial Information - Schedule of Accrued Warranty (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9954501 - Disclosure - Balance Sheet Details and Other Financial Information - Schedule of Other Long-Term Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BalanceSheetDetailsandOtherFinancialInformationScheduleofOtherLongTermLiabilitiesDetails</Role>
      <ShortName>Balance Sheet Details and Other Financial Information - Schedule of Other Long-Term Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9954502 - Disclosure - Balance Sheet Details and Other Financial Information - Schedule of Other Income (Expense), Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BalanceSheetDetailsandOtherFinancialInformationScheduleofOtherIncomeExpenseNetDetails</Role>
      <ShortName>Balance Sheet Details and Other Financial Information - Schedule of Other Income (Expense), Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9954503 - Disclosure - Debt - Schedule of Carrying Values and Estimated Fair Values of Debt Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/DebtScheduleofCarryingValuesandEstimatedFairValuesofDebtInstrumentsDetails</Role>
      <ShortName>Debt - Schedule of Carrying Values and Estimated Fair Values of Debt Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9954504 - Disclosure - Debt - Schedule of Converted Value of Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.dexcom.com/role/DebtScheduleofConvertedValueofNotesDetails</Role>
      <ShortName>Debt - Schedule of Converted Value of Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9954505 - Disclosure - Debt - Schedule of Components of Interest Expense and Effective Interest Rates of Senior Convertible Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.dexcom.com/role/DebtScheduleofComponentsofInterestExpenseandEffectiveInterestRatesofSeniorConvertibleNotesDetails</Role>
      <ShortName>Debt - Schedule of Components of Interest Expense and Effective Interest Rates of Senior Convertible Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9954506 - Disclosure - Debt - Schedule of Key Details of Convertible Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.dexcom.com/role/DebtScheduleofKeyDetailsofConvertibleNotesDetails</Role>
      <ShortName>Debt - Schedule of Key Details of Convertible Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9954507 - Disclosure - Debt - 2023 Note Hedge (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/Debt2023NoteHedgeDetails</Role>
      <ShortName>Debt - 2023 Note Hedge (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9954508 - Disclosure - Debt - 2023 Warrants (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/Debt2023WarrantsDetails</Role>
      <ShortName>Debt - 2023 Warrants (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9954509 - Disclosure - Debt - 2028 Capped Call Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/Debt2028CappedCallTransactionsDetails</Role>
      <ShortName>Debt - 2028 Capped Call Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9954510 - Disclosure - Debt - Conversion Activity for Senior Convertible Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.dexcom.com/role/DebtConversionActivityforSeniorConvertibleNotesDetails</Role>
      <ShortName>Debt - Conversion Activity for Senior Convertible Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9954511 - Disclosure - Debt - Conversion Rights for Seniors Convertible Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.dexcom.com/role/DebtConversionRightsforSeniorsConvertibleNotesDetails</Role>
      <ShortName>Debt - Conversion Rights for Seniors Convertible Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9954512 - Disclosure - Debt - Availability and Outstanding Borrowings under Credit Agreement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/DebtAvailabilityandOutstandingBorrowingsunderCreditAgreementDetails</Role>
      <ShortName>Debt - Availability and Outstanding Borrowings under Credit Agreement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9954513 - Disclosure - Debt - Revolving Credit Agreement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/DebtRevolvingCreditAgreementDetails</Role>
      <ShortName>Debt - Revolving Credit Agreement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9954514 - Disclosure - Leases and Other Commitments - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/LeasesandOtherCommitmentsNarrativeDetails</Role>
      <ShortName>Leases and Other Commitments - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9954515 - Disclosure - Leases and Other Commitments - Schedule of Maturity of Lease and Finance Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/LeasesandOtherCommitmentsScheduleofMaturityofLeaseandFinanceLiabilitiesDetails</Role>
      <ShortName>Leases and Other Commitments - Schedule of Maturity of Lease and Finance Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9954516 - Disclosure - Leases and Other Commitments - Schedule of Components of Lease Expense and Other Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/LeasesandOtherCommitmentsScheduleofComponentsofLeaseExpenseandOtherInformationDetails</Role>
      <ShortName>Leases and Other Commitments - Schedule of Components of Lease Expense and Other Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9954517 - Disclosure - Leases and Other Commitments - Other Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/LeasesandOtherCommitmentsOtherInformationDetails</Role>
      <ShortName>Leases and Other Commitments - Other Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9954518 - Disclosure - Income Taxes - Schedule of Income (Loss) before Income Taxes Subject to Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/IncomeTaxesScheduleofIncomeLossbeforeIncomeTaxesSubjecttoTaxesDetails</Role>
      <ShortName>Income Taxes - Schedule of Income (Loss) before Income Taxes Subject to Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9954519 - Disclosure - Income Taxes - Schedule of Components of Income Tax Expense (Benefit) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/IncomeTaxesScheduleofComponentsofIncomeTaxExpenseBenefitDetails</Role>
      <ShortName>Income Taxes - Schedule of Components of Income Tax Expense (Benefit) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9954520 - Disclosure - Income Taxes - Schedule of Tax Credits and Operating Loss Carryforwards (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/IncomeTaxesScheduleofTaxCreditsandOperatingLossCarryforwardsDetails</Role>
      <ShortName>Income Taxes - Schedule of Tax Credits and Operating Loss Carryforwards (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>9954521 - Disclosure - Income Taxes - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/IncomeTaxesNarrativeDetails</Role>
      <ShortName>Income Taxes - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>9954522 - Disclosure - Income Taxes - Schedule of Deferred Tax Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails</Role>
      <ShortName>Income Taxes - Schedule of Deferred Tax Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>9954523 - Disclosure - Income Taxes - Schedule of Reconciliation between Effective Tax Rate and Statutory Rate (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/IncomeTaxesScheduleofReconciliationbetweenEffectiveTaxRateandStatutoryRateDetails</Role>
      <ShortName>Income Taxes - Schedule of Reconciliation between Effective Tax Rate and Statutory Rate (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>9954524 - Disclosure - Income Taxes - Schedule of Unrecognized Tax Benefits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/IncomeTaxesScheduleofUnrecognizedTaxBenefitsDetails</Role>
      <ShortName>Income Taxes - Schedule of Unrecognized Tax Benefits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>9954525 - Disclosure - Employee Benefit Plans and Stockholders' Equity - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/EmployeeBenefitPlansandStockholdersEquityNarrativeDetails</Role>
      <ShortName>Employee Benefit Plans and Stockholders' Equity - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>9954526 - Disclosure - Employee Benefit Plans and Stockholders' Equity - Schedule of Treasure Share Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/EmployeeBenefitPlansandStockholdersEquityScheduleofTreasureShareActivityDetails</Role>
      <ShortName>Employee Benefit Plans and Stockholders' Equity - Schedule of Treasure Share Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>9954527 - Disclosure - Employee Benefit Plans and Stockholders' Equity - Schedule of RSU and PSU Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/EmployeeBenefitPlansandStockholdersEquityScheduleofRSUandPSUActivityDetails</Role>
      <ShortName>Employee Benefit Plans and Stockholders' Equity - Schedule of RSU and PSU Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>9954528 - Disclosure - Employee Benefit Plans and Stockholders' Equity - Schedule of Share-Based Compensation Expenses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/EmployeeBenefitPlansandStockholdersEquityScheduleofShareBasedCompensationExpensesDetails</Role>
      <ShortName>Employee Benefit Plans and Stockholders' Equity - Schedule of Share-Based Compensation Expenses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>9954529 - Disclosure - Employee Benefit Plans and Stockholders' Equity - Schedule of Valuation Assumptions for Employee Stock Purchase Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/EmployeeBenefitPlansandStockholdersEquityScheduleofValuationAssumptionsforEmployeeStockPurchasePlanDetails</Role>
      <ShortName>Employee Benefit Plans and Stockholders' Equity - Schedule of Valuation Assumptions for Employee Stock Purchase Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>9954530 - Disclosure - Business Segment and Geographic Information - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BusinessSegmentandGeographicInformationNarrativeDetails</Role>
      <ShortName>Business Segment and Geographic Information - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>9954531 - Disclosure - Business Segment and Geographic Information - Summary (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BusinessSegmentandGeographicInformationSummaryDetails</Role>
      <ShortName>Business Segment and Geographic Information - Summary (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.dexcom.com/role/BusinessSegmentandGeographicInformationTables</ParentRole>
      <Position>82</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>9954532 - Disclosure - Business Segment and Geographic Information - Geographic Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/BusinessSegmentandGeographicInformationGeographicInformationDetails</Role>
      <ShortName>Business Segment and Geographic Information - Geographic Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="dxcm-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>9954533 - Disclosure - SCHEDULE II - VALUATION AND QUALIFYING ACCOUNTS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.dexcom.com/role/SCHEDULEIIVALUATIONANDQUALIFYINGACCOUNTSDetails</Role>
      <ShortName>SCHEDULE II - VALUATION AND QUALIFYING ACCOUNTS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.dexcom.com/role/SCHEDULEIIVALUATIONANDQUALIFYINGACCOUNTS</ParentRole>
      <Position>84</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="dxcm-20231231.htm">dxcm-20231231.htm</File>
    <File>dxcm-20231231.xsd</File>
    <File>dxcm-20231231_cal.xml</File>
    <File>dxcm-20231231_def.xml</File>
    <File>dxcm-20231231_lab.xml</File>
    <File>dxcm-20231231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>dxcm-20231231_g1.jpg</File>
    <File>dxcm-20231231_g2.jpg</File>
    <File>dxcm-20231231_g3.jpg</File>
    <File>dxcm-20231231_g4.jpg</File>
    <File>dxcm-20231231_g5.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1">http://fasb.org/srt/2023</BaseTaxonomy>
    <BaseTaxonomy items="1215">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="38">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
    <BaseTaxonomy items="56">http://xbrl.sec.gov/ecd/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
