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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2025 Workiva-->
<!--r:3ee8082a-d514-4c9e-aeaf-7de7de7e7452,g:9fa26d8e-1daf-4102-a718-efde623ab756-->
<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/ConsolidatedStatementsofStockholdersEquity" xlink:type="simple" xlink:href="cdw-20250930.xsd#ConsolidatedStatementsofStockholdersEquity"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/ConsolidatedStatementsofStockholdersEquity" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_3396b008-f1a0-4161-b05c-6f281ed9f336" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_70947fe6-5465-458e-83e9-be85b069ae6e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_3396b008-f1a0-4161-b05c-6f281ed9f336" xlink:to="loc_us-gaap_StatementTable_70947fe6-5465-458e-83e9-be85b069ae6e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_53dedfc1-b032-45e3-8a6e-587228fc6c66" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_70947fe6-5465-458e-83e9-be85b069ae6e" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_53dedfc1-b032-45e3-8a6e-587228fc6c66" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_53dedfc1-b032-45e3-8a6e-587228fc6c66_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_53dedfc1-b032-45e3-8a6e-587228fc6c66" xlink:to="loc_us-gaap_EquityComponentDomain_53dedfc1-b032-45e3-8a6e-587228fc6c66_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_115618f8-b0db-459a-9563-da91031e9a67" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_53dedfc1-b032-45e3-8a6e-587228fc6c66" xlink:to="loc_us-gaap_EquityComponentDomain_115618f8-b0db-459a-9563-da91031e9a67" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_470c1fde-6567-4542-8fd2-b05a2365bc1e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_115618f8-b0db-459a-9563-da91031e9a67" xlink:to="loc_us-gaap_CommonStockMember_470c1fde-6567-4542-8fd2-b05a2365bc1e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_0a924441-066d-4492-ab71-d825affcf79a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_115618f8-b0db-459a-9563-da91031e9a67" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_0a924441-066d-4492-ab71-d825affcf79a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_b6b4d6ad-5484-46ae-8ee2-8cc7c34d2b35" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_115618f8-b0db-459a-9563-da91031e9a67" xlink:to="loc_us-gaap_RetainedEarningsMember_b6b4d6ad-5484-46ae-8ee2-8cc7c34d2b35" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_5243d158-8de9-4e50-b62c-01c5aa3eb572" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_115618f8-b0db-459a-9563-da91031e9a67" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_5243d158-8de9-4e50-b62c-01c5aa3eb572" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2b786068-88d3-4721-b335-6586a56043ff" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3396b008-f1a0-4161-b05c-6f281ed9f336" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2b786068-88d3-4721-b335-6586a56043ff" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_39202230-333a-401b-ad45-a36d83a1052d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2b786068-88d3-4721-b335-6586a56043ff" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_39202230-333a-401b-ad45-a36d83a1052d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_66653acc-0232-4602-b5dc-b52ae88c5d11" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2b786068-88d3-4721-b335-6586a56043ff" xlink:to="loc_us-gaap_StockholdersEquity_66653acc-0232-4602-b5dc-b52ae88c5d11" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_b9fe6d02-788f-44ff-8a22-f391487ae5f1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2b786068-88d3-4721-b335-6586a56043ff" xlink:to="loc_us-gaap_NetIncomeLoss_b9fe6d02-788f-44ff-8a22-f391487ae5f1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_1e8e748b-e0c3-49de-bfa3-20af3f540148" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2b786068-88d3-4721-b335-6586a56043ff" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_1e8e748b-e0c3-49de-bfa3-20af3f540148" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation_8ea77d74-ce8a-4e8a-bafd-59d49c023744" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2b786068-88d3-4721-b335-6586a56043ff" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation_8ea77d74-ce8a-4e8a-bafd-59d49c023744" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation_a91eb358-634d-4eae-9481-e36777088da5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2b786068-88d3-4721-b335-6586a56043ff" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation_a91eb358-634d-4eae-9481-e36777088da5" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_277d7b0a-4c49-42cb-9a79-0872c6f635cc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2b786068-88d3-4721-b335-6586a56043ff" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_277d7b0a-4c49-42cb-9a79-0872c6f635cc" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_46037a5a-c427-4f03-9667-8f34614aa0f4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2b786068-88d3-4721-b335-6586a56043ff" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_46037a5a-c427-4f03-9667-8f34614aa0f4" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_6cf7988b-6056-4097-ba65-0798f763b6bc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2b786068-88d3-4721-b335-6586a56043ff" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_6cf7988b-6056-4097-ba65-0798f763b6bc" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_07335ee5-3328-4667-b5d4-10314911f760" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2b786068-88d3-4721-b335-6586a56043ff" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_07335ee5-3328-4667-b5d4-10314911f760" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCommonStock_6c9ee8eb-864a-42f9-a3ad-87e910ff6fe1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DividendsCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2b786068-88d3-4721-b335-6586a56043ff" xlink:to="loc_us-gaap_DividendsCommonStock_6c9ee8eb-864a-42f9-a3ad-87e910ff6fe1" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_9e1e274a-9225-4978-998f-111f8abfbb97" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2b786068-88d3-4721-b335-6586a56043ff" xlink:to="loc_us-gaap_AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation_9e1e274a-9225-4978-998f-111f8abfbb97" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_10d6f434-5b9d-4279-9e01-ff55e85286ec" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2b786068-88d3-4721-b335-6586a56043ff" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_10d6f434-5b9d-4279-9e01-ff55e85286ec" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_d133ea16-19b9-4ecb-a15c-96a56cca0bf9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2b786068-88d3-4721-b335-6586a56043ff" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_d133ea16-19b9-4ecb-a15c-96a56cca0bf9" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent1_54535a96-a4d0-480a-b804-dbf234a29e8c" xlink:href="cdw-20250930.xsd#cdw_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2b786068-88d3-4721-b335-6586a56043ff" xlink:to="loc_cdw_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent1_54535a96-a4d0-480a-b804-dbf234a29e8c" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_c036c59d-ed1e-40fb-83ff-c87c33ded855" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_b30dfc17-255c-45f7-b8b7-c61cc03dbbb3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/AcquisitionsDetails" xlink:type="simple" xlink:href="cdw-20250930.xsd#AcquisitionsDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/AcquisitionsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_3128f4a5-e6b8-4c93-8afc-6245b555fb9b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_538a689e-1878-42da-b236-b4b5bdd77e24" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_3128f4a5-e6b8-4c93-8afc-6245b555fb9b" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_538a689e-1878-42da-b236-b4b5bdd77e24" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_d0e48b16-4b24-45d0-9d7f-0bd712bb1c67" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_538a689e-1878-42da-b236-b4b5bdd77e24" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_d0e48b16-4b24-45d0-9d7f-0bd712bb1c67" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_d0e48b16-4b24-45d0-9d7f-0bd712bb1c67_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_d0e48b16-4b24-45d0-9d7f-0bd712bb1c67" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_d0e48b16-4b24-45d0-9d7f-0bd712bb1c67_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_ec4b985d-8b5e-41ee-8570-3617228f9e43" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_d0e48b16-4b24-45d0-9d7f-0bd712bb1c67" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_ec4b985d-8b5e-41ee-8570-3617228f9e43" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_MissionCloudServicesInc.Member_44351b30-d069-4b76-b74e-2b4c9c044630" xlink:href="cdw-20250930.xsd#cdw_MissionCloudServicesInc.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_ec4b985d-8b5e-41ee-8570-3617228f9e43" xlink:to="loc_cdw_MissionCloudServicesInc.Member_44351b30-d069-4b76-b74e-2b4c9c044630" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_9285ce9e-d51f-4a85-a0ab-9b2624ef5920" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BusinessCombinationConsiderationTransferred1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_3128f4a5-e6b8-4c93-8afc-6245b555fb9b" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_9285ce9e-d51f-4a85-a0ab-9b2624ef5920" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/AccountsReceivableandContractBalancesScheduleofContractwithCustomerDetails" xlink:type="simple" xlink:href="cdw-20250930.xsd#AccountsReceivableandContractBalancesScheduleofContractwithCustomerDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/AccountsReceivableandContractBalancesScheduleofContractwithCustomerDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_a7d6877c-8606-4f2c-8dcc-9b8c0dd394de" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_d5e57bfb-ca39-4ffa-8c9f-639ace4fab42" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_a7d6877c-8606-4f2c-8dcc-9b8c0dd394de" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_d5e57bfb-ca39-4ffa-8c9f-639ace4fab42" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerDurationAxis_09e7f4b6-2d9f-49ab-8536-4167cc211a73" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerDurationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_d5e57bfb-ca39-4ffa-8c9f-639ace4fab42" xlink:to="loc_us-gaap_ContractWithCustomerDurationAxis_09e7f4b6-2d9f-49ab-8536-4167cc211a73" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerDurationDomain_09e7f4b6-2d9f-49ab-8536-4167cc211a73_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerDurationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContractWithCustomerDurationAxis_09e7f4b6-2d9f-49ab-8536-4167cc211a73" xlink:to="loc_us-gaap_ContractWithCustomerDurationDomain_09e7f4b6-2d9f-49ab-8536-4167cc211a73_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerDurationDomain_c3da0279-1f67-4ce2-aca8-fd5d6b99b53f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerDurationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContractWithCustomerDurationAxis_09e7f4b6-2d9f-49ab-8536-4167cc211a73" xlink:to="loc_us-gaap_ContractWithCustomerDurationDomain_c3da0279-1f67-4ce2-aca8-fd5d6b99b53f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermContractWithCustomerMember_64f1fec4-a78b-413f-aad0-8b7e86bc8f6e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermContractWithCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerDurationDomain_c3da0279-1f67-4ce2-aca8-fd5d6b99b53f" xlink:to="loc_us-gaap_LongTermContractWithCustomerMember_64f1fec4-a78b-413f-aad0-8b7e86bc8f6e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetNet_a3edf71c-b177-4b43-a628-2d79ba719ddb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerAssetNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_a7d6877c-8606-4f2c-8dcc-9b8c0dd394de" xlink:to="loc_us-gaap_ContractWithCustomerAssetNet_a3edf71c-b177-4b43-a628-2d79ba719ddb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiability_def1cf2b-8669-4c59-ab5c-a687ad6c975b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_a7d6877c-8606-4f2c-8dcc-9b8c0dd394de" xlink:to="loc_us-gaap_ContractWithCustomerLiability_def1cf2b-8669-4c59-ab5c-a687ad6c975b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_35ec17f9-b628-4635-973d-d45da616ef1a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerLiabilityRevenueRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_a7d6877c-8606-4f2c-8dcc-9b8c0dd394de" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_35ec17f9-b628-4635-973d-d45da616ef1a" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/AccountsReceivableandContractBalancesScheduleofRemainingPerformanceObligationsDetails" xlink:type="simple" xlink:href="cdw-20250930.xsd#AccountsReceivableandContractBalancesScheduleofRemainingPerformanceObligationsDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/AccountsReceivableandContractBalancesScheduleofRemainingPerformanceObligationsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_c1224f8c-3183-4c60-be76-dd43b4151084" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_0f04fd06-d316-47a5-928b-82e21795ab75" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_c1224f8c-3183-4c60-be76-dd43b4151084" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_0f04fd06-d316-47a5-928b-82e21795ab75" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_322c2681-1e4d-49b0-b7e6-0118d10e18c7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_0f04fd06-d316-47a5-928b-82e21795ab75" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_322c2681-1e4d-49b0-b7e6-0118d10e18c7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_bd472901-1c16-452a-bc3b-a7a4c8316ce4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_c1224f8c-3183-4c60-be76-dd43b4151084" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_bd472901-1c16-452a-bc3b-a7a4c8316ce4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_43781544-d8de-446d-8520-3ef9ef379201" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_c1224f8c-3183-4c60-be76-dd43b4151084" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_43781544-d8de-446d-8520-3ef9ef379201" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/AccountsReceivableandContractBalancesScheduleofRemainingPerformanceObligationsDetails_1" xlink:type="simple" xlink:href="cdw-20250930.xsd#AccountsReceivableandContractBalancesScheduleofRemainingPerformanceObligationsDetails_1"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/AccountsReceivableandContractBalancesScheduleofRemainingPerformanceObligationsDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_c1224f8c-3183-4c60-be76-dd43b4151084" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_0f04fd06-d316-47a5-928b-82e21795ab75" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_c1224f8c-3183-4c60-be76-dd43b4151084" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_0f04fd06-d316-47a5-928b-82e21795ab75" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_bd472901-1c16-452a-bc3b-a7a4c8316ce4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_c1224f8c-3183-4c60-be76-dd43b4151084" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_bd472901-1c16-452a-bc3b-a7a4c8316ce4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_43781544-d8de-446d-8520-3ef9ef379201" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_c1224f8c-3183-4c60-be76-dd43b4151084" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_43781544-d8de-446d-8520-3ef9ef379201" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/InventoryFinancingAgreementsDetails" xlink:type="simple" xlink:href="cdw-20250930.xsd#InventoryFinancingAgreementsDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/InventoryFinancingAgreementsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsLineItems_136014d7-ca6b-4f6c-9411-f3a21e82c953" xlink:href="cdw-20250930.xsd#cdw_InventoryFinancingAgreementsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsTable_6a827def-42c4-45af-86cc-0e68c85d199e" xlink:href="cdw-20250930.xsd#cdw_InventoryFinancingAgreementsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_cdw_InventoryFinancingAgreementsLineItems_136014d7-ca6b-4f6c-9411-f3a21e82c953" xlink:to="loc_cdw_InventoryFinancingAgreementsTable_6a827def-42c4-45af-86cc-0e68c85d199e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsAxis_b2747bb5-9f2d-41e2-9916-fc34acf76a28" xlink:href="cdw-20250930.xsd#cdw_InventoryFinancingAgreementsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_cdw_InventoryFinancingAgreementsTable_6a827def-42c4-45af-86cc-0e68c85d199e" xlink:to="loc_cdw_InventoryFinancingAgreementsAxis_b2747bb5-9f2d-41e2-9916-fc34acf76a28" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsDomain_b2747bb5-9f2d-41e2-9916-fc34acf76a28_default" xlink:href="cdw-20250930.xsd#cdw_InventoryFinancingAgreementsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_cdw_InventoryFinancingAgreementsAxis_b2747bb5-9f2d-41e2-9916-fc34acf76a28" xlink:to="loc_cdw_InventoryFinancingAgreementsDomain_b2747bb5-9f2d-41e2-9916-fc34acf76a28_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsDomain_2cc3c259-6497-4a72-af17-360a687f3d9f" xlink:href="cdw-20250930.xsd#cdw_InventoryFinancingAgreementsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_cdw_InventoryFinancingAgreementsAxis_b2747bb5-9f2d-41e2-9916-fc34acf76a28" xlink:to="loc_cdw_InventoryFinancingAgreementsDomain_2cc3c259-6497-4a72-af17-360a687f3d9f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_AccountsPayableInventoryFinancingMember_ea1cd27c-a5f2-4416-9810-60ab2b9523a5" xlink:href="cdw-20250930.xsd#cdw_AccountsPayableInventoryFinancingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_InventoryFinancingAgreementsDomain_2cc3c259-6497-4a72-af17-360a687f3d9f" xlink:to="loc_cdw_AccountsPayableInventoryFinancingMember_ea1cd27c-a5f2-4416-9810-60ab2b9523a5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_OtherInventoryFinancingAgreements_f69bbd7f-4197-4d8c-8044-bdb17fb188cf" xlink:href="cdw-20250930.xsd#cdw_OtherInventoryFinancingAgreements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_InventoryFinancingAgreementsLineItems_136014d7-ca6b-4f6c-9411-f3a21e82c953" xlink:to="loc_cdw_OtherInventoryFinancingAgreements_f69bbd7f-4197-4d8c-8044-bdb17fb188cf" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/DebtScheduleofLongtermDebtInstrumentsDetails" xlink:type="simple" xlink:href="cdw-20250930.xsd#DebtScheduleofLongtermDebtInstrumentsDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/DebtScheduleofLongtermDebtInstrumentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_78e0075e-3c77-4fed-bd47-aca467394dfb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_dce25761-62e9-47ef-a19e-eb7299b3f4f2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_78e0075e-3c77-4fed-bd47-aca467394dfb" xlink:to="loc_us-gaap_DebtInstrumentTable_dce25761-62e9-47ef-a19e-eb7299b3f4f2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_c96fe9b5-c6b7-4574-aefb-a0806f959171" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_dce25761-62e9-47ef-a19e-eb7299b3f4f2" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_c96fe9b5-c6b7-4574-aefb-a0806f959171" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_c96fe9b5-c6b7-4574-aefb-a0806f959171_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_c96fe9b5-c6b7-4574-aefb-a0806f959171" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_c96fe9b5-c6b7-4574-aefb-a0806f959171_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_8398f637-7ffb-466d-b736-dd14c22fe807" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_c96fe9b5-c6b7-4574-aefb-a0806f959171" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_8398f637-7ffb-466d-b736-dd14c22fe807" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorUnsecuredRevolvingLoanFacilityMember_d31a7928-d1f3-4b8f-9bb6-4ab3d654f2bd" xlink:href="cdw-20250930.xsd#cdw_SeniorUnsecuredRevolvingLoanFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_8398f637-7ffb-466d-b736-dd14c22fe807" xlink:to="loc_cdw_SeniorUnsecuredRevolvingLoanFacilityMember_d31a7928-d1f3-4b8f-9bb6-4ab3d654f2bd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorUnsecuredTermLoanFacilityMember_7cf399a8-484c-433c-b28c-91a1d2fcf5c0" xlink:href="cdw-20250930.xsd#cdw_SeniorUnsecuredTermLoanFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_8398f637-7ffb-466d-b736-dd14c22fe807" xlink:to="loc_cdw_SeniorUnsecuredTermLoanFacilityMember_7cf399a8-484c-433c-b28c-91a1d2fcf5c0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesDueMay2025Member_f194d961-3000-46de-9633-75bc906cb3a7" xlink:href="cdw-20250930.xsd#cdw_SeniorNotesDueMay2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_8398f637-7ffb-466d-b736-dd14c22fe807" xlink:to="loc_cdw_SeniorNotesDueMay2025Member_f194d961-3000-46de-9633-75bc906cb3a7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesDue2026Member_1d182925-0113-4d78-9482-65bcad734ee9" xlink:href="cdw-20250930.xsd#cdw_SeniorNotesDue2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_8398f637-7ffb-466d-b736-dd14c22fe807" xlink:to="loc_cdw_SeniorNotesDue2026Member_1d182925-0113-4d78-9482-65bcad734ee9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesDueApril2028Member_a07a3cf4-7d67-492b-a55d-de8520ecfe3d" xlink:href="cdw-20250930.xsd#cdw_SeniorNotesDueApril2028Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_8398f637-7ffb-466d-b736-dd14c22fe807" xlink:to="loc_cdw_SeniorNotesDueApril2028Member_a07a3cf4-7d67-492b-a55d-de8520ecfe3d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesDueDecember2028Member_d080349e-a903-4807-90e0-9d27f2e475b1" xlink:href="cdw-20250930.xsd#cdw_SeniorNotesDueDecember2028Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_8398f637-7ffb-466d-b736-dd14c22fe807" xlink:to="loc_cdw_SeniorNotesDueDecember2028Member_d080349e-a903-4807-90e0-9d27f2e475b1" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesDue2029Member_00654d74-dd0a-4cf2-a095-158061660b54" xlink:href="cdw-20250930.xsd#cdw_SeniorNotesDue2029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_8398f637-7ffb-466d-b736-dd14c22fe807" xlink:to="loc_cdw_SeniorNotesDue2029Member_00654d74-dd0a-4cf2-a095-158061660b54" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesDue2030Member_2b7b47fa-f49b-4f31-8010-6b52a8e12605" xlink:href="cdw-20250930.xsd#cdw_SeniorNotesDue2030Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_8398f637-7ffb-466d-b736-dd14c22fe807" xlink:to="loc_cdw_SeniorNotesDue2030Member_2b7b47fa-f49b-4f31-8010-6b52a8e12605" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesDue2031Member_d504e79c-1e8c-4ded-b875-01db78036b28" xlink:href="cdw-20250930.xsd#cdw_SeniorNotesDue2031Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_8398f637-7ffb-466d-b736-dd14c22fe807" xlink:to="loc_cdw_SeniorNotesDue2031Member_d504e79c-1e8c-4ded-b875-01db78036b28" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesDue2034Member_5f3da281-730b-40fa-b333-abe4d322d412" xlink:href="cdw-20250930.xsd#cdw_SeniorNotesDue2034Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_8398f637-7ffb-466d-b736-dd14c22fe807" xlink:to="loc_cdw_SeniorNotesDue2034Member_5f3da281-730b-40fa-b333-abe4d322d412" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_UnsecuredSeniorNotesMember_dc291966-0414-42f5-910f-b4019b0e0f09" xlink:href="cdw-20250930.xsd#cdw_UnsecuredSeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_8398f637-7ffb-466d-b736-dd14c22fe807" xlink:to="loc_cdw_UnsecuredSeniorNotesMember_dc291966-0414-42f5-910f-b4019b0e0f09" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_ReceivableFinancingLiabilityMember_094b9252-b126-4055-ad7e-86625d8c639a" xlink:href="cdw-20250930.xsd#cdw_ReceivableFinancingLiabilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_8398f637-7ffb-466d-b736-dd14c22fe807" xlink:to="loc_cdw_ReceivableFinancingLiabilityMember_094b9252-b126-4055-ad7e-86625d8c639a" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_OtherLongTermObligationsMember_e2d53c1b-2960-45ec-8df3-46cbf039ab92" xlink:href="cdw-20250930.xsd#cdw_OtherLongTermObligationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_8398f637-7ffb-466d-b736-dd14c22fe807" xlink:to="loc_cdw_OtherLongTermObligationsMember_e2d53c1b-2960-45ec-8df3-46cbf039ab92" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_38858599-7a1c-40af-8830-30b29f3e4c02" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_78e0075e-3c77-4fed-bd47-aca467394dfb" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_38858599-7a1c-40af-8830-30b29f3e4c02" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_50d457dd-daed-4072-ab84-d9aa2aacc52f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_78e0075e-3c77-4fed-bd47-aca467394dfb" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_50d457dd-daed-4072-ab84-d9aa2aacc52f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_2dcb18e0-a08a-4d3a-825c-4dc27640a06a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_78e0075e-3c77-4fed-bd47-aca467394dfb" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_2dcb18e0-a08a-4d3a-825c-4dc27640a06a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_LongtermDebtCurrentMaturitiesGross_5ae65a7c-5e1b-4934-92cd-ea2bf0c4226d" xlink:href="cdw-20250930.xsd#cdw_LongtermDebtCurrentMaturitiesGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_78e0075e-3c77-4fed-bd47-aca467394dfb" xlink:to="loc_cdw_LongtermDebtCurrentMaturitiesGross_5ae65a7c-5e1b-4934-92cd-ea2bf0c4226d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_LongTermDebtExcludingCurrentMaturitiesNetOfDeferredFinancingCostsDiscountOrPremium_b10d004d-aec3-4ba4-9431-70da07d536fe" xlink:href="cdw-20250930.xsd#cdw_LongTermDebtExcludingCurrentMaturitiesNetOfDeferredFinancingCostsDiscountOrPremium"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_78e0075e-3c77-4fed-bd47-aca467394dfb" xlink:to="loc_cdw_LongTermDebtExcludingCurrentMaturitiesNetOfDeferredFinancingCostsDiscountOrPremium_b10d004d-aec3-4ba4-9431-70da07d536fe" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/DebtNarrativeDetails" xlink:type="simple" xlink:href="cdw-20250930.xsd#DebtNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/DebtNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_770cd764-652b-4c28-b6cc-8017a3495fca" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_43524b47-bea2-4d10-827f-36b2576a3a82" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_770cd764-652b-4c28-b6cc-8017a3495fca" xlink:to="loc_us-gaap_DebtInstrumentTable_43524b47-bea2-4d10-827f-36b2576a3a82" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_361a2b66-2f65-4c90-a801-4a59287b6eef" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_43524b47-bea2-4d10-827f-36b2576a3a82" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_361a2b66-2f65-4c90-a801-4a59287b6eef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_361a2b66-2f65-4c90-a801-4a59287b6eef_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_361a2b66-2f65-4c90-a801-4a59287b6eef" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_361a2b66-2f65-4c90-a801-4a59287b6eef_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_2bcf4cc3-1b6f-4843-aa45-109668ca20e2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_361a2b66-2f65-4c90-a801-4a59287b6eef" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_2bcf4cc3-1b6f-4843-aa45-109668ca20e2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorUnsecuredRevolvingLoanFacilityMember_3065e8dc-d294-46c2-afbb-accbe3bbc116" xlink:href="cdw-20250930.xsd#cdw_SeniorUnsecuredRevolvingLoanFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_2bcf4cc3-1b6f-4843-aa45-109668ca20e2" xlink:to="loc_cdw_SeniorUnsecuredRevolvingLoanFacilityMember_3065e8dc-d294-46c2-afbb-accbe3bbc116" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SeniorNotesDueMay2025Member_3f37e127-2ffb-4dc1-8586-469e27248fe5" xlink:href="cdw-20250930.xsd#cdw_SeniorNotesDueMay2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_2bcf4cc3-1b6f-4843-aa45-109668ca20e2" xlink:to="loc_cdw_SeniorNotesDueMay2025Member_3f37e127-2ffb-4dc1-8586-469e27248fe5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsAxis_d346f3b3-34a5-4727-bbe4-1ad02ee66d3a" xlink:href="cdw-20250930.xsd#cdw_InventoryFinancingAgreementsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_43524b47-bea2-4d10-827f-36b2576a3a82" xlink:to="loc_cdw_InventoryFinancingAgreementsAxis_d346f3b3-34a5-4727-bbe4-1ad02ee66d3a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsDomain_d346f3b3-34a5-4727-bbe4-1ad02ee66d3a_default" xlink:href="cdw-20250930.xsd#cdw_InventoryFinancingAgreementsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_cdw_InventoryFinancingAgreementsAxis_d346f3b3-34a5-4727-bbe4-1ad02ee66d3a" xlink:to="loc_cdw_InventoryFinancingAgreementsDomain_d346f3b3-34a5-4727-bbe4-1ad02ee66d3a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_InventoryFinancingAgreementsDomain_fa582721-e1b4-4f3d-ac0b-85f1ad05987b" xlink:href="cdw-20250930.xsd#cdw_InventoryFinancingAgreementsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_cdw_InventoryFinancingAgreementsAxis_d346f3b3-34a5-4727-bbe4-1ad02ee66d3a" xlink:to="loc_cdw_InventoryFinancingAgreementsDomain_fa582721-e1b4-4f3d-ac0b-85f1ad05987b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_AccountsPayableInventoryFinancingMember_4afd5f93-8859-43bc-b2bb-017dbd6eb8ef" xlink:href="cdw-20250930.xsd#cdw_AccountsPayableInventoryFinancingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_cdw_InventoryFinancingAgreementsDomain_fa582721-e1b4-4f3d-ac0b-85f1ad05987b" xlink:to="loc_cdw_AccountsPayableInventoryFinancingMember_4afd5f93-8859-43bc-b2bb-017dbd6eb8ef" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_224aa4f1-c37a-48e4-bb0e-33b7df06d49b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_770cd764-652b-4c28-b6cc-8017a3495fca" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_224aa4f1-c37a-48e4-bb0e-33b7df06d49b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_AmountOwedUnderRevolvingLoanFinancingAgreement_10a704cb-e510-4426-a3da-e15fb80d8b7c" xlink:href="cdw-20250930.xsd#cdw_AmountOwedUnderRevolvingLoanFinancingAgreement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_770cd764-652b-4c28-b6cc-8017a3495fca" xlink:to="loc_cdw_AmountOwedUnderRevolvingLoanFinancingAgreement_10a704cb-e510-4426-a3da-e15fb80d8b7c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_6529f379-ec29-47d8-9439-29d045c4e78f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RepaymentsOfLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_770cd764-652b-4c28-b6cc-8017a3495fca" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_6529f379-ec29-47d8-9439-29d045c4e78f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_faa0e04a-902e-4c0c-8c9f-4f493e1a2bd7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_770cd764-652b-4c28-b6cc-8017a3495fca" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_faa0e04a-902e-4c0c-8c9f-4f493e1a2bd7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_FinancingReceivableTransfersNotClassifiedAsASale_66562ea4-4c27-4430-a3c9-7d97b5113171" xlink:href="cdw-20250930.xsd#cdw_FinancingReceivableTransfersNotClassifiedAsASale"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_770cd764-652b-4c28-b6cc-8017a3495fca" xlink:to="loc_cdw_FinancingReceivableTransfersNotClassifiedAsASale_66562ea4-4c27-4430-a3c9-7d97b5113171" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/DebtScheduleofCarryingValueofLongTermDebtDetails" xlink:type="simple" xlink:href="cdw-20250930.xsd#DebtScheduleofCarryingValueofLongTermDebtDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/DebtScheduleofCarryingValueofLongTermDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_faf76c86-1734-435d-a8ba-ee543693752b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_5bd2f2a6-4db4-46f8-861d-f2b105b845c7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByBalanceSheetGroupingTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_faf76c86-1734-435d-a8ba-ee543693752b" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_5bd2f2a6-4db4-46f8-861d-f2b105b845c7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_6c2127cb-1daa-47aa-8952-b38219799b56" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_5bd2f2a6-4db4-46f8-861d-f2b105b845c7" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_6c2127cb-1daa-47aa-8952-b38219799b56" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_6c2127cb-1daa-47aa-8952-b38219799b56_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_6c2127cb-1daa-47aa-8952-b38219799b56" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_6c2127cb-1daa-47aa-8952-b38219799b56_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_4666f617-af4f-407c-89fe-9d18bcc5b64d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_6c2127cb-1daa-47aa-8952-b38219799b56" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_4666f617-af4f-407c-89fe-9d18bcc5b64d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_ad075e10-da87-4b86-9955-c311be02af31" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_4666f617-af4f-407c-89fe-9d18bcc5b64d" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_ad075e10-da87-4b86-9955-c311be02af31" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFairValue_f9e3025e-0306-4a2b-85f3-21b57d3f3251" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_faf76c86-1734-435d-a8ba-ee543693752b" xlink:to="loc_us-gaap_DebtInstrumentFairValue_f9e3025e-0306-4a2b-85f3-21b57d3f3251" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_97a012d5-71c5-4167-bdcc-31acd4925058" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_faf76c86-1734-435d-a8ba-ee543693752b" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_97a012d5-71c5-4167-bdcc-31acd4925058" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/FairValueMeasurementsandFinancialInstrumentsDetails" xlink:type="simple" xlink:href="cdw-20250930.xsd#FairValueMeasurementsandFinancialInstrumentsDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/FairValueMeasurementsandFinancialInstrumentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_51297ca3-b087-4280-9de4-e2e1b512ed94" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_6a465c96-e76a-46c8-9a99-ba0c232b0899" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_51297ca3-b087-4280-9de4-e2e1b512ed94" xlink:to="loc_us-gaap_DerivativeTable_6a465c96-e76a-46c8-9a99-ba0c232b0899" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_4d077e20-ed5f-4a4a-9581-919f503873cb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_6a465c96-e76a-46c8-9a99-ba0c232b0899" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_4d077e20-ed5f-4a4a-9581-919f503873cb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_4d077e20-ed5f-4a4a-9581-919f503873cb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_4d077e20-ed5f-4a4a-9581-919f503873cb" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_4d077e20-ed5f-4a4a-9581-919f503873cb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_4d91f38b-db4c-4e62-be0d-649d5f6f57bb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_4d077e20-ed5f-4a4a-9581-919f503873cb" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_4d91f38b-db4c-4e62-be0d-649d5f6f57bb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateCapMember_3d358ee9-a948-47b4-b9f8-482879db173e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestRateCapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_4d91f38b-db4c-4e62-be0d-649d5f6f57bb" xlink:to="loc_us-gaap_InterestRateCapMember_3d358ee9-a948-47b4-b9f8-482879db173e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNotionalAmount_20c2a42c-5c75-4ee7-92f8-4a58c1a694e4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_51297ca3-b087-4280-9de4-e2e1b512ed94" xlink:to="loc_us-gaap_DerivativeNotionalAmount_20c2a42c-5c75-4ee7-92f8-4a58c1a694e4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CertificatesOfDepositAtCarryingValue_3ce8dc87-5fc4-4c34-82bd-b310d4a3b3ca" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CertificatesOfDepositAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_51297ca3-b087-4280-9de4-e2e1b512ed94" xlink:to="loc_us-gaap_CertificatesOfDepositAtCarryingValue_3ce8dc87-5fc4-4c34-82bd-b310d4a3b3ca" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/SegmentInformationNarrativeDetails" xlink:type="simple" xlink:href="cdw-20250930.xsd#SegmentInformationNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/SegmentInformationNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_b7a765fa-2b83-488e-b168-1a76bb81e257" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_09a8aeb1-c95f-43dd-b869-70d906fca673" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_b7a765fa-2b83-488e-b168-1a76bb81e257" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_09a8aeb1-c95f-43dd-b869-70d906fca673" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_e817cb15-85cf-4b4d-bf3c-2c9ee29ec4a1" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_09a8aeb1-c95f-43dd-b869-70d906fca673" xlink:to="loc_srt_RangeAxis_e817cb15-85cf-4b4d-bf3c-2c9ee29ec4a1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_e817cb15-85cf-4b4d-bf3c-2c9ee29ec4a1_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_e817cb15-85cf-4b4d-bf3c-2c9ee29ec4a1" xlink:to="loc_srt_RangeMember_e817cb15-85cf-4b4d-bf3c-2c9ee29ec4a1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_e07b87ff-7a38-4f46-8014-43c814be0bcf" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_e817cb15-85cf-4b4d-bf3c-2c9ee29ec4a1" xlink:to="loc_srt_RangeMember_e07b87ff-7a38-4f46-8014-43c814be0bcf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_2c9114f8-5250-45fb-b98a-b9f89bc2b534" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_e07b87ff-7a38-4f46-8014-43c814be0bcf" xlink:to="loc_srt_MinimumMember_2c9114f8-5250-45fb-b98a-b9f89bc2b534" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_cc483865-f489-4c3d-8279-cfa354695367" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_09a8aeb1-c95f-43dd-b869-70d906fca673" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_cc483865-f489-4c3d-8279-cfa354695367" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_cc483865-f489-4c3d-8279-cfa354695367_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_cc483865-f489-4c3d-8279-cfa354695367" xlink:to="loc_us-gaap_SegmentDomain_cc483865-f489-4c3d-8279-cfa354695367_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_5576d0f0-9b1b-45bc-b5ae-2350314e9a10" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_cc483865-f489-4c3d-8279-cfa354695367" xlink:to="loc_us-gaap_SegmentDomain_5576d0f0-9b1b-45bc-b5ae-2350314e9a10" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_CorporateSegmentPrivateSectorBusinessMember_8bd446b2-6202-462c-936b-ee70c1bce1d7" xlink:href="cdw-20250930.xsd#cdw_CorporateSegmentPrivateSectorBusinessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_5576d0f0-9b1b-45bc-b5ae-2350314e9a10" xlink:to="loc_cdw_CorporateSegmentPrivateSectorBusinessMember_8bd446b2-6202-462c-936b-ee70c1bce1d7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfReportableSegments_76e51d9b-0f2a-4037-b149-c6fec7a7b94a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NumberOfReportableSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_b7a765fa-2b83-488e-b168-1a76bb81e257" xlink:to="loc_us-gaap_NumberOfReportableSegments_76e51d9b-0f2a-4037-b149-c6fec7a7b94a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_NumberOfOperatingSegmentsReportableUnitQuantitativeThresholdNotMet_b1d84e14-f027-4755-b3bb-875b714b970b" xlink:href="cdw-20250930.xsd#cdw_NumberOfOperatingSegmentsReportableUnitQuantitativeThresholdNotMet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_b7a765fa-2b83-488e-b168-1a76bb81e257" xlink:to="loc_cdw_NumberOfOperatingSegmentsReportableUnitQuantitativeThresholdNotMet_b1d84e14-f027-4755-b3bb-875b714b970b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SegmentReportingCustomerSegmentsCustomerEmployeeHeadcount_3e7f2138-c115-45d6-9f2b-e1ac3018607a" xlink:href="cdw-20250930.xsd#cdw_SegmentReportingCustomerSegmentsCustomerEmployeeHeadcount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_b7a765fa-2b83-488e-b168-1a76bb81e257" xlink:to="loc_cdw_SegmentReportingCustomerSegmentsCustomerEmployeeHeadcount_3e7f2138-c115-45d6-9f2b-e1ac3018607a" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/SegmentInformationScheduleofSegmentInformationDetails" xlink:type="simple" xlink:href="cdw-20250930.xsd#SegmentInformationScheduleofSegmentInformationDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/SegmentInformationScheduleofSegmentInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_9899167a-fe46-4767-8a43-bdd9f377ec6b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_ec0fde3d-0513-4ba6-8b1f-0b7bf8ade860" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_9899167a-fe46-4767-8a43-bdd9f377ec6b" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_ec0fde3d-0513-4ba6-8b1f-0b7bf8ade860" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_09a6f002-fc2b-447a-a0f6-bc8ffe24762b" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_ec0fde3d-0513-4ba6-8b1f-0b7bf8ade860" xlink:to="loc_srt_ConsolidationItemsAxis_09a6f002-fc2b-447a-a0f6-bc8ffe24762b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_09a6f002-fc2b-447a-a0f6-bc8ffe24762b_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_09a6f002-fc2b-447a-a0f6-bc8ffe24762b" xlink:to="loc_srt_ConsolidationItemsDomain_09a6f002-fc2b-447a-a0f6-bc8ffe24762b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_55e34bf9-5cb6-47d1-aa24-27f701e733b6" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_09a6f002-fc2b-447a-a0f6-bc8ffe24762b" xlink:to="loc_srt_ConsolidationItemsDomain_55e34bf9-5cb6-47d1-aa24-27f701e733b6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_f926239d-c818-460d-9597-0ee5a592fdd0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_55e34bf9-5cb6-47d1-aa24-27f701e733b6" xlink:to="loc_us-gaap_OperatingSegmentsMember_f926239d-c818-460d-9597-0ee5a592fdd0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_2e2d4adf-cff7-4675-a870-0e10711582b8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_55e34bf9-5cb6-47d1-aa24-27f701e733b6" xlink:to="loc_us-gaap_CorporateNonSegmentMember_2e2d4adf-cff7-4675-a870-0e10711582b8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_a301ca77-d880-454a-bccc-99bd30c96106" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_ec0fde3d-0513-4ba6-8b1f-0b7bf8ade860" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_a301ca77-d880-454a-bccc-99bd30c96106" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_a301ca77-d880-454a-bccc-99bd30c96106_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_a301ca77-d880-454a-bccc-99bd30c96106" xlink:to="loc_us-gaap_SegmentDomain_a301ca77-d880-454a-bccc-99bd30c96106_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_842c8052-a304-4828-a2df-4f329a9df5e3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_a301ca77-d880-454a-bccc-99bd30c96106" xlink:to="loc_us-gaap_SegmentDomain_842c8052-a304-4828-a2df-4f329a9df5e3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_CorporateSegmentPrivateSectorBusinessMember_f5f73b3b-0a42-4594-97be-e8e9ed61c7e9" xlink:href="cdw-20250930.xsd#cdw_CorporateSegmentPrivateSectorBusinessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_842c8052-a304-4828-a2df-4f329a9df5e3" xlink:to="loc_cdw_CorporateSegmentPrivateSectorBusinessMember_f5f73b3b-0a42-4594-97be-e8e9ed61c7e9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SmallBusinessMember_c0beb653-0215-4cf8-8015-13fd6e056581" xlink:href="cdw-20250930.xsd#cdw_SmallBusinessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_842c8052-a304-4828-a2df-4f329a9df5e3" xlink:to="loc_cdw_SmallBusinessMember_c0beb653-0215-4cf8-8015-13fd6e056581" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_PublicSegmentGovernmentAgenciesEducationandHealthcareMember_df2b9ca8-274b-49e5-8dc4-6721dff80652" xlink:href="cdw-20250930.xsd#cdw_PublicSegmentGovernmentAgenciesEducationandHealthcareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_842c8052-a304-4828-a2df-4f329a9df5e3" xlink:to="loc_cdw_PublicSegmentGovernmentAgenciesEducationandHealthcareMember_df2b9ca8-274b-49e5-8dc4-6721dff80652" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllOtherSegmentsMember_cd41d683-b879-4aa7-8391-394bf2e51923" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AllOtherSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_842c8052-a304-4828-a2df-4f329a9df5e3" xlink:to="loc_us-gaap_AllOtherSegmentsMember_cd41d683-b879-4aa7-8391-394bf2e51923" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_19787722-0095-4a57-bdf2-4b542b77dd4f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_9899167a-fe46-4767-8a43-bdd9f377ec6b" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_19787722-0095-4a57-bdf2-4b542b77dd4f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_97b98ba5-4fea-4781-b08e-1d7f0a307d98" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_9899167a-fe46-4767-8a43-bdd9f377ec6b" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_97b98ba5-4fea-4781-b08e-1d7f0a307d98" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_07add3ac-ae36-4715-b78d-fcd08374e71c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GrossProfit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_9899167a-fe46-4767-8a43-bdd9f377ec6b" xlink:to="loc_us-gaap_GrossProfit_07add3ac-ae36-4715-b78d-fcd08374e71c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingOtherItemAmount_56004afe-04d3-415c-866e-498a1d39f465" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentReportingOtherItemAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_9899167a-fe46-4767-8a43-bdd9f377ec6b" xlink:to="loc_us-gaap_SegmentReportingOtherItemAmount_56004afe-04d3-415c-866e-498a1d39f465" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_cc65a44e-efcc-48fd-84ec-31a647020957" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_9899167a-fe46-4767-8a43-bdd9f377ec6b" xlink:to="loc_us-gaap_OperatingIncomeLoss_cc65a44e-efcc-48fd-84ec-31a647020957" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_815cb1e5-3c5a-4992-b0a7-3206f9490762" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_9899167a-fe46-4767-8a43-bdd9f377ec6b" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_815cb1e5-3c5a-4992-b0a7-3206f9490762" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/SegmentInformationScheduleofDisaggregationofRevenueDetails" xlink:type="simple" xlink:href="cdw-20250930.xsd#SegmentInformationScheduleofDisaggregationofRevenueDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/SegmentInformationScheduleofDisaggregationofRevenueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_fc27dece-8187-4cc6-8ea9-4c0520bf41cd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_a2588d76-8b6c-4784-81f2-d735de9ac58f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_fc27dece-8187-4cc6-8ea9-4c0520bf41cd" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_a2588d76-8b6c-4784-81f2-d735de9ac58f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_d29f2275-f4f9-4e5f-893a-ea96e2ecffab" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_a2588d76-8b6c-4784-81f2-d735de9ac58f" xlink:to="loc_srt_StatementGeographicalAxis_d29f2275-f4f9-4e5f-893a-ea96e2ecffab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_d29f2275-f4f9-4e5f-893a-ea96e2ecffab_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_d29f2275-f4f9-4e5f-893a-ea96e2ecffab" xlink:to="loc_srt_SegmentGeographicalDomain_d29f2275-f4f9-4e5f-893a-ea96e2ecffab_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_5fd80b28-3fa3-4e08-af44-ff39e539693b" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_d29f2275-f4f9-4e5f-893a-ea96e2ecffab" xlink:to="loc_srt_SegmentGeographicalDomain_5fd80b28-3fa3-4e08-af44-ff39e539693b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_24759220-c9b8-4741-90c2-c8d19dc3a241" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_5fd80b28-3fa3-4e08-af44-ff39e539693b" xlink:to="loc_country_US_24759220-c9b8-4741-90c2-c8d19dc3a241" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonUsMember_991c82d8-d3bd-4658-9abf-be1b49cd67b6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NonUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_5fd80b28-3fa3-4e08-af44-ff39e539693b" xlink:to="loc_us-gaap_NonUsMember_991c82d8-d3bd-4658-9abf-be1b49cd67b6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_f65542d6-f183-4e75-8c20-836f7e76bce7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_a2588d76-8b6c-4784-81f2-d735de9ac58f" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_f65542d6-f183-4e75-8c20-836f7e76bce7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_f65542d6-f183-4e75-8c20-836f7e76bce7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_f65542d6-f183-4e75-8c20-836f7e76bce7" xlink:to="loc_us-gaap_SegmentDomain_f65542d6-f183-4e75-8c20-836f7e76bce7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_8c535e54-75fd-4e3f-b33e-ccf6ddb7aa23" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_f65542d6-f183-4e75-8c20-836f7e76bce7" xlink:to="loc_us-gaap_SegmentDomain_8c535e54-75fd-4e3f-b33e-ccf6ddb7aa23" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_CorporateSegmentPrivateSectorBusinessMember_d318a8cb-e1c0-4474-afbe-7820d0c49fd4" xlink:href="cdw-20250930.xsd#cdw_CorporateSegmentPrivateSectorBusinessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8c535e54-75fd-4e3f-b33e-ccf6ddb7aa23" xlink:to="loc_cdw_CorporateSegmentPrivateSectorBusinessMember_d318a8cb-e1c0-4474-afbe-7820d0c49fd4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SmallBusinessMember_eee1542f-6fb6-46ab-a605-d1abc01fa20d" xlink:href="cdw-20250930.xsd#cdw_SmallBusinessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8c535e54-75fd-4e3f-b33e-ccf6ddb7aa23" xlink:to="loc_cdw_SmallBusinessMember_eee1542f-6fb6-46ab-a605-d1abc01fa20d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_PublicSegmentGovernmentAgenciesEducationandHealthcareMember_9014dff7-4ff7-4d72-a329-883d64811ed4" xlink:href="cdw-20250930.xsd#cdw_PublicSegmentGovernmentAgenciesEducationandHealthcareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8c535e54-75fd-4e3f-b33e-ccf6ddb7aa23" xlink:to="loc_cdw_PublicSegmentGovernmentAgenciesEducationandHealthcareMember_9014dff7-4ff7-4d72-a329-883d64811ed4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllOtherSegmentsMember_6fb6d26a-e6a7-4161-ad13-b9a0acdeca57" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AllOtherSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8c535e54-75fd-4e3f-b33e-ccf6ddb7aa23" xlink:to="loc_us-gaap_AllOtherSegmentsMember_6fb6d26a-e6a7-4161-ad13-b9a0acdeca57" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_7bb5ea14-af5d-4149-bf0f-d357cc270a9e" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_a2588d76-8b6c-4784-81f2-d735de9ac58f" xlink:to="loc_srt_ProductOrServiceAxis_7bb5ea14-af5d-4149-bf0f-d357cc270a9e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_7bb5ea14-af5d-4149-bf0f-d357cc270a9e_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_7bb5ea14-af5d-4149-bf0f-d357cc270a9e" xlink:to="loc_srt_ProductsAndServicesDomain_7bb5ea14-af5d-4149-bf0f-d357cc270a9e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_4556ce61-b875-4981-90a0-5529549d4e81" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_7bb5ea14-af5d-4149-bf0f-d357cc270a9e" xlink:to="loc_srt_ProductsAndServicesDomain_4556ce61-b875-4981-90a0-5529549d4e81" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_TotalHardwareMember_2576520b-d6a7-4b76-90a2-e81d58d2970b" xlink:href="cdw-20250930.xsd#cdw_TotalHardwareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_4556ce61-b875-4981-90a0-5529549d4e81" xlink:to="loc_cdw_TotalHardwareMember_2576520b-d6a7-4b76-90a2-e81d58d2970b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SoftwareProductsMember_7b97665e-00c8-4e4c-b000-abf59a8bb9f3" xlink:href="cdw-20250930.xsd#cdw_SoftwareProductsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_4556ce61-b875-4981-90a0-5529549d4e81" xlink:to="loc_cdw_SoftwareProductsMember_7b97665e-00c8-4e4c-b000-abf59a8bb9f3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_ServicesMember_7b223c46-247c-46a5-891a-09c14f254b27" xlink:href="cdw-20250930.xsd#cdw_ServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_4556ce61-b875-4981-90a0-5529549d4e81" xlink:to="loc_cdw_ServicesMember_7b223c46-247c-46a5-891a-09c14f254b27" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_OtherProductsAndServicesMember_4c6c0463-4e1e-4743-8585-b69980e8965b" xlink:href="cdw-20250930.xsd#cdw_OtherProductsAndServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_4556ce61-b875-4981-90a0-5529549d4e81" xlink:to="loc_cdw_OtherProductsAndServicesMember_4c6c0463-4e1e-4743-8585-b69980e8965b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelAxis_365a4363-a943-4443-8b8d-75c8b1b7f56f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerSalesChannelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_a2588d76-8b6c-4784-81f2-d735de9ac58f" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelAxis_365a4363-a943-4443-8b8d-75c8b1b7f56f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_365a4363-a943-4443-8b8d-75c8b1b7f56f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerSalesChannelDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_365a4363-a943-4443-8b8d-75c8b1b7f56f" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_365a4363-a943-4443-8b8d-75c8b1b7f56f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_81b2c710-674b-4a0d-8707-9b104cdfa5a5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerSalesChannelDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_365a4363-a943-4443-8b8d-75c8b1b7f56f" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_81b2c710-674b-4a0d-8707-9b104cdfa5a5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SalesChannelCorporateMember_aace2950-4586-4219-9474-5d08b4943c75" xlink:href="cdw-20250930.xsd#cdw_SalesChannelCorporateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_81b2c710-674b-4a0d-8707-9b104cdfa5a5" xlink:to="loc_cdw_SalesChannelCorporateMember_aace2950-4586-4219-9474-5d08b4943c75" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SalesChannelSmallBusinessMember_9cad6372-9e8f-4753-9d1e-dad89e29c670" xlink:href="cdw-20250930.xsd#cdw_SalesChannelSmallBusinessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_81b2c710-674b-4a0d-8707-9b104cdfa5a5" xlink:to="loc_cdw_SalesChannelSmallBusinessMember_9cad6372-9e8f-4753-9d1e-dad89e29c670" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SalesChannelGovernmentMember_65394488-f166-4bcf-a8fd-834588f16d7c" xlink:href="cdw-20250930.xsd#cdw_SalesChannelGovernmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_81b2c710-674b-4a0d-8707-9b104cdfa5a5" xlink:to="loc_cdw_SalesChannelGovernmentMember_65394488-f166-4bcf-a8fd-834588f16d7c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SalesChannelEducationMember_7501705b-3762-401d-a0da-e2a98ca00192" xlink:href="cdw-20250930.xsd#cdw_SalesChannelEducationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_81b2c710-674b-4a0d-8707-9b104cdfa5a5" xlink:to="loc_cdw_SalesChannelEducationMember_7501705b-3762-401d-a0da-e2a98ca00192" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SalesChannelHealthcareMember_8ede50e1-ab9e-4fdc-bb2b-b59eb3756bb6" xlink:href="cdw-20250930.xsd#cdw_SalesChannelHealthcareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_81b2c710-674b-4a0d-8707-9b104cdfa5a5" xlink:to="loc_cdw_SalesChannelHealthcareMember_8ede50e1-ab9e-4fdc-bb2b-b59eb3756bb6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SalesChannelOtherMember_db6091e7-7207-4e31-85dc-345cae6ab2d2" xlink:href="cdw-20250930.xsd#cdw_SalesChannelOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_81b2c710-674b-4a0d-8707-9b104cdfa5a5" xlink:to="loc_cdw_SalesChannelOtherMember_db6091e7-7207-4e31-85dc-345cae6ab2d2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_7209a988-ac8d-4895-ac4d-636d643a0904" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimingOfTransferOfGoodOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_a2588d76-8b6c-4784-81f2-d735de9ac58f" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_7209a988-ac8d-4895-ac4d-636d643a0904" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_7209a988-ac8d-4895-ac4d-636d643a0904_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimingOfTransferOfGoodOrServiceDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_7209a988-ac8d-4895-ac4d-636d643a0904" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_7209a988-ac8d-4895-ac4d-636d643a0904_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_17a32968-6ffc-46b6-9d40-f66b1e5422e3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimingOfTransferOfGoodOrServiceDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_7209a988-ac8d-4895-ac4d-636d643a0904" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_17a32968-6ffc-46b6-9d40-f66b1e5422e3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_TransferredAtPointInTimePrincipalMember_4c973557-8bb5-4b86-bfd8-d56415c4bc46" xlink:href="cdw-20250930.xsd#cdw_TransferredAtPointInTimePrincipalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_17a32968-6ffc-46b6-9d40-f66b1e5422e3" xlink:to="loc_cdw_TransferredAtPointInTimePrincipalMember_4c973557-8bb5-4b86-bfd8-d56415c4bc46" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_TransferredAtPointInTimeAgentMember_7e08e949-8da3-47c5-9e36-6689532d25c9" xlink:href="cdw-20250930.xsd#cdw_TransferredAtPointInTimeAgentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_17a32968-6ffc-46b6-9d40-f66b1e5422e3" xlink:to="loc_cdw_TransferredAtPointInTimeAgentMember_7e08e949-8da3-47c5-9e36-6689532d25c9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_TransferredOverTimePrincipalMember_09736cf8-6620-4671-9045-c93a29ec6bba" xlink:href="cdw-20250930.xsd#cdw_TransferredOverTimePrincipalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_17a32968-6ffc-46b6-9d40-f66b1e5422e3" xlink:to="loc_cdw_TransferredOverTimePrincipalMember_09736cf8-6620-4671-9045-c93a29ec6bba" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_7b98e823-2b7f-4bc4-b0f9-323ddca532f5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_fc27dece-8187-4cc6-8ea9-4c0520bf41cd" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_7b98e823-2b7f-4bc4-b0f9-323ddca532f5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_RevenueNetByProductAndServicePercentage_f91c828d-8abb-40e4-aafb-0cc14b01bef9" xlink:href="cdw-20250930.xsd#cdw_RevenueNetByProductAndServicePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_fc27dece-8187-4cc6-8ea9-4c0520bf41cd" xlink:to="loc_cdw_RevenueNetByProductAndServicePercentage_f91c828d-8abb-40e4-aafb-0cc14b01bef9" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.cdw.com/role/SegmentInformationScheduleofProductsandServicesDetails" xlink:type="simple" xlink:href="cdw-20250930.xsd#SegmentInformationScheduleofProductsandServicesDetails"/>
  <link:definitionLink xlink:role="http://www.cdw.com/role/SegmentInformationScheduleofProductsandServicesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_e5616776-197d-4c91-b56a-85469ee7d03a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_d86b9d86-dfc6-4748-bbf0-8f9265c818a6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_e5616776-197d-4c91-b56a-85469ee7d03a" xlink:to="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_d86b9d86-dfc6-4748-bbf0-8f9265c818a6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_48e27d0f-bf1b-4143-8f6c-10b459dddbfa" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_d86b9d86-dfc6-4748-bbf0-8f9265c818a6" xlink:to="loc_srt_ProductOrServiceAxis_48e27d0f-bf1b-4143-8f6c-10b459dddbfa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_48e27d0f-bf1b-4143-8f6c-10b459dddbfa_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_48e27d0f-bf1b-4143-8f6c-10b459dddbfa" xlink:to="loc_srt_ProductsAndServicesDomain_48e27d0f-bf1b-4143-8f6c-10b459dddbfa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_2ce73e8e-642f-4127-aba7-84045dbb2c53" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_48e27d0f-bf1b-4143-8f6c-10b459dddbfa" xlink:to="loc_srt_ProductsAndServicesDomain_2ce73e8e-642f-4127-aba7-84045dbb2c53" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_NotebooksMobileDevicesMember_be095529-2ec2-4d09-8474-39496e52a5dc" xlink:href="cdw-20250930.xsd#cdw_NotebooksMobileDevicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_2ce73e8e-642f-4127-aba7-84045dbb2c53" xlink:to="loc_cdw_NotebooksMobileDevicesMember_be095529-2ec2-4d09-8474-39496e52a5dc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_NetcommProductsMember_847f79eb-0175-4c2a-8d1a-fc02f128e633" xlink:href="cdw-20250930.xsd#cdw_NetcommProductsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_2ce73e8e-642f-4127-aba7-84045dbb2c53" xlink:to="loc_cdw_NetcommProductsMember_847f79eb-0175-4c2a-8d1a-fc02f128e633" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_CollaborationMember_a623b5aa-41a4-4c75-b03d-27b0b6e136f0" xlink:href="cdw-20250930.xsd#cdw_CollaborationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_2ce73e8e-642f-4127-aba7-84045dbb2c53" xlink:to="loc_cdw_CollaborationMember_a623b5aa-41a4-4c75-b03d-27b0b6e136f0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_DataStorageAndServersMember_a1cc88c2-4a8a-462c-b674-4505b112051c" xlink:href="cdw-20250930.xsd#cdw_DataStorageAndServersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_2ce73e8e-642f-4127-aba7-84045dbb2c53" xlink:to="loc_cdw_DataStorageAndServersMember_a1cc88c2-4a8a-462c-b674-4505b112051c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_DesktopsMember_6063d8d9-fb26-4521-9bd5-f585e002fa68" xlink:href="cdw-20250930.xsd#cdw_DesktopsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_2ce73e8e-642f-4127-aba7-84045dbb2c53" xlink:to="loc_cdw_DesktopsMember_6063d8d9-fb26-4521-9bd5-f585e002fa68" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_OtherHardwareMember_0f43ddd7-3ad6-48ee-a995-44414e3b4371" xlink:href="cdw-20250930.xsd#cdw_OtherHardwareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_2ce73e8e-642f-4127-aba7-84045dbb2c53" xlink:to="loc_cdw_OtherHardwareMember_0f43ddd7-3ad6-48ee-a995-44414e3b4371" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_TotalHardwareMember_ec6b05ac-b119-4a11-b288-f374d1aa7a16" xlink:href="cdw-20250930.xsd#cdw_TotalHardwareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_2ce73e8e-642f-4127-aba7-84045dbb2c53" xlink:to="loc_cdw_TotalHardwareMember_ec6b05ac-b119-4a11-b288-f374d1aa7a16" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_SoftwareProductsMember_7508344d-283e-4216-94ef-5f2a36fb14af" xlink:href="cdw-20250930.xsd#cdw_SoftwareProductsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_2ce73e8e-642f-4127-aba7-84045dbb2c53" xlink:to="loc_cdw_SoftwareProductsMember_7508344d-283e-4216-94ef-5f2a36fb14af" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_ServicesMember_90d02d32-3ab8-41cb-9686-ac392955d1a7" xlink:href="cdw-20250930.xsd#cdw_ServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_2ce73e8e-642f-4127-aba7-84045dbb2c53" xlink:to="loc_cdw_ServicesMember_90d02d32-3ab8-41cb-9686-ac392955d1a7" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_OtherProductsAndServicesMember_8be3735e-bf25-43f0-8da8-9b04e6a2d223" xlink:href="cdw-20250930.xsd#cdw_OtherProductsAndServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_2ce73e8e-642f-4127-aba7-84045dbb2c53" xlink:to="loc_cdw_OtherProductsAndServicesMember_8be3735e-bf25-43f0-8da8-9b04e6a2d223" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_b983d479-960d-4a52-a361-52f860e1f940" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_e5616776-197d-4c91-b56a-85469ee7d03a" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_b983d479-960d-4a52-a361-52f860e1f940" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_RevenueNetByProductAndServicePercentage_9eb9eff8-ca8e-4592-984c-b132a8e88fae" xlink:href="cdw-20250930.xsd#cdw_RevenueNetByProductAndServicePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_e5616776-197d-4c91-b56a-85469ee7d03a" xlink:to="loc_cdw_RevenueNetByProductAndServicePercentage_9eb9eff8-ca8e-4592-984c-b132a8e88fae" xlink:type="arc" order="1"/>
  </link:definitionLink>
</link:linkbase>
