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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:2190da26-96f1-4390-b599-aac039ff7d62,g:6960195e-859d-4c30-acaa-4a495118ab82-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:roleRef roleURI="http://www.cdw.com/role/ConsolidatedBalanceSheets" xlink:type="simple" xlink:href="cdw-20220630.xsd#ConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.cdw.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_346c67fd-df31-4b68-a39c-fed7ab1be335" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_982df18c-a854-4bd7-96ff-65e1dec0594c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_346c67fd-df31-4b68-a39c-fed7ab1be335" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_982df18c-a854-4bd7-96ff-65e1dec0594c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_eb44798a-9130-4669-ac6e-2f2cfe534473" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_346c67fd-df31-4b68-a39c-fed7ab1be335" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_eb44798a-9130-4669-ac6e-2f2cfe534473" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_d7c6c8a3-c7df-44d0-81b7-17f524bde8b4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_346c67fd-df31-4b68-a39c-fed7ab1be335" xlink:to="loc_us-gaap_InventoryNet_d7c6c8a3-c7df-44d0-81b7-17f524bde8b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherReceivablesNetCurrent_18c17a27-7c15-457a-9d93-414fd2355a40" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherReceivablesNetCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_346c67fd-df31-4b68-a39c-fed7ab1be335" xlink:to="loc_us-gaap_OtherReceivablesNetCurrent_18c17a27-7c15-457a-9d93-414fd2355a40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_d81fe723-64ec-48e3-9587-326cae560119" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_346c67fd-df31-4b68-a39c-fed7ab1be335" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_d81fe723-64ec-48e3-9587-326cae560119" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesNoncurrent_58631091-d7c7-4743-9fe2-14c5c4bb332a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_fcce7649-f0f4-466b-ad91-806db05dd65b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesNoncurrent_58631091-d7c7-4743-9fe2-14c5c4bb332a" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_fcce7649-f0f4-466b-ad91-806db05dd65b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_0d83b9d2-2b07-41a2-b252-97c8f9baddaa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesNoncurrent_58631091-d7c7-4743-9fe2-14c5c4bb332a" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_0d83b9d2-2b07-41a2-b252-97c8f9baddaa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_a522e730-8f91-425e-9ad9-3b4e85bfe44a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesNoncurrent_58631091-d7c7-4743-9fe2-14c5c4bb332a" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_a522e730-8f91-425e-9ad9-3b4e85bfe44a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_bba724f7-cba0-49c7-aaf7-b6d6b6cbaa71" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesNoncurrent_58631091-d7c7-4743-9fe2-14c5c4bb332a" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_bba724f7-cba0-49c7-aaf7-b6d6b6cbaa71" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_54e270b8-e054-4986-a41c-c8822a41838d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_c1b17be6-d6eb-4362-9433-4cadf5ae03a8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_54e270b8-e054-4986-a41c-c8822a41838d" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_c1b17be6-d6eb-4362-9433-4cadf5ae03a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_cdc2bd1b-2308-456a-a625-a372e1b6f1f4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_54e270b8-e054-4986-a41c-c8822a41838d" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_cdc2bd1b-2308-456a-a625-a372e1b6f1f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_fcba81a9-20d4-47fb-ac5c-62d152bb55b8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_54e270b8-e054-4986-a41c-c8822a41838d" xlink:to="loc_us-gaap_Goodwill_fcba81a9-20d4-47fb-ac5c-62d152bb55b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_738e5650-0d62-4c82-933e-66ed23eee397" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_54e270b8-e054-4986-a41c-c8822a41838d" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_738e5650-0d62-4c82-933e-66ed23eee397" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_bb6cd96e-19ae-4a5a-bd52-448103bee2d2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_54e270b8-e054-4986-a41c-c8822a41838d" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_bb6cd96e-19ae-4a5a-bd52-448103bee2d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_3897cc79-4e20-4ed7-a67d-fa28598c9d4b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_54e270b8-e054-4986-a41c-c8822a41838d" xlink:to="loc_us-gaap_AssetsCurrent_3897cc79-4e20-4ed7-a67d-fa28598c9d4b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_0b790919-1e1b-46ab-9f20-a35158cabe04" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_d57e49f0-1b42-4a07-93f7-69b23e7ef531" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_0b790919-1e1b-46ab-9f20-a35158cabe04" xlink:to="loc_us-gaap_LiabilitiesCurrent_d57e49f0-1b42-4a07-93f7-69b23e7ef531" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesNoncurrent_4768a5de-4ce8-4fe7-8cd1-b1c34db9089a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_0b790919-1e1b-46ab-9f20-a35158cabe04" xlink:to="loc_us-gaap_LiabilitiesNoncurrent_4768a5de-4ce8-4fe7-8cd1-b1c34db9089a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_0294188d-be64-44dc-be83-88ef2e75688f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_0b790919-1e1b-46ab-9f20-a35158cabe04" xlink:to="loc_us-gaap_CommitmentsAndContingencies_0294188d-be64-44dc-be83-88ef2e75688f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_20cbcbe7-9789-4e00-b323-18d67808ee23" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_0b790919-1e1b-46ab-9f20-a35158cabe04" xlink:to="loc_us-gaap_StockholdersEquity_20cbcbe7-9789-4e00-b323-18d67808ee23" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_59cab224-8185-4f05-b719-3971b45aa035" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_504dedc7-d88a-429d-9ab3-76cfd465ef1c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_59cab224-8185-4f05-b719-3971b45aa035" xlink:to="loc_us-gaap_PreferredStockValue_504dedc7-d88a-429d-9ab3-76cfd465ef1c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_f46158ea-71a1-41dd-983d-ae08b003a808" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_59cab224-8185-4f05-b719-3971b45aa035" xlink:to="loc_us-gaap_CommonStockValue_f46158ea-71a1-41dd-983d-ae08b003a808" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_ccca3ee3-1b13-4410-8f9f-49d3f450cedb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_59cab224-8185-4f05-b719-3971b45aa035" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_ccca3ee3-1b13-4410-8f9f-49d3f450cedb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_9b98cf5d-0745-4f33-8f73-7408b6b2ec1f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_59cab224-8185-4f05-b719-3971b45aa035" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_9b98cf5d-0745-4f33-8f73-7408b6b2ec1f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_8ed1c95e-1bb5-4af6-a1bb-470c5545e329" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_59cab224-8185-4f05-b719-3971b45aa035" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_8ed1c95e-1bb5-4af6-a1bb-470c5545e329" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_d6bd9522-f4ca-4256-8ba2-f2a5e984bedc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableTradeCurrent_d9644fcf-3f10-4562-84b1-bec6b9f984c2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsPayableTradeCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_d6bd9522-f4ca-4256-8ba2-f2a5e984bedc" xlink:to="loc_us-gaap_AccountsPayableTradeCurrent_d9644fcf-3f10-4562-84b1-bec6b9f984c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_b6bdcc5c-0bd8-4733-abf1-16e2c270e15e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_d6bd9522-f4ca-4256-8ba2-f2a5e984bedc" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_b6bdcc5c-0bd8-4733-abf1-16e2c270e15e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedAdvertisingCurrent_37468070-4887-4cb4-8bff-d59ee39bdada" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedAdvertisingCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_d6bd9522-f4ca-4256-8ba2-f2a5e984bedc" xlink:to="loc_us-gaap_AccruedAdvertisingCurrent_37468070-4887-4cb4-8bff-d59ee39bdada" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_6e1099f0-8570-4b39-b717-34f9984f6450" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_d6bd9522-f4ca-4256-8ba2-f2a5e984bedc" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_6e1099f0-8570-4b39-b717-34f9984f6450" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_54e887f1-d8cb-4e75-a298-f11d0066ee18" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedIncomeTaxesCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_d6bd9522-f4ca-4256-8ba2-f2a5e984bedc" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_54e887f1-d8cb-4e75-a298-f11d0066ee18" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_279853c3-ba27-4867-b681-d47f84cb1d93" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_d6bd9522-f4ca-4256-8ba2-f2a5e984bedc" xlink:to="loc_us-gaap_LongTermDebtCurrent_279853c3-ba27-4867-b681-d47f84cb1d93" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_AccountsPayableInventoryFinancing_12ab1375-1af7-4bd7-ab35-566af25e2781" xlink:href="cdw-20220630.xsd#cdw_AccountsPayableInventoryFinancing"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_d6bd9522-f4ca-4256-8ba2-f2a5e984bedc" xlink:to="loc_cdw_AccountsPayableInventoryFinancing_12ab1375-1af7-4bd7-ab35-566af25e2781" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_80784e41-0420-4dbb-9cfb-b98156e5d744" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContractWithCustomerLiabilityCurrent"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_d6bd9522-f4ca-4256-8ba2-f2a5e984bedc" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_80784e41-0420-4dbb-9cfb-b98156e5d744" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.cdw.com/role/ConsolidatedStatementsOfOperations" xlink:type="simple" xlink:href="cdw-20220630.xsd#ConsolidatedStatementsOfOperations"/>
  <link:calculationLink xlink:role="http://www.cdw.com/role/ConsolidatedStatementsOfOperations" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_a16b44f2-74ae-4585-a4cd-054dbbbd6a30" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_7fcbf8d7-888d-419c-a629-0eda22fd4695" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_a16b44f2-74ae-4585-a4cd-054dbbbd6a30" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_7fcbf8d7-888d-419c-a629-0eda22fd4695" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_d17bf8ea-5935-4591-80d1-df62f83ee4af" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_a16b44f2-74ae-4585-a4cd-054dbbbd6a30" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_d17bf8ea-5935-4591-80d1-df62f83ee4af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_20eec3b1-292b-461f-ac99-2705575f7efc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_f8236d95-972b-4fc5-8da2-7e2dee3b7dfb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GrossProfit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_20eec3b1-292b-461f-ac99-2705575f7efc" xlink:to="loc_us-gaap_GrossProfit_f8236d95-972b-4fc5-8da2-7e2dee3b7dfb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_363e2e2f-3d64-4957-8e3f-aa5a1b6eeca7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_20eec3b1-292b-461f-ac99-2705575f7efc" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_363e2e2f-3d64-4957-8e3f-aa5a1b6eeca7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c01615ea-5e3a-4733-b098-aee729ca23b4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_99308fda-bb8c-4528-80f9-fc17153cd390" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c01615ea-5e3a-4733-b098-aee729ca23b4" xlink:to="loc_us-gaap_OperatingIncomeLoss_99308fda-bb8c-4528-80f9-fc17153cd390" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_683373d7-e692-44eb-976c-e911776a26b1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c01615ea-5e3a-4733-b098-aee729ca23b4" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_683373d7-e692-44eb-976c-e911776a26b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_89531c2c-fa29-4d3a-9f4c-fbbf5ca519c8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c01615ea-5e3a-4733-b098-aee729ca23b4" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_89531c2c-fa29-4d3a-9f4c-fbbf5ca519c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_41004cc2-0570-4b4c-936b-c49977e6e947" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_4738c6fa-9a69-4245-a8ae-e35157652842" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_41004cc2-0570-4b4c-936b-c49977e6e947" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_4738c6fa-9a69-4245-a8ae-e35157652842" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_5f037234-f7dc-43ec-aea6-1ab03b406c74" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_41004cc2-0570-4b4c-936b-c49977e6e947" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_5f037234-f7dc-43ec-aea6-1ab03b406c74" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.cdw.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" xlink:href="cdw-20220630.xsd#ConsolidatedStatementsOfComprehensiveIncome"/>
  <link:calculationLink xlink:role="http://www.cdw.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_e75d05e8-f51b-407c-ae0c-f653b6020cb6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_d0c87ce6-8c61-498b-99a5-6bfeb32f5766" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_e75d05e8-f51b-407c-ae0c-f653b6020cb6" xlink:to="loc_us-gaap_NetIncomeLoss_d0c87ce6-8c61-498b-99a5-6bfeb32f5766" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_1f69ab8f-1507-4911-ae7a-bb86c30c1341" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_e75d05e8-f51b-407c-ae0c-f653b6020cb6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_1f69ab8f-1507-4911-ae7a-bb86c30c1341" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_c6f85158-52a9-48b3-84fc-457adec69c35" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_fe23d742-9fa4-49bd-a472-1ee3f2d339ab" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_c6f85158-52a9-48b3-84fc-457adec69c35" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_fe23d742-9fa4-49bd-a472-1ee3f2d339ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_d536d494-be5e-4b1f-b44f-0594be6cc0cd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_c6f85158-52a9-48b3-84fc-457adec69c35" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_d536d494-be5e-4b1f-b44f-0594be6cc0cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_43a9d75b-a1fc-48dd-a791-6209bf430228" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_c6f85158-52a9-48b3-84fc-457adec69c35" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_43a9d75b-a1fc-48dd-a791-6209bf430228" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.cdw.com/role/ConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="cdw-20220630.xsd#ConsolidatedStatementsofCashFlows"/>
  <link:calculationLink xlink:role="http://www.cdw.com/role/ConsolidatedStatementsofCashFlows" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9aa27c3a-73f3-418f-bb58-3ffcdea085c8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e36f9f29-c294-4f19-beb6-eed4f1373197" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9aa27c3a-73f3-418f-bb58-3ffcdea085c8" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e36f9f29-c294-4f19-beb6-eed4f1373197" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a4953f84-9bb5-499f-b783-ac98bf9d3d6c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9aa27c3a-73f3-418f-bb58-3ffcdea085c8" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a4953f84-9bb5-499f-b783-ac98bf9d3d6c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_623b3a70-44d3-4451-8db9-8a8c87932732" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9aa27c3a-73f3-418f-bb58-3ffcdea085c8" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_623b3a70-44d3-4451-8db9-8a8c87932732" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_0476bbc0-ae56-45e6-96b9-c6b93d95a7b4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9aa27c3a-73f3-418f-bb58-3ffcdea085c8" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_0476bbc0-ae56-45e6-96b9-c6b93d95a7b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_83b8bf4d-2d37-4479-9251-5447e3d48ab8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_9b614e9b-a3f0-4665-9348-b91a2024e124" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_83b8bf4d-2d37-4479-9251-5447e3d48ab8" xlink:to="loc_us-gaap_NetIncomeLoss_9b614e9b-a3f0-4665-9348-b91a2024e124" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAmortizationAndAccretionNet_7634b5fd-426a-4399-b1fd-040b8ec3c8cb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DepreciationAmortizationAndAccretionNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_83b8bf4d-2d37-4479-9251-5447e3d48ab8" xlink:to="loc_us-gaap_DepreciationAmortizationAndAccretionNet_7634b5fd-426a-4399-b1fd-040b8ec3c8cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_970f3b0e-898b-4d95-8a8b-6fac356c4719" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_83b8bf4d-2d37-4479-9251-5447e3d48ab8" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_970f3b0e-898b-4d95-8a8b-6fac356c4719" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInDeferredIncomeTaxes_9d49b34f-953d-42d8-8498-96ee0d4b9f02" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInDeferredIncomeTaxes"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_83b8bf4d-2d37-4479-9251-5447e3d48ab8" xlink:to="loc_us-gaap_IncreaseDecreaseInDeferredIncomeTaxes_9d49b34f-953d-42d8-8498-96ee0d4b9f02" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_a397793e-5a1d-45de-9386-efe72987bf9f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProvisionForDoubtfulAccounts"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_83b8bf4d-2d37-4479-9251-5447e3d48ab8" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_a397793e-5a1d-45de-9386-efe72987bf9f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_96cd0cd5-0e3f-4b11-aecb-fb02c6414bf4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_83b8bf4d-2d37-4479-9251-5447e3d48ab8" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_96cd0cd5-0e3f-4b11-aecb-fb02c6414bf4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_d1f33484-95fd-4b47-9ec6-e670191e37aa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_83b8bf4d-2d37-4479-9251-5447e3d48ab8" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_d1f33484-95fd-4b47-9ec6-e670191e37aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_8d42f53c-2e9f-4fc5-af88-355c6cc8df51" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_83b8bf4d-2d37-4479-9251-5447e3d48ab8" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_8d42f53c-2e9f-4fc5-af88-355c6cc8df51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_83d21abb-4855-4bdf-ab9c-8535781a21e5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_83b8bf4d-2d37-4479-9251-5447e3d48ab8" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_83d21abb-4855-4bdf-ab9c-8535781a21e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_afea7a86-4015-4b78-839e-8b9a48173ccb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsPayableTrade"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_83b8bf4d-2d37-4479-9251-5447e3d48ab8" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableTrade_afea7a86-4015-4b78-839e-8b9a48173ccb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_67f66136-1cc1-4425-88b9-41955cd3f5b2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_83b8bf4d-2d37-4479-9251-5447e3d48ab8" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_67f66136-1cc1-4425-88b9-41955cd3f5b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dbac7d30-940a-4f4e-8b48-90c94152fec3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_c4b6a296-606b-4a5e-a620-be293a985f1f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromLinesOfCredit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dbac7d30-940a-4f4e-8b48-90c94152fec3" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_c4b6a296-606b-4a5e-a620-be293a985f1f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_b0d594b0-79f2-4285-bfc4-335e788393b7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfLinesOfCredit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dbac7d30-940a-4f4e-8b48-90c94152fec3" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_b0d594b0-79f2-4285-bfc4-335e788393b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_1a66d266-49ba-48eb-a009-6ae5e13aad6d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfLongTermDebt"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dbac7d30-940a-4f4e-8b48-90c94152fec3" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_1a66d266-49ba-48eb-a009-6ae5e13aad6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_RepaymentsOfReceivableFinancingLiability_0eae6710-60a6-46e3-80e5-0e29c252bbe7" xlink:href="cdw-20220630.xsd#cdw_RepaymentsOfReceivableFinancingLiability"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dbac7d30-940a-4f4e-8b48-90c94152fec3" xlink:to="loc_cdw_RepaymentsOfReceivableFinancingLiability_0eae6710-60a6-46e3-80e5-0e29c252bbe7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtExtinguishmentCosts_42e013e4-add9-4169-be6a-a10f3da2f3fe" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfDebtExtinguishmentCosts"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dbac7d30-940a-4f4e-8b48-90c94152fec3" xlink:to="loc_us-gaap_PaymentsOfDebtExtinguishmentCosts_42e013e4-add9-4169-be6a-a10f3da2f3fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_NetChangeInAccountsPayableInventoryFinancing_17c9aa02-eaa8-4b1c-a562-d21cc427610e" xlink:href="cdw-20220630.xsd#cdw_NetChangeInAccountsPayableInventoryFinancing"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dbac7d30-940a-4f4e-8b48-90c94152fec3" xlink:to="loc_cdw_NetChangeInAccountsPayableInventoryFinancing_17c9aa02-eaa8-4b1c-a562-d21cc427610e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_FinancingPaymentsForRevenueGeneratingAssets_387baf15-4075-4fcb-a131-f4479cc11843" xlink:href="cdw-20220630.xsd#cdw_FinancingPaymentsForRevenueGeneratingAssets"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dbac7d30-940a-4f4e-8b48-90c94152fec3" xlink:to="loc_cdw_FinancingPaymentsForRevenueGeneratingAssets_387baf15-4075-4fcb-a131-f4479cc11843" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_fcaefd09-daf5-4dca-b136-eeb9b7618a33" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dbac7d30-940a-4f4e-8b48-90c94152fec3" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_fcaefd09-daf5-4dca-b136-eeb9b7618a33" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_7f9b99a5-f5d2-440c-ac94-3361a387d0a4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dbac7d30-940a-4f4e-8b48-90c94152fec3" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_7f9b99a5-f5d2-440c-ac94-3361a387d0a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_53f6e903-4515-4180-ab3f-17542eb20e21" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dbac7d30-940a-4f4e-8b48-90c94152fec3" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_53f6e903-4515-4180-ab3f-17542eb20e21" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_36c81740-bc42-432d-92c5-6ce4ff3858c0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dbac7d30-940a-4f4e-8b48-90c94152fec3" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_36c81740-bc42-432d-92c5-6ce4ff3858c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_9f01b850-7c74-4769-99b9-8742847ecd1f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromPaymentsForOtherFinancingActivities"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dbac7d30-940a-4f4e-8b48-90c94152fec3" xlink:to="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_9f01b850-7c74-4769-99b9-8742847ecd1f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_76072a75-9796-4199-9664-01a520f60878" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_c8db8144-7aaf-45a6-9bd1-349bd626e6c1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_76072a75-9796-4199-9664-01a520f60878" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_c8db8144-7aaf-45a6-9bd1-349bd626e6c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_08958ea9-c24e-486d-9763-049c180d8cc0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_76072a75-9796-4199-9664-01a520f60878" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_08958ea9-c24e-486d-9763-049c180d8cc0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfEquityMethodInvestments_65ce834a-1f63-42e1-b8e4-9aa91bc62b01" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleOfEquityMethodInvestments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_76072a75-9796-4199-9664-01a520f60878" xlink:to="loc_us-gaap_ProceedsFromSaleOfEquityMethodInvestments_65ce834a-1f63-42e1-b8e4-9aa91bc62b01" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.cdw.com/role/AccountsReceivableandContractBalancesScheduleofAccountsReceivableDetails" xlink:type="simple" xlink:href="cdw-20220630.xsd#AccountsReceivableandContractBalancesScheduleofAccountsReceivableDetails"/>
  <link:calculationLink xlink:role="http://www.cdw.com/role/AccountsReceivableandContractBalancesScheduleofAccountsReceivableDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNet_489475d5-7b15-43e2-8a13-663ccf6ac79f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsReceivableNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_5a9de102-4d42-48f9-8e01-c4f0575b1e34" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableNet_489475d5-7b15-43e2-8a13-663ccf6ac79f" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_5a9de102-4d42-48f9-8e01-c4f0575b1e34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetNoncurrent_1bcd69a2-25d3-4a52-abcb-a09915258591" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsReceivableNetNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableNet_489475d5-7b15-43e2-8a13-663ccf6ac79f" xlink:to="loc_us-gaap_AccountsReceivableNetNoncurrent_1bcd69a2-25d3-4a52-abcb-a09915258591" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.cdw.com/role/InventoryFinancingAgreementsDetails" xlink:type="simple" xlink:href="cdw-20220630.xsd#InventoryFinancingAgreementsDetails"/>
  <link:calculationLink xlink:role="http://www.cdw.com/role/InventoryFinancingAgreementsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_cdw_AccountsPayableInventoryFinancing_ff757dd5-5ffd-45e0-8533-8f4dfa71a5c3" xlink:href="cdw-20220630.xsd#cdw_AccountsPayableInventoryFinancing"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_RevolvingLoanFinancingAgreement_04dcaec8-7bba-4e60-b7ee-0eed2e021d91" xlink:href="cdw-20220630.xsd#cdw_RevolvingLoanFinancingAgreement"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cdw_AccountsPayableInventoryFinancing_ff757dd5-5ffd-45e0-8533-8f4dfa71a5c3" xlink:to="loc_cdw_RevolvingLoanFinancingAgreement_04dcaec8-7bba-4e60-b7ee-0eed2e021d91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdw_OtherInventoryFinancingAgreements_3025e2b1-ac54-4244-8d8b-31103032d35e" xlink:href="cdw-20220630.xsd#cdw_OtherInventoryFinancingAgreements"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_cdw_AccountsPayableInventoryFinancing_ff757dd5-5ffd-45e0-8533-8f4dfa71a5c3" xlink:to="loc_cdw_OtherInventoryFinancingAgreements_3025e2b1-ac54-4244-8d8b-31103032d35e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.cdw.com/role/EarningsPerShareDetails" xlink:type="simple" xlink:href="cdw-20220630.xsd#EarningsPerShareDetails"/>
  <link:calculationLink xlink:role="http://www.cdw.com/role/EarningsPerShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_ebf2db46-9d89-447f-8249-1818f3642f0a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_f355e676-e24d-4e51-bf5a-104416fb66ee" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_ebf2db46-9d89-447f-8249-1818f3642f0a" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_f355e676-e24d-4e51-bf5a-104416fb66ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_e3994e37-92ce-409e-bade-dc790776df01" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_ebf2db46-9d89-447f-8249-1818f3642f0a" xlink:to="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_e3994e37-92ce-409e-bade-dc790776df01" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
