<?xml version='1.0' encoding='UTF-8'?>
<FilingSummary>
  <Version>3.8.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>389</ContextCount>
  <ElementCount>458</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>90</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>8</UnitCount>
  <MyReports>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001000 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1001001 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1004000 - Statement - Consolidated Statements Of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/ConsolidatedStatementsOfOperations</Role>
      <ShortName>Consolidated Statements Of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1005000 - Statement - Consolidated Statements of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/ConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>Consolidated Statements of Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1007000 - Statement - Consolidated Statement Of Shareholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/ConsolidatedStatementOfShareholdersEquity</Role>
      <ShortName>Consolidated Statement Of Shareholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1008000 - Statement - Consolidated Statements Of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/ConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements Of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>2101100 - Disclosure - Description of Business and Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/DescriptionOfBusinessAndSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2103100 - Disclosure - Recent Accounting Pronouncements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/RecentAccountingPronouncements</Role>
      <ShortName>Recent Accounting Pronouncements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2104100 - Disclosure - Acquisition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/Acquisition</Role>
      <ShortName>Acquisition</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2105100 - Disclosure - Miscellaneous Receivables</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/MiscellaneousReceivables</Role>
      <ShortName>Miscellaneous Receivables</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2106100 - Disclosure - Property and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/PropertyAndEquipment</Role>
      <ShortName>Property and Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2107100 - Disclosure - Goodwill and Other Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/GoodwillAndOtherIntangibleAssets</Role>
      <ShortName>Goodwill and Other Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2108100 - Disclosure - Inventory Financing Agreements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/InventoryFinancingAgreements</Role>
      <ShortName>Inventory Financing Agreements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2111100 - Disclosure - Lease Commitments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/LeaseCommitments</Role>
      <ShortName>Lease Commitments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2114100 - Disclosure - Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/FinancialInstruments</Role>
      <ShortName>Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2116100 - Disclosure - Long-Term Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/LongTermDebt</Role>
      <ShortName>Long-Term Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2117100 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2118100 - Disclosure - Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/StockholdersEquity</Role>
      <ShortName>Stockholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2119100 - Disclosure - Equity-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/EquityBasedCompensation</Role>
      <ShortName>Equity-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2122100 - Disclosure - Earnings Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/EarningsPerShare</Role>
      <ShortName>Earnings Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2123100 - Disclosure - Coworker Retirement and Other Compensation Benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/CoworkerRetirementAndOtherCompensationBenefits</Role>
      <ShortName>Coworker Retirement and Other Compensation Benefits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2125100 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/CommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2126100 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/RelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2127100 - Disclosure - Segment Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/SegmentInformation</Role>
      <ShortName>Segment Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2129100 - Disclosure - Supplemental Guarantor Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/SupplementalGuarantorInformation</Role>
      <ShortName>Supplemental Guarantor Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2130100 - Disclosure - Selected Quarterly Financial Results (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/SelectedQuarterlyFinancialResultsUnaudited</Role>
      <ShortName>Selected Quarterly Financial Results (unaudited)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2131100 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2132100 - Schedule - Schedule II - Valuation And Qualifying Accounts</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/ScheduleIiValuationAndQualifyingAccounts</Role>
      <ShortName>Schedule II - Valuation And Qualifying Accounts</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2201201 - Disclosure - Description of Business and Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/DescriptionOfBusinessAndSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2301302 - Disclosure - Description of Business and Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/DescriptionOfBusinessAndSummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2303301 - Disclosure - Recent Accounting Pronouncements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/RecentAccountingPronouncementsTables</Role>
      <ShortName>Recent Accounting Pronouncements (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2304301 - Disclosure - Acquisition (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/AcquisitionTables</Role>
      <ShortName>Acquisition (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2305301 - Disclosure - Miscellaneous Receivables (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/MiscellaneousReceivablesTables</Role>
      <ShortName>Miscellaneous Receivables (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2306301 - Disclosure - Property and Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/PropertyAndEquipmentTables</Role>
      <ShortName>Property and Equipment (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2307301 - Disclosure - Goodwill and Other Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/GoodwillAndOtherIntangibleAssetsTables</Role>
      <ShortName>Goodwill and Other Intangible Assets (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2308301 - Disclosure - Inventory Financing Agreements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/InventoryFinancingAgreementsTables</Role>
      <ShortName>Inventory Financing Agreements (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2311301 - Disclosure - Lease Commitments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/LeaseCommitmentsTables</Role>
      <ShortName>Lease Commitments (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2316301 - Disclosure - Long-Term Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/LongTermDebtTables</Role>
      <ShortName>Long-Term Debt (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2317301 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2319301 - Disclosure - Equity-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/EquityBasedCompensationTables</Role>
      <ShortName>Equity-Based Compensation (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2322301 - Disclosure - Earnings Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/EarningsPerShareTables</Role>
      <ShortName>Earnings Per Share (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2327301 - Disclosure - Segment Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/SegmentInformationTables</Role>
      <ShortName>Segment Information (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2329301 - Disclosure - Supplemental Guarantor Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/SupplementalGuarantorInformationTables</Role>
      <ShortName>Supplemental Guarantor Information (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2330301 - Disclosure - Selected Quarterly Financial Results (unaudited) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/SelectedQuarterlyFinancialResultsUnauditedTables</Role>
      <ShortName>Selected Quarterly Financial Results (unaudited) (Tables)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2401403 - Disclosure - Description of Business and Summary of Significant Accounting Policies - Description of Business (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/DescriptionOfBusinessAndSummaryOfSignificantAccountingPoliciesDescriptionOfBusinessDetails</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies - Description of Business (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2401404 - Disclosure - Description of Business and Summary of Significant Accounting Policies - Property Plant and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/DescriptionOfBusinessAndSummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentDetails</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies - Property Plant and Equipment (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2401405 - Disclosure - Description of Business and Summary of Significant Accounting Policies - Goodwill and Other Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/DescriptionOfBusinessAndSummaryOfSignificantAccountingPoliciesGoodwillAndOtherIntangibleAssetsDetails</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies - Goodwill and Other Intangible Assets (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2401406 - Disclosure - Description of Business and Summary of Significant Accounting Policies - Accumulated Other Comprehensive Loss (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/DescriptionOfBusinessAndSummaryOfSignificantAccountingPoliciesAccumulatedOtherComprehensiveLossDetails</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies - Accumulated Other Comprehensive Loss (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2403402 - Disclosure - Recent Accounting Pronouncements - Adoption of ASU, Expected Impact (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/RecentAccountingPronouncementsAdoptionOfAsuExpectedImpactDetails</Role>
      <ShortName>Recent Accounting Pronouncements - Adoption of ASU, Expected Impact (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2404402 - Disclosure - Acquisition - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/AcquisitionNarrativeDetails</Role>
      <ShortName>Acquisition - Narrative (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2404403 - Disclosure - Acquisition - Fair Value of Consideration Transferred (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/AcquisitionFairValueOfConsiderationTransferredDetails</Role>
      <ShortName>Acquisition - Fair Value of Consideration Transferred (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2404404 - Disclosure - Acquisition - Pro Forma Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/AcquisitionProFormaInformationDetails</Role>
      <ShortName>Acquisition - Pro Forma Information (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2405402 - Disclosure - Miscellaneous Receivables (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/MiscellaneousReceivablesDetails</Role>
      <ShortName>Miscellaneous Receivables (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>2406402 - Disclosure - Property and Equipment - Schedule of Property and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/PropertyAndEquipmentScheduleOfPropertyAndEquipmentDetails</Role>
      <ShortName>Property and Equipment - Schedule of Property and Equipment (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>2406403 - Disclosure - Property and Equipment - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/PropertyAndEquipmentNarrativeDetails</Role>
      <ShortName>Property and Equipment - Narrative (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>2407402 - Disclosure - Goodwill and Other Intangible Assets - Schedule of Goodwill by Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/GoodwillAndOtherIntangibleAssetsScheduleOfGoodwillBySegmentDetails</Role>
      <ShortName>Goodwill and Other Intangible Assets - Schedule of Goodwill by Segment (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>2407403 - Disclosure - Goodwill and Other Intangible Assets - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/GoodwillAndOtherIntangibleAssetsNarrativeDetails</Role>
      <ShortName>Goodwill and Other Intangible Assets - Narrative (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>2407404 - Disclosure - Goodwill and Other Intangible Assets - Intangible Assets by Asset Type (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/GoodwillAndOtherIntangibleAssetsIntangibleAssetsByAssetTypeDetails</Role>
      <ShortName>Goodwill and Other Intangible Assets - Intangible Assets by Asset Type (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>2407405 - Disclosure - Goodwill and Other Intangible Assets - Amortization of Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/GoodwillAndOtherIntangibleAssetsAmortizationOfIntangibleAssetsDetails</Role>
      <ShortName>Goodwill and Other Intangible Assets - Amortization of Intangible Assets (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>2408402 - Disclosure - Inventory Financing Agreements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/InventoryFinancingAgreementsDetails</Role>
      <ShortName>Inventory Financing Agreements (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>2411402 - Disclosure - Lease Commitments - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/LeaseCommitmentsNarrativeDetails</Role>
      <ShortName>Lease Commitments - Narrative (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>2411403 - Disclosure - Lease Commitments - Operating Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/LeaseCommitmentsOperatingLeasesDetails</Role>
      <ShortName>Lease Commitments - Operating Leases (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>2414401 - Disclosure - Financial Instruments - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/FinancialInstrumentsNarrativeDetails</Role>
      <ShortName>Financial Instruments - Narrative (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>2416402 - Disclosure - Long-Term Debt - Debt Balances and Interest Rates (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/LongTermDebtDebtBalancesAndInterestRatesDetails</Role>
      <ShortName>Long-Term Debt - Debt Balances and Interest Rates (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>2416403 - Disclosure - Long-Term Debt - Revolving Loan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/LongTermDebtRevolvingLoanDetails</Role>
      <ShortName>Long-Term Debt - Revolving Loan (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>2416404 - Disclosure - Long-Term Debt - Term Loan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/LongTermDebtTermLoanDetails</Role>
      <ShortName>Long-Term Debt - Term Loan (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>2416405 - Disclosure - Long-Term Debt - Senior Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.cdw.com/role/LongTermDebtSeniorNotesDetails</Role>
      <ShortName>Long-Term Debt - Senior Notes (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>2416406 - Disclosure - Long-Term Debt - Debt Guarantors, Covenants and Restrictions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/LongTermDebtDebtGuarantorsCovenantsAndRestrictionsDetails</Role>
      <ShortName>Long-Term Debt - Debt Guarantors, Covenants and Restrictions (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>2416407 - Disclosure - Long-Term Debt - Long-Term Debt Maturities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/LongTermDebtLongTermDebtMaturitiesDetails</Role>
      <ShortName>Long-Term Debt - Long-Term Debt Maturities (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>2416408 - Disclosure - Long-Term Debt - Fair Value of Long-Term Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/LongTermDebtFairValueOfLongTermDebtDetails</Role>
      <ShortName>Long-Term Debt - Fair Value of Long-Term Debt (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>2417402 - Disclosure - Income Taxes - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/IncomeTaxesNarrativeDetails</Role>
      <ShortName>Income Taxes - Narrative (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>2417403 - Disclosure - Income Taxes - Income Before Income Tax (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/IncomeTaxesIncomeBeforeIncomeTaxDetails</Role>
      <ShortName>Income Taxes - Income Before Income Tax (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>2417404 - Disclosure - Income Taxes - Income Tax Expense by Component (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/IncomeTaxesIncomeTaxExpenseByComponentDetails</Role>
      <ShortName>Income Taxes - Income Tax Expense by Component (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>2417405 - Disclosure - Income Taxes - Effective Tax Rate Reconciliation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/IncomeTaxesEffectiveTaxRateReconciliationDetails</Role>
      <ShortName>Income Taxes - Effective Tax Rate Reconciliation (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>2417406 - Disclosure - Income Taxes - Deferred Tax Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/IncomeTaxesDeferredTaxAssetsAndLiabilitiesDetails</Role>
      <ShortName>Income Taxes - Deferred Tax Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>2418401 - Disclosure - Stockholders' Equity - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/StockholdersEquityNarrativeDetails</Role>
      <ShortName>Stockholders' Equity - Narrative (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>2419402 - Disclosure - Equity-Based Compensation - Summary of Equity-based Compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/EquityBasedCompensationSummaryOfEquityBasedCompensationDetails</Role>
      <ShortName>Equity-Based Compensation - Summary of Equity-based Compensation (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>2419403 - Disclosure - Equity-Based Compensation - 2013 Long-Term Incentive Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/EquityBasedCompensation2013LongTermIncentivePlanDetails</Role>
      <ShortName>Equity-Based Compensation - 2013 Long-Term Incentive Plan (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>2419404 - Disclosure - Equity-Based Compensation - Valuation Assumptions Stock Options (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/EquityBasedCompensationValuationAssumptionsStockOptionsDetails</Role>
      <ShortName>Equity-Based Compensation - Valuation Assumptions Stock Options (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>2419405 - Disclosure - Equity-Based Compensation - Stock Option Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/EquityBasedCompensationStockOptionActivityDetails</Role>
      <ShortName>Equity-Based Compensation - Stock Option Activity (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>2419406 - Disclosure - Equity-Based Compensation - Restricted Stock Units ("RSUs") (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/EquityBasedCompensationRestrictedStockUnitsRsusDetails</Role>
      <ShortName>Equity-Based Compensation - Restricted Stock Units ("RSUs") (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>2419407 - Disclosure - Equity-Based Compensation - Performance Share Units ("PSUs") (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/EquityBasedCompensationPerformanceShareUnitsPsusDetails</Role>
      <ShortName>Equity-Based Compensation - Performance Share Units ("PSUs") (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>2419408 - Disclosure - Equity-Based Compensation - Performance Share Awards ("PSAs") (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/EquityBasedCompensationPerformanceShareAwardsPsasDetails</Role>
      <ShortName>Equity-Based Compensation - Performance Share Awards ("PSAs") (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>2419409 - Disclosure - Equity-Based Compensation - Restricted Stock ("RSAs") (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/EquityBasedCompensationRestrictedStockRsasDetails</Role>
      <ShortName>Equity-Based Compensation - Restricted Stock ("RSAs") (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>2419410 - Disclosure - Equity-Based Compensation - Equity Awards Granted by Seller of CDW UK (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/EquityBasedCompensationEquityAwardsGrantedBySellerOfCdwUkDetails</Role>
      <ShortName>Equity-Based Compensation - Equity Awards Granted by Seller of CDW UK (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>2422402 - Disclosure - Earnings Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/EarningsPerShareDetails</Role>
      <ShortName>Earnings Per Share (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>2423401 - Disclosure - Coworker Retirement and Other Compensation Benefits - Profit Sharing and 401(K) Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/CoworkerRetirementAndOtherCompensationBenefitsProfitSharingAnd401KPlanDetails</Role>
      <ShortName>Coworker Retirement and Other Compensation Benefits - Profit Sharing and 401(K) Plan (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>2423402 - Disclosure - Coworker Retirement and Other Compensation Benefits - Coworker Stock Purchase Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/CoworkerRetirementAndOtherCompensationBenefitsCoworkerStockPurchasePlanDetails</Role>
      <ShortName>Coworker Retirement and Other Compensation Benefits - Coworker Stock Purchase Plan (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>2423403 - Disclosure - Coworker Retirement and Other Compensation Benefits - Restricted Debt Unit Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/CoworkerRetirementAndOtherCompensationBenefitsRestrictedDebtUnitPlanDetails</Role>
      <ShortName>Coworker Retirement and Other Compensation Benefits - Restricted Debt Unit Plan (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>2426401 - Disclosure - Related Party Transactions - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/RelatedPartyTransactionsNarrativeDetails</Role>
      <ShortName>Related Party Transactions - Narrative (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>2427402 - Disclosure - Segment Information - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/SegmentInformationNarrativeDetails</Role>
      <ShortName>Segment Information - Narrative (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>2427403 - Disclosure - Segment Information - Segment Reporting (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/SegmentInformationSegmentReportingDetails</Role>
      <ShortName>Segment Information - Segment Reporting (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>2427404 - Disclosure - Segment Information - Segment Reporting, by Products and Services (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/SegmentInformationSegmentReportingByProductsAndServicesDetails</Role>
      <ShortName>Segment Information - Segment Reporting, by Products and Services (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>2429402 - Disclosure - Supplemental Guarantor Information - Condensed Consolidating Balance Sheets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/SupplementalGuarantorInformationCondensedConsolidatingBalanceSheetsDetails</Role>
      <ShortName>Supplemental Guarantor Information - Condensed Consolidating Balance Sheets (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>95</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>2429403 - Disclosure - Supplemental Guarantor Information - Consolidating Statements of Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/SupplementalGuarantorInformationConsolidatingStatementsOfOperationsDetails</Role>
      <ShortName>Supplemental Guarantor Information - Consolidating Statements of Operations (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>96</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>2429404 - Disclosure - Supplemental Guarantor Information - Condensed Consolidated Statements of Comprehensive Income (Loss) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/SupplementalGuarantorInformationCondensedConsolidatedStatementsOfComprehensiveIncomeLossDetails</Role>
      <ShortName>Supplemental Guarantor Information - Condensed Consolidated Statements of Comprehensive Income (Loss) (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>97</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>2429405 - Disclosure - Supplemental Guarantor Information - Condensed Consolidating Statements of Cash Flows (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/SupplementalGuarantorInformationCondensedConsolidatingStatementsOfCashFlowsDetails</Role>
      <ShortName>Supplemental Guarantor Information - Condensed Consolidating Statements of Cash Flows (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>98</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>2430402 - Disclosure - Selected Quarterly Financial Results (unaudited) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/SelectedQuarterlyFinancialResultsUnauditedDetails</Role>
      <ShortName>Selected Quarterly Financial Results (unaudited) (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>99</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>2431401 - Disclosure - Subsequent Events (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/SubsequentEventsDetails</Role>
      <ShortName>Subsequent Events (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>100</Position>
    </Report>
    <Report instance="cdw-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>2432401 - Schedule - Schedule II - Valuation And Qualifying Accounts (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cdw.com/role/ScheduleIiValuationAndQualifyingAccountsDetails</Role>
      <ShortName>Schedule II - Valuation And Qualifying Accounts (Details)</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>101</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>cdw-20171231.xml</File>
    <File>cdw-20171231.xsd</File>
    <File>cdw-20171231_cal.xml</File>
    <File>cdw-20171231_def.xml</File>
    <File>cdw-20171231_lab.xml</File>
    <File>cdw-20171231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://fasb.org/us-gaap/2017-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/country/2017-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/invest/2013-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2014-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
