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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:2190da26-96f1-4390-b599-aac039ff7d62,g:6960195e-859d-4c30-acaa-4a495118ab82-->
<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/ConsolidatedStatementofStockholdersEquity" xlink:type="simple" xlink:href="cdw-20220630.xsd#ConsolidatedStatementofStockholdersEquity"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/ConsolidatedStatementofStockholdersEquity" xlink:type="extended" id="i9a107afaf4424c9099d3800e991a5d2d_ConsolidatedStatementofStockholdersEquity">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_9e0dce0a-0689-4792-b8f3-ab3379a23dcc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_f0f499cf-f5a9-48c6-851c-363206f8f8ab" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9e0dce0a-0689-4792-b8f3-ab3379a23dcc" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_f0f499cf-f5a9-48c6-851c-363206f8f8ab" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesIssued_1c70ff19-99a9-4197-9e6e-2f1401843209" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_f0f499cf-f5a9-48c6-851c-363206f8f8ab" xlink:to="loc_us-gaap_SharesIssued_1c70ff19-99a9-4197-9e6e-2f1401843209" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_d2df797b-9681-43f0-8dff-5c64893d934a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_f0f499cf-f5a9-48c6-851c-363206f8f8ab" xlink:to="loc_us-gaap_StockholdersEquity_d2df797b-9681-43f0-8dff-5c64893d934a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_3e6335d7-2ca6-4775-aa64-b9c49a6ed8af" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_f0f499cf-f5a9-48c6-851c-363206f8f8ab" xlink:to="loc_us-gaap_NetIncomeLoss_3e6335d7-2ca6-4775-aa64-b9c49a6ed8af" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_03b86f31-26f9-49e8-930a-a00a4dbd6ebc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_f0f499cf-f5a9-48c6-851c-363206f8f8ab" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_03b86f31-26f9-49e8-930a-a00a4dbd6ebc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_8941f8f7-148f-4876-bec6-a09a1aa2f635" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_f0f499cf-f5a9-48c6-851c-363206f8f8ab" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_8941f8f7-148f-4876-bec6-a09a1aa2f635" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_c9f74eb0-480b-45da-9e46-82cad40e8542" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_f0f499cf-f5a9-48c6-851c-363206f8f8ab" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_c9f74eb0-480b-45da-9e46-82cad40e8542" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_818f2aba-c656-4e77-a260-2efa5d46ab45" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_f0f499cf-f5a9-48c6-851c-363206f8f8ab" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_818f2aba-c656-4e77-a260-2efa5d46ab45" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_4c9e308c-49a0-4a31-b93f-1fec1586cd70" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_f0f499cf-f5a9-48c6-851c-363206f8f8ab" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_4c9e308c-49a0-4a31-b93f-1fec1586cd70" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_07d0b2cd-c3e1-40a3-aa71-2497235fd976" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_f0f499cf-f5a9-48c6-851c-363206f8f8ab" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_07d0b2cd-c3e1-40a3-aa71-2497235fd976" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_6de2a5c4-dcf7-474b-9fbb-bb17bf0f65c0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_f0f499cf-f5a9-48c6-851c-363206f8f8ab" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_6de2a5c4-dcf7-474b-9fbb-bb17bf0f65c0" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCommonStock_7f80d6c1-008b-4dfb-8ca5-9152a8d10aa0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DividendsCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_f0f499cf-f5a9-48c6-851c-363206f8f8ab" xlink:to="loc_us-gaap_DividendsCommonStock_7f80d6c1-008b-4dfb-8ca5-9152a8d10aa0" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_6d0d973b-cadd-44c7-bbdc-6a7bda1292fb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_f0f499cf-f5a9-48c6-851c-363206f8f8ab" xlink:to="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_6d0d973b-cadd-44c7-bbdc-6a7bda1292fb" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_b5f026cb-aba7-41bc-85fb-6a5f46cc31fa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_f0f499cf-f5a9-48c6-851c-363206f8f8ab" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_b5f026cb-aba7-41bc-85fb-6a5f46cc31fa" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_b800e298-ce13-4bb1-8ff9-894b75f7931a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_f0f499cf-f5a9-48c6-851c-363206f8f8ab" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_b800e298-ce13-4bb1-8ff9-894b75f7931a" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_54f751cc-3df5-4d05-81b8-017d4178fed5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_f0f499cf-f5a9-48c6-851c-363206f8f8ab" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_54f751cc-3df5-4d05-81b8-017d4178fed5" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesIssued_6c27717c-1947-4ac6-8f52-e38b79ac7637" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SharesIssued"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_f9af6082-5bb7-4926-a075-a5dd1cf0123b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountingStandardsUpdateExtensibleList_a66e30b1-f22b-4b14-af41-60ce0c34b616" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountingStandardsUpdateExtensibleList"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_f0f499cf-f5a9-48c6-851c-363206f8f8ab" xlink:to="loc_us-gaap_AccountingStandardsUpdateExtensibleList_a66e30b1-f22b-4b14-af41-60ce0c34b616" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_7f039153-90f4-4969-be19-9d9d93dbc69a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_9e0dce0a-0689-4792-b8f3-ab3379a23dcc" xlink:to="loc_us-gaap_StatementTable_7f039153-90f4-4969-be19-9d9d93dbc69a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_925a232c-2403-418c-a147-fb13be790b68" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_7f039153-90f4-4969-be19-9d9d93dbc69a" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_925a232c-2403-418c-a147-fb13be790b68" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_925a232c-2403-418c-a147-fb13be790b68_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_925a232c-2403-418c-a147-fb13be790b68" xlink:to="loc_us-gaap_EquityComponentDomain_925a232c-2403-418c-a147-fb13be790b68_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_b9c6266f-e429-4b4a-b5fe-91c3ba87ed7f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_925a232c-2403-418c-a147-fb13be790b68" xlink:to="loc_us-gaap_EquityComponentDomain_b9c6266f-e429-4b4a-b5fe-91c3ba87ed7f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_6ea69423-f06b-4e14-8db3-7657290f2920" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b9c6266f-e429-4b4a-b5fe-91c3ba87ed7f" xlink:to="loc_us-gaap_CommonStockMember_6ea69423-f06b-4e14-8db3-7657290f2920" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_6f3ee1eb-db00-4cdd-9d3a-84f0f785b73b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b9c6266f-e429-4b4a-b5fe-91c3ba87ed7f" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_6f3ee1eb-db00-4cdd-9d3a-84f0f785b73b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_3f4564da-9b45-4102-804a-5d2c43cee59f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b9c6266f-e429-4b4a-b5fe-91c3ba87ed7f" xlink:to="loc_us-gaap_RetainedEarningsMember_3f4564da-9b45-4102-804a-5d2c43cee59f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_af16f45e-a975-4735-8d1c-414ed02ae935" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b9c6266f-e429-4b4a-b5fe-91c3ba87ed7f" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_af16f45e-a975-4735-8d1c-414ed02ae935" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_059711d3-c1da-4d50-91fb-10e0ae33044c" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_7f039153-90f4-4969-be19-9d9d93dbc69a" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_059711d3-c1da-4d50-91fb-10e0ae33044c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_059711d3-c1da-4d50-91fb-10e0ae33044c_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_059711d3-c1da-4d50-91fb-10e0ae33044c" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_059711d3-c1da-4d50-91fb-10e0ae33044c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_9364be53-e399-4c7c-b7f7-2502011fbb60" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_059711d3-c1da-4d50-91fb-10e0ae33044c" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_9364be53-e399-4c7c-b7f7-2502011fbb60" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_c39db732-bab1-4f45-9ec9-8178d9027ba5" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_9364be53-e399-4c7c-b7f7-2502011fbb60" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_c39db732-bab1-4f45-9ec9-8178d9027ba5" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/AcquisitionsDetails" xlink:type="simple" xlink:href="cdw-20220630.xsd#AcquisitionsDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/AcquisitionsDetails" xlink:type="extended" id="icda76102f2d94a03b68d409d24f04b07_AcquisitionsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_032fbb84-70d8-46fd-be66-5bbe6a0e085b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_c684f3f6-1f4a-467b-9140-8dd28cd576d7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationConsiderationTransferred1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_032fbb84-70d8-46fd-be66-5bbe6a0e085b" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_c684f3f6-1f4a-467b-9140-8dd28cd576d7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_cb015e71-23d4-43f6-9863-86842d9c423a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_032fbb84-70d8-46fd-be66-5bbe6a0e085b" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_cb015e71-23d4-43f6-9863-86842d9c423a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_31cc47b1-0c1e-4115-891f-6be1b8fbfeb3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_cb015e71-23d4-43f6-9863-86842d9c423a" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_31cc47b1-0c1e-4115-891f-6be1b8fbfeb3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_31cc47b1-0c1e-4115-891f-6be1b8fbfeb3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_31cc47b1-0c1e-4115-891f-6be1b8fbfeb3" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_31cc47b1-0c1e-4115-891f-6be1b8fbfeb3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1796b54e-4de5-4278-8d93-582c9f7a2354" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_31cc47b1-0c1e-4115-891f-6be1b8fbfeb3" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1796b54e-4de5-4278-8d93-582c9f7a2354" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SiriusComputerSolutionsIncMember_361b67d2-fa25-488f-82db-7e05736dd0ee" xlink:href="cdw-20220630.xsd#cdw_SiriusComputerSolutionsIncMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1796b54e-4de5-4278-8d93-582c9f7a2354" xlink:to="loc_cdw_SiriusComputerSolutionsIncMember_361b67d2-fa25-488f-82db-7e05736dd0ee" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/AccountsReceivableandContractBalancesScheduleofContractwithCustomerDetails" xlink:type="simple" xlink:href="cdw-20220630.xsd#AccountsReceivableandContractBalancesScheduleofContractwithCustomerDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/AccountsReceivableandContractBalancesScheduleofContractwithCustomerDetails" xlink:type="extended" id="i1492d216975947b3bbac736a97771bc7_AccountsReceivableandContractBalancesScheduleofContractwithCustomerDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_4ab6953b-f1e0-4f5f-8251-2c8e71c7265a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetNet_e99b85bf-df0b-46e2-b485-4376ad6a0f9a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContractWithCustomerAssetNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_4ab6953b-f1e0-4f5f-8251-2c8e71c7265a" xlink:to="loc_us-gaap_ContractWithCustomerAssetNet_e99b85bf-df0b-46e2-b485-4376ad6a0f9a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiability_b2312b40-c717-490e-a7ea-76fd660d788d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContractWithCustomerLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_4ab6953b-f1e0-4f5f-8251-2c8e71c7265a" xlink:to="loc_us-gaap_ContractWithCustomerLiability_b2312b40-c717-490e-a7ea-76fd660d788d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_0c7d827a-2c70-4d53-bce8-e6c3ae30e28a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContractWithCustomerLiabilityRevenueRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_4ab6953b-f1e0-4f5f-8251-2c8e71c7265a" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_0c7d827a-2c70-4d53-bce8-e6c3ae30e28a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_843ef6af-2541-4135-86f5-988b5de4e7af" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_4ab6953b-f1e0-4f5f-8251-2c8e71c7265a" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_843ef6af-2541-4135-86f5-988b5de4e7af" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerDurationAxis_f3588e32-6cde-4631-9889-d0e414a62c89" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContractWithCustomerDurationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_843ef6af-2541-4135-86f5-988b5de4e7af" xlink:to="loc_us-gaap_ContractWithCustomerDurationAxis_f3588e32-6cde-4631-9889-d0e414a62c89" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerDurationDomain_f3588e32-6cde-4631-9889-d0e414a62c89_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContractWithCustomerDurationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContractWithCustomerDurationAxis_f3588e32-6cde-4631-9889-d0e414a62c89" xlink:to="loc_us-gaap_ContractWithCustomerDurationDomain_f3588e32-6cde-4631-9889-d0e414a62c89_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerDurationDomain_1cc98716-9950-485e-a474-63b6edae2e63" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContractWithCustomerDurationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContractWithCustomerDurationAxis_f3588e32-6cde-4631-9889-d0e414a62c89" xlink:to="loc_us-gaap_ContractWithCustomerDurationDomain_1cc98716-9950-485e-a474-63b6edae2e63" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermContractWithCustomerMember_3c272b7e-0697-4433-a2a0-d34e3e162fce" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermContractWithCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerDurationDomain_1cc98716-9950-485e-a474-63b6edae2e63" xlink:to="loc_us-gaap_LongTermContractWithCustomerMember_3c272b7e-0697-4433-a2a0-d34e3e162fce" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/AccountsReceivableandContractBalancesScheduleofRemainingPerformanceObligationsDetails" xlink:type="simple" xlink:href="cdw-20220630.xsd#AccountsReceivableandContractBalancesScheduleofRemainingPerformanceObligationsDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/AccountsReceivableandContractBalancesScheduleofRemainingPerformanceObligationsDetails" xlink:type="extended" id="i0e150c0601cc40908e090edbeb3b4146_AccountsReceivableandContractBalancesScheduleofRemainingPerformanceObligationsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_4719a798-7078-4b96-90a7-36802d14f6be" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_3841b936-5363-4721-a1bb-7be879b2caf6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_4719a798-7078-4b96-90a7-36802d14f6be" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_3841b936-5363-4721-a1bb-7be879b2caf6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_d7c4e9b2-8ce5-48cd-8d80-a1c35cc22a4f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_4719a798-7078-4b96-90a7-36802d14f6be" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_d7c4e9b2-8ce5-48cd-8d80-a1c35cc22a4f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_2dbff22e-ce76-4f02-ab69-109b2dae11b9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_4719a798-7078-4b96-90a7-36802d14f6be" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_2dbff22e-ce76-4f02-ab69-109b2dae11b9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_08dc61ba-8181-485a-a61a-94abe139833f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_2dbff22e-ce76-4f02-ab69-109b2dae11b9" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_08dc61ba-8181-485a-a61a-94abe139833f" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/AccountsReceivableandContractBalancesScheduleofRemainingPerformanceObligationsDetails_1" xlink:type="simple" xlink:href="cdw-20220630.xsd#AccountsReceivableandContractBalancesScheduleofRemainingPerformanceObligationsDetails_1"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/AccountsReceivableandContractBalancesScheduleofRemainingPerformanceObligationsDetails_1" xlink:type="extended" id="iaa73891a489e407fbb8dd882797e7066_AccountsReceivableandContractBalancesScheduleofRemainingPerformanceObligationsDetails_1">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_4719a798-7078-4b96-90a7-36802d14f6be" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_3841b936-5363-4721-a1bb-7be879b2caf6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_4719a798-7078-4b96-90a7-36802d14f6be" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_3841b936-5363-4721-a1bb-7be879b2caf6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_d7c4e9b2-8ce5-48cd-8d80-a1c35cc22a4f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_4719a798-7078-4b96-90a7-36802d14f6be" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_d7c4e9b2-8ce5-48cd-8d80-a1c35cc22a4f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_2dbff22e-ce76-4f02-ab69-109b2dae11b9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_4719a798-7078-4b96-90a7-36802d14f6be" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_2dbff22e-ce76-4f02-ab69-109b2dae11b9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/InventoryFinancingAgreementsDetails" xlink:type="simple" xlink:href="cdw-20220630.xsd#InventoryFinancingAgreementsDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/InventoryFinancingAgreementsDetails" xlink:type="extended" id="i1f1a3171aba9497292226d9c6842be5d_InventoryFinancingAgreementsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsLineItems_7611ddbe-6a7b-4538-a6f2-a56e10d5a3f9" xlink:href="cdw-20220630.xsd#cdw_InventoryFinancingAgreementsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_RevolvingLoanFinancingAgreement_b4015d68-0990-4332-b6bd-932962a3f71d" xlink:href="cdw-20220630.xsd#cdw_RevolvingLoanFinancingAgreement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_InventoryFinancingAgreementsLineItems_7611ddbe-6a7b-4538-a6f2-a56e10d5a3f9" xlink:to="loc_cdw_RevolvingLoanFinancingAgreement_b4015d68-0990-4332-b6bd-932962a3f71d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_OtherInventoryFinancingAgreements_316bc56d-a999-4bb6-bce2-8d09caae1b41" xlink:href="cdw-20220630.xsd#cdw_OtherInventoryFinancingAgreements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_InventoryFinancingAgreementsLineItems_7611ddbe-6a7b-4538-a6f2-a56e10d5a3f9" xlink:to="loc_cdw_OtherInventoryFinancingAgreements_316bc56d-a999-4bb6-bce2-8d09caae1b41" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_AccountsPayableInventoryFinancing_d0d6f625-3eb0-4cbb-99cf-9a98315ca9e3" xlink:href="cdw-20220630.xsd#cdw_AccountsPayableInventoryFinancing"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_InventoryFinancingAgreementsLineItems_7611ddbe-6a7b-4538-a6f2-a56e10d5a3f9" xlink:to="loc_cdw_AccountsPayableInventoryFinancing_d0d6f625-3eb0-4cbb-99cf-9a98315ca9e3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsTable_f8ff1689-0dee-475b-ada0-84056cf3d32f" xlink:href="cdw-20220630.xsd#cdw_InventoryFinancingAgreementsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_cdw_InventoryFinancingAgreementsLineItems_7611ddbe-6a7b-4538-a6f2-a56e10d5a3f9" xlink:to="loc_cdw_InventoryFinancingAgreementsTable_f8ff1689-0dee-475b-ada0-84056cf3d32f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsAxis_e2d73748-ba1e-408c-8f70-da52eaccb343" xlink:href="cdw-20220630.xsd#cdw_InventoryFinancingAgreementsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_cdw_InventoryFinancingAgreementsTable_f8ff1689-0dee-475b-ada0-84056cf3d32f" xlink:to="loc_cdw_InventoryFinancingAgreementsAxis_e2d73748-ba1e-408c-8f70-da52eaccb343" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsDomain_e2d73748-ba1e-408c-8f70-da52eaccb343_default" xlink:href="cdw-20220630.xsd#cdw_InventoryFinancingAgreementsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_cdw_InventoryFinancingAgreementsAxis_e2d73748-ba1e-408c-8f70-da52eaccb343" xlink:to="loc_cdw_InventoryFinancingAgreementsDomain_e2d73748-ba1e-408c-8f70-da52eaccb343_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsDomain_9f1d7ab5-2686-4a5c-8ceb-e18ed6c0de79" xlink:href="cdw-20220630.xsd#cdw_InventoryFinancingAgreementsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_cdw_InventoryFinancingAgreementsAxis_e2d73748-ba1e-408c-8f70-da52eaccb343" xlink:to="loc_cdw_InventoryFinancingAgreementsDomain_9f1d7ab5-2686-4a5c-8ceb-e18ed6c0de79" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_AccountsPayableInventoryFinancingMember_6d6591c0-ac87-4c4e-a67d-4473a79ed752" xlink:href="cdw-20220630.xsd#cdw_AccountsPayableInventoryFinancingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_InventoryFinancingAgreementsDomain_9f1d7ab5-2686-4a5c-8ceb-e18ed6c0de79" xlink:to="loc_cdw_AccountsPayableInventoryFinancingMember_6d6591c0-ac87-4c4e-a67d-4473a79ed752" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/FinancialInstrumentsDetails" xlink:type="simple" xlink:href="cdw-20220630.xsd#FinancialInstrumentsDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/FinancialInstrumentsDetails" xlink:type="extended" id="ifdb30ef2c6b841c39ef0c9bb6143c5b4_FinancialInstrumentsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_efc69437-ab36-40fc-b57c-f41626cb52ee" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_911c9fa0-8d6c-48f7-9b78-f1188419e209" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_efc69437-ab36-40fc-b57c-f41626cb52ee" xlink:to="loc_us-gaap_DerivativeAssets_911c9fa0-8d6c-48f7-9b78-f1188419e209" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNotionalAmount_99b81a3c-2941-44c2-a471-da0400cccab0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_efc69437-ab36-40fc-b57c-f41626cb52ee" xlink:to="loc_us-gaap_DerivativeNotionalAmount_99b81a3c-2941-44c2-a471-da0400cccab0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_583899c8-81c7-4887-9b1d-f435432e3ad7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_efc69437-ab36-40fc-b57c-f41626cb52ee" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_583899c8-81c7-4887-9b1d-f435432e3ad7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateCashFlowHedgeGainLossReclassifiedToEarningsNet_8ef09b25-3579-4cfa-9ac5-9bdbf7c507be" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestRateCashFlowHedgeGainLossReclassifiedToEarningsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_efc69437-ab36-40fc-b57c-f41626cb52ee" xlink:to="loc_us-gaap_InterestRateCashFlowHedgeGainLossReclassifiedToEarningsNet_8ef09b25-3579-4cfa-9ac5-9bdbf7c507be" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_5445984a-da7b-4027-a612-579a14f7dc77" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_efc69437-ab36-40fc-b57c-f41626cb52ee" xlink:to="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_5445984a-da7b-4027-a612-579a14f7dc77" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_d76b15b8-0cc5-485e-9ae4-7b555d0589b6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_efc69437-ab36-40fc-b57c-f41626cb52ee" xlink:to="loc_us-gaap_DerivativeTable_d76b15b8-0cc5-485e-9ae4-7b555d0589b6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_628bfd60-7c43-49aa-a4db-5dccdedab3c8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_d76b15b8-0cc5-485e-9ae4-7b555d0589b6" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_628bfd60-7c43-49aa-a4db-5dccdedab3c8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_628bfd60-7c43-49aa-a4db-5dccdedab3c8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_628bfd60-7c43-49aa-a4db-5dccdedab3c8" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_628bfd60-7c43-49aa-a4db-5dccdedab3c8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_a929fc83-4344-4bb0-a839-e9ff984b466d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_628bfd60-7c43-49aa-a4db-5dccdedab3c8" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_a929fc83-4344-4bb0-a839-e9ff984b466d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateCapMember_f3ac5c7f-d13d-439d-8752-ad7f93a6eb89" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestRateCapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_a929fc83-4344-4bb0-a839-e9ff984b466d" xlink:to="loc_us-gaap_InterestRateCapMember_f3ac5c7f-d13d-439d-8752-ad7f93a6eb89" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_cfdbb06b-2eb2-4827-88b7-09418a6e8529" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_a929fc83-4344-4bb0-a839-e9ff984b466d" xlink:to="loc_us-gaap_InterestRateContractMember_cfdbb06b-2eb2-4827-88b7-09418a6e8529" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeMember_8d32a688-8f00-4e30-a630-c9dbd02eaa11" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_a929fc83-4344-4bb0-a839-e9ff984b466d" xlink:to="loc_us-gaap_DerivativeMember_8d32a688-8f00-4e30-a630-c9dbd02eaa11" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/DebtDebtBalancesandInterestRatesDetails" xlink:type="simple" xlink:href="cdw-20220630.xsd#DebtDebtBalancesandInterestRatesDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/DebtDebtBalancesandInterestRatesDetails" xlink:type="extended" id="i11d428207d14432686832996459a1509_DebtDebtBalancesandInterestRatesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_1d1e641d-bdce-4700-a942-926b52a9f254" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtWeightedAverageInterestRate_164e46b1-d648-4331-9249-7f043986d4e6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtWeightedAverageInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1d1e641d-bdce-4700-a942-926b52a9f254" xlink:to="loc_us-gaap_LongtermDebtWeightedAverageInterestRate_164e46b1-d648-4331-9249-7f043986d4e6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_dd0958a0-af81-4b63-a249-49c54a11e177" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1d1e641d-bdce-4700-a942-926b52a9f254" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_dd0958a0-af81-4b63-a249-49c54a11e177" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_79e0485f-9b61-4757-9024-afa32ff71270" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1d1e641d-bdce-4700-a942-926b52a9f254" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_79e0485f-9b61-4757-9024-afa32ff71270" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_LongtermDebtCurrentMaturitiesGross_cf284357-37ed-4747-9ada-0b306f06a2ad" xlink:href="cdw-20220630.xsd#cdw_LongtermDebtCurrentMaturitiesGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1d1e641d-bdce-4700-a942-926b52a9f254" xlink:to="loc_cdw_LongtermDebtCurrentMaturitiesGross_cf284357-37ed-4747-9ada-0b306f06a2ad" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_LongtermDebtExcludingCurrentMaturitiesNetofDeferredFinancingCostsDiscountorPremium_33fd15fd-4f09-42ff-a72b-db01303a0b18" xlink:href="cdw-20220630.xsd#cdw_LongtermDebtExcludingCurrentMaturitiesNetofDeferredFinancingCostsDiscountorPremium"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1d1e641d-bdce-4700-a942-926b52a9f254" xlink:to="loc_cdw_LongtermDebtExcludingCurrentMaturitiesNetofDeferredFinancingCostsDiscountorPremium_33fd15fd-4f09-42ff-a72b-db01303a0b18" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_6d77f080-ce28-4534-a046-5df872b28e6b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_1d1e641d-bdce-4700-a942-926b52a9f254" xlink:to="loc_us-gaap_DebtInstrumentTable_6d77f080-ce28-4534-a046-5df872b28e6b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_1a37c58c-05d3-40db-a0b6-93b302d80c7e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_6d77f080-ce28-4534-a046-5df872b28e6b" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_1a37c58c-05d3-40db-a0b6-93b302d80c7e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_1a37c58c-05d3-40db-a0b6-93b302d80c7e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_1a37c58c-05d3-40db-a0b6-93b302d80c7e" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_1a37c58c-05d3-40db-a0b6-93b302d80c7e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_d2588c10-707f-4d78-9405-e6f1054ffa27" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_1a37c58c-05d3-40db-a0b6-93b302d80c7e" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_d2588c10-707f-4d78-9405-e6f1054ffa27" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorSecuredAssetBasedRevolvingCreditFacilityMember_55b14123-c0ba-42ff-8976-7d3f0b107cec" xlink:href="cdw-20220630.xsd#cdw_SeniorSecuredAssetBasedRevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_d2588c10-707f-4d78-9405-e6f1054ffa27" xlink:to="loc_cdw_SeniorSecuredAssetBasedRevolvingCreditFacilityMember_55b14123-c0ba-42ff-8976-7d3f0b107cec" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorSecuredTermLoanFacilityMember_e41932f8-9b68-47e5-9f8b-df41938313f3" xlink:href="cdw-20220630.xsd#cdw_SeniorSecuredTermLoanFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_d2588c10-707f-4d78-9405-e6f1054ffa27" xlink:to="loc_cdw_SeniorSecuredTermLoanFacilityMember_e41932f8-9b68-47e5-9f8b-df41938313f3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_UnsecuredSeniorNotesMember_91af359f-d4ce-49fa-b1dc-75a8e4568f0f" xlink:href="cdw-20220630.xsd#cdw_UnsecuredSeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_d2588c10-707f-4d78-9405-e6f1054ffa27" xlink:to="loc_cdw_UnsecuredSeniorNotesMember_91af359f-d4ce-49fa-b1dc-75a8e4568f0f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesdue2024Member_0de047a9-85da-45fb-bb31-835c7cedbedb" xlink:href="cdw-20220630.xsd#cdw_SeniorNotesdue2024Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_UnsecuredSeniorNotesMember_91af359f-d4ce-49fa-b1dc-75a8e4568f0f" xlink:to="loc_cdw_SeniorNotesdue2024Member_0de047a9-85da-45fb-bb31-835c7cedbedb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesdueMay2025Member_63bf73e4-4b7f-43ed-8218-f841a62db4e4" xlink:href="cdw-20220630.xsd#cdw_SeniorNotesdueMay2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_UnsecuredSeniorNotesMember_91af359f-d4ce-49fa-b1dc-75a8e4568f0f" xlink:to="loc_cdw_SeniorNotesdueMay2025Member_63bf73e4-4b7f-43ed-8218-f841a62db4e4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesdue2028Member_09db1f28-3729-47ec-b79f-2e8c619c61e8" xlink:href="cdw-20220630.xsd#cdw_SeniorNotesdue2028Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_UnsecuredSeniorNotesMember_91af359f-d4ce-49fa-b1dc-75a8e4568f0f" xlink:to="loc_cdw_SeniorNotesdue2028Member_09db1f28-3729-47ec-b79f-2e8c619c61e8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesDue2029Member_a46cbf12-0c4c-4861-8601-f352af858d9a" xlink:href="cdw-20220630.xsd#cdw_SeniorNotesDue2029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_UnsecuredSeniorNotesMember_91af359f-d4ce-49fa-b1dc-75a8e4568f0f" xlink:to="loc_cdw_SeniorNotesDue2029Member_a46cbf12-0c4c-4861-8601-f352af858d9a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesDue2026Member_2426a89b-2d51-4360-812f-a8805acdc2f4" xlink:href="cdw-20220630.xsd#cdw_SeniorNotesDue2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_UnsecuredSeniorNotesMember_91af359f-d4ce-49fa-b1dc-75a8e4568f0f" xlink:to="loc_cdw_SeniorNotesDue2026Member_2426a89b-2d51-4360-812f-a8805acdc2f4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesDueDecember2028Member_70f4eaff-005a-45f4-b08e-86a39fe0c68f" xlink:href="cdw-20220630.xsd#cdw_SeniorNotesDueDecember2028Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_UnsecuredSeniorNotesMember_91af359f-d4ce-49fa-b1dc-75a8e4568f0f" xlink:to="loc_cdw_SeniorNotesDueDecember2028Member_70f4eaff-005a-45f4-b08e-86a39fe0c68f" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesDue2031Member_664f5bdf-f5da-442e-b0e4-f788cf2f1a44" xlink:href="cdw-20220630.xsd#cdw_SeniorNotesDue2031Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_UnsecuredSeniorNotesMember_91af359f-d4ce-49fa-b1dc-75a8e4568f0f" xlink:to="loc_cdw_SeniorNotesDue2031Member_664f5bdf-f5da-442e-b0e4-f788cf2f1a44" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_ReceivableFinancingLiabilityMember_ce143ca0-d902-41ef-8193-b248817f7191" xlink:href="cdw-20220630.xsd#cdw_ReceivableFinancingLiabilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_d2588c10-707f-4d78-9405-e6f1054ffa27" xlink:to="loc_cdw_ReceivableFinancingLiabilityMember_ce143ca0-d902-41ef-8193-b248817f7191" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_OtherLongTermObligationsMember_f8f98365-d367-4ddb-b958-fd909c29692e" xlink:href="cdw-20220630.xsd#cdw_OtherLongTermObligationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_d2588c10-707f-4d78-9405-e6f1054ffa27" xlink:to="loc_cdw_OtherLongTermObligationsMember_f8f98365-d367-4ddb-b958-fd909c29692e" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/DebtNarrativeDetails" xlink:type="simple" xlink:href="cdw-20220630.xsd#DebtNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/DebtNarrativeDetails" xlink:type="extended" id="i63f159dbb8b244fd96ea400083a47a68_DebtNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_057e940c-0dbc-44ec-9389-8413b526f1bb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_d80f735b-8222-498f-bdbf-72dae7234d02" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_057e940c-0dbc-44ec-9389-8413b526f1bb" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_d80f735b-8222-498f-bdbf-72dae7234d02" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_77b58564-8c73-4748-a72e-58489898d3ab" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LettersOfCreditOutstandingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_057e940c-0dbc-44ec-9389-8413b526f1bb" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_77b58564-8c73-4748-a72e-58489898d3ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_AmountOwedUnderRevolvingLoanFinancingAgreement_35e32dc1-b350-4bee-acdf-47f6f39d0515" xlink:href="cdw-20220630.xsd#cdw_AmountOwedUnderRevolvingLoanFinancingAgreement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_057e940c-0dbc-44ec-9389-8413b526f1bb" xlink:to="loc_cdw_AmountOwedUnderRevolvingLoanFinancingAgreement_35e32dc1-b350-4bee-acdf-47f6f39d0515" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAnnualPrincipalPayment_1dbac660-7112-439a-b22a-ff7fb5f42508" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAnnualPrincipalPayment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_057e940c-0dbc-44ec-9389-8413b526f1bb" xlink:to="loc_us-gaap_DebtInstrumentAnnualPrincipalPayment_1dbac660-7112-439a-b22a-ff7fb5f42508" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_LongTermDebtMaturitiesRepaymentsOfPrincipalYearTwoAndThereafter_e41de064-1fdd-46a7-9154-d6ba299702ab" xlink:href="cdw-20220630.xsd#cdw_LongTermDebtMaturitiesRepaymentsOfPrincipalYearTwoAndThereafter"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_057e940c-0dbc-44ec-9389-8413b526f1bb" xlink:to="loc_cdw_LongTermDebtMaturitiesRepaymentsOfPrincipalYearTwoAndThereafter_e41de064-1fdd-46a7-9154-d6ba299702ab" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_9621d1f2-7d13-4783-8f2a-2ea9b279912c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_057e940c-0dbc-44ec-9389-8413b526f1bb" xlink:to="loc_us-gaap_DebtInstrumentTable_9621d1f2-7d13-4783-8f2a-2ea9b279912c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_fe144bb4-f91d-4525-9eac-6b162c863191" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_9621d1f2-7d13-4783-8f2a-2ea9b279912c" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_fe144bb4-f91d-4525-9eac-6b162c863191" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_fe144bb4-f91d-4525-9eac-6b162c863191_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_fe144bb4-f91d-4525-9eac-6b162c863191" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_fe144bb4-f91d-4525-9eac-6b162c863191_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_f23a4270-21ed-4956-bd48-1d05e923e8de" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_fe144bb4-f91d-4525-9eac-6b162c863191" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_f23a4270-21ed-4956-bd48-1d05e923e8de" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorSecuredAssetBasedRevolvingCreditFacilityMember_cc7637f9-fc9b-49d1-ac83-3db751510d5a" xlink:href="cdw-20220630.xsd#cdw_SeniorSecuredAssetBasedRevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_f23a4270-21ed-4956-bd48-1d05e923e8de" xlink:to="loc_cdw_SeniorSecuredAssetBasedRevolvingCreditFacilityMember_cc7637f9-fc9b-49d1-ac83-3db751510d5a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorSecuredTermLoanFacilityMember_ef2df3a1-37d2-4c1e-afbd-b88f495c7426" xlink:href="cdw-20220630.xsd#cdw_SeniorSecuredTermLoanFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_f23a4270-21ed-4956-bd48-1d05e923e8de" xlink:to="loc_cdw_SeniorSecuredTermLoanFacilityMember_ef2df3a1-37d2-4c1e-afbd-b88f495c7426" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsAxis_7b17846b-8f17-4ea0-b3f9-588fb98510fb" xlink:href="cdw-20220630.xsd#cdw_InventoryFinancingAgreementsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_9621d1f2-7d13-4783-8f2a-2ea9b279912c" xlink:to="loc_cdw_InventoryFinancingAgreementsAxis_7b17846b-8f17-4ea0-b3f9-588fb98510fb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsDomain_7b17846b-8f17-4ea0-b3f9-588fb98510fb_default" xlink:href="cdw-20220630.xsd#cdw_InventoryFinancingAgreementsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_cdw_InventoryFinancingAgreementsAxis_7b17846b-8f17-4ea0-b3f9-588fb98510fb" xlink:to="loc_cdw_InventoryFinancingAgreementsDomain_7b17846b-8f17-4ea0-b3f9-588fb98510fb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsDomain_171f45d8-4821-4465-b64f-8be9605283d8" xlink:href="cdw-20220630.xsd#cdw_InventoryFinancingAgreementsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_cdw_InventoryFinancingAgreementsAxis_7b17846b-8f17-4ea0-b3f9-588fb98510fb" xlink:to="loc_cdw_InventoryFinancingAgreementsDomain_171f45d8-4821-4465-b64f-8be9605283d8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_AccountsPayableInventoryFinancingMember_9f3ddd4a-4b28-44a6-b720-a2af53baf967" xlink:href="cdw-20220630.xsd#cdw_AccountsPayableInventoryFinancingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_InventoryFinancingAgreementsDomain_171f45d8-4821-4465-b64f-8be9605283d8" xlink:to="loc_cdw_AccountsPayableInventoryFinancingMember_9f3ddd4a-4b28-44a6-b720-a2af53baf967" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/DebtFairValueofLongTermDebtDetails" xlink:type="simple" xlink:href="cdw-20220630.xsd#DebtFairValueofLongTermDebtDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/DebtFairValueofLongTermDebtDetails" xlink:type="extended" id="i0fd8d8bbdafc443aa26d662f5bf0375b_DebtFairValueofLongTermDebtDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_4a461386-1fbd-4d6b-bb9e-cfc0747aae40" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFairValue_2c30880f-595f-4720-abf6-cef798519fed" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_4a461386-1fbd-4d6b-bb9e-cfc0747aae40" xlink:to="loc_us-gaap_DebtInstrumentFairValue_2c30880f-595f-4720-abf6-cef798519fed" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_8a4bf6ac-8dd6-4e45-b71e-c21132e4b828" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_4a461386-1fbd-4d6b-bb9e-cfc0747aae40" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_8a4bf6ac-8dd6-4e45-b71e-c21132e4b828" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_c82f95a6-a6c3-4a6d-bd6c-2544678e8c43" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueByBalanceSheetGroupingTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_4a461386-1fbd-4d6b-bb9e-cfc0747aae40" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_c82f95a6-a6c3-4a6d-bd6c-2544678e8c43" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_277cd36e-c7e8-493a-9761-faf7445856fa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_c82f95a6-a6c3-4a6d-bd6c-2544678e8c43" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_277cd36e-c7e8-493a-9761-faf7445856fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_277cd36e-c7e8-493a-9761-faf7445856fa_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_277cd36e-c7e8-493a-9761-faf7445856fa" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_277cd36e-c7e8-493a-9761-faf7445856fa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5315264c-2112-44d3-9c56-f560478d0df3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_277cd36e-c7e8-493a-9761-faf7445856fa" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5315264c-2112-44d3-9c56-f560478d0df3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_d9188c10-3f36-4927-93a0-cbe00c670f77" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5315264c-2112-44d3-9c56-f560478d0df3" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_d9188c10-3f36-4927-93a0-cbe00c670f77" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/SegmentInformationNarrativeDetails" xlink:type="simple" xlink:href="cdw-20220630.xsd#SegmentInformationNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/SegmentInformationNarrativeDetails" xlink:type="extended" id="ia0c3dd6b1ecb446bb62f5b16271314bd_SegmentInformationNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_9c07b370-1289-4634-bb4b-d0090e61f9a8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfReportableSegments_9426b731-34f7-4907-8cd4-0bcdd64f4b99" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NumberOfReportableSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_9c07b370-1289-4634-bb4b-d0090e61f9a8" xlink:to="loc_us-gaap_NumberOfReportableSegments_9426b731-34f7-4907-8cd4-0bcdd64f4b99" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SegmentReportingCustomerSegmentsCustomerEmployeeHeadcount_33f2494d-6ddb-4d51-b65b-e6ad3de87edd" xlink:href="cdw-20220630.xsd#cdw_SegmentReportingCustomerSegmentsCustomerEmployeeHeadcount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_9c07b370-1289-4634-bb4b-d0090e61f9a8" xlink:to="loc_cdw_SegmentReportingCustomerSegmentsCustomerEmployeeHeadcount_33f2494d-6ddb-4d51-b65b-e6ad3de87edd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_NumberofOperatingSegmentsReportableUnitQuantitativeThresholdNotMet_742d7280-7f27-4d15-a14a-bfa4c1af7a16" xlink:href="cdw-20220630.xsd#cdw_NumberofOperatingSegmentsReportableUnitQuantitativeThresholdNotMet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_9c07b370-1289-4634-bb4b-d0090e61f9a8" xlink:to="loc_cdw_NumberofOperatingSegmentsReportableUnitQuantitativeThresholdNotMet_742d7280-7f27-4d15-a14a-bfa4c1af7a16" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_73fe606c-e689-40a9-94a3-028f04bafb39" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_9c07b370-1289-4634-bb4b-d0090e61f9a8" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_73fe606c-e689-40a9-94a3-028f04bafb39" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_609fbff1-c407-40c2-8321-1779d7b04b91" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_73fe606c-e689-40a9-94a3-028f04bafb39" xlink:to="loc_srt_RangeAxis_609fbff1-c407-40c2-8321-1779d7b04b91" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_609fbff1-c407-40c2-8321-1779d7b04b91_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_609fbff1-c407-40c2-8321-1779d7b04b91" xlink:to="loc_srt_RangeMember_609fbff1-c407-40c2-8321-1779d7b04b91_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_d06dc5af-2922-4f41-82aa-7b687d7ccf8c" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_609fbff1-c407-40c2-8321-1779d7b04b91" xlink:to="loc_srt_RangeMember_d06dc5af-2922-4f41-82aa-7b687d7ccf8c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_0b802acd-1569-4036-a0f1-8747c6dbb82d" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_d06dc5af-2922-4f41-82aa-7b687d7ccf8c" xlink:to="loc_srt_MinimumMember_0b802acd-1569-4036-a0f1-8747c6dbb82d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_e38f606e-adfd-4bc1-8cf2-041681a90b01" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_d06dc5af-2922-4f41-82aa-7b687d7ccf8c" xlink:to="loc_srt_MaximumMember_e38f606e-adfd-4bc1-8cf2-041681a90b01" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_db050997-eab9-496d-bdf0-f93aaed6140d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_73fe606c-e689-40a9-94a3-028f04bafb39" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_db050997-eab9-496d-bdf0-f93aaed6140d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_db050997-eab9-496d-bdf0-f93aaed6140d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_db050997-eab9-496d-bdf0-f93aaed6140d" xlink:to="loc_us-gaap_SegmentDomain_db050997-eab9-496d-bdf0-f93aaed6140d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_9104842f-f8ac-40f3-bfce-94528c53d1b0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_db050997-eab9-496d-bdf0-f93aaed6140d" xlink:to="loc_us-gaap_SegmentDomain_9104842f-f8ac-40f3-bfce-94528c53d1b0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_CorporateSegmentPrivateSectorBusinessMember_69216eae-0e2d-4caf-aef3-cbefce72f294" xlink:href="cdw-20220630.xsd#cdw_CorporateSegmentPrivateSectorBusinessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9104842f-f8ac-40f3-bfce-94528c53d1b0" xlink:to="loc_cdw_CorporateSegmentPrivateSectorBusinessMember_69216eae-0e2d-4caf-aef3-cbefce72f294" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SmallBusinessMember_4976867d-d5b6-4aa0-9ac5-83b104ec394a" xlink:href="cdw-20220630.xsd#cdw_SmallBusinessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9104842f-f8ac-40f3-bfce-94528c53d1b0" xlink:to="loc_cdw_SmallBusinessMember_4976867d-d5b6-4aa0-9ac5-83b104ec394a" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/SegmentInformationScheduleofSegmentInformationDetails" xlink:type="simple" xlink:href="cdw-20220630.xsd#SegmentInformationScheduleofSegmentInformationDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/SegmentInformationScheduleofSegmentInformationDetails" xlink:type="extended" id="ib8d0fce965a64b579d664d26d8f0792b_SegmentInformationScheduleofSegmentInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_61f20fa7-a0e2-4716-8abd-1454b288bc52" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_6091f0d5-8f7a-4737-9d8c-7442e405a2e1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_61f20fa7-a0e2-4716-8abd-1454b288bc52" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_6091f0d5-8f7a-4737-9d8c-7442e405a2e1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_5f4f95c7-4ed1-42c0-b7be-b96e8f07bd02" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_61f20fa7-a0e2-4716-8abd-1454b288bc52" xlink:to="loc_us-gaap_OperatingIncomeLoss_5f4f95c7-4ed1-42c0-b7be-b96e8f07bd02" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_f22f42b0-c2be-4962-b332-705dcbfe7f02" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_61f20fa7-a0e2-4716-8abd-1454b288bc52" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_f22f42b0-c2be-4962-b332-705dcbfe7f02" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_5514f288-79b9-4660-ac51-5002482d7bc6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_61f20fa7-a0e2-4716-8abd-1454b288bc52" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_5514f288-79b9-4660-ac51-5002482d7bc6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_e5a4a2dd-1826-40cb-8b74-4ff734368672" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_5514f288-79b9-4660-ac51-5002482d7bc6" xlink:to="loc_srt_ConsolidationItemsAxis_e5a4a2dd-1826-40cb-8b74-4ff734368672" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_e5a4a2dd-1826-40cb-8b74-4ff734368672_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_e5a4a2dd-1826-40cb-8b74-4ff734368672" xlink:to="loc_srt_ConsolidationItemsDomain_e5a4a2dd-1826-40cb-8b74-4ff734368672_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_7bd795db-c72c-4d92-98bb-732ad5428b4a" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_e5a4a2dd-1826-40cb-8b74-4ff734368672" xlink:to="loc_srt_ConsolidationItemsDomain_7bd795db-c72c-4d92-98bb-732ad5428b4a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_4f85e38e-dd6e-47e3-9859-dff5e13fcaed" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_7bd795db-c72c-4d92-98bb-732ad5428b4a" xlink:to="loc_us-gaap_OperatingSegmentsMember_4f85e38e-dd6e-47e3-9859-dff5e13fcaed" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_e94fbabd-e647-4886-a8c0-64edf47d9ced" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_7bd795db-c72c-4d92-98bb-732ad5428b4a" xlink:to="loc_us-gaap_CorporateNonSegmentMember_e94fbabd-e647-4886-a8c0-64edf47d9ced" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_16579fdb-7567-4a2a-8cb0-8594c88095d4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_5514f288-79b9-4660-ac51-5002482d7bc6" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_16579fdb-7567-4a2a-8cb0-8594c88095d4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_16579fdb-7567-4a2a-8cb0-8594c88095d4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_16579fdb-7567-4a2a-8cb0-8594c88095d4" xlink:to="loc_us-gaap_SegmentDomain_16579fdb-7567-4a2a-8cb0-8594c88095d4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_13370139-1cb7-4135-8365-0f053884c20e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_16579fdb-7567-4a2a-8cb0-8594c88095d4" xlink:to="loc_us-gaap_SegmentDomain_13370139-1cb7-4135-8365-0f053884c20e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_CorporateSegmentPrivateSectorBusinessMember_fa5f45f0-a414-4c2f-8484-6f67c95141b0" xlink:href="cdw-20220630.xsd#cdw_CorporateSegmentPrivateSectorBusinessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_13370139-1cb7-4135-8365-0f053884c20e" xlink:to="loc_cdw_CorporateSegmentPrivateSectorBusinessMember_fa5f45f0-a414-4c2f-8484-6f67c95141b0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SmallBusinessMember_2c196ac2-eec5-4e7c-8953-094aa8861a44" xlink:href="cdw-20220630.xsd#cdw_SmallBusinessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_13370139-1cb7-4135-8365-0f053884c20e" xlink:to="loc_cdw_SmallBusinessMember_2c196ac2-eec5-4e7c-8953-094aa8861a44" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_PublicSegmentGovernmentAgenciesEducationandHealthcareMember_c3aeec66-b582-4d34-a2af-a767420e1bac" xlink:href="cdw-20220630.xsd#cdw_PublicSegmentGovernmentAgenciesEducationandHealthcareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_13370139-1cb7-4135-8365-0f053884c20e" xlink:to="loc_cdw_PublicSegmentGovernmentAgenciesEducationandHealthcareMember_c3aeec66-b582-4d34-a2af-a767420e1bac" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllOtherSegmentsMember_962c8750-fb9f-403d-ad6f-fa2858a7aa80" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AllOtherSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_13370139-1cb7-4135-8365-0f053884c20e" xlink:to="loc_us-gaap_AllOtherSegmentsMember_962c8750-fb9f-403d-ad6f-fa2858a7aa80" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/SegmentInformationDisaggregationofRevenueDetails" xlink:type="simple" xlink:href="cdw-20220630.xsd#SegmentInformationDisaggregationofRevenueDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/SegmentInformationDisaggregationofRevenueDetails" xlink:type="extended" id="i73784808733c480997f2014f5071ccce_SegmentInformationDisaggregationofRevenueDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_01b9ad8e-04bd-486d-a088-61b943dd3176" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_9b4fbd5c-729e-466a-8ab9-cc0a4672c351" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_01b9ad8e-04bd-486d-a088-61b943dd3176" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_9b4fbd5c-729e-466a-8ab9-cc0a4672c351" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_RevenuenetbyProductandServicePercentage_a6072a32-7c85-4cf3-91cb-b4491fa0e2d8" xlink:href="cdw-20220630.xsd#cdw_RevenuenetbyProductandServicePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_01b9ad8e-04bd-486d-a088-61b943dd3176" xlink:to="loc_cdw_RevenuenetbyProductandServicePercentage_a6072a32-7c85-4cf3-91cb-b4491fa0e2d8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_367bddf8-8795-46b4-bccf-6f03c21f6c41" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_01b9ad8e-04bd-486d-a088-61b943dd3176" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_367bddf8-8795-46b4-bccf-6f03c21f6c41" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_46af5e8c-bf3e-4cd0-a598-9e762661361d" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_367bddf8-8795-46b4-bccf-6f03c21f6c41" xlink:to="loc_srt_StatementGeographicalAxis_46af5e8c-bf3e-4cd0-a598-9e762661361d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_46af5e8c-bf3e-4cd0-a598-9e762661361d_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_46af5e8c-bf3e-4cd0-a598-9e762661361d" xlink:to="loc_srt_SegmentGeographicalDomain_46af5e8c-bf3e-4cd0-a598-9e762661361d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_81a40649-8bc5-44b0-8e6c-248a5573b635" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_46af5e8c-bf3e-4cd0-a598-9e762661361d" xlink:to="loc_srt_SegmentGeographicalDomain_81a40649-8bc5-44b0-8e6c-248a5573b635" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_17527837-9e14-4df3-9067-98dc45c6cdb5" xlink:href="https://xbrl.sec.gov/country/2022/country-2022.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_81a40649-8bc5-44b0-8e6c-248a5573b635" xlink:to="loc_country_US_17527837-9e14-4df3-9067-98dc45c6cdb5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonUsMember_42732163-dfbc-490f-bd3e-c1c14d290f60" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NonUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_81a40649-8bc5-44b0-8e6c-248a5573b635" xlink:to="loc_us-gaap_NonUsMember_42732163-dfbc-490f-bd3e-c1c14d290f60" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_48c39ada-2e9a-4eb2-a867-4eda6a382e76" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_367bddf8-8795-46b4-bccf-6f03c21f6c41" xlink:to="loc_srt_ProductOrServiceAxis_48c39ada-2e9a-4eb2-a867-4eda6a382e76" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_48c39ada-2e9a-4eb2-a867-4eda6a382e76_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_48c39ada-2e9a-4eb2-a867-4eda6a382e76" xlink:to="loc_srt_ProductsAndServicesDomain_48c39ada-2e9a-4eb2-a867-4eda6a382e76_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_67c88fd0-3eef-4c53-a5b1-e3fe2fb71dfa" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_48c39ada-2e9a-4eb2-a867-4eda6a382e76" xlink:to="loc_srt_ProductsAndServicesDomain_67c88fd0-3eef-4c53-a5b1-e3fe2fb71dfa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_TotalHardwareMember_091232b2-bfe4-417b-89a4-e855922445a6" xlink:href="cdw-20220630.xsd#cdw_TotalHardwareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_67c88fd0-3eef-4c53-a5b1-e3fe2fb71dfa" xlink:to="loc_cdw_TotalHardwareMember_091232b2-bfe4-417b-89a4-e855922445a6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_NotebooksMobileDevicesMember_e465b8a7-7572-4e81-a240-1586d74fe7a6" xlink:href="cdw-20220630.xsd#cdw_NotebooksMobileDevicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_TotalHardwareMember_091232b2-bfe4-417b-89a4-e855922445a6" xlink:to="loc_cdw_NotebooksMobileDevicesMember_e465b8a7-7572-4e81-a240-1586d74fe7a6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_NetcommProductsMember_00aa1b3e-f609-423b-9939-a988c5df8634" xlink:href="cdw-20220630.xsd#cdw_NetcommProductsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_TotalHardwareMember_091232b2-bfe4-417b-89a4-e855922445a6" xlink:to="loc_cdw_NetcommProductsMember_00aa1b3e-f609-423b-9939-a988c5df8634" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_DesktopsMember_c89c4518-45cf-4562-b0e8-d9f95ab78bc2" xlink:href="cdw-20220630.xsd#cdw_DesktopsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_TotalHardwareMember_091232b2-bfe4-417b-89a4-e855922445a6" xlink:to="loc_cdw_DesktopsMember_c89c4518-45cf-4562-b0e8-d9f95ab78bc2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_VideoMember_008c952e-b1cb-4d7d-ab68-d04eb43b0d6f" xlink:href="cdw-20220630.xsd#cdw_VideoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_TotalHardwareMember_091232b2-bfe4-417b-89a4-e855922445a6" xlink:to="loc_cdw_VideoMember_008c952e-b1cb-4d7d-ab68-d04eb43b0d6f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_EnterpriseAndDataStorageIncludingDrivesMember_2f531593-54e1-4968-baaa-210ba03b2472" xlink:href="cdw-20220630.xsd#cdw_EnterpriseAndDataStorageIncludingDrivesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_TotalHardwareMember_091232b2-bfe4-417b-89a4-e855922445a6" xlink:to="loc_cdw_EnterpriseAndDataStorageIncludingDrivesMember_2f531593-54e1-4968-baaa-210ba03b2472" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_OtherHardwareMember_c54e7698-bdc8-4ba0-ab73-8ca868d0b703" xlink:href="cdw-20220630.xsd#cdw_OtherHardwareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_TotalHardwareMember_091232b2-bfe4-417b-89a4-e855922445a6" xlink:to="loc_cdw_OtherHardwareMember_c54e7698-bdc8-4ba0-ab73-8ca868d0b703" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SoftwareProductsMember_76cc67bc-0f02-4fb8-af48-21adc3a719e8" xlink:href="cdw-20220630.xsd#cdw_SoftwareProductsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_67c88fd0-3eef-4c53-a5b1-e3fe2fb71dfa" xlink:to="loc_cdw_SoftwareProductsMember_76cc67bc-0f02-4fb8-af48-21adc3a719e8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_ServicesMember_fbadc05d-efea-400d-81b9-22ac6a5af1be" xlink:href="cdw-20220630.xsd#cdw_ServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_67c88fd0-3eef-4c53-a5b1-e3fe2fb71dfa" xlink:to="loc_cdw_ServicesMember_fbadc05d-efea-400d-81b9-22ac6a5af1be" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_OtherProductsAndServicesMember_4012c4fd-2842-4b69-8fbf-c040ad29b5bf" xlink:href="cdw-20220630.xsd#cdw_OtherProductsAndServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_67c88fd0-3eef-4c53-a5b1-e3fe2fb71dfa" xlink:to="loc_cdw_OtherProductsAndServicesMember_4012c4fd-2842-4b69-8fbf-c040ad29b5bf" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelAxis_59ee06ec-a477-4028-895c-3577a5e7c6cd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContractWithCustomerSalesChannelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_367bddf8-8795-46b4-bccf-6f03c21f6c41" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelAxis_59ee06ec-a477-4028-895c-3577a5e7c6cd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_59ee06ec-a477-4028-895c-3577a5e7c6cd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContractWithCustomerSalesChannelDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_59ee06ec-a477-4028-895c-3577a5e7c6cd" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_59ee06ec-a477-4028-895c-3577a5e7c6cd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_ecb8c150-8a42-493e-b137-7686c69eb8d4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContractWithCustomerSalesChannelDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_59ee06ec-a477-4028-895c-3577a5e7c6cd" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_ecb8c150-8a42-493e-b137-7686c69eb8d4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SalesChannelCorporateMember_74bd8c14-7b7d-4d7c-a7af-a564ee5aefaa" xlink:href="cdw-20220630.xsd#cdw_SalesChannelCorporateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_ecb8c150-8a42-493e-b137-7686c69eb8d4" xlink:to="loc_cdw_SalesChannelCorporateMember_74bd8c14-7b7d-4d7c-a7af-a564ee5aefaa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SalesChannelSmallBusinessMember_63a907f5-8be3-4e7a-bca1-2dbab7105d96" xlink:href="cdw-20220630.xsd#cdw_SalesChannelSmallBusinessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_ecb8c150-8a42-493e-b137-7686c69eb8d4" xlink:to="loc_cdw_SalesChannelSmallBusinessMember_63a907f5-8be3-4e7a-bca1-2dbab7105d96" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SalesChannelGovernmentMember_60c51a9e-50d7-4cd4-9e5f-a8d02c36c26d" xlink:href="cdw-20220630.xsd#cdw_SalesChannelGovernmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_ecb8c150-8a42-493e-b137-7686c69eb8d4" xlink:to="loc_cdw_SalesChannelGovernmentMember_60c51a9e-50d7-4cd4-9e5f-a8d02c36c26d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SalesChannelEducationMember_a7922d0d-2e66-493f-8295-fc4d76eeae59" xlink:href="cdw-20220630.xsd#cdw_SalesChannelEducationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_ecb8c150-8a42-493e-b137-7686c69eb8d4" xlink:to="loc_cdw_SalesChannelEducationMember_a7922d0d-2e66-493f-8295-fc4d76eeae59" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SalesChannelHealthcareMember_6f8c92c8-d981-41b1-b709-c6050bb97840" xlink:href="cdw-20220630.xsd#cdw_SalesChannelHealthcareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_ecb8c150-8a42-493e-b137-7686c69eb8d4" xlink:to="loc_cdw_SalesChannelHealthcareMember_6f8c92c8-d981-41b1-b709-c6050bb97840" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SalesChannelOtherMember_d8bacb8c-8c1d-4113-9b5a-642e56de973f" xlink:href="cdw-20220630.xsd#cdw_SalesChannelOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_ecb8c150-8a42-493e-b137-7686c69eb8d4" xlink:to="loc_cdw_SalesChannelOtherMember_d8bacb8c-8c1d-4113-9b5a-642e56de973f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_46670d49-8381-4826-bd1b-787b9c6ed529" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TimingOfTransferOfGoodOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_367bddf8-8795-46b4-bccf-6f03c21f6c41" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_46670d49-8381-4826-bd1b-787b9c6ed529" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_46670d49-8381-4826-bd1b-787b9c6ed529_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TimingOfTransferOfGoodOrServiceDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_46670d49-8381-4826-bd1b-787b9c6ed529" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_46670d49-8381-4826-bd1b-787b9c6ed529_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_c056eaff-574c-4a3c-953f-9c65dd2a0042" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TimingOfTransferOfGoodOrServiceDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_46670d49-8381-4826-bd1b-787b9c6ed529" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_c056eaff-574c-4a3c-953f-9c65dd2a0042" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_TransferredAtPointInTimePrincipalMember_931f801b-5aae-4dc9-8de8-84be82acc31a" xlink:href="cdw-20220630.xsd#cdw_TransferredAtPointInTimePrincipalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_c056eaff-574c-4a3c-953f-9c65dd2a0042" xlink:to="loc_cdw_TransferredAtPointInTimePrincipalMember_931f801b-5aae-4dc9-8de8-84be82acc31a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_TransferredAtPointInTimeAgentMember_c6fa35fc-9e2b-403f-816d-5e12457e5d57" xlink:href="cdw-20220630.xsd#cdw_TransferredAtPointInTimeAgentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_c056eaff-574c-4a3c-953f-9c65dd2a0042" xlink:to="loc_cdw_TransferredAtPointInTimeAgentMember_c6fa35fc-9e2b-403f-816d-5e12457e5d57" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_TransferredOverTimePrincipalMember_f27ccc93-7f9d-433c-b003-01723e074f51" xlink:href="cdw-20220630.xsd#cdw_TransferredOverTimePrincipalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_c056eaff-574c-4a3c-953f-9c65dd2a0042" xlink:to="loc_cdw_TransferredOverTimePrincipalMember_f27ccc93-7f9d-433c-b003-01723e074f51" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_86ee8a17-7d27-4eca-aa7a-4ba35d899324" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_367bddf8-8795-46b4-bccf-6f03c21f6c41" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_86ee8a17-7d27-4eca-aa7a-4ba35d899324" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_86ee8a17-7d27-4eca-aa7a-4ba35d899324_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_86ee8a17-7d27-4eca-aa7a-4ba35d899324" xlink:to="loc_us-gaap_SegmentDomain_86ee8a17-7d27-4eca-aa7a-4ba35d899324_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_7a8c5bd5-4852-4d45-9d85-fc7c168aae99" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_86ee8a17-7d27-4eca-aa7a-4ba35d899324" xlink:to="loc_us-gaap_SegmentDomain_7a8c5bd5-4852-4d45-9d85-fc7c168aae99" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_CorporateSegmentPrivateSectorBusinessMember_d05edcd6-b473-4220-bf67-327415d4fe01" xlink:href="cdw-20220630.xsd#cdw_CorporateSegmentPrivateSectorBusinessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_7a8c5bd5-4852-4d45-9d85-fc7c168aae99" xlink:to="loc_cdw_CorporateSegmentPrivateSectorBusinessMember_d05edcd6-b473-4220-bf67-327415d4fe01" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SmallBusinessMember_ac28eaaf-7025-48b9-9140-b5a08160f316" xlink:href="cdw-20220630.xsd#cdw_SmallBusinessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_7a8c5bd5-4852-4d45-9d85-fc7c168aae99" xlink:to="loc_cdw_SmallBusinessMember_ac28eaaf-7025-48b9-9140-b5a08160f316" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_PublicSegmentGovernmentAgenciesEducationandHealthcareMember_22b13f59-b959-4b9c-8f97-6d80273b8910" xlink:href="cdw-20220630.xsd#cdw_PublicSegmentGovernmentAgenciesEducationandHealthcareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_7a8c5bd5-4852-4d45-9d85-fc7c168aae99" xlink:to="loc_cdw_PublicSegmentGovernmentAgenciesEducationandHealthcareMember_22b13f59-b959-4b9c-8f97-6d80273b8910" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllOtherSegmentsMember_d2ce1e12-1d0e-4eb4-8044-a00a6cfee6a8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AllOtherSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_7a8c5bd5-4852-4d45-9d85-fc7c168aae99" xlink:to="loc_us-gaap_AllOtherSegmentsMember_d2ce1e12-1d0e-4eb4-8044-a00a6cfee6a8" 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/2022/elts/us-roles-2022.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/2022/elts/us-gaap-2022.xsd#us-gaap_TypeOfAdoptionMember"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountingStandardsUpdate201912Member" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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>
