<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:8bc2353f-51d1-49a0-814e-f7e2f15ed468,g:da3b4644-114f-482b-a21c-5d9cf63567f4-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://www.cdw.com/role/ConsolidatedStatementofStockholdersEquityUnaudited" xlink:type="simple" xlink:href="cdw-20210630.xsd#ConsolidatedStatementofStockholdersEquityUnaudited"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/ConsolidatedStatementofStockholdersEquityUnaudited" xlink:type="extended" id="ie9ae706242444e00bb1ed918ce27741d_ConsolidatedStatementofStockholdersEquityUnaudited">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_362a0ab3-b6f7-4a7f-a143-59826aa28084" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_03dc2ba2-94b6-488a-a333-cf841d5e2760" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_362a0ab3-b6f7-4a7f-a143-59826aa28084" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_03dc2ba2-94b6-488a-a333-cf841d5e2760" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesIssued_ceb68538-6f6a-439e-ab99-a4663de393c6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_03dc2ba2-94b6-488a-a333-cf841d5e2760" xlink:to="loc_us-gaap_SharesIssued_ceb68538-6f6a-439e-ab99-a4663de393c6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_994a2b7a-56d9-4d92-bcd2-3c99a3bd59ae" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_03dc2ba2-94b6-488a-a333-cf841d5e2760" xlink:to="loc_us-gaap_StockholdersEquity_994a2b7a-56d9-4d92-bcd2-3c99a3bd59ae" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_18f51c74-8d0f-407f-b2be-f4aba2ebe86c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_03dc2ba2-94b6-488a-a333-cf841d5e2760" xlink:to="loc_us-gaap_NetIncomeLoss_18f51c74-8d0f-407f-b2be-f4aba2ebe86c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_013280fc-9e85-4806-91b8-d20f846f4ffa" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_03dc2ba2-94b6-488a-a333-cf841d5e2760" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_013280fc-9e85-4806-91b8-d20f846f4ffa" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_689c0ad0-d76a-48a1-b87a-c54e3d1b1ba8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_03dc2ba2-94b6-488a-a333-cf841d5e2760" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_689c0ad0-d76a-48a1-b87a-c54e3d1b1ba8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_25cc89dd-afe2-4699-9af8-3ceafe155643" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_03dc2ba2-94b6-488a-a333-cf841d5e2760" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_25cc89dd-afe2-4699-9af8-3ceafe155643" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_32a3470c-7d7d-4189-8b6d-7f79a69e597c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_03dc2ba2-94b6-488a-a333-cf841d5e2760" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_32a3470c-7d7d-4189-8b6d-7f79a69e597c" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_397a43de-36b0-4730-85e1-3d5b9894f4bb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_03dc2ba2-94b6-488a-a333-cf841d5e2760" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_397a43de-36b0-4730-85e1-3d5b9894f4bb" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_a10da85a-f620-4eb0-b86a-a4825a678063" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_03dc2ba2-94b6-488a-a333-cf841d5e2760" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_a10da85a-f620-4eb0-b86a-a4825a678063" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_06bcedad-cad1-48ae-8ecc-b037ffdf7010" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_03dc2ba2-94b6-488a-a333-cf841d5e2760" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_06bcedad-cad1-48ae-8ecc-b037ffdf7010" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCommonStock_847cbf32-0984-41f2-9f63-18315ca7dfc9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DividendsCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_03dc2ba2-94b6-488a-a333-cf841d5e2760" xlink:to="loc_us-gaap_DividendsCommonStock_847cbf32-0984-41f2-9f63-18315ca7dfc9" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_9deff193-06d8-4d8f-b284-509dcee6b0fb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_03dc2ba2-94b6-488a-a333-cf841d5e2760" xlink:to="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_9deff193-06d8-4d8f-b284-509dcee6b0fb" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_bb6a20f0-5544-40f5-9089-c406abf34840" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_03dc2ba2-94b6-488a-a333-cf841d5e2760" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_bb6a20f0-5544-40f5-9089-c406abf34840" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_871955c6-5e64-4e69-ab4c-088b1e58cf34" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_03dc2ba2-94b6-488a-a333-cf841d5e2760" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_871955c6-5e64-4e69-ab4c-088b1e58cf34" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_913a4f5e-188d-405a-b3cb-6bb5c97240d9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_03dc2ba2-94b6-488a-a333-cf841d5e2760" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_913a4f5e-188d-405a-b3cb-6bb5c97240d9" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesIssued_4d80d097-3ab8-4d60-b888-17bea84384e1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharesIssued"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_b9a42dd7-9e32-4e4e-83b4-aa26ce72c4a8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountingStandardsUpdateExtensibleList_9a2dc55b-288c-4d6c-aa71-a03ed880ab4a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountingStandardsUpdateExtensibleList"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_362a0ab3-b6f7-4a7f-a143-59826aa28084" xlink:to="loc_us-gaap_AccountingStandardsUpdateExtensibleList_9a2dc55b-288c-4d6c-aa71-a03ed880ab4a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_111d63e8-6e91-4f87-b7cf-17042fa0bc5b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_362a0ab3-b6f7-4a7f-a143-59826aa28084" xlink:to="loc_us-gaap_StatementTable_111d63e8-6e91-4f87-b7cf-17042fa0bc5b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_e962f53b-fd79-4a9c-a75a-4f118408b9f4" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_111d63e8-6e91-4f87-b7cf-17042fa0bc5b" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_e962f53b-fd79-4a9c-a75a-4f118408b9f4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_e962f53b-fd79-4a9c-a75a-4f118408b9f4_default" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_e962f53b-fd79-4a9c-a75a-4f118408b9f4" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_e962f53b-fd79-4a9c-a75a-4f118408b9f4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_8dcf18d0-ec48-4675-88ef-5ce7e31a0c42" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_e962f53b-fd79-4a9c-a75a-4f118408b9f4" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_8dcf18d0-ec48-4675-88ef-5ce7e31a0c42" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_bbef1136-b9ca-402d-81ca-b732dc4dc470" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_8dcf18d0-ec48-4675-88ef-5ce7e31a0c42" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_bbef1136-b9ca-402d-81ca-b732dc4dc470" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_e2cf858c-d4f1-4f82-8365-9eb075acc9f7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_111d63e8-6e91-4f87-b7cf-17042fa0bc5b" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_e2cf858c-d4f1-4f82-8365-9eb075acc9f7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_e2cf858c-d4f1-4f82-8365-9eb075acc9f7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_e2cf858c-d4f1-4f82-8365-9eb075acc9f7" xlink:to="loc_us-gaap_EquityComponentDomain_e2cf858c-d4f1-4f82-8365-9eb075acc9f7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_438835c2-2b25-402c-ac3f-2c31669cca5f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_e2cf858c-d4f1-4f82-8365-9eb075acc9f7" xlink:to="loc_us-gaap_EquityComponentDomain_438835c2-2b25-402c-ac3f-2c31669cca5f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_55507389-085e-413f-b70b-2dce3a1a0ca0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_438835c2-2b25-402c-ac3f-2c31669cca5f" xlink:to="loc_us-gaap_CommonStockMember_55507389-085e-413f-b70b-2dce3a1a0ca0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_56666022-9257-4b28-9352-7bfd0c10ddd5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_438835c2-2b25-402c-ac3f-2c31669cca5f" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_56666022-9257-4b28-9352-7bfd0c10ddd5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_70ee5e64-b434-4f1e-849f-7697c88ba1e9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_438835c2-2b25-402c-ac3f-2c31669cca5f" xlink:to="loc_us-gaap_RetainedEarningsMember_70ee5e64-b434-4f1e-849f-7697c88ba1e9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_d82692d4-91b2-4921-96ad-b284d8707ce0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_438835c2-2b25-402c-ac3f-2c31669cca5f" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_d82692d4-91b2-4921-96ad-b284d8707ce0" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/RecentAccountingPronouncementsDetails" xlink:type="simple" xlink:href="cdw-20210630.xsd#RecentAccountingPronouncementsDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/RecentAccountingPronouncementsDetails" xlink:type="extended" id="i0ec28219aca34da8b76eb70cbea1ef54_RecentAccountingPronouncementsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_892f2f40-5aa6-4456-8211-62d31c34080e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_70f53c0c-f4c7-45f5-adf5-bbf23c3ba12c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_892f2f40-5aa6-4456-8211-62d31c34080e" xlink:to="loc_us-gaap_StockholdersEquity_70f53c0c-f4c7-45f5-adf5-bbf23c3ba12c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_77b624a9-4f09-43b1-9184-c6ebf70b9c1a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_892f2f40-5aa6-4456-8211-62d31c34080e" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_77b624a9-4f09-43b1-9184-c6ebf70b9c1a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_0fc5f86a-8b54-43d1-949c-5b2b44d28bba" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_77b624a9-4f09-43b1-9184-c6ebf70b9c1a" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_0fc5f86a-8b54-43d1-949c-5b2b44d28bba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_0fc5f86a-8b54-43d1-949c-5b2b44d28bba_default" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_0fc5f86a-8b54-43d1-949c-5b2b44d28bba" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_0fc5f86a-8b54-43d1-949c-5b2b44d28bba_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_9ed0fe68-a895-48bd-a51a-bd35724a8333" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_0fc5f86a-8b54-43d1-949c-5b2b44d28bba" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_9ed0fe68-a895-48bd-a51a-bd35724a8333" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_38538392-af31-43b1-9dc3-756ad3d261ca" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_9ed0fe68-a895-48bd-a51a-bd35724a8333" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_38538392-af31-43b1-9dc3-756ad3d261ca" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_ae11b199-0598-4340-b949-8dd024783973" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_77b624a9-4f09-43b1-9184-c6ebf70b9c1a" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_ae11b199-0598-4340-b949-8dd024783973" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_ae11b199-0598-4340-b949-8dd024783973_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_ae11b199-0598-4340-b949-8dd024783973" xlink:to="loc_us-gaap_EquityComponentDomain_ae11b199-0598-4340-b949-8dd024783973_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_899d4e1b-1c2e-4e88-a3f8-b7361fc3bc4f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_ae11b199-0598-4340-b949-8dd024783973" xlink:to="loc_us-gaap_EquityComponentDomain_899d4e1b-1c2e-4e88-a3f8-b7361fc3bc4f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_7386e28b-5c71-41b8-8103-a13e6190427c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_899d4e1b-1c2e-4e88-a3f8-b7361fc3bc4f" xlink:to="loc_us-gaap_RetainedEarningsMember_7386e28b-5c71-41b8-8103-a13e6190427c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/AcquisitionNarrativeDetails" xlink:type="simple" xlink:href="cdw-20210630.xsd#AcquisitionNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/AcquisitionNarrativeDetails" xlink:type="extended" id="ic973aef8ee0f4965966345f66bb930b5_AcquisitionNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_5f90bfca-d9c3-4df8-b221-fe5f8f83d92f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_8e8409df-956b-4549-9305-4317b0036127" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5f90bfca-d9c3-4df8-b221-fe5f8f83d92f" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_8e8409df-956b-4549-9305-4317b0036127" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1601f21e-cb48-4495-96ff-b43a34199979" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_5f90bfca-d9c3-4df8-b221-fe5f8f83d92f" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1601f21e-cb48-4495-96ff-b43a34199979" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_2ad4269d-139e-4400-8a3e-9ddea75f1027" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1601f21e-cb48-4495-96ff-b43a34199979" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_2ad4269d-139e-4400-8a3e-9ddea75f1027" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2ad4269d-139e-4400-8a3e-9ddea75f1027_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_2ad4269d-139e-4400-8a3e-9ddea75f1027" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_2ad4269d-139e-4400-8a3e-9ddea75f1027_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_30be058f-e0fb-414b-9914-ce0a1ec5bc2b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_2ad4269d-139e-4400-8a3e-9ddea75f1027" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_30be058f-e0fb-414b-9914-ce0a1ec5bc2b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_AmplifiedITLLCMember_9fb0dce8-b229-436f-9bd5-59309be3ea46" xlink:href="cdw-20210630.xsd#cdw_AmplifiedITLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_30be058f-e0fb-414b-9914-ce0a1ec5bc2b" xlink:to="loc_cdw_AmplifiedITLLCMember_9fb0dce8-b229-436f-9bd5-59309be3ea46" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/GoodwillScheduleofGoodwillbySegmentDetails" xlink:type="simple" xlink:href="cdw-20210630.xsd#GoodwillScheduleofGoodwillbySegmentDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/GoodwillScheduleofGoodwillbySegmentDetails" xlink:type="extended" id="idc919fc6b2b24709abf89dfc638e6fa4_GoodwillScheduleofGoodwillbySegmentDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillLineItems_2374d94d-22d6-4c17-96e8-8f355323880f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GoodwillLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillRollForward_21558e9c-1817-45b1-833e-a73154afe3a6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GoodwillRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_2374d94d-22d6-4c17-96e8-8f355323880f" xlink:to="loc_us-gaap_GoodwillRollForward_21558e9c-1817-45b1-833e-a73154afe3a6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_b06d0829-6a32-47e4-bfef-bc7d69344b99" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_21558e9c-1817-45b1-833e-a73154afe3a6" xlink:to="loc_us-gaap_Goodwill_b06d0829-6a32-47e4-bfef-bc7d69344b99" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_a5c4c688-13bb-46ef-81b5-e143de1e792c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GoodwillAcquiredDuringPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_21558e9c-1817-45b1-833e-a73154afe3a6" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_a5c4c688-13bb-46ef-81b5-e143de1e792c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_c4db5664-bac2-4295-956f-a3ef0b923a52" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GoodwillForeignCurrencyTranslationGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_21558e9c-1817-45b1-833e-a73154afe3a6" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_c4db5664-bac2-4295-956f-a3ef0b923a52" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_a82f8e5a-e332-41c9-a57d-1c24cb3ce1ac" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Goodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_685c20d8-4f7a-47ed-bfc6-62cfd01fe459" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GoodwillImpairedAccumulatedImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_2374d94d-22d6-4c17-96e8-8f355323880f" xlink:to="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_685c20d8-4f7a-47ed-bfc6-62cfd01fe459" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_c262ee3e-d76a-4d2c-b7ec-a70f5fab0517" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfGoodwillTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_2374d94d-22d6-4c17-96e8-8f355323880f" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_c262ee3e-d76a-4d2c-b7ec-a70f5fab0517" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_9283fecc-8434-4dc1-b6f3-1d0806068c35" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_c262ee3e-d76a-4d2c-b7ec-a70f5fab0517" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_9283fecc-8434-4dc1-b6f3-1d0806068c35" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9283fecc-8434-4dc1-b6f3-1d0806068c35_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_9283fecc-8434-4dc1-b6f3-1d0806068c35" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9283fecc-8434-4dc1-b6f3-1d0806068c35_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_8ee8915a-0349-49da-bc64-c11e2161a9d6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_9283fecc-8434-4dc1-b6f3-1d0806068c35" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_8ee8915a-0349-49da-bc64-c11e2161a9d6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_AmplifiedITLLCMember_4addcf88-e9a8-4549-b828-d6a85808789b" xlink:href="cdw-20210630.xsd#cdw_AmplifiedITLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_8ee8915a-0349-49da-bc64-c11e2161a9d6" xlink:to="loc_cdw_AmplifiedITLLCMember_4addcf88-e9a8-4549-b828-d6a85808789b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_OtherAcquisitionMember_3d782a88-e973-41ce-8be2-226cb84d7f51" xlink:href="cdw-20210630.xsd#cdw_OtherAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_8ee8915a-0349-49da-bc64-c11e2161a9d6" xlink:to="loc_cdw_OtherAcquisitionMember_3d782a88-e973-41ce-8be2-226cb84d7f51" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_2a8968d6-dcea-43ff-92b1-7abf1457dabd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_c262ee3e-d76a-4d2c-b7ec-a70f5fab0517" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_2a8968d6-dcea-43ff-92b1-7abf1457dabd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_2a8968d6-dcea-43ff-92b1-7abf1457dabd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_2a8968d6-dcea-43ff-92b1-7abf1457dabd" xlink:to="loc_us-gaap_SegmentDomain_2a8968d6-dcea-43ff-92b1-7abf1457dabd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_d95a5179-bbf3-40b4-8435-7e3d9925e688" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_2a8968d6-dcea-43ff-92b1-7abf1457dabd" xlink:to="loc_us-gaap_SegmentDomain_d95a5179-bbf3-40b4-8435-7e3d9925e688" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateMember_6934d00c-aedd-4ef7-85e2-b28a38193daa" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CorporateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_d95a5179-bbf3-40b4-8435-7e3d9925e688" xlink:to="loc_us-gaap_CorporateMember_6934d00c-aedd-4ef7-85e2-b28a38193daa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SmallBusinessMember_6598979a-5129-4d21-a70a-a37b025e94a4" xlink:href="cdw-20210630.xsd#cdw_SmallBusinessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_d95a5179-bbf3-40b4-8435-7e3d9925e688" xlink:to="loc_cdw_SmallBusinessMember_6598979a-5129-4d21-a70a-a37b025e94a4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_PublicMember_c0d3230f-2d1e-40c5-97ca-de58c7b18def" xlink:href="cdw-20210630.xsd#cdw_PublicMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_d95a5179-bbf3-40b4-8435-7e3d9925e688" xlink:to="loc_cdw_PublicMember_c0d3230f-2d1e-40c5-97ca-de58c7b18def" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllOtherSegmentsMember_0e2aa080-2780-4649-9619-b82136a41bf8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AllOtherSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_d95a5179-bbf3-40b4-8435-7e3d9925e688" xlink:to="loc_us-gaap_AllOtherSegmentsMember_0e2aa080-2780-4649-9619-b82136a41bf8" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/InventoryFinancingAgreementsDetails" xlink:type="simple" xlink:href="cdw-20210630.xsd#InventoryFinancingAgreementsDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/InventoryFinancingAgreementsDetails" xlink:type="extended" id="i1c9cf814c0ba4c6b99308806c9d50ccc_InventoryFinancingAgreementsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsLineItems_fa7b6167-95d9-45a2-9d0d-14a0568e6fb0" xlink:href="cdw-20210630.xsd#cdw_InventoryFinancingAgreementsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_RevolvingLoanFinancingAgreement_c24fe4f3-5235-4abb-82bc-14eb3a434c76" xlink:href="cdw-20210630.xsd#cdw_RevolvingLoanFinancingAgreement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_InventoryFinancingAgreementsLineItems_fa7b6167-95d9-45a2-9d0d-14a0568e6fb0" xlink:to="loc_cdw_RevolvingLoanFinancingAgreement_c24fe4f3-5235-4abb-82bc-14eb3a434c76" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_OtherInventoryFinancingAgreements_cc84d446-b99d-4a55-bd1c-ea58c06b4e9f" xlink:href="cdw-20210630.xsd#cdw_OtherInventoryFinancingAgreements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_InventoryFinancingAgreementsLineItems_fa7b6167-95d9-45a2-9d0d-14a0568e6fb0" xlink:to="loc_cdw_OtherInventoryFinancingAgreements_cc84d446-b99d-4a55-bd1c-ea58c06b4e9f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_AccountsPayableInventoryFinancing_d4edb83d-8e4f-49a2-b97c-202399ef2ee4" xlink:href="cdw-20210630.xsd#cdw_AccountsPayableInventoryFinancing"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_InventoryFinancingAgreementsLineItems_fa7b6167-95d9-45a2-9d0d-14a0568e6fb0" xlink:to="loc_cdw_AccountsPayableInventoryFinancing_d4edb83d-8e4f-49a2-b97c-202399ef2ee4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsTable_35b9898d-482b-445b-9fa7-11614eda2068" xlink:href="cdw-20210630.xsd#cdw_InventoryFinancingAgreementsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_cdw_InventoryFinancingAgreementsLineItems_fa7b6167-95d9-45a2-9d0d-14a0568e6fb0" xlink:to="loc_cdw_InventoryFinancingAgreementsTable_35b9898d-482b-445b-9fa7-11614eda2068" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsAxis_ea069bee-61f8-44bd-99be-c6c4f212e60e" xlink:href="cdw-20210630.xsd#cdw_InventoryFinancingAgreementsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_cdw_InventoryFinancingAgreementsTable_35b9898d-482b-445b-9fa7-11614eda2068" xlink:to="loc_cdw_InventoryFinancingAgreementsAxis_ea069bee-61f8-44bd-99be-c6c4f212e60e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsDomain_ea069bee-61f8-44bd-99be-c6c4f212e60e_default" xlink:href="cdw-20210630.xsd#cdw_InventoryFinancingAgreementsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_cdw_InventoryFinancingAgreementsAxis_ea069bee-61f8-44bd-99be-c6c4f212e60e" xlink:to="loc_cdw_InventoryFinancingAgreementsDomain_ea069bee-61f8-44bd-99be-c6c4f212e60e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsDomain_2e42fffe-f141-40f4-9bfb-f6f6dd64815f" xlink:href="cdw-20210630.xsd#cdw_InventoryFinancingAgreementsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_cdw_InventoryFinancingAgreementsAxis_ea069bee-61f8-44bd-99be-c6c4f212e60e" xlink:to="loc_cdw_InventoryFinancingAgreementsDomain_2e42fffe-f141-40f4-9bfb-f6f6dd64815f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_AccountsPayableInventoryFinancingMember_a08f7707-7054-4f0a-a7e6-850c47b351f1" xlink:href="cdw-20210630.xsd#cdw_AccountsPayableInventoryFinancingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_InventoryFinancingAgreementsDomain_2e42fffe-f141-40f4-9bfb-f6f6dd64815f" xlink:to="loc_cdw_AccountsPayableInventoryFinancingMember_a08f7707-7054-4f0a-a7e6-850c47b351f1" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/ContractLiabilitiesandPerformanceObligationsScheduleofRemainingPerformanceObligationsDetails" xlink:type="simple" xlink:href="cdw-20210630.xsd#ContractLiabilitiesandPerformanceObligationsScheduleofRemainingPerformanceObligationsDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/ContractLiabilitiesandPerformanceObligationsScheduleofRemainingPerformanceObligationsDetails" xlink:type="extended" id="i66dfd87f503d4727bc663a1ead9246c2_ContractLiabilitiesandPerformanceObligationsScheduleofRemainingPerformanceObligationsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_2da374fb-8fae-4944-8059-67adf21bad49" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_03e48ce6-6209-4da7-9825-66f69c453df2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_2da374fb-8fae-4944-8059-67adf21bad49" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_03e48ce6-6209-4da7-9825-66f69c453df2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_ea720a3f-32c0-4828-91b0-d39dd791f8b9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_2da374fb-8fae-4944-8059-67adf21bad49" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_ea720a3f-32c0-4828-91b0-d39dd791f8b9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_ca884dec-dcd7-4f4a-b4c1-8346164d4824" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_ea720a3f-32c0-4828-91b0-d39dd791f8b9" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_ca884dec-dcd7-4f4a-b4c1-8346164d4824" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/ContractLiabilitiesandPerformanceObligationsScheduleofRemainingPerformanceObligationsDetails_1" xlink:type="simple" xlink:href="cdw-20210630.xsd#ContractLiabilitiesandPerformanceObligationsScheduleofRemainingPerformanceObligationsDetails_1"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/ContractLiabilitiesandPerformanceObligationsScheduleofRemainingPerformanceObligationsDetails_1" xlink:type="extended" id="i93932e99c89a41e08ab41ef6d9887085_ContractLiabilitiesandPerformanceObligationsScheduleofRemainingPerformanceObligationsDetails_1">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_2da374fb-8fae-4944-8059-67adf21bad49" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_03e48ce6-6209-4da7-9825-66f69c453df2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_2da374fb-8fae-4944-8059-67adf21bad49" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_03e48ce6-6209-4da7-9825-66f69c453df2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_ea720a3f-32c0-4828-91b0-d39dd791f8b9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_2da374fb-8fae-4944-8059-67adf21bad49" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_ea720a3f-32c0-4828-91b0-d39dd791f8b9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/LongTermDebtDebtBalancesandInterestRatesDetails" xlink:type="simple" xlink:href="cdw-20210630.xsd#LongTermDebtDebtBalancesandInterestRatesDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/LongTermDebtDebtBalancesandInterestRatesDetails" xlink:type="extended" id="i51b80afc6c5040e39fef64ece310ae15_LongTermDebtDebtBalancesandInterestRatesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_d04d7793-3a9e-4ee2-8231-01b5cd253f62" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtWeightedAverageInterestRate_64a26997-77b3-4f74-a4af-d058f18913bf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongtermDebtWeightedAverageInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_d04d7793-3a9e-4ee2-8231-01b5cd253f62" xlink:to="loc_us-gaap_LongtermDebtWeightedAverageInterestRate_64a26997-77b3-4f74-a4af-d058f18913bf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_45466caa-aa15-4b32-91f2-bc4be193333c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_d04d7793-3a9e-4ee2-8231-01b5cd253f62" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_45466caa-aa15-4b32-91f2-bc4be193333c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_35d2bf3f-8abb-46ef-a6f7-e9aa18d5bea9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_d04d7793-3a9e-4ee2-8231-01b5cd253f62" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_35d2bf3f-8abb-46ef-a6f7-e9aa18d5bea9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_LongtermDebtCurrentMaturitiesGross_2be7dd43-05cb-45e6-a77d-7fd3e416a314" xlink:href="cdw-20210630.xsd#cdw_LongtermDebtCurrentMaturitiesGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_d04d7793-3a9e-4ee2-8231-01b5cd253f62" xlink:to="loc_cdw_LongtermDebtCurrentMaturitiesGross_2be7dd43-05cb-45e6-a77d-7fd3e416a314" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_LongtermDebtExcludingCurrentMaturitiesNetofDeferredFinancingCostsDiscountorPremium_7cd214be-62a9-4972-ae76-4f0a375f0f45" xlink:href="cdw-20210630.xsd#cdw_LongtermDebtExcludingCurrentMaturitiesNetofDeferredFinancingCostsDiscountorPremium"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_d04d7793-3a9e-4ee2-8231-01b5cd253f62" xlink:to="loc_cdw_LongtermDebtExcludingCurrentMaturitiesNetofDeferredFinancingCostsDiscountorPremium_7cd214be-62a9-4972-ae76-4f0a375f0f45" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_cea8536b-cb86-4d80-a976-9dc0c0c2d4f8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_d04d7793-3a9e-4ee2-8231-01b5cd253f62" xlink:to="loc_us-gaap_DebtInstrumentTable_cea8536b-cb86-4d80-a976-9dc0c0c2d4f8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_ea746b4e-f1db-47ee-aa92-25dcbcdd267c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_cea8536b-cb86-4d80-a976-9dc0c0c2d4f8" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_ea746b4e-f1db-47ee-aa92-25dcbcdd267c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_ea746b4e-f1db-47ee-aa92-25dcbcdd267c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_ea746b4e-f1db-47ee-aa92-25dcbcdd267c" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_ea746b4e-f1db-47ee-aa92-25dcbcdd267c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_3452e5ec-d499-48f5-a981-ab8e24899399" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_ea746b4e-f1db-47ee-aa92-25dcbcdd267c" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_3452e5ec-d499-48f5-a981-ab8e24899399" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorSecuredAssetBasedRevolvingCreditFacilityMember_871cd791-bf5a-480a-b88a-5cf6aadeb144" xlink:href="cdw-20210630.xsd#cdw_SeniorSecuredAssetBasedRevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_3452e5ec-d499-48f5-a981-ab8e24899399" xlink:to="loc_cdw_SeniorSecuredAssetBasedRevolvingCreditFacilityMember_871cd791-bf5a-480a-b88a-5cf6aadeb144" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_TermLoanMember_945687d5-212a-415c-8e3f-92a26a0bcc10" xlink:href="cdw-20210630.xsd#cdw_TermLoanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_3452e5ec-d499-48f5-a981-ab8e24899399" xlink:to="loc_cdw_TermLoanMember_945687d5-212a-415c-8e3f-92a26a0bcc10" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_CDWUKTermLoanMember_97f334b9-a876-4eaa-b7c4-7e4f8f8b6f4f" xlink:href="cdw-20210630.xsd#cdw_CDWUKTermLoanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_TermLoanMember_945687d5-212a-415c-8e3f-92a26a0bcc10" xlink:to="loc_cdw_CDWUKTermLoanMember_97f334b9-a876-4eaa-b7c4-7e4f8f8b6f4f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorSecuredTermLoanFacilityMember_9b57d568-aa32-450a-a99e-d6d3381d4cd3" xlink:href="cdw-20210630.xsd#cdw_SeniorSecuredTermLoanFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_TermLoanMember_945687d5-212a-415c-8e3f-92a26a0bcc10" xlink:to="loc_cdw_SeniorSecuredTermLoanFacilityMember_9b57d568-aa32-450a-a99e-d6d3381d4cd3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_UnsecuredSeniorNotesMember_9089e189-ea9f-4591-808a-c4a1ada78054" xlink:href="cdw-20210630.xsd#cdw_UnsecuredSeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_3452e5ec-d499-48f5-a981-ab8e24899399" xlink:to="loc_cdw_UnsecuredSeniorNotesMember_9089e189-ea9f-4591-808a-c4a1ada78054" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesdue2024Member_17c0f3cc-eadf-4b51-b928-879475642879" xlink:href="cdw-20210630.xsd#cdw_SeniorNotesdue2024Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_UnsecuredSeniorNotesMember_9089e189-ea9f-4591-808a-c4a1ada78054" xlink:to="loc_cdw_SeniorNotesdue2024Member_17c0f3cc-eadf-4b51-b928-879475642879" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesdueMay2025Member_4316c42c-f5d6-473c-af7f-da22eb6be0d6" xlink:href="cdw-20210630.xsd#cdw_SeniorNotesdueMay2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_UnsecuredSeniorNotesMember_9089e189-ea9f-4591-808a-c4a1ada78054" xlink:to="loc_cdw_SeniorNotesdueMay2025Member_4316c42c-f5d6-473c-af7f-da22eb6be0d6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesdue2028Member_b5618f85-38ac-4897-a5c2-f55ecae47c47" xlink:href="cdw-20210630.xsd#cdw_SeniorNotesdue2028Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_UnsecuredSeniorNotesMember_9089e189-ea9f-4591-808a-c4a1ada78054" xlink:to="loc_cdw_SeniorNotesdue2028Member_b5618f85-38ac-4897-a5c2-f55ecae47c47" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesDue2029Member_2826fcf8-758a-4bc6-a55b-29471a2cf383" xlink:href="cdw-20210630.xsd#cdw_SeniorNotesDue2029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_UnsecuredSeniorNotesMember_9089e189-ea9f-4591-808a-c4a1ada78054" xlink:to="loc_cdw_SeniorNotesDue2029Member_2826fcf8-758a-4bc6-a55b-29471a2cf383" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_OtherLongTermObligationsMember_8dbc8541-ca68-4faa-8e75-7cc5601110ce" xlink:href="cdw-20210630.xsd#cdw_OtherLongTermObligationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_3452e5ec-d499-48f5-a981-ab8e24899399" xlink:to="loc_cdw_OtherLongTermObligationsMember_8dbc8541-ca68-4faa-8e75-7cc5601110ce" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/LongTermDebtNarrativeDetails" xlink:type="simple" xlink:href="cdw-20210630.xsd#LongTermDebtNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/LongTermDebtNarrativeDetails" xlink:type="extended" id="ice1f09a01b1f4ceaa66b63d704b132ec_LongTermDebtNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_5b8da7e9-79b9-4482-85f8-edcb65fa62e6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_98d1fe1b-4678-4cab-93dc-6c670671da7c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LettersOfCreditOutstandingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b8da7e9-79b9-4482-85f8-edcb65fa62e6" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_98d1fe1b-4678-4cab-93dc-6c670671da7c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_AmountOwedUnderRevolvingLoanFinancingAgreement_b001e294-4ea6-4493-93b7-b6cf0caabe46" xlink:href="cdw-20210630.xsd#cdw_AmountOwedUnderRevolvingLoanFinancingAgreement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b8da7e9-79b9-4482-85f8-edcb65fa62e6" xlink:to="loc_cdw_AmountOwedUnderRevolvingLoanFinancingAgreement_b001e294-4ea6-4493-93b7-b6cf0caabe46" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_LineOfCreditFacilityBorrowingBase_446ad327-c8a3-4c7c-b879-7f0664c6044d" xlink:href="cdw-20210630.xsd#cdw_LineOfCreditFacilityBorrowingBase"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b8da7e9-79b9-4482-85f8-edcb65fa62e6" xlink:to="loc_cdw_LineOfCreditFacilityBorrowingBase_446ad327-c8a3-4c7c-b879-7f0664c6044d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_5bd5b96e-8bb4-4bae-95b6-3c161489fe2a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b8da7e9-79b9-4482-85f8-edcb65fa62e6" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_5bd5b96e-8bb4-4bae-95b6-3c161489fe2a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentPeriodicPaymentPrincipal_2fccef8c-5e98-4248-b664-f68632c303e4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentPeriodicPaymentPrincipal"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b8da7e9-79b9-4482-85f8-edcb65fa62e6" xlink:to="loc_us-gaap_DebtInstrumentPeriodicPaymentPrincipal_2fccef8c-5e98-4248-b664-f68632c303e4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmountOfRestrictedNetAssetsForConsolidatedAndUnconsolidatedSubsidiaries_74c40b7c-c23d-4c40-b04f-26e20a633514" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AmountOfRestrictedNetAssetsForConsolidatedAndUnconsolidatedSubsidiaries"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b8da7e9-79b9-4482-85f8-edcb65fa62e6" xlink:to="loc_us-gaap_AmountOfRestrictedNetAssetsForConsolidatedAndUnconsolidatedSubsidiaries_74c40b7c-c23d-4c40-b04f-26e20a633514" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_51e8eda8-8dbb-4ac8-98eb-83d2172c8765" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b8da7e9-79b9-4482-85f8-edcb65fa62e6" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_51e8eda8-8dbb-4ac8-98eb-83d2172c8765" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_7e7a5776-99a1-4e0c-ba56-21f234ca1cb9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5b8da7e9-79b9-4482-85f8-edcb65fa62e6" xlink:to="loc_us-gaap_DebtInstrumentTable_7e7a5776-99a1-4e0c-ba56-21f234ca1cb9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_02d9dc37-411f-4b19-8f8d-2000103f2415" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_7e7a5776-99a1-4e0c-ba56-21f234ca1cb9" xlink:to="loc_us-gaap_DebtInstrumentAxis_02d9dc37-411f-4b19-8f8d-2000103f2415" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_02d9dc37-411f-4b19-8f8d-2000103f2415_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_02d9dc37-411f-4b19-8f8d-2000103f2415" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_02d9dc37-411f-4b19-8f8d-2000103f2415_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_93bf346f-eb6e-40dd-af1e-3050b595a775" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_02d9dc37-411f-4b19-8f8d-2000103f2415" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_93bf346f-eb6e-40dd-af1e-3050b595a775" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesdueMay2025Member_3ac281b3-8d4e-4801-8cc5-fd948341af78" xlink:href="cdw-20210630.xsd#cdw_SeniorNotesdueMay2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_93bf346f-eb6e-40dd-af1e-3050b595a775" xlink:to="loc_cdw_SeniorNotesdueMay2025Member_3ac281b3-8d4e-4801-8cc5-fd948341af78" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesDue2029Member_5f84f4ab-5e6e-4caa-a6c5-52668b5d2b83" xlink:href="cdw-20210630.xsd#cdw_SeniorNotesDue2029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_93bf346f-eb6e-40dd-af1e-3050b595a775" xlink:to="loc_cdw_SeniorNotesDue2029Member_5f84f4ab-5e6e-4caa-a6c5-52668b5d2b83" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsAxis_31aed293-9703-41db-a878-d9f1dffe6f85" xlink:href="cdw-20210630.xsd#cdw_InventoryFinancingAgreementsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_7e7a5776-99a1-4e0c-ba56-21f234ca1cb9" xlink:to="loc_cdw_InventoryFinancingAgreementsAxis_31aed293-9703-41db-a878-d9f1dffe6f85" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsDomain_31aed293-9703-41db-a878-d9f1dffe6f85_default" xlink:href="cdw-20210630.xsd#cdw_InventoryFinancingAgreementsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_cdw_InventoryFinancingAgreementsAxis_31aed293-9703-41db-a878-d9f1dffe6f85" xlink:to="loc_cdw_InventoryFinancingAgreementsDomain_31aed293-9703-41db-a878-d9f1dffe6f85_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsDomain_c1d6235c-d073-45e0-a7c5-2936fdd861d3" xlink:href="cdw-20210630.xsd#cdw_InventoryFinancingAgreementsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_cdw_InventoryFinancingAgreementsAxis_31aed293-9703-41db-a878-d9f1dffe6f85" xlink:to="loc_cdw_InventoryFinancingAgreementsDomain_c1d6235c-d073-45e0-a7c5-2936fdd861d3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_AccountsPayableInventoryFinancingMember_8dbf95f7-a1d0-4e18-a59a-1afba722c66e" xlink:href="cdw-20210630.xsd#cdw_AccountsPayableInventoryFinancingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_InventoryFinancingAgreementsDomain_c1d6235c-d073-45e0-a7c5-2936fdd861d3" xlink:to="loc_cdw_AccountsPayableInventoryFinancingMember_8dbf95f7-a1d0-4e18-a59a-1afba722c66e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_ebfa0b53-1d2d-4420-8261-ba19468e312f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_7e7a5776-99a1-4e0c-ba56-21f234ca1cb9" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_ebfa0b53-1d2d-4420-8261-ba19468e312f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_ebfa0b53-1d2d-4420-8261-ba19468e312f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_ebfa0b53-1d2d-4420-8261-ba19468e312f" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_ebfa0b53-1d2d-4420-8261-ba19468e312f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_dbf1206b-57ad-4581-954c-5744646ec083" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_ebfa0b53-1d2d-4420-8261-ba19468e312f" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_dbf1206b-57ad-4581-954c-5744646ec083" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_CDWUKRevolvingCreditFacilityMember_ee3d6a42-e626-4b64-baca-66dfe75a508d" xlink:href="cdw-20210630.xsd#cdw_CDWUKRevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_dbf1206b-57ad-4581-954c-5744646ec083" xlink:to="loc_cdw_CDWUKRevolvingCreditFacilityMember_ee3d6a42-e626-4b64-baca-66dfe75a508d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorSecuredAssetBasedRevolvingCreditFacilityMember_85023d84-8183-4e80-ac81-91e3c7cae604" xlink:href="cdw-20210630.xsd#cdw_SeniorSecuredAssetBasedRevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_dbf1206b-57ad-4581-954c-5744646ec083" xlink:to="loc_cdw_SeniorSecuredAssetBasedRevolvingCreditFacilityMember_85023d84-8183-4e80-ac81-91e3c7cae604" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_CDWUKTermLoanMember_f7dfb770-7ff0-41fe-8fe2-b466d33b8703" xlink:href="cdw-20210630.xsd#cdw_CDWUKTermLoanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_dbf1206b-57ad-4581-954c-5744646ec083" xlink:to="loc_cdw_CDWUKTermLoanMember_f7dfb770-7ff0-41fe-8fe2-b466d33b8703" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorSecuredTermLoanFacilityMember_b5864c2e-91de-4ae8-a4df-5be2a539deb0" xlink:href="cdw-20210630.xsd#cdw_SeniorSecuredTermLoanFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_dbf1206b-57ad-4581-954c-5744646ec083" xlink:to="loc_cdw_SeniorSecuredTermLoanFacilityMember_b5864c2e-91de-4ae8-a4df-5be2a539deb0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_RevolvingLoanMember_6ee7d6f9-de3a-4e87-9c63-056fcca00a1b" xlink:href="cdw-20210630.xsd#cdw_RevolvingLoanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_dbf1206b-57ad-4581-954c-5744646ec083" xlink:to="loc_cdw_RevolvingLoanMember_6ee7d6f9-de3a-4e87-9c63-056fcca00a1b" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/LongTermDebtFairValueofLongTermDebtDetails" xlink:type="simple" xlink:href="cdw-20210630.xsd#LongTermDebtFairValueofLongTermDebtDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/LongTermDebtFairValueofLongTermDebtDetails" xlink:type="extended" id="i0c72b30fa1214d10be603643ef2319eb_LongTermDebtFairValueofLongTermDebtDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_8b4d2c7d-2a1c-4d4b-9afc-5be93adb04db" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFairValue_b6ffcadd-0887-4d46-88f5-2e45bfda3b7f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_8b4d2c7d-2a1c-4d4b-9afc-5be93adb04db" xlink:to="loc_us-gaap_DebtInstrumentFairValue_b6ffcadd-0887-4d46-88f5-2e45bfda3b7f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_d3fe9ff5-73fd-4263-beae-938fa6e74d00" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_8b4d2c7d-2a1c-4d4b-9afc-5be93adb04db" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_d3fe9ff5-73fd-4263-beae-938fa6e74d00" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_81af7305-1a86-4632-98b6-ad93b305099f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueByBalanceSheetGroupingTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_8b4d2c7d-2a1c-4d4b-9afc-5be93adb04db" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_81af7305-1a86-4632-98b6-ad93b305099f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_e4b6d514-b234-497f-894f-c5eddaf98bab" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_81af7305-1a86-4632-98b6-ad93b305099f" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_e4b6d514-b234-497f-894f-c5eddaf98bab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_e4b6d514-b234-497f-894f-c5eddaf98bab_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_e4b6d514-b234-497f-894f-c5eddaf98bab" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_e4b6d514-b234-497f-894f-c5eddaf98bab_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_026fc72c-0651-485e-846f-d8a0851f051f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_e4b6d514-b234-497f-894f-c5eddaf98bab" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_026fc72c-0651-485e-846f-d8a0851f051f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_e14e6ac5-ad9f-48cb-8f8d-d74bdae8a5d7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_026fc72c-0651-485e-846f-d8a0851f051f" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_e14e6ac5-ad9f-48cb-8f8d-d74bdae8a5d7" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/SegmentInformationNarrativeDetails" xlink:type="simple" xlink:href="cdw-20210630.xsd#SegmentInformationNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/SegmentInformationNarrativeDetails" xlink:type="extended" id="iba4c2576262044fdb6e290a05e22859c_SegmentInformationNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_18ebce92-f5a7-4bea-aac2-1a5eef96a9bf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfReportableSegments_5d6e3651-0239-4efb-a0a1-60b7b3a10495" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NumberOfReportableSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_18ebce92-f5a7-4bea-aac2-1a5eef96a9bf" xlink:to="loc_us-gaap_NumberOfReportableSegments_5d6e3651-0239-4efb-a0a1-60b7b3a10495" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SegmentReportingCustomerSegmentsCustomerEmployeeHeadcount_a6a8c3ff-d60e-4fdc-a105-9fbe645627c5" xlink:href="cdw-20210630.xsd#cdw_SegmentReportingCustomerSegmentsCustomerEmployeeHeadcount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_18ebce92-f5a7-4bea-aac2-1a5eef96a9bf" xlink:to="loc_cdw_SegmentReportingCustomerSegmentsCustomerEmployeeHeadcount_a6a8c3ff-d60e-4fdc-a105-9fbe645627c5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_NumberofOperatingSegmentsReportableUnitQuantitativeThresholdNotMet_a6d8e5c3-ee5f-44fe-b79c-36a02ed5ad59" xlink:href="cdw-20210630.xsd#cdw_NumberofOperatingSegmentsReportableUnitQuantitativeThresholdNotMet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_18ebce92-f5a7-4bea-aac2-1a5eef96a9bf" xlink:to="loc_cdw_NumberofOperatingSegmentsReportableUnitQuantitativeThresholdNotMet_a6d8e5c3-ee5f-44fe-b79c-36a02ed5ad59" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_a73278ec-9de6-40c9-8c48-6ca66e997137" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_18ebce92-f5a7-4bea-aac2-1a5eef96a9bf" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_a73278ec-9de6-40c9-8c48-6ca66e997137" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_84d31329-2a98-4eee-ad57-5d65a2d189cb" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_a73278ec-9de6-40c9-8c48-6ca66e997137" xlink:to="loc_srt_RangeAxis_84d31329-2a98-4eee-ad57-5d65a2d189cb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_84d31329-2a98-4eee-ad57-5d65a2d189cb_default" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_84d31329-2a98-4eee-ad57-5d65a2d189cb" xlink:to="loc_srt_RangeMember_84d31329-2a98-4eee-ad57-5d65a2d189cb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_4d26d2ab-3f80-4806-a133-68f76ac64aaf" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_84d31329-2a98-4eee-ad57-5d65a2d189cb" xlink:to="loc_srt_RangeMember_4d26d2ab-3f80-4806-a133-68f76ac64aaf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_bad1574b-d50c-4325-89e3-5e17b9b2955e" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_4d26d2ab-3f80-4806-a133-68f76ac64aaf" xlink:to="loc_srt_MinimumMember_bad1574b-d50c-4325-89e3-5e17b9b2955e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_77a7b762-53e2-46b7-a69c-d5ef976deb7e" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_4d26d2ab-3f80-4806-a133-68f76ac64aaf" xlink:to="loc_srt_MaximumMember_77a7b762-53e2-46b7-a69c-d5ef976deb7e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_6b35446f-75fc-4841-901e-34bb464513d2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_a73278ec-9de6-40c9-8c48-6ca66e997137" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_6b35446f-75fc-4841-901e-34bb464513d2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_6b35446f-75fc-4841-901e-34bb464513d2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_6b35446f-75fc-4841-901e-34bb464513d2" xlink:to="loc_us-gaap_SegmentDomain_6b35446f-75fc-4841-901e-34bb464513d2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_dea0d3d8-2da8-4df3-9165-691cb9616a1c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_6b35446f-75fc-4841-901e-34bb464513d2" xlink:to="loc_us-gaap_SegmentDomain_dea0d3d8-2da8-4df3-9165-691cb9616a1c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_CorporateSegmentPrivateSectorBusinessMember_3d4d8b17-3340-4203-bb24-dcdddf48529e" xlink:href="cdw-20210630.xsd#cdw_CorporateSegmentPrivateSectorBusinessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_dea0d3d8-2da8-4df3-9165-691cb9616a1c" xlink:to="loc_cdw_CorporateSegmentPrivateSectorBusinessMember_3d4d8b17-3340-4203-bb24-dcdddf48529e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SmallBusinessMember_617654b5-153d-4251-811a-5438987d4e88" xlink:href="cdw-20210630.xsd#cdw_SmallBusinessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_dea0d3d8-2da8-4df3-9165-691cb9616a1c" xlink:to="loc_cdw_SmallBusinessMember_617654b5-153d-4251-811a-5438987d4e88" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/SegmentInformationScheduleofSegmentInformationDetails" xlink:type="simple" xlink:href="cdw-20210630.xsd#SegmentInformationScheduleofSegmentInformationDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/SegmentInformationScheduleofSegmentInformationDetails" xlink:type="extended" id="ie8a046ce68e2419d8460e5dd7c4566de_SegmentInformationScheduleofSegmentInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_49d39217-bfd4-4446-b835-4293bf63523e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_1f22f72d-3128-4f6c-b125-382ea92e0677" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_49d39217-bfd4-4446-b835-4293bf63523e" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_1f22f72d-3128-4f6c-b125-382ea92e0677" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_cfeb7796-6801-46fc-9b26-bdd4bc15d78c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_49d39217-bfd4-4446-b835-4293bf63523e" xlink:to="loc_us-gaap_OperatingIncomeLoss_cfeb7796-6801-46fc-9b26-bdd4bc15d78c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_584c754d-d1bb-4dd4-96d6-8cd999566e9c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_49d39217-bfd4-4446-b835-4293bf63523e" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_584c754d-d1bb-4dd4-96d6-8cd999566e9c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_6e197b08-c9c0-4738-930a-f37200c48150" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_49d39217-bfd4-4446-b835-4293bf63523e" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_6e197b08-c9c0-4738-930a-f37200c48150" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_4f5d968a-bb7e-444b-82bc-4739f75fe4d0" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_6e197b08-c9c0-4738-930a-f37200c48150" xlink:to="loc_srt_ConsolidationItemsAxis_4f5d968a-bb7e-444b-82bc-4739f75fe4d0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_4f5d968a-bb7e-444b-82bc-4739f75fe4d0_default" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_4f5d968a-bb7e-444b-82bc-4739f75fe4d0" xlink:to="loc_srt_ConsolidationItemsDomain_4f5d968a-bb7e-444b-82bc-4739f75fe4d0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_7f7774fd-652c-44dc-a12c-e35106699ea2" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_4f5d968a-bb7e-444b-82bc-4739f75fe4d0" xlink:to="loc_srt_ConsolidationItemsDomain_7f7774fd-652c-44dc-a12c-e35106699ea2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_3f6a1442-1c68-4209-9715-2bed3528d3b0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_7f7774fd-652c-44dc-a12c-e35106699ea2" xlink:to="loc_us-gaap_OperatingSegmentsMember_3f6a1442-1c68-4209-9715-2bed3528d3b0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_fef6d2ee-67f4-4eec-be9c-455fbfa85388" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_7f7774fd-652c-44dc-a12c-e35106699ea2" xlink:to="loc_us-gaap_CorporateNonSegmentMember_fef6d2ee-67f4-4eec-be9c-455fbfa85388" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_c46e6b70-7988-4f02-af8a-45fb76f6d199" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_6e197b08-c9c0-4738-930a-f37200c48150" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_c46e6b70-7988-4f02-af8a-45fb76f6d199" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_c46e6b70-7988-4f02-af8a-45fb76f6d199_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_c46e6b70-7988-4f02-af8a-45fb76f6d199" xlink:to="loc_us-gaap_SegmentDomain_c46e6b70-7988-4f02-af8a-45fb76f6d199_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_45b21887-3306-452b-8725-38ec09942067" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_c46e6b70-7988-4f02-af8a-45fb76f6d199" xlink:to="loc_us-gaap_SegmentDomain_45b21887-3306-452b-8725-38ec09942067" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_CorporateSegmentPrivateSectorBusinessMember_8d9259b2-32f4-4dff-8367-1733830d0c8b" xlink:href="cdw-20210630.xsd#cdw_CorporateSegmentPrivateSectorBusinessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_45b21887-3306-452b-8725-38ec09942067" xlink:to="loc_cdw_CorporateSegmentPrivateSectorBusinessMember_8d9259b2-32f4-4dff-8367-1733830d0c8b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SmallBusinessMember_bf947616-094c-4791-a0fd-8d241e9bf9fe" xlink:href="cdw-20210630.xsd#cdw_SmallBusinessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_45b21887-3306-452b-8725-38ec09942067" xlink:to="loc_cdw_SmallBusinessMember_bf947616-094c-4791-a0fd-8d241e9bf9fe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_PublicSegmentGovernmentAgenciesEducationandHealthcareMember_5988cdc4-4f6e-4548-b2e8-1aff63f8a5b4" xlink:href="cdw-20210630.xsd#cdw_PublicSegmentGovernmentAgenciesEducationandHealthcareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_45b21887-3306-452b-8725-38ec09942067" xlink:to="loc_cdw_PublicSegmentGovernmentAgenciesEducationandHealthcareMember_5988cdc4-4f6e-4548-b2e8-1aff63f8a5b4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllOtherSegmentsMember_62f3ef14-242b-41ff-aa3f-1ec69bcc102e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AllOtherSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_45b21887-3306-452b-8725-38ec09942067" xlink:to="loc_us-gaap_AllOtherSegmentsMember_62f3ef14-242b-41ff-aa3f-1ec69bcc102e" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/SegmentInformationDisaggregationofRevenueDetails" xlink:type="simple" xlink:href="cdw-20210630.xsd#SegmentInformationDisaggregationofRevenueDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/SegmentInformationDisaggregationofRevenueDetails" xlink:type="extended" id="i3e8a3348dfab44238dc21bf1a043ac80_SegmentInformationDisaggregationofRevenueDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_6a4b6b36-b4a0-40e4-be08-dba1c1fc2b74" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_c05111fa-7209-4b53-80ee-331f67ecfa4f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_6a4b6b36-b4a0-40e4-be08-dba1c1fc2b74" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_c05111fa-7209-4b53-80ee-331f67ecfa4f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_RevenuenetbyProductandServicePercentage_76d26d3b-d556-4ec8-a7e8-fb31371bf154" xlink:href="cdw-20210630.xsd#cdw_RevenuenetbyProductandServicePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_6a4b6b36-b4a0-40e4-be08-dba1c1fc2b74" xlink:to="loc_cdw_RevenuenetbyProductandServicePercentage_76d26d3b-d556-4ec8-a7e8-fb31371bf154" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_3f40e630-7b68-4230-b6f2-11266ed551dd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_6a4b6b36-b4a0-40e4-be08-dba1c1fc2b74" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_3f40e630-7b68-4230-b6f2-11266ed551dd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_f32779bf-4b98-4afc-a1d6-83b790cdc20f" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_3f40e630-7b68-4230-b6f2-11266ed551dd" xlink:to="loc_srt_StatementGeographicalAxis_f32779bf-4b98-4afc-a1d6-83b790cdc20f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_f32779bf-4b98-4afc-a1d6-83b790cdc20f_default" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_f32779bf-4b98-4afc-a1d6-83b790cdc20f" xlink:to="loc_srt_SegmentGeographicalDomain_f32779bf-4b98-4afc-a1d6-83b790cdc20f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_5dd09fe0-f9ab-4a69-acda-792bd4f42ee4" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_f32779bf-4b98-4afc-a1d6-83b790cdc20f" xlink:to="loc_srt_SegmentGeographicalDomain_5dd09fe0-f9ab-4a69-acda-792bd4f42ee4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_1bc467f2-5aca-4bbf-a2d6-d2d5b61041e3" xlink:href="https://xbrl.sec.gov/country/2021/country-2021.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_5dd09fe0-f9ab-4a69-acda-792bd4f42ee4" xlink:to="loc_country_US_1bc467f2-5aca-4bbf-a2d6-d2d5b61041e3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonUsMember_770a1a1f-6bde-47fe-8064-aefc73797fc9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NonUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_5dd09fe0-f9ab-4a69-acda-792bd4f42ee4" xlink:to="loc_us-gaap_NonUsMember_770a1a1f-6bde-47fe-8064-aefc73797fc9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_826353cd-389d-4612-9fb5-737833cbde05" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_3f40e630-7b68-4230-b6f2-11266ed551dd" xlink:to="loc_srt_ProductOrServiceAxis_826353cd-389d-4612-9fb5-737833cbde05" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_826353cd-389d-4612-9fb5-737833cbde05_default" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_826353cd-389d-4612-9fb5-737833cbde05" xlink:to="loc_srt_ProductsAndServicesDomain_826353cd-389d-4612-9fb5-737833cbde05_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_b2442ac8-ef6d-4fb0-812a-6609754c28ff" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_826353cd-389d-4612-9fb5-737833cbde05" xlink:to="loc_srt_ProductsAndServicesDomain_b2442ac8-ef6d-4fb0-812a-6609754c28ff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_TotalHardwareMember_da71d5bd-fb60-4362-94d5-927c97dbad77" xlink:href="cdw-20210630.xsd#cdw_TotalHardwareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_b2442ac8-ef6d-4fb0-812a-6609754c28ff" xlink:to="loc_cdw_TotalHardwareMember_da71d5bd-fb60-4362-94d5-927c97dbad77" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_NotebooksMobileDevicesMember_90e9642b-2adc-4830-96f1-ef6fff4db017" xlink:href="cdw-20210630.xsd#cdw_NotebooksMobileDevicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_TotalHardwareMember_da71d5bd-fb60-4362-94d5-927c97dbad77" xlink:to="loc_cdw_NotebooksMobileDevicesMember_90e9642b-2adc-4830-96f1-ef6fff4db017" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_NetcommProductsMember_fe23f2bf-73ea-4bc3-bae5-a4e2e9d10f8b" xlink:href="cdw-20210630.xsd#cdw_NetcommProductsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_TotalHardwareMember_da71d5bd-fb60-4362-94d5-927c97dbad77" xlink:to="loc_cdw_NetcommProductsMember_fe23f2bf-73ea-4bc3-bae5-a4e2e9d10f8b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_DesktopsMember_fd422859-08d3-426d-8103-e5d521ff7f00" xlink:href="cdw-20210630.xsd#cdw_DesktopsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_TotalHardwareMember_da71d5bd-fb60-4362-94d5-927c97dbad77" xlink:to="loc_cdw_DesktopsMember_fd422859-08d3-426d-8103-e5d521ff7f00" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_VideoMember_f2d0d698-2a63-41a3-ad16-c7480fa169fd" xlink:href="cdw-20210630.xsd#cdw_VideoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_TotalHardwareMember_da71d5bd-fb60-4362-94d5-927c97dbad77" xlink:to="loc_cdw_VideoMember_f2d0d698-2a63-41a3-ad16-c7480fa169fd" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_EnterpriseAndDataStorageIncludingDrivesMember_e3649cf9-9047-4187-a852-b24a0df2be61" xlink:href="cdw-20210630.xsd#cdw_EnterpriseAndDataStorageIncludingDrivesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_TotalHardwareMember_da71d5bd-fb60-4362-94d5-927c97dbad77" xlink:to="loc_cdw_EnterpriseAndDataStorageIncludingDrivesMember_e3649cf9-9047-4187-a852-b24a0df2be61" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_OtherHardwareMember_aafce099-ce39-4bfe-8277-70c7b46c9d9b" xlink:href="cdw-20210630.xsd#cdw_OtherHardwareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_TotalHardwareMember_da71d5bd-fb60-4362-94d5-927c97dbad77" xlink:to="loc_cdw_OtherHardwareMember_aafce099-ce39-4bfe-8277-70c7b46c9d9b" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SoftwareProductsMember_29788d45-cdcf-4661-85f9-535852eb2cad" xlink:href="cdw-20210630.xsd#cdw_SoftwareProductsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_b2442ac8-ef6d-4fb0-812a-6609754c28ff" xlink:to="loc_cdw_SoftwareProductsMember_29788d45-cdcf-4661-85f9-535852eb2cad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_ServicesMember_ec0d67aa-75f7-45df-bce5-cd04bf7a75ee" xlink:href="cdw-20210630.xsd#cdw_ServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_b2442ac8-ef6d-4fb0-812a-6609754c28ff" xlink:to="loc_cdw_ServicesMember_ec0d67aa-75f7-45df-bce5-cd04bf7a75ee" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_OtherProductsAndServicesMember_b8c681f8-b817-476f-9d5d-4d1c7874ac3c" xlink:href="cdw-20210630.xsd#cdw_OtherProductsAndServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_b2442ac8-ef6d-4fb0-812a-6609754c28ff" xlink:to="loc_cdw_OtherProductsAndServicesMember_b8c681f8-b817-476f-9d5d-4d1c7874ac3c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelAxis_d975a2fe-5a8f-4e27-9f8a-746db014e35a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ContractWithCustomerSalesChannelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_3f40e630-7b68-4230-b6f2-11266ed551dd" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelAxis_d975a2fe-5a8f-4e27-9f8a-746db014e35a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_d975a2fe-5a8f-4e27-9f8a-746db014e35a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ContractWithCustomerSalesChannelDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_d975a2fe-5a8f-4e27-9f8a-746db014e35a" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_d975a2fe-5a8f-4e27-9f8a-746db014e35a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_e391f297-9d3e-4e75-b7b6-680cfe4419be" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ContractWithCustomerSalesChannelDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_d975a2fe-5a8f-4e27-9f8a-746db014e35a" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_e391f297-9d3e-4e75-b7b6-680cfe4419be" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SalesChannelCorporateMember_7579f59d-657b-4055-b288-ea383f2e8da3" xlink:href="cdw-20210630.xsd#cdw_SalesChannelCorporateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_e391f297-9d3e-4e75-b7b6-680cfe4419be" xlink:to="loc_cdw_SalesChannelCorporateMember_7579f59d-657b-4055-b288-ea383f2e8da3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SalesChannelSmallBusinessMember_f9b85a15-adb6-4218-abf0-a09d4adaf2b2" xlink:href="cdw-20210630.xsd#cdw_SalesChannelSmallBusinessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_e391f297-9d3e-4e75-b7b6-680cfe4419be" xlink:to="loc_cdw_SalesChannelSmallBusinessMember_f9b85a15-adb6-4218-abf0-a09d4adaf2b2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SalesChannelGovernmentMember_2e288a6f-1a28-4f88-b3fe-540b160977c7" xlink:href="cdw-20210630.xsd#cdw_SalesChannelGovernmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_e391f297-9d3e-4e75-b7b6-680cfe4419be" xlink:to="loc_cdw_SalesChannelGovernmentMember_2e288a6f-1a28-4f88-b3fe-540b160977c7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SalesChannelEducationMember_eae3eecd-7890-4705-87bc-570586cf08a3" xlink:href="cdw-20210630.xsd#cdw_SalesChannelEducationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_e391f297-9d3e-4e75-b7b6-680cfe4419be" xlink:to="loc_cdw_SalesChannelEducationMember_eae3eecd-7890-4705-87bc-570586cf08a3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SalesChannelHealthcareMember_3c88ab02-b05b-44ae-8af9-b1c0ffe74578" xlink:href="cdw-20210630.xsd#cdw_SalesChannelHealthcareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_e391f297-9d3e-4e75-b7b6-680cfe4419be" xlink:to="loc_cdw_SalesChannelHealthcareMember_3c88ab02-b05b-44ae-8af9-b1c0ffe74578" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SalesChannelOtherMember_bfbd2a4b-9a71-4d41-82cd-d9be8eb09b63" xlink:href="cdw-20210630.xsd#cdw_SalesChannelOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_e391f297-9d3e-4e75-b7b6-680cfe4419be" xlink:to="loc_cdw_SalesChannelOtherMember_bfbd2a4b-9a71-4d41-82cd-d9be8eb09b63" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_0ad18dd0-cb52-44a7-91cc-154c1dab3d0a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TimingOfTransferOfGoodOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_3f40e630-7b68-4230-b6f2-11266ed551dd" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_0ad18dd0-cb52-44a7-91cc-154c1dab3d0a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_0ad18dd0-cb52-44a7-91cc-154c1dab3d0a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TimingOfTransferOfGoodOrServiceDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_0ad18dd0-cb52-44a7-91cc-154c1dab3d0a" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_0ad18dd0-cb52-44a7-91cc-154c1dab3d0a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_dbd09eee-192f-4dd9-aeef-dbd6e7d928bb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TimingOfTransferOfGoodOrServiceDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_0ad18dd0-cb52-44a7-91cc-154c1dab3d0a" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_dbd09eee-192f-4dd9-aeef-dbd6e7d928bb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_TransferredAtPointInTimePrincipalMember_4e2e662d-e24f-4a8f-b9b2-fad329cb601a" xlink:href="cdw-20210630.xsd#cdw_TransferredAtPointInTimePrincipalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_dbd09eee-192f-4dd9-aeef-dbd6e7d928bb" xlink:to="loc_cdw_TransferredAtPointInTimePrincipalMember_4e2e662d-e24f-4a8f-b9b2-fad329cb601a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_TransferredAtPointInTimeAgentMember_b0473956-0537-4178-bd2a-fe5696e3eee2" xlink:href="cdw-20210630.xsd#cdw_TransferredAtPointInTimeAgentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_dbd09eee-192f-4dd9-aeef-dbd6e7d928bb" xlink:to="loc_cdw_TransferredAtPointInTimeAgentMember_b0473956-0537-4178-bd2a-fe5696e3eee2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_TransferredOverTimePrincipalMember_2716dd28-349b-492a-b249-e54a96b34fae" xlink:href="cdw-20210630.xsd#cdw_TransferredOverTimePrincipalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_dbd09eee-192f-4dd9-aeef-dbd6e7d928bb" xlink:to="loc_cdw_TransferredOverTimePrincipalMember_2716dd28-349b-492a-b249-e54a96b34fae" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_442e3d90-ee0a-4473-bc59-a7b812c0f984" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_3f40e630-7b68-4230-b6f2-11266ed551dd" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_442e3d90-ee0a-4473-bc59-a7b812c0f984" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_442e3d90-ee0a-4473-bc59-a7b812c0f984_default" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_442e3d90-ee0a-4473-bc59-a7b812c0f984" xlink:to="loc_us-gaap_SegmentDomain_442e3d90-ee0a-4473-bc59-a7b812c0f984_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_ad7e6cf3-c853-4d67-a8eb-26c656250de1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_442e3d90-ee0a-4473-bc59-a7b812c0f984" xlink:to="loc_us-gaap_SegmentDomain_ad7e6cf3-c853-4d67-a8eb-26c656250de1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_CorporateSegmentPrivateSectorBusinessMember_1c39da3b-b185-49a6-b29f-d2122033c775" xlink:href="cdw-20210630.xsd#cdw_CorporateSegmentPrivateSectorBusinessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_ad7e6cf3-c853-4d67-a8eb-26c656250de1" xlink:to="loc_cdw_CorporateSegmentPrivateSectorBusinessMember_1c39da3b-b185-49a6-b29f-d2122033c775" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SmallBusinessMember_59fcc951-e6ec-4bf7-a6a9-7c93ea7c73bf" xlink:href="cdw-20210630.xsd#cdw_SmallBusinessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_ad7e6cf3-c853-4d67-a8eb-26c656250de1" xlink:to="loc_cdw_SmallBusinessMember_59fcc951-e6ec-4bf7-a6a9-7c93ea7c73bf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_PublicSegmentGovernmentAgenciesEducationandHealthcareMember_491d1c56-4dc2-4067-96ab-1d3ab6e3a844" xlink:href="cdw-20210630.xsd#cdw_PublicSegmentGovernmentAgenciesEducationandHealthcareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_ad7e6cf3-c853-4d67-a8eb-26c656250de1" xlink:to="loc_cdw_PublicSegmentGovernmentAgenciesEducationandHealthcareMember_491d1c56-4dc2-4067-96ab-1d3ab6e3a844" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllOtherSegmentsMember_23ff9076-040c-43fd-9462-69699270bc67" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AllOtherSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_ad7e6cf3-c853-4d67-a8eb-26c656250de1" xlink:to="loc_us-gaap_AllOtherSegmentsMember_23ff9076-040c-43fd-9462-69699270bc67" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="simple" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-roles-2021-01-31.xsd#eedm"/>
  <link:definitionLink xlink:role="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfAdoptionMember" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TypeOfAdoptionMember"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountingStandardsUpdate201912Member" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountingStandardsUpdate201912Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember" xlink:to="loc_us-gaap_AccountingStandardsUpdate201912Member" xlink:type="arc" order="0"/>
  </link:definitionLink>
</link:linkbase>
