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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019e8fbd-2a42-7918-af7e-268fb081e883,g:c22eea29-5054-4837-8462-eb2ca607068f-->
<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:arcroleRef arcroleURI="https://xbrl.org/2023/arcrole/summation-item" xlink:type="simple" xlink:href="https://www.xbrl.org/2023/calculation-1.1.xsd#summation-item"/>
  <link:roleRef roleURI="http://thetradedesk.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="ttd-20260630.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://thetradedesk.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_019e8fbd-2ae0-74b6-a92f-3c7b17ecccd7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_019e8fbd-2ae0-704b-8de9-6f459113a548" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019e8fbd-2ae0-74b6-a92f-3c7b17ecccd7" xlink:to="loc_us-gaap_AccountsPayableCurrent_019e8fbd-2ae0-704b-8de9-6f459113a548" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_019e8fbd-2ae0-79c3-a12d-1d0e8a1e5cc1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019e8fbd-2ae0-74b6-a92f-3c7b17ecccd7" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_019e8fbd-2ae0-79c3-a12d-1d0e8a1e5cc1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_019e8fbd-2ae0-7b70-8571-a8ca844f26ca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019e8fbd-2ae0-74b6-a92f-3c7b17ecccd7" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_019e8fbd-2ae0-7b70-8571-a8ca844f26ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019e8fbd-2ae0-74bc-9261-93e435787161" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_019e8fbd-2ae0-7f19-a1fc-411e7a93203a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e8fbd-2ae0-74bc-9261-93e435787161" xlink:to="loc_us-gaap_LiabilitiesCurrent_019e8fbd-2ae0-7f19-a1fc-411e7a93203a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_019e8fbd-2ae0-71a7-ada5-a4c2db08042c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e8fbd-2ae0-74bc-9261-93e435787161" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_019e8fbd-2ae0-71a7-ada5-a4c2db08042c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_019e8fbd-2ae0-7cab-b007-5e7ff9526ffd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e8fbd-2ae0-74bc-9261-93e435787161" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_019e8fbd-2ae0-7cab-b007-5e7ff9526ffd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e8fbd-2ae0-73f3-950a-e2b6736859dd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019e8fbd-2ae0-782e-bbb7-c880aba8eb96" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e8fbd-2ae0-73f3-950a-e2b6736859dd" xlink:to="loc_us-gaap_Liabilities_019e8fbd-2ae0-782e-bbb7-c880aba8eb96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_019e8fbd-2ae0-70bf-b4d0-2216b6b5a5a9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e8fbd-2ae0-73f3-950a-e2b6736859dd" xlink:to="loc_us-gaap_CommitmentsAndContingencies_019e8fbd-2ae0-70bf-b4d0-2216b6b5a5a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e8fbd-2ae0-77ed-92ac-1f67b10ffcdc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e8fbd-2ae0-73f3-950a-e2b6736859dd" xlink:to="loc_us-gaap_StockholdersEquity_019e8fbd-2ae0-77ed-92ac-1f67b10ffcdc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019e8fbd-2ae0-7a9c-b951-948381d7abfd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_019e8fbd-2ae0-7abc-add3-d6602a6f8f85" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e8fbd-2ae0-7a9c-b951-948381d7abfd" xlink:to="loc_us-gaap_AssetsCurrent_019e8fbd-2ae0-7abc-add3-d6602a6f8f85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_019e8fbd-2ae0-7f3e-a8f0-4566a95d9c63" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e8fbd-2ae0-7a9c-b951-948381d7abfd" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_019e8fbd-2ae0-7f3e-a8f0-4566a95d9c63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_019e8fbd-2ae0-7371-8e21-388319f23777" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e8fbd-2ae0-7a9c-b951-948381d7abfd" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_019e8fbd-2ae0-7371-8e21-388319f23777" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_019e8fbd-2ae0-75b6-a24e-ad0609351eed" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxAssetsNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e8fbd-2ae0-7a9c-b951-948381d7abfd" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_019e8fbd-2ae0-75b6-a24e-ad0609351eed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_019e8fbd-2ae0-7e02-ba1c-cf6b1781a1d1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e8fbd-2ae0-7a9c-b951-948381d7abfd" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_019e8fbd-2ae0-7e02-ba1c-cf6b1781a1d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e8fbd-2ae0-73d1-befe-ace19f22f0ca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_019e8fbd-2ae0-7c45-9748-ecde966c0d51" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e8fbd-2ae0-73d1-befe-ace19f22f0ca" xlink:to="loc_us-gaap_PreferredStockValue_019e8fbd-2ae0-7c45-9748-ecde966c0d51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_019e8fbd-2ae0-7049-bf68-555580675834" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e8fbd-2ae0-73d1-befe-ace19f22f0ca" xlink:to="loc_us-gaap_CommonStockValue_019e8fbd-2ae0-7049-bf68-555580675834" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_019e8fbd-2ae0-7c3f-9cff-391dc46f67c1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e8fbd-2ae0-73d1-befe-ace19f22f0ca" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_019e8fbd-2ae0-7c3f-9cff-391dc46f67c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019e8fbd-2ae0-7566-bd62-4e5c1834daf5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e8fbd-2ae0-73d1-befe-ace19f22f0ca" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019e8fbd-2ae0-7566-bd62-4e5c1834daf5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_019e8fbd-2ae0-78d9-9307-7221e1b493a6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e8fbd-2ae0-74e9-bedd-c1e6823d7003" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019e8fbd-2ae0-78d9-9307-7221e1b493a6" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e8fbd-2ae0-74e9-bedd-c1e6823d7003" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermInvestments_019e8fbd-2ae0-7150-a6a5-c3dc1908853e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermInvestments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019e8fbd-2ae0-78d9-9307-7221e1b493a6" xlink:to="loc_us-gaap_ShortTermInvestments_019e8fbd-2ae0-7150-a6a5-c3dc1908853e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_019e8fbd-2ae0-7742-b79d-73385731edee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019e8fbd-2ae0-78d9-9307-7221e1b493a6" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_019e8fbd-2ae0-7742-b79d-73385731edee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_019e8fbd-2ae0-7436-aadf-c176dd5ab79a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019e8fbd-2ae0-78d9-9307-7221e1b493a6" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_019e8fbd-2ae0-7436-aadf-c176dd5ab79a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://thetradedesk.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="ttd-20260630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"/>
  <link:calculationLink xlink:role="http://thetradedesk.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_019e8fbd-2ae0-7d45-8c9a-0d6d95e6cdf0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CostsAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_019e8fbd-2ae0-718d-bf1a-662af783b473" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019e8fbd-2ae0-7d45-8c9a-0d6d95e6cdf0" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_019e8fbd-2ae0-718d-bf1a-662af783b473" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_019e8fbd-2ae0-7e91-afff-6b87a99d0ba8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SellingAndMarketingExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019e8fbd-2ae0-7d45-8c9a-0d6d95e6cdf0" xlink:to="loc_us-gaap_SellingAndMarketingExpense_019e8fbd-2ae0-7e91-afff-6b87a99d0ba8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_019e8fbd-2ae0-7698-b350-b1c0f4e65765" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019e8fbd-2ae0-7d45-8c9a-0d6d95e6cdf0" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_019e8fbd-2ae0-7698-b350-b1c0f4e65765" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_019e8fbd-2ae0-77f0-9fd1-62f6321013eb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019e8fbd-2ae0-7d45-8c9a-0d6d95e6cdf0" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_019e8fbd-2ae0-77f0-9fd1-62f6321013eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019e8fbd-2ae0-7af3-b1e1-7366ff34450b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e8fbd-2ae0-7116-840b-0881fc9ddecf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019e8fbd-2ae0-7af3-b1e1-7366ff34450b" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e8fbd-2ae0-7116-840b-0881fc9ddecf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019e8fbd-2ae0-7bc8-9524-99b0f2e5e464" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019e8fbd-2ae0-7af3-b1e1-7366ff34450b" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_019e8fbd-2ae0-7bc8-9524-99b0f2e5e464" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_019e8fbd-2ae0-7aa5-aace-b902f95eb148" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019e8fbd-2ae0-7067-8ff6-5e3cb2c95d38" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_019e8fbd-2ae0-7aa5-aace-b902f95eb148" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019e8fbd-2ae0-7067-8ff6-5e3cb2c95d38" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_019e8fbd-2ae0-7cad-b69f-7cf8d9616fcb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CostsAndExpenses"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_019e8fbd-2ae0-7aa5-aace-b902f95eb148" xlink:to="loc_us-gaap_CostsAndExpenses_019e8fbd-2ae0-7cad-b69f-7cf8d9616fcb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_019e8fbd-2ae0-7326-899e-26f999c8cd03" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_019e8fbd-2ae0-7ef1-afa6-5dba8a40f066" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_019e8fbd-2ae0-7326-899e-26f999c8cd03" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_019e8fbd-2ae0-7ef1-afa6-5dba8a40f066" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_019e8fbd-2ae0-758e-90ee-076f5e2f3fca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ForeignCurrencyTransactionGainLossBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_019e8fbd-2ae0-7326-899e-26f999c8cd03" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_019e8fbd-2ae0-758e-90ee-076f5e2f3fca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e8fbd-2ae0-703c-b1f6-de148f5f2969" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_019e8fbd-2ae0-7df5-82bf-ab839228bb6b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e8fbd-2ae0-703c-b1f6-de148f5f2969" xlink:to="loc_us-gaap_OperatingIncomeLoss_019e8fbd-2ae0-7df5-82bf-ab839228bb6b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_019e8fbd-2ae0-782a-b4ae-0f20b902769c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e8fbd-2ae0-703c-b1f6-de148f5f2969" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_019e8fbd-2ae0-782a-b4ae-0f20b902769c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://thetradedesk.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="ttd-20260630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://thetradedesk.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e8fbd-2ae0-7e4c-ab9a-52ec4808806c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_019e8fbd-2ae0-734e-a988-b85d71067f16" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e8fbd-2ae0-7e4c-ab9a-52ec4808806c" xlink:to="loc_us-gaap_ProfitLoss_019e8fbd-2ae0-734e-a988-b85d71067f16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_019e8fbd-2ae0-7294-9fe9-04b3e1756c69" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e8fbd-2ae0-7e4c-ab9a-52ec4808806c" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_019e8fbd-2ae0-7294-9fe9-04b3e1756c69" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_019e8fbd-2ae0-7b8e-a2b5-6316b5c44340" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e8fbd-2ae0-7e4c-ab9a-52ec4808806c" xlink:to="loc_us-gaap_ShareBasedCompensation_019e8fbd-2ae0-7b8e-a2b5-6316b5c44340" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_NoncashLeaseExpense_019e8fbd-2ae0-7814-9d0c-14054452122c" xlink:href="ttd-20260630.xsd#ttd_NoncashLeaseExpense"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e8fbd-2ae0-7e4c-ab9a-52ec4808806c" xlink:to="loc_ttd_NoncashLeaseExpense_019e8fbd-2ae0-7814-9d0c-14054452122c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_019e8fbd-2ae0-7fd0-bbf5-03720845ebed" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProvisionForDoubtfulAccounts"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e8fbd-2ae0-7e4c-ab9a-52ec4808806c" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_019e8fbd-2ae0-7fd0-bbf5-03720845ebed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_019e8fbd-2ae0-7ae7-9877-1e698a659c9c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e8fbd-2ae0-7e4c-ab9a-52ec4808806c" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_019e8fbd-2ae0-7ae7-9877-1e698a659c9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_019e8fbd-2ae0-756c-8b3b-dd8c61133951" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e8fbd-2ae0-7e4c-ab9a-52ec4808806c" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_019e8fbd-2ae0-756c-8b3b-dd8c61133951" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_019e8fbd-2ae0-7251-8bf6-198c003506b6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e8fbd-2ae0-7e4c-ab9a-52ec4808806c" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_019e8fbd-2ae0-7251-8bf6-198c003506b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_019e8fbd-2ae0-70a9-8653-f90eb6cfbf1b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e8fbd-2ae0-7e4c-ab9a-52ec4808806c" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_019e8fbd-2ae0-70a9-8653-f90eb6cfbf1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_019e8fbd-2ae0-7b80-bad8-91d572085a25" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e8fbd-2ae0-7e4c-ab9a-52ec4808806c" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_019e8fbd-2ae0-7b80-bad8-91d572085a25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_019e8fbd-2ae0-78e0-b59a-d031b683317e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e8fbd-2ae0-7e4c-ab9a-52ec4808806c" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_019e8fbd-2ae0-78e0-b59a-d031b683317e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_IncreaseDecreaseInOperatingLeaseLiabilities_019f48c7-4130-7d30-9697-b7382faa9320" xlink:href="ttd-20260630.xsd#ttd_IncreaseDecreaseInOperatingLeaseLiabilities"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e8fbd-2ae0-7e4c-ab9a-52ec4808806c" xlink:to="loc_ttd_IncreaseDecreaseInOperatingLeaseLiabilities_019f48c7-4130-7d30-9697-b7382faa9320" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019e8fbd-2ae0-71f4-9c93-755c841cd5bd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e8fbd-2ae0-7b33-aafb-cfe8fc505609" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019e8fbd-2ae0-71f4-9c93-755c841cd5bd" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e8fbd-2ae0-7b33-aafb-cfe8fc505609" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e8fbd-2ae0-7aff-bf12-af07a23f7358" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019e8fbd-2ae0-71f4-9c93-755c841cd5bd" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e8fbd-2ae0-7aff-bf12-af07a23f7358" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e8fbd-2ae0-7f54-979f-f86d93dde926" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019e8fbd-2ae0-71f4-9c93-755c841cd5bd" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e8fbd-2ae0-7f54-979f-f86d93dde926" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e8fbd-2ae0-71b0-8154-c742444ba58b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019e8fbd-2ae0-72c6-bc7e-405fbfd9ca38" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e8fbd-2ae0-71b0-8154-c742444ba58b" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019e8fbd-2ae0-72c6-bc7e-405fbfd9ca38" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_019e8fbd-2ae0-765c-8075-cfcd8b73c5a3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e8fbd-2ae0-71b0-8154-c742444ba58b" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_019e8fbd-2ae0-765c-8075-cfcd8b73c5a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockPlans_019e8fbd-2ae0-7b6d-8b60-800d8a0aa8ac" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromStockPlans"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e8fbd-2ae0-71b0-8154-c742444ba58b" xlink:to="loc_us-gaap_ProceedsFromStockPlans_019e8fbd-2ae0-7b6d-8b60-800d8a0aa8ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_019e9423-66f4-7d93-b6dd-ade9b0f1ee35" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e8fbd-2ae0-71b0-8154-c742444ba58b" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_019e9423-66f4-7d93-b6dd-ade9b0f1ee35" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfBankOverdrafts_019e9423-66f4-7b11-88d7-9675bc35b471" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromRepaymentsOfBankOverdrafts"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e8fbd-2ae0-71b0-8154-c742444ba58b" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfBankOverdrafts_019e9423-66f4-7b11-88d7-9675bc35b471" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e8fbd-2ae0-72eb-8a09-618fc398094a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_019e8fbd-2ae0-7483-be1a-d868dce9737e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireInvestments"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e8fbd-2ae0-72eb-8a09-618fc398094a" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_019e8fbd-2ae0-7483-be1a-d868dce9737e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_ProceedsFromSalesOfInvestments_019e8fbd-2ae0-7de8-9747-f2f4d1782019" xlink:href="ttd-20260630.xsd#ttd_ProceedsFromSalesOfInvestments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e8fbd-2ae0-72eb-8a09-618fc398094a" xlink:to="loc_ttd_ProceedsFromSalesOfInvestments_019e8fbd-2ae0-7de8-9747-f2f4d1782019" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_019e8fbd-2ae0-7834-bf35-bbe487305feb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e8fbd-2ae0-72eb-8a09-618fc398094a" xlink:to="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_019e8fbd-2ae0-7834-bf35-bbe487305feb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_019e8fbd-2ae0-7107-ba8a-7f3884921a7d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e8fbd-2ae0-72eb-8a09-618fc398094a" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_019e8fbd-2ae0-7107-ba8a-7f3884921a7d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_019e8fbd-2ae0-7ea8-803a-817863dfd4f5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e8fbd-2ae0-72eb-8a09-618fc398094a" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_019e8fbd-2ae0-7ea8-803a-817863dfd4f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToDevelopSoftware_019f48c9-1947-7c41-a210-039609b51867" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToDevelopSoftware"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e8fbd-2ae0-72eb-8a09-618fc398094a" xlink:to="loc_us-gaap_PaymentsToDevelopSoftware_019f48c9-1947-7c41-a210-039609b51867" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_019f48c9-1947-7c0e-ad39-bd5d6c054b21" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e8fbd-2ae0-72eb-8a09-618fc398094a" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_019f48c9-1947-7c0e-ad39-bd5d6c054b21" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://thetradedesk.com/role/EarningsPerShareScheduleofComputationofBasicandDilutedEPSDetail" xlink:type="simple" xlink:href="ttd-20260630.xsd#EarningsPerShareScheduleofComputationofBasicandDilutedEPSDetail"/>
  <link:calculationLink xlink:role="http://thetradedesk.com/role/EarningsPerShareScheduleofComputationofBasicandDilutedEPSDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019e8fbd-2ae0-769c-aa27-af94245859c0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019e8fbd-2ae0-7767-83ce-b5cdd7e6ce51" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019e8fbd-2ae0-769c-aa27-af94245859c0" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019e8fbd-2ae0-7767-83ce-b5cdd7e6ce51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_019e8fbd-2ae0-775f-85b1-3d90530f136f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019e8fbd-2ae0-769c-aa27-af94245859c0" xlink:to="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_019e8fbd-2ae0-775f-85b1-3d90530f136f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://thetradedesk.com/role/CashCashEquivalentsandShortTermInvestmentsNetScheduleofCashCashEquivalentsandShorttermInvestmentsinMarketableSecuritiesDetail" xlink:type="simple" xlink:href="ttd-20260630.xsd#CashCashEquivalentsandShortTermInvestmentsNetScheduleofCashCashEquivalentsandShorttermInvestmentsinMarketableSecuritiesDetail"/>
  <link:calculationLink xlink:role="http://thetradedesk.com/role/CashCashEquivalentsandShortTermInvestmentsNetScheduleofCashCashEquivalentsandShorttermInvestmentsinMarketableSecuritiesDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsAndShortTermInvestments_019e8fbd-2ae0-79a1-bf5c-fabe38687770" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsAndShortTermInvestments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e8fbd-2ae0-7f85-85ab-c555ecd87bbd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsAndShortTermInvestments_019e8fbd-2ae0-79a1-bf5c-fabe38687770" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e8fbd-2ae0-7f85-85ab-c555ecd87bbd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermInvestments_019e8fbd-2ae0-75c3-898c-5af8705b00c6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermInvestments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsAndShortTermInvestments_019e8fbd-2ae0-79a1-bf5c-fabe38687770" xlink:to="loc_us-gaap_ShortTermInvestments_019e8fbd-2ae0-75c3-898c-5af8705b00c6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://thetradedesk.com/role/CashCashEquivalentsandShortTermInvestmentsNetScheduleofContractualMaturitiesofShortTermInvestmentsDetail" xlink:type="simple" xlink:href="ttd-20260630.xsd#CashCashEquivalentsandShortTermInvestmentsNetScheduleofContractualMaturitiesofShortTermInvestmentsDetail"/>
  <link:calculationLink xlink:role="http://thetradedesk.com/role/CashCashEquivalentsandShortTermInvestmentsNetScheduleofContractualMaturitiesofShortTermInvestmentsDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019e8fbd-2ae0-78ef-85b2-fa370786d315" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_019e8fbd-2ae0-7a60-8f39-70a85dc200ab" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019e8fbd-2ae0-78ef-85b2-fa370786d315" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_019e8fbd-2ae0-7a60-8f39-70a85dc200ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ttd_DebtSecuritiesAvailableForSaleFairValueMaturityAllocatedAndSingleMaturityDateOneToTwoYears_019e8fbd-2ae0-7447-9261-53568a222d73" xlink:href="ttd-20260630.xsd#ttd_DebtSecuritiesAvailableForSaleFairValueMaturityAllocatedAndSingleMaturityDateOneToTwoYears"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019e8fbd-2ae0-78ef-85b2-fa370786d315" xlink:to="loc_ttd_DebtSecuritiesAvailableForSaleFairValueMaturityAllocatedAndSingleMaturityDateOneToTwoYears_019e8fbd-2ae0-7447-9261-53568a222d73" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://thetradedesk.com/role/LeasesDetails" xlink:type="simple" xlink:href="ttd-20260630.xsd#LeasesDetails"/>
  <link:calculationLink xlink:role="http://thetradedesk.com/role/LeasesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseCost_019e8fbd-2ae0-7230-915c-9561bf0d397a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_019e8fbd-2ae0-7481-a82e-24578e113c27" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_019e8fbd-2ae0-7230-915c-9561bf0d397a" xlink:to="loc_us-gaap_OperatingLeaseCost_019e8fbd-2ae0-7481-a82e-24578e113c27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermLeaseCost_019e8fbd-2ae0-7de1-806b-8d2676ca2b3a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermLeaseCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_019e8fbd-2ae0-7230-915c-9561bf0d397a" xlink:to="loc_us-gaap_ShortTermLeaseCost_019e8fbd-2ae0-7de1-806b-8d2676ca2b3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableLeaseCost_019e8fbd-2ae0-745a-bbb0-4e77218d8ecd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VariableLeaseCost"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_019e8fbd-2ae0-7230-915c-9561bf0d397a" xlink:to="loc_us-gaap_VariableLeaseCost_019e8fbd-2ae0-745a-bbb0-4e77218d8ecd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubleaseIncome_019e8fbd-2ae0-77a4-8ac0-2a6050a0d6ee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubleaseIncome"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_019e8fbd-2ae0-7230-915c-9561bf0d397a" xlink:to="loc_us-gaap_SubleaseIncome_019e8fbd-2ae0-77a4-8ac0-2a6050a0d6ee" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://thetradedesk.com/role/SegmentandGeographicalInformationScheduleofInterestIncomeandInterestExpenseDetails" xlink:type="simple" xlink:href="ttd-20260630.xsd#SegmentandGeographicalInformationScheduleofInterestIncomeandInterestExpenseDetails"/>
  <link:calculationLink xlink:role="http://thetradedesk.com/role/SegmentandGeographicalInformationScheduleofInterestIncomeandInterestExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_019e8fbd-2ae0-76ed-92e7-386c75455d89" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_019e8fbd-2ae0-7e22-b698-da18a02c669a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_019e8fbd-2ae0-76ed-92e7-386c75455d89" xlink:to="loc_us-gaap_InvestmentIncomeInterest_019e8fbd-2ae0-7e22-b698-da18a02c669a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseNonoperating_019e8fbd-2ae0-7ebf-861b-cfb9d149a961" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseNonoperating"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_019e8fbd-2ae0-76ed-92e7-386c75455d89" xlink:to="loc_us-gaap_InterestExpenseNonoperating_019e8fbd-2ae0-7ebf-861b-cfb9d149a961" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
