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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2023 Workiva-->
<!--r:0cf79bf7-06dd-4e33-947a-cb38ea594d89,g:08f015e7-0c1b-4a05-ba57-17a714cc9c1a-->
<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.twilio.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="simple" xlink:href="twlo-20230331.xsd#CondensedConsolidatedBalanceSheetsUnaudited"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_0bd1e552-103d-46e1-9713-951a84312cdf" 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_AssetsCurrent_753f18c5-39cc-4bd5-8309-286dcf326bdd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_0bd1e552-103d-46e1-9713-951a84312cdf" xlink:to="loc_us-gaap_AssetsCurrent_753f18c5-39cc-4bd5-8309-286dcf326bdd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_bf3c5305-e3eb-4edc-9fd7-e086b2593b7b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_0bd1e552-103d-46e1-9713-951a84312cdf" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_bf3c5305-e3eb-4edc-9fd7-e086b2593b7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_8331fb72-4027-4fa6-8e98-4c0ca94d43ed" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_0bd1e552-103d-46e1-9713-951a84312cdf" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_8331fb72-4027-4fa6-8e98-4c0ca94d43ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestments_6bb93f86-edfd-4830-bed9-0801835d93a0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityMethodInvestments"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_0bd1e552-103d-46e1-9713-951a84312cdf" xlink:to="loc_us-gaap_EquityMethodInvestments_6bb93f86-edfd-4830-bed9-0801835d93a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_3611dedb-a53e-4c2a-92aa-2c0eb3d9faa1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_0bd1e552-103d-46e1-9713-951a84312cdf" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_3611dedb-a53e-4c2a-92aa-2c0eb3d9faa1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_d1a1e66a-a71d-40dd-9d94-7ea2d8ca58e2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_0bd1e552-103d-46e1-9713-951a84312cdf" xlink:to="loc_us-gaap_Goodwill_d1a1e66a-a71d-40dd-9d94-7ea2d8ca58e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_f6233209-8cd9-48d5-b98e-ed2094fc892c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_0bd1e552-103d-46e1-9713-951a84312cdf" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_f6233209-8cd9-48d5-b98e-ed2094fc892c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_96ca8a2b-5945-4749-a35b-9332131e4980" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_cc4ed8d2-d88f-4f00-8e19-2c175ba58856" 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_Liabilities_96ca8a2b-5945-4749-a35b-9332131e4980" xlink:to="loc_us-gaap_LiabilitiesCurrent_cc4ed8d2-d88f-4f00-8e19-2c175ba58856" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_c82181db-5f37-4ef0-a0ec-854371edb02b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_96ca8a2b-5945-4749-a35b-9332131e4980" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_c82181db-5f37-4ef0-a0ec-854371edb02b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_09e892fa-ce45-4069-8683-a7cdc17bdd29" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinanceLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_96ca8a2b-5945-4749-a35b-9332131e4980" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_09e892fa-ce45-4069-8683-a7cdc17bdd29" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_ba94fb50-46cd-4d05-a8a9-be262348e72d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_96ca8a2b-5945-4749-a35b-9332131e4980" xlink:to="loc_us-gaap_LongTermDebt_ba94fb50-46cd-4d05-a8a9-be262348e72d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_b4914eaa-25f9-4955-9934-e52fee429488" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_96ca8a2b-5945-4749-a35b-9332131e4980" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_b4914eaa-25f9-4955-9934-e52fee429488" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_c1ef57b8-bb84-4d0d-ad22-6b274f2dd348" 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_Liabilities_ef4abc3d-f060-4530-8f87-30bd448281ad" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_c1ef57b8-bb84-4d0d-ad22-6b274f2dd348" xlink:to="loc_us-gaap_Liabilities_ef4abc3d-f060-4530-8f87-30bd448281ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_bf3c7124-44c3-42b6-b645-bb095fedd342" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_c1ef57b8-bb84-4d0d-ad22-6b274f2dd348" xlink:to="loc_us-gaap_CommitmentsAndContingencies_bf3c7124-44c3-42b6-b645-bb095fedd342" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_68e50f2d-323c-4ee4-ba4d-1a9ec8f10739" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_c1ef57b8-bb84-4d0d-ad22-6b274f2dd348" xlink:to="loc_us-gaap_StockholdersEquity_68e50f2d-323c-4ee4-ba4d-1a9ec8f10739" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_bb4ad9ec-6556-42f1-8fd6-d554de569c50" 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_1ac32fdf-bbb6-4c9a-bb4d-dbf9a6af04ac" 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_bb4ad9ec-6556-42f1-8fd6-d554de569c50" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1ac32fdf-bbb6-4c9a-bb4d-dbf9a6af04ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_59daa06f-921c-4fc9-b30d-5b1d5dac724a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_bb4ad9ec-6556-42f1-8fd6-d554de569c50" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_59daa06f-921c-4fc9-b30d-5b1d5dac724a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_78f1c27f-ac38-475c-bab8-43052da8b444" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_bb4ad9ec-6556-42f1-8fd6-d554de569c50" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_78f1c27f-ac38-475c-bab8-43052da8b444" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_d0949450-80c0-4dbc-8a98-5120478c4798" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_bb4ad9ec-6556-42f1-8fd6-d554de569c50" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_d0949450-80c0-4dbc-8a98-5120478c4798" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_4d3ead0e-6a5d-4ea8-84d5-7405b23b44f5" 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_AccountsPayableCurrent_6cd792e9-0a33-4ed6-bf6e-72779ddb869e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_4d3ead0e-6a5d-4ea8-84d5-7405b23b44f5" xlink:to="loc_us-gaap_AccountsPayableCurrent_6cd792e9-0a33-4ed6-bf6e-72779ddb869e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_00978f5f-9cec-4432-adeb-e807fb766736" xlink:href="twlo-20230331.xsd#twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_4d3ead0e-6a5d-4ea8-84d5-7405b23b44f5" xlink:to="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_00978f5f-9cec-4432-adeb-e807fb766736" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_d365e336-e461-42c2-948e-20db8a532904" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContractWithCustomerLiabilityCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_4d3ead0e-6a5d-4ea8-84d5-7405b23b44f5" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_d365e336-e461-42c2-948e-20db8a532904" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_f5ba3410-6af0-45af-90f1-4dcfc769aa71" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_4d3ead0e-6a5d-4ea8-84d5-7405b23b44f5" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_f5ba3410-6af0-45af-90f1-4dcfc769aa71" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_1d4814bd-e382-4de0-8af0-d3483d39eae6" 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_a1bfde64-10a6-439d-99e8-ffe16d2f994b" 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_1d4814bd-e382-4de0-8af0-d3483d39eae6" xlink:to="loc_us-gaap_PreferredStockValue_a1bfde64-10a6-439d-99e8-ffe16d2f994b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_da4059be-b390-47b6-bb15-d401a7e12988" 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_1d4814bd-e382-4de0-8af0-d3483d39eae6" xlink:to="loc_us-gaap_CommonStockValue_da4059be-b390-47b6-bb15-d401a7e12988" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_b3281177-ad79-4365-886b-d4b38bbf7adc" 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_1d4814bd-e382-4de0-8af0-d3483d39eae6" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_b3281177-ad79-4365-886b-d4b38bbf7adc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_bfff30e3-4fc3-4548-9f0d-bb584166a8ad" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_1d4814bd-e382-4de0-8af0-d3483d39eae6" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_bfff30e3-4fc3-4548-9f0d-bb584166a8ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_788513cf-75a8-4391-b4a4-3e5347552474" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_1d4814bd-e382-4de0-8af0-d3483d39eae6" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_788513cf-75a8-4391-b4a4-3e5347552474" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/CondensedConsolidatedStatementsofOperationsUnaudited" xlink:type="simple" xlink:href="twlo-20230331.xsd#CondensedConsolidatedStatementsofOperationsUnaudited"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/CondensedConsolidatedStatementsofOperationsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_18f58f19-7049-4218-ab62-19694334da6a" 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_97420a45-3f59-4a4b-9100-180bf2b8a4db" 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_18f58f19-7049-4218-ab62-19694334da6a" xlink:to="loc_us-gaap_OperatingIncomeLoss_97420a45-3f59-4a4b-9100-180bf2b8a4db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_85f6509c-0fd7-4d3d-8a2c-10bfd28837ee" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_18f58f19-7049-4218-ab62-19694334da6a" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_85f6509c-0fd7-4d3d-8a2c-10bfd28837ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_194c8a36-471f-4383-b929-0071aaa5d379" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_1b3145f1-4159-424a-9ddd-52e06c314810" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_194c8a36-471f-4383-b929-0071aaa5d379" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_1b3145f1-4159-424a-9ddd-52e06c314810" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_0cf5ab59-2ab1-4fcb-82c5-1d4d1263ab40" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromEquityMethodInvestments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_194c8a36-471f-4383-b929-0071aaa5d379" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_0cf5ab59-2ab1-4fcb-82c5-1d4d1263ab40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount_e91cbb26-5ab1-4142-8794-29c7ecb7702c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_194c8a36-471f-4383-b929-0071aaa5d379" xlink:to="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount_e91cbb26-5ab1-4142-8794-29c7ecb7702c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_9fe97cff-fdee-43f4-8711-8bc9ea0fa923" 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_1ac8b3da-a892-4300-8c57-64656a2ea61a" 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_9fe97cff-fdee-43f4-8711-8bc9ea0fa923" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_1ac8b3da-a892-4300-8c57-64656a2ea61a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_5c307532-3787-40f2-bc83-89aeea10dd54" 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_9fe97cff-fdee-43f4-8711-8bc9ea0fa923" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_5c307532-3787-40f2-bc83-89aeea10dd54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_86728fbf-160a-42fb-ba73-9542e7da358a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_0aff2dd1-4c97-45a8-8ca6-37ad1281dd56" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_86728fbf-160a-42fb-ba73-9542e7da358a" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_0aff2dd1-4c97-45a8-8ca6-37ad1281dd56" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_0fbadc74-ff07-47b0-9000-09be3e2e2dba" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SellingAndMarketingExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_86728fbf-160a-42fb-ba73-9542e7da358a" xlink:to="loc_us-gaap_SellingAndMarketingExpense_0fbadc74-ff07-47b0-9000-09be3e2e2dba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_2014ecee-6107-456d-967e-9bd2f07e56ab" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_86728fbf-160a-42fb-ba73-9542e7da358a" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_2014ecee-6107-456d-967e-9bd2f07e56ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_af0d559c-88c8-443e-bd4a-367e09721994" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestructuringCharges"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_86728fbf-160a-42fb-ba73-9542e7da358a" xlink:to="loc_us-gaap_RestructuringCharges_af0d559c-88c8-443e-bd4a-367e09721994" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_2c2b5761-566d-4bdc-a677-5751caa06514" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_86728fbf-160a-42fb-ba73-9542e7da358a" xlink:to="loc_us-gaap_AssetImpairmentCharges_2c2b5761-566d-4bdc-a677-5751caa06514" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_42eff35b-db8e-441e-b93e-899733073214" 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_RevenueFromContractWithCustomerExcludingAssessedTax_a541e8b1-5f37-4fdf-9de8-9800769da149" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_42eff35b-db8e-441e-b93e-899733073214" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_a541e8b1-5f37-4fdf-9de8-9800769da149" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_d4a409c5-afee-44fb-b04d-e75c5c871292" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CostOfRevenue"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_42eff35b-db8e-441e-b93e-899733073214" xlink:to="loc_us-gaap_CostOfRevenue_d4a409c5-afee-44fb-b04d-e75c5c871292" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_a25433ec-dc26-4ecd-b8d6-7d7c9d4974cf" 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_c974eae8-be07-4b17-ae93-9c0438dc1ee6" 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_a25433ec-dc26-4ecd-b8d6-7d7c9d4974cf" xlink:to="loc_us-gaap_GrossProfit_c974eae8-be07-4b17-ae93-9c0438dc1ee6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_c8a4aefa-41f4-4e47-971a-963eb7e71d7f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingExpenses"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_a25433ec-dc26-4ecd-b8d6-7d7c9d4974cf" xlink:to="loc_us-gaap_OperatingExpenses_c8a4aefa-41f4-4e47-971a-963eb7e71d7f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/CondensedConsolidatedStatementsofComprehensiveLossUnaudited" xlink:type="simple" xlink:href="twlo-20230331.xsd#CondensedConsolidatedStatementsofComprehensiveLossUnaudited"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/CondensedConsolidatedStatementsofComprehensiveLossUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_d6de4b0e-cfcb-4b3b-b25e-c5c45b40e21f" 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_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_965cda36-dae4-4ea9-b3ce-730e69564e4d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_d6de4b0e-cfcb-4b3b-b25e-c5c45b40e21f" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_965cda36-dae4-4ea9-b3ce-730e69564e4d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_302cd01c-4182-44b1-b90d-cb5e7b3d76b0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_d6de4b0e-cfcb-4b3b-b25e-c5c45b40e21f" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_302cd01c-4182-44b1-b90d-cb5e7b3d76b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent_ad7cbab6-9290-4c36-9103-936a6b71f807" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_d6de4b0e-cfcb-4b3b-b25e-c5c45b40e21f" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent_ad7cbab6-9290-4c36-9103-936a6b71f807" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciEquityMethodInvestmentAfterTax_c74f2d73-6afa-4ad4-aaea-b7fb7f76135d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OciEquityMethodInvestmentAfterTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_d6de4b0e-cfcb-4b3b-b25e-c5c45b40e21f" xlink:to="loc_us-gaap_OciEquityMethodInvestmentAfterTax_c74f2d73-6afa-4ad4-aaea-b7fb7f76135d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_1cc0fe8f-4e84-4682-a1ae-52837ddd90af" 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_19418b28-108a-46b6-9e60-5d8f5b415672" 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_1cc0fe8f-4e84-4682-a1ae-52837ddd90af" xlink:to="loc_us-gaap_NetIncomeLoss_19418b28-108a-46b6-9e60-5d8f5b415672" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_94856f09-eec0-4992-9c98-f13ebe384dff" 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_1cc0fe8f-4e84-4682-a1ae-52837ddd90af" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_94856f09-eec0-4992-9c98-f13ebe384dff" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/CondensedConsolidatedStatementsofCashFlowsUnaudited" xlink:type="simple" xlink:href="twlo-20230331.xsd#CondensedConsolidatedStatementsofCashFlowsUnaudited"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/CondensedConsolidatedStatementsofCashFlowsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_367bc729-9fd8-4a95-81ee-c0cf498c659a" 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_PaymentsOfStockIssuanceCosts_3d90a706-47a0-47ec-a4d7-6a9b8cf1bd7e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfStockIssuanceCosts"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_367bc729-9fd8-4a95-81ee-c0cf498c659a" xlink:to="loc_us-gaap_PaymentsOfStockIssuanceCosts_3d90a706-47a0-47ec-a4d7-6a9b8cf1bd7e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_b3e5f7f5-cc8e-494f-b57d-de71d4c32d7a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_367bc729-9fd8-4a95-81ee-c0cf498c659a" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_b3e5f7f5-cc8e-494f-b57d-de71d4c32d7a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_711cedd2-e5f7-4581-a680-db44edb08e07" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_367bc729-9fd8-4a95-81ee-c0cf498c659a" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_711cedd2-e5f7-4581-a680-db44edb08e07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_d90b78d7-5e84-4e8e-b25a-794973b7ade2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_367bc729-9fd8-4a95-81ee-c0cf498c659a" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_d90b78d7-5e84-4e8e-b25a-794973b7ade2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_693c10dc-4058-4d24-93a6-f0369820bed0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_367bc729-9fd8-4a95-81ee-c0cf498c659a" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_693c10dc-4058-4d24-93a6-f0369820bed0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_54b59b09-8177-497f-aaf5-7f7180f660aa" 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_09dbc630-8fd4-43fb-8ea1-7674f381f8d3" 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_54b59b09-8177-497f-aaf5-7f7180f660aa" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_09dbc630-8fd4-43fb-8ea1-7674f381f8d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_e6796fe4-29d6-40d1-a6f0-4d840a083734" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireInvestments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_54b59b09-8177-497f-aaf5-7f7180f660aa" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_e6796fe4-29d6-40d1-a6f0-4d840a083734" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToDevelopSoftware_9f5a7735-e4fa-4c3d-b551-8ce4d92fc061" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToDevelopSoftware"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_54b59b09-8177-497f-aaf5-7f7180f660aa" xlink:to="loc_us-gaap_PaymentsToDevelopSoftware_9f5a7735-e4fa-4c3d-b551-8ce4d92fc061" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_5eadc9cc-f006-4609-adff-47620d5f9f6a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_54b59b09-8177-497f-aaf5-7f7180f660aa" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_5eadc9cc-f006-4609-adff-47620d5f9f6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireOtherProductiveAssets_ae05b181-ddd7-4133-b5fd-2cc501d08a5e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireOtherProductiveAssets"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_54b59b09-8177-497f-aaf5-7f7180f660aa" xlink:to="loc_us-gaap_PaymentsToAcquireOtherProductiveAssets_ae05b181-ddd7-4133-b5fd-2cc501d08a5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_67244c9e-8391-4954-b214-d066a85f550e" 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_IncreaseDecreaseInOtherNoncurrentLiabilities_c6adad8b-c154-4993-80b1-68c1936d17ae" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_67244c9e-8391-4954-b214-d066a85f550e" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_c6adad8b-c154-4993-80b1-68c1936d17ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_be7c0a63-13a4-4406-b88f-4481849b2179" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_67244c9e-8391-4954-b214-d066a85f550e" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_be7c0a63-13a4-4406-b88f-4481849b2179" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_8ccb19eb-3f2c-416f-82e3-4764770130c7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_67244c9e-8391-4954-b214-d066a85f550e" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_8ccb19eb-3f2c-416f-82e3-4764770130c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_68000378-00be-471f-a8bf-66e251b4cb6a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_67244c9e-8391-4954-b214-d066a85f550e" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_68000378-00be-471f-a8bf-66e251b4cb6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_LeasesRightOfUseAssetAmortization_142f421f-1034-4741-a8d0-0461c317b0df" xlink:href="twlo-20230331.xsd#twlo_LeasesRightOfUseAssetAmortization"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_67244c9e-8391-4954-b214-d066a85f550e" xlink:to="loc_twlo_LeasesRightOfUseAssetAmortization_142f421f-1034-4741-a8d0-0461c317b0df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf_a192aa3c-3fda-4c08-b578-7c2b60cf202f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_67244c9e-8391-4954-b214-d066a85f550e" xlink:to="loc_us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf_a192aa3c-3fda-4c08-b578-7c2b60cf202f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_9d017378-b5b0-47a2-a1b5-9b539e8ab7ac" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentAssets"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_67244c9e-8391-4954-b214-d066a85f550e" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_9d017378-b5b0-47a2-a1b5-9b539e8ab7ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_a7ea1259-da07-4cc2-b394-7e762e99b4f9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_67244c9e-8391-4954-b214-d066a85f550e" xlink:to="loc_us-gaap_ShareBasedCompensation_a7ea1259-da07-4cc2-b394-7e762e99b4f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_0b58cf47-7371-4dd0-9321-072fd351c20f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOperatingLeaseLiability"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_67244c9e-8391-4954-b214-d066a85f550e" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_0b58cf47-7371-4dd0-9321-072fd351c20f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_bcda5d42-0b7e-4354-85ba-0ef7b909e0a5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_67244c9e-8391-4954-b214-d066a85f550e" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_bcda5d42-0b7e-4354-85ba-0ef7b909e0a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_CommonStockDonorAdvisedFundValue_5fb67488-bf21-457f-8cdb-8fd803fea4f1" xlink:href="twlo-20230331.xsd#twlo_CommonStockDonorAdvisedFundValue"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_67244c9e-8391-4954-b214-d066a85f550e" xlink:to="loc_twlo_CommonStockDonorAdvisedFundValue_5fb67488-bf21-457f-8cdb-8fd803fea4f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_4103bf1f-1b08-497c-8926-fefda0c219e2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_67244c9e-8391-4954-b214-d066a85f550e" xlink:to="loc_us-gaap_ProfitLoss_4103bf1f-1b08-497c-8926-fefda0c219e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_a17a9d44-cf12-496a-ae4a-ee25906a71af" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_67244c9e-8391-4954-b214-d066a85f550e" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_a17a9d44-cf12-496a-ae4a-ee25906a71af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_364dc1ac-ffc8-4504-a9f3-1fa232f1440b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_67244c9e-8391-4954-b214-d066a85f550e" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_364dc1ac-ffc8-4504-a9f3-1fa232f1440b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_57e813f7-965c-423b-86a1-7c93bb4619c7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_67244c9e-8391-4954-b214-d066a85f550e" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_57e813f7-965c-423b-86a1-7c93bb4619c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_2a0091c0-aaa6-4ed4-8cea-a406d93a9c58" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_67244c9e-8391-4954-b214-d066a85f550e" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_2a0091c0-aaa6-4ed4-8cea-a406d93a9c58" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostAmortization_6da0ef03-244e-4b05-aad7-6a8df5db4fdd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CapitalizedContractCostAmortization"/>
    <link:calculationArc order="17" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_67244c9e-8391-4954-b214-d066a85f550e" xlink:to="loc_us-gaap_CapitalizedContractCostAmortization_6da0ef03-244e-4b05-aad7-6a8df5db4fdd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_6f52959b-a3c4-4461-87a7-f666ff53989b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromEquityMethodInvestments"/>
    <link:calculationArc order="18" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_67244c9e-8391-4954-b214-d066a85f550e" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_6f52959b-a3c4-4461-87a7-f666ff53989b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount_240e89f8-8f23-4458-adc5-771f1d84ea39" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount"/>
    <link:calculationArc order="19" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_67244c9e-8391-4954-b214-d066a85f550e" xlink:to="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount_240e89f8-8f23-4458-adc5-771f1d84ea39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_76231eb1-c3b5-4f44-ac6f-56983990fae7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsNoncurrent_f88dedd8-320b-456a-97cf-d72d8b8f547d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedCashAndCashEquivalentsNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_76231eb1-c3b5-4f44-ac6f-56983990fae7" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsNoncurrent_f88dedd8-320b-456a-97cf-d72d8b8f547d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_1ab40115-35b0-4fa8-bbb2-1efeea25341d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_76231eb1-c3b5-4f44-ac6f-56983990fae7" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_1ab40115-35b0-4fa8-bbb2-1efeea25341d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_6f1a32fb-ea16-4d8e-b47b-1593b9e39ada" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_76231eb1-c3b5-4f44-ac6f-56983990fae7" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_6f1a32fb-ea16-4d8e-b47b-1593b9e39ada" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_bb5a4cd8-2a45-4fa3-88bf-c03b879b2374" 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_4bd30997-f552-427e-85dc-b932493e6eaa" 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_bb5a4cd8-2a45-4fa3-88bf-c03b879b2374" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4bd30997-f552-427e-85dc-b932493e6eaa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a71b76e0-70d1-4f3e-a93f-4a35d433015f" 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_bb5a4cd8-2a45-4fa3-88bf-c03b879b2374" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a71b76e0-70d1-4f3e-a93f-4a35d433015f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9ea85e8f-92f4-4961-a322-7769c6de26bc" 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_bb5a4cd8-2a45-4fa3-88bf-c03b879b2374" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9ea85e8f-92f4-4961-a322-7769c6de26bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_b78bb0ab-b6ec-4f6d-88c3-a3a909721a97" 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_bb5a4cd8-2a45-4fa3-88bf-c03b879b2374" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_b78bb0ab-b6ec-4f6d-88c3-a3a909721a97" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/FairValueMeasurementsAssetsMeasuredatFairValueonaRecurringBasisDetails" xlink:type="simple" xlink:href="twlo-20230331.xsd#FairValueMeasurementsAssetsMeasuredatFairValueonaRecurringBasisDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/FairValueMeasurementsAssetsMeasuredatFairValueonaRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_e1863b5e-ff76-439a-91ab-0e2683445350" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_0f773c4b-506e-4602-876d-49f245cfdf30" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_e1863b5e-ff76-439a-91ab-0e2683445350" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_0f773c4b-506e-4602-876d-49f245cfdf30" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_832a21db-59c6-4390-9cd3-cce6d633eaf1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_e1863b5e-ff76-439a-91ab-0e2683445350" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_832a21db-59c6-4390-9cd3-cce6d633eaf1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_a36d7db0-3815-49c9-98b6-e8df632a76f6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_1ac9c8c9-c6ec-4353-b139-b3b2f68e2606" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_a36d7db0-3815-49c9-98b6-e8df632a76f6" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_1ac9c8c9-c6ec-4353-b139-b3b2f68e2606" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_449ce46d-8b7c-4826-ad06-4ec23ded81ae" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_a36d7db0-3815-49c9-98b6-e8df632a76f6" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_449ce46d-8b7c-4826-ad06-4ec23ded81ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_8bac6699-6e12-4894-b037-4377de5ab51b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_a36d7db0-3815-49c9-98b6-e8df632a76f6" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_8bac6699-6e12-4894-b037-4377de5ab51b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_a4f3d38a-5e9b-44cf-a340-8bebef36270d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_a36d7db0-3815-49c9-98b6-e8df632a76f6" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_a4f3d38a-5e9b-44cf-a340-8bebef36270d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_FinancialAssetsAmortizedCostOrCarryingValue_9933982f-21e2-4130-92e0-492d740cd856" xlink:href="twlo-20230331.xsd#twlo_FinancialAssetsAmortizedCostOrCarryingValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_557aac08-b60a-4186-8cb3-70fd79f25b19" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_FinancialAssetsAmortizedCostOrCarryingValue_9933982f-21e2-4130-92e0-492d740cd856" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_557aac08-b60a-4186-8cb3-70fd79f25b19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_511aa43f-11bd-4c3f-82dd-fb93c10757fc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_FinancialAssetsAmortizedCostOrCarryingValue_9933982f-21e2-4130-92e0-492d740cd856" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_511aa43f-11bd-4c3f-82dd-fb93c10757fc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/FairValueMeasurementsContractualMaturitiesDetails" xlink:type="simple" xlink:href="twlo-20230331.xsd#FairValueMeasurementsContractualMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/FairValueMeasurementsContractualMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_e204eaef-5b67-484d-81b9-fde0a415d9c6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_733c56ab-9a05-40b2-851d-83ddda039431" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_e204eaef-5b67-484d-81b9-fde0a415d9c6" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_733c56ab-9a05-40b2-851d-83ddda039431" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoAmortizedCostBasis_a65e29b8-2da1-4cf4-94e0-a9c5cbc185b4" xlink:href="twlo-20230331.xsd#twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoAmortizedCostBasis"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_e204eaef-5b67-484d-81b9-fde0a415d9c6" xlink:to="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoAmortizedCostBasis_a65e29b8-2da1-4cf4-94e0-a9c5cbc185b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_13ca8ee4-6214-43fc-bda6-3513d8f582fc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_3742ec33-93a8-46fe-8b86-e8e0e9080c9a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_13ca8ee4-6214-43fc-bda6-3513d8f582fc" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_3742ec33-93a8-46fe-8b86-e8e0e9080c9a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoFairValue_d4f4c171-c4cd-42af-bcce-01fffd480463" xlink:href="twlo-20230331.xsd#twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_13ca8ee4-6214-43fc-bda6-3513d8f582fc" xlink:to="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoFairValue_d4f4c171-c4cd-42af-bcce-01fffd480463" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/PropertyandEquipmentScheduleofPropertyandEquipmentNetDetails" xlink:type="simple" xlink:href="twlo-20230331.xsd#PropertyandEquipmentScheduleofPropertyandEquipmentNetDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/PropertyandEquipmentScheduleofPropertyandEquipmentNetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_e3a5cbac-1bad-40a7-aab2-ce3c22ebeca1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_08372dd5-a6e8-4d0c-85ce-500686ad0a15" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_e3a5cbac-1bad-40a7-aab2-ce3c22ebeca1" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_08372dd5-a6e8-4d0c-85ce-500686ad0a15" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_501de3c5-c168-4a29-97ef-b75d02fe22a2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_e3a5cbac-1bad-40a7-aab2-ce3c22ebeca1" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_501de3c5-c168-4a29-97ef-b75d02fe22a2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssetsIntangibleAssetsDetails" xlink:type="simple" xlink:href="twlo-20230331.xsd#GoodwillandIntangibleAssetsIntangibleAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/GoodwillandIntangibleAssetsIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_495ad851-66ba-4753-b1d4-13764ccb5766" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_0aced5d3-e2cd-4d9a-97a1-4ba84784e354" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_495ad851-66ba-4753-b1d4-13764ccb5766" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_0aced5d3-e2cd-4d9a-97a1-4ba84784e354" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_2cd8e0d6-c50c-4df3-b47d-2d032fb4f579" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_495ad851-66ba-4753-b1d4-13764ccb5766" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_2cd8e0d6-c50c-4df3-b47d-2d032fb4f579" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_16a6c11e-bb7f-457b-be4a-58cf98fff8c7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_7ecda8f0-bff2-4f82-84de-b378bbaff1e9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_16a6c11e-bb7f-457b-be4a-58cf98fff8c7" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_7ecda8f0-bff2-4f82-84de-b378bbaff1e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_f8ea7497-f13b-40b6-9c02-31bc9190bd8e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_16a6c11e-bb7f-457b-be4a-58cf98fff8c7" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_f8ea7497-f13b-40b6-9c02-31bc9190bd8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_e998356f-ea1e-4a16-8f2e-10b1317627d3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_3281cd47-b534-476a-b2ce-63e416bb784b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_e998356f-ea1e-4a16-8f2e-10b1317627d3" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_3281cd47-b534-476a-b2ce-63e416bb784b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_c4e50162-6747-4587-8f42-5071d35efe88" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_e998356f-ea1e-4a16-8f2e-10b1317627d3" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_c4e50162-6747-4587-8f42-5071d35efe88" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssetsIntangibleAssetsDetails_1" xlink:type="simple" xlink:href="twlo-20230331.xsd#GoodwillandIntangibleAssetsIntangibleAssetsDetails_1"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/GoodwillandIntangibleAssetsIntangibleAssetsDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_96110da2-8f70-4dd0-ad0d-3302275e2568" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_ca383aed-53d8-4b04-ada9-032ea38f364d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_96110da2-8f70-4dd0-ad0d-3302275e2568" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_ca383aed-53d8-4b04-ada9-032ea38f364d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_ae0928a6-1023-46c3-8f00-becbeb079a5f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_96110da2-8f70-4dd0-ad0d-3302275e2568" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_ae0928a6-1023-46c3-8f00-becbeb079a5f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssetsTotalEstimatedFutureAmortizationExpenseDetails" xlink:type="simple" xlink:href="twlo-20230331.xsd#GoodwillandIntangibleAssetsTotalEstimatedFutureAmortizationExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/GoodwillandIntangibleAssetsTotalEstimatedFutureAmortizationExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_af883d73-5c2f-48f6-b5de-4eb6720df84a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_0a47fd95-d58b-402c-b9a8-94cb08dc32cc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_af883d73-5c2f-48f6-b5de-4eb6720df84a" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_0a47fd95-d58b-402c-b9a8-94cb08dc32cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_e8947d93-54aa-4fb1-99e2-04696453fd83" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_af883d73-5c2f-48f6-b5de-4eb6720df84a" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_e8947d93-54aa-4fb1-99e2-04696453fd83" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearFour_c0a0bec8-9ddf-4e02-8f22-751e108d752a" xlink:href="twlo-20230331.xsd#twlo_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearFour"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_af883d73-5c2f-48f6-b5de-4eb6720df84a" xlink:to="loc_twlo_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearFour_c0a0bec8-9ddf-4e02-8f22-751e108d752a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_79cde9a4-904d-4eeb-b0ac-85d9711184ca" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_af883d73-5c2f-48f6-b5de-4eb6720df84a" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_79cde9a4-904d-4eeb-b0ac-85d9711184ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_069a543a-ef97-4b0f-8104-a7e7c7785eca" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_af883d73-5c2f-48f6-b5de-4eb6720df84a" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_069a543a-ef97-4b0f-8104-a7e7c7785eca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_7f0ae9a0-e749-4140-8ad7-4948799a735c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_af883d73-5c2f-48f6-b5de-4eb6720df84a" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_7f0ae9a0-e749-4140-8ad7-4948799a735c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/AccruedExpensesandOtherCurrentLiabilitiesDetails" xlink:type="simple" xlink:href="twlo-20230331.xsd#AccruedExpensesandOtherCurrentLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/AccruedExpensesandOtherCurrentLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_c05f3c28-298b-4271-9dde-032734c9bb0a" xlink:href="twlo-20230331.xsd#twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_3525c8d2-8bf9-4fa3-b922-1c42beb86894" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_c05f3c28-298b-4271-9dde-032734c9bb0a" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_3525c8d2-8bf9-4fa3-b922-1c42beb86894" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_d88205a1-23b0-499c-b46d-2d0a402b095e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_c05f3c28-298b-4271-9dde-032734c9bb0a" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_d88205a1-23b0-499c-b46d-2d0a402b095e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedBonusesCurrent_1705a2b5-5bd5-4987-a310-275c1cebea61" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedBonusesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_c05f3c28-298b-4271-9dde-032734c9bb0a" xlink:to="loc_us-gaap_AccruedBonusesCurrent_1705a2b5-5bd5-4987-a310-275c1cebea61" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherEmployeeRelatedLiabilitiesCurrent_ce170814-ebf6-49b8-92a1-27fd1e21ce85" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherEmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_c05f3c28-298b-4271-9dde-032734c9bb0a" xlink:to="loc_us-gaap_OtherEmployeeRelatedLiabilitiesCurrent_ce170814-ebf6-49b8-92a1-27fd1e21ce85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AccruedCostOfRevenueCurrent_16aac02e-62e0-44b9-abae-537faed1fc6a" xlink:href="twlo-20230331.xsd#twlo_AccruedCostOfRevenueCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_c05f3c28-298b-4271-9dde-032734c9bb0a" xlink:to="loc_twlo_AccruedCostOfRevenueCurrent_16aac02e-62e0-44b9-abae-537faed1fc6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_EmployeeSabbaticalExpense_bca1b1c9-f927-4af3-8ca9-5e46d40243e4" xlink:href="twlo-20230331.xsd#twlo_EmployeeSabbaticalExpense"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_c05f3c28-298b-4271-9dde-032734c9bb0a" xlink:to="loc_twlo_EmployeeSabbaticalExpense_bca1b1c9-f927-4af3-8ca9-5e46d40243e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxesPayableCurrent_16fd15f5-b9d6-4304-821c-e6738e733c5a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TaxesPayableCurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_c05f3c28-298b-4271-9dde-032734c9bb0a" xlink:to="loc_us-gaap_TaxesPayableCurrent_16fd15f5-b9d6-4304-821c-e6738e733c5a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_8997a4b8-9cfb-4ee3-a825-716388777c5f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinanceLeaseLiabilityCurrent"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_c05f3c28-298b-4271-9dde-032734c9bb0a" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_8997a4b8-9cfb-4ee3-a825-716388777c5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserveCurrent_2ed70390-da27-4ba5-85e5-21676c565215" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestructuringReserveCurrent"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_c05f3c28-298b-4271-9dde-032734c9bb0a" xlink:to="loc_us-gaap_RestructuringReserveCurrent_2ed70390-da27-4ba5-85e5-21676c565215" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/LongTermDebtScheduleofLongTermDebtDetails" xlink:type="simple" xlink:href="twlo-20230331.xsd#LongTermDebtScheduleofLongTermDebtDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/LongTermDebtScheduleofLongTermDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_d3b2dc32-9647-4fd4-a9db-2598e113417d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_a6903027-6f3a-4eea-b31a-2bebc4cbbc41" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_d3b2dc32-9647-4fd4-a9db-2598e113417d" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_a6903027-6f3a-4eea-b31a-2bebc4cbbc41" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_da7a798a-a830-4984-8106-91f2f7fdd3f0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_d3b2dc32-9647-4fd4-a9db-2598e113417d" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_da7a798a-a830-4984-8106-91f2f7fdd3f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_d4d8d3e4-4014-494a-8d1b-b63d8c215b47" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentUnamortizedDiscount"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_d3b2dc32-9647-4fd4-a9db-2598e113417d" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_d4d8d3e4-4014-494a-8d1b-b63d8c215b47" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/StockholdersEquityCommonStockSharesReservedDetails" xlink:type="simple" xlink:href="twlo-20230331.xsd#StockholdersEquityCommonStockSharesReservedDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/StockholdersEquityCommonStockSharesReservedDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_b3b67027-04ae-4fe2-a11e-0014a73ba6a1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_daab4fb0-3a1d-44a5-b415-05930a1d1baf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_b3b67027-04ae-4fe2-a11e-0014a73ba6a1" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_daab4fb0-3a1d-44a5-b415-05930a1d1baf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_c0ff72c6-8b35-410d-b60d-9d1ecddffa3b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_b3b67027-04ae-4fe2-a11e-0014a73ba6a1" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_c0ff72c6-8b35-410d-b60d-9d1ecddffa3b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_CommonStockCapitalSharesReservedForFutureIssuanceDonorAdvisedFund_4cf385fd-fa95-488c-8f76-5c77b5940902" xlink:href="twlo-20230331.xsd#twlo_CommonStockCapitalSharesReservedForFutureIssuanceDonorAdvisedFund"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_b3b67027-04ae-4fe2-a11e-0014a73ba6a1" xlink:to="loc_twlo_CommonStockCapitalSharesReservedForFutureIssuanceDonorAdvisedFund_4cf385fd-fa95-488c-8f76-5c77b5940902" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_156b0b9a-355b-4d27-9d78-079005523f80" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_b3b67027-04ae-4fe2-a11e-0014a73ba6a1" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_156b0b9a-355b-4d27-9d78-079005523f80" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/StockBasedCompensationUnrecognizedCompensationCostDetails" xlink:type="simple" xlink:href="twlo-20230331.xsd#StockBasedCompensationUnrecognizedCompensationCostDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/StockBasedCompensationUnrecognizedCompensationCostDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_973b880e-6d36-4400-bc6f-023e900c2f7c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_79db0c52-a7ce-481d-9000-8e790d6bddd7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_973b880e-6d36-4400-bc6f-023e900c2f7c" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_79db0c52-a7ce-481d-9000-8e790d6bddd7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions_eeef024d-3e9c-43d8-974e-cb95585f2015" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_973b880e-6d36-4400-bc6f-023e900c2f7c" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions_eeef024d-3e9c-43d8-974e-cb95585f2015" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
