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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:2f059571-bf13-4cdf-8a39-c1d65917baac,g:e382913f-d019-4d5b-9371-a5965f76357f-->
<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-20220930.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_LiabilitiesAndStockholdersEquity_ce082669-3143-435c-9a26-acceaab4ecb2" 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_1e170f73-36b9-4329-b396-7893c15f32a3" 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_ce082669-3143-435c-9a26-acceaab4ecb2" xlink:to="loc_us-gaap_Liabilities_1e170f73-36b9-4329-b396-7893c15f32a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_96df5f84-29e5-4214-8dc0-00ab7ece940f" 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_ce082669-3143-435c-9a26-acceaab4ecb2" xlink:to="loc_us-gaap_CommitmentsAndContingencies_96df5f84-29e5-4214-8dc0-00ab7ece940f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_26d2116b-54d3-4fb1-925f-bdbf96ca2558" 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_ce082669-3143-435c-9a26-acceaab4ecb2" xlink:to="loc_us-gaap_StockholdersEquity_26d2116b-54d3-4fb1-925f-bdbf96ca2558" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_10841941-f13e-485c-9fe7-fcece758ebac" 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_76d72a44-f590-43a2-ae53-7e2ae5caed88" 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_10841941-f13e-485c-9fe7-fcece758ebac" xlink:to="loc_us-gaap_PreferredStockValue_76d72a44-f590-43a2-ae53-7e2ae5caed88" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_8bf97f3c-8c15-4553-9329-98f186376e56" 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_10841941-f13e-485c-9fe7-fcece758ebac" xlink:to="loc_us-gaap_CommonStockValue_8bf97f3c-8c15-4553-9329-98f186376e56" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_40c84f9e-8442-4472-a9b1-e50421a3bc28" 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_10841941-f13e-485c-9fe7-fcece758ebac" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_40c84f9e-8442-4472-a9b1-e50421a3bc28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_e71d85c2-ecc6-4350-97c2-d7530d67c34f" 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_10841941-f13e-485c-9fe7-fcece758ebac" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_e71d85c2-ecc6-4350-97c2-d7530d67c34f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_8726485f-6ee0-4849-9493-d9001f3a54f2" 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_10841941-f13e-485c-9fe7-fcece758ebac" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_8726485f-6ee0-4849-9493-d9001f3a54f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_2cff89d0-cc76-4349-9261-300b127d7ec4" 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_f3880d3a-903b-4879-a19d-1d15d9813f41" 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_2cff89d0-cc76-4349-9261-300b127d7ec4" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_f3880d3a-903b-4879-a19d-1d15d9813f41" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_9a201b29-e74b-4ae0-abc7-4d20d61d9dda" 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_2cff89d0-cc76-4349-9261-300b127d7ec4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_9a201b29-e74b-4ae0-abc7-4d20d61d9dda" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_fe2498c4-e67f-4396-9194-13ed1a8181e4" 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_2cff89d0-cc76-4349-9261-300b127d7ec4" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_fe2498c4-e67f-4396-9194-13ed1a8181e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_a2ab5b36-777e-4c3c-abba-f4fe3ea2a2a4" 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_2cff89d0-cc76-4349-9261-300b127d7ec4" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_a2ab5b36-777e-4c3c-abba-f4fe3ea2a2a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_981692b6-7e9f-4de9-87d3-1371057b9180" 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_51ba04c3-16cf-4395-b60b-24745e6b398f" 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_981692b6-7e9f-4de9-87d3-1371057b9180" xlink:to="loc_us-gaap_LiabilitiesCurrent_51ba04c3-16cf-4395-b60b-24745e6b398f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_a133a5f9-d202-4c22-b1ba-7e31fadf3a4d" 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_981692b6-7e9f-4de9-87d3-1371057b9180" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_a133a5f9-d202-4c22-b1ba-7e31fadf3a4d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_0010d1a2-e596-4262-9018-048b0eaeeb2c" 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_981692b6-7e9f-4de9-87d3-1371057b9180" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_0010d1a2-e596-4262-9018-048b0eaeeb2c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_664d62f8-2a69-4e64-951d-c9f20474fc2e" 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_981692b6-7e9f-4de9-87d3-1371057b9180" xlink:to="loc_us-gaap_LongTermDebt_664d62f8-2a69-4e64-951d-c9f20474fc2e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_cf8c4a36-e18b-4e81-9d45-a950889f7341" 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_981692b6-7e9f-4de9-87d3-1371057b9180" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_cf8c4a36-e18b-4e81-9d45-a950889f7341" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_2ee1cae9-c001-47cd-93b3-a5e54c90a63f" 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_6ba2185b-485c-460a-880d-ba72fd05ae9a" 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_2ee1cae9-c001-47cd-93b3-a5e54c90a63f" xlink:to="loc_us-gaap_AssetsCurrent_6ba2185b-485c-460a-880d-ba72fd05ae9a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_a6d6cc60-3cba-4e37-8e31-62e83ff5aa81" 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_2ee1cae9-c001-47cd-93b3-a5e54c90a63f" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_a6d6cc60-3cba-4e37-8e31-62e83ff5aa81" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_de2aa044-7fd3-4a20-b6d0-e6c2858a14d4" 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_2ee1cae9-c001-47cd-93b3-a5e54c90a63f" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_de2aa044-7fd3-4a20-b6d0-e6c2858a14d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_832d2a54-3a99-4cb1-8d5b-dd9e1e5bb5bd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_2ee1cae9-c001-47cd-93b3-a5e54c90a63f" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_832d2a54-3a99-4cb1-8d5b-dd9e1e5bb5bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_e3993f77-b93f-4246-b0bf-3dc5870886a6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_2ee1cae9-c001-47cd-93b3-a5e54c90a63f" xlink:to="loc_us-gaap_Goodwill_e3993f77-b93f-4246-b0bf-3dc5870886a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_a7b189f0-0f42-48cf-b712-56bdb7d53a73" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_2ee1cae9-c001-47cd-93b3-a5e54c90a63f" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_a7b189f0-0f42-48cf-b712-56bdb7d53a73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestments_19e642db-5ad1-49a5-a04f-35f996e98317" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityMethodInvestments"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_2ee1cae9-c001-47cd-93b3-a5e54c90a63f" xlink:to="loc_us-gaap_EquityMethodInvestments_19e642db-5ad1-49a5-a04f-35f996e98317" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_3a25623a-af61-4bb9-9c6f-060b81ee03ca" 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_6afd21bb-e21d-4e25-b502-9914f372e68e" 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_3a25623a-af61-4bb9-9c6f-060b81ee03ca" xlink:to="loc_us-gaap_AccountsPayableCurrent_6afd21bb-e21d-4e25-b502-9914f372e68e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_61a79ead-2c81-4e25-b5a8-e8ffcd262a7d" xlink:href="twlo-20220930.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_3a25623a-af61-4bb9-9c6f-060b81ee03ca" xlink:to="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_61a79ead-2c81-4e25-b5a8-e8ffcd262a7d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_bc02de7c-9c9e-4596-aecc-1aafe9c31ee2" 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_3a25623a-af61-4bb9-9c6f-060b81ee03ca" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_bc02de7c-9c9e-4596-aecc-1aafe9c31ee2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_f7735d2b-d05f-4286-b22a-ffd222acb054" 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_3a25623a-af61-4bb9-9c6f-060b81ee03ca" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_f7735d2b-d05f-4286-b22a-ffd222acb054" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/CondensedConsolidatedStatementsofOperationsUnaudited" xlink:type="simple" xlink:href="twlo-20220930.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_OperatingExpenses_4ef7fef8-2f3a-464f-bade-a7113f8601fe" 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_RestructuringCharges_a944084b-4bf6-4f60-8d8a-ea01182e675c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestructuringCharges"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_4ef7fef8-2f3a-464f-bade-a7113f8601fe" xlink:to="loc_us-gaap_RestructuringCharges_a944084b-4bf6-4f60-8d8a-ea01182e675c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_481025b2-2bd8-4dd6-a201-2221742ab491" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_4ef7fef8-2f3a-464f-bade-a7113f8601fe" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_481025b2-2bd8-4dd6-a201-2221742ab491" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_e5bb3e6f-7bee-4381-8540-4bc0924edb21" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SellingAndMarketingExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_4ef7fef8-2f3a-464f-bade-a7113f8601fe" xlink:to="loc_us-gaap_SellingAndMarketingExpense_e5bb3e6f-7bee-4381-8540-4bc0924edb21" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_fc8dc3bd-af4c-45f5-bdf6-e0a0127918b9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_4ef7fef8-2f3a-464f-bade-a7113f8601fe" xlink:to="loc_us-gaap_AssetImpairmentCharges_fc8dc3bd-af4c-45f5-bdf6-e0a0127918b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_b5a124dc-b954-4291-9b27-a542bc486486" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_4ef7fef8-2f3a-464f-bade-a7113f8601fe" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_b5a124dc-b954-4291-9b27-a542bc486486" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_c6da1938-ad92-49eb-92d1-957bb5185092" 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_97bebf25-57e6-4412-91de-4de83178188e" 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_c6da1938-ad92-49eb-92d1-957bb5185092" xlink:to="loc_us-gaap_GrossProfit_97bebf25-57e6-4412-91de-4de83178188e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_d0c7f5f4-a67c-46a5-9529-44050260136e" 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_c6da1938-ad92-49eb-92d1-957bb5185092" xlink:to="loc_us-gaap_OperatingExpenses_d0c7f5f4-a67c-46a5-9529-44050260136e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_ef940906-9e79-4417-a87b-ebb407446dc1" 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_c11fda89-5804-43b6-881b-1c5c9873af2e" 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_ef940906-9e79-4417-a87b-ebb407446dc1" xlink:to="loc_us-gaap_OperatingIncomeLoss_c11fda89-5804-43b6-881b-1c5c9873af2e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_f1f4a7e4-bfdf-408e-b3d6-f8c532473fb6" 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_ef940906-9e79-4417-a87b-ebb407446dc1" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_f1f4a7e4-bfdf-408e-b3d6-f8c532473fb6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_00afb800-b348-4073-a4d7-15771b17cc3f" 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_a1bdcc99-2351-4225-bb0c-0a6f53a1f2c9" 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_00afb800-b348-4073-a4d7-15771b17cc3f" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_a1bdcc99-2351-4225-bb0c-0a6f53a1f2c9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_70e58d7c-af1d-49f3-8306-335ef681a011" 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_00afb800-b348-4073-a4d7-15771b17cc3f" xlink:to="loc_us-gaap_CostOfRevenue_70e58d7c-af1d-49f3-8306-335ef681a011" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_8f56aeb6-0679-4d6f-ae27-cbb87666bcbb" 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_a02c1e25-7df1-42d6-813b-6026e1f081b3" 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_8f56aeb6-0679-4d6f-ae27-cbb87666bcbb" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_a02c1e25-7df1-42d6-813b-6026e1f081b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_0e0d24d7-b8f9-4c4a-82b8-9a0d82929257" 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_8f56aeb6-0679-4d6f-ae27-cbb87666bcbb" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_0e0d24d7-b8f9-4c4a-82b8-9a0d82929257" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_5b929896-284f-46f2-a6d6-3bd3d21dd9c3" 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_ae30aee9-1dfc-403b-87b9-531e7d86b5c6" 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_5b929896-284f-46f2-a6d6-3bd3d21dd9c3" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_ae30aee9-1dfc-403b-87b9-531e7d86b5c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_3a8898e4-7132-4bfd-a061-faf373ffe94f" 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_5b929896-284f-46f2-a6d6-3bd3d21dd9c3" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_3a8898e4-7132-4bfd-a061-faf373ffe94f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/CondensedConsolidatedStatementsofComprehensiveLossUnaudited" xlink:type="simple" xlink:href="twlo-20220930.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_ad0d858c-7b96-4c54-b240-5d83b7d00177" 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_f249da8d-cc33-463e-b731-55afe8a15209" 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_ad0d858c-7b96-4c54-b240-5d83b7d00177" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_f249da8d-cc33-463e-b731-55afe8a15209" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_4e4aa9ad-c65a-421e-b223-1f944c006bda" 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_ad0d858c-7b96-4c54-b240-5d83b7d00177" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_4e4aa9ad-c65a-421e-b223-1f944c006bda" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent_b6bc4aa0-9242-4f88-8847-08cf14891cef" 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_ad0d858c-7b96-4c54-b240-5d83b7d00177" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent_b6bc4aa0-9242-4f88-8847-08cf14891cef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciEquityMethodInvestmentAfterTax_f6bdb261-d32b-47b5-8401-56aa85224bd1" 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_ad0d858c-7b96-4c54-b240-5d83b7d00177" xlink:to="loc_us-gaap_OciEquityMethodInvestmentAfterTax_f6bdb261-d32b-47b5-8401-56aa85224bd1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_8d9e5cfe-071d-4476-a612-a14fd121a08d" 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_9025da08-cec0-4f62-8025-74fbaa662dc1" 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_8d9e5cfe-071d-4476-a612-a14fd121a08d" xlink:to="loc_us-gaap_NetIncomeLoss_9025da08-cec0-4f62-8025-74fbaa662dc1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_c7c28d15-a99a-43ba-af06-27866de7625c" 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_8d9e5cfe-071d-4476-a612-a14fd121a08d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_c7c28d15-a99a-43ba-af06-27866de7625c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/CondensedConsolidatedStatementsofCashFlowsUnaudited" xlink:type="simple" xlink:href="twlo-20220930.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_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_cabcb019-15af-4698-9902-43d5edd700d0" 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_2215c81c-93b2-4e61-9e5a-f35ff24ef21a" 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_cabcb019-15af-4698-9902-43d5edd700d0" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsNoncurrent_2215c81c-93b2-4e61-9e5a-f35ff24ef21a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_b2a96800-ec0f-4460-a568-86172765e2e4" 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_cabcb019-15af-4698-9902-43d5edd700d0" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_b2a96800-ec0f-4460-a568-86172765e2e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_7bbc202f-5afc-45c3-b78a-f43b80001e05" 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_cabcb019-15af-4698-9902-43d5edd700d0" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_7bbc202f-5afc-45c3-b78a-f43b80001e05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_21bdf532-f1eb-4365-82ba-831c70a26dd8" 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_7526d300-6a43-4266-8f4b-94ce6cd0c587" 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_21bdf532-f1eb-4365-82ba-831c70a26dd8" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7526d300-6a43-4266-8f4b-94ce6cd0c587" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_fadb77b9-7b5d-43ed-ab9b-e9bd55008a53" 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_21bdf532-f1eb-4365-82ba-831c70a26dd8" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_fadb77b9-7b5d-43ed-ab9b-e9bd55008a53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_c380ca50-4723-4aea-895d-4ea1c3484e44" 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_21bdf532-f1eb-4365-82ba-831c70a26dd8" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_c380ca50-4723-4aea-895d-4ea1c3484e44" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_c8dbcd14-fc1d-43d8-98b1-2a5aca3dc037" 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_21bdf532-f1eb-4365-82ba-831c70a26dd8" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_c8dbcd14-fc1d-43d8-98b1-2a5aca3dc037" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_495221a8-7dae-43c1-9c31-5730253f628b" 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_ProceedsFromIssuanceInitialPublicOffering_a0c02998-77c2-40bb-bbc0-5302869c22a4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromIssuanceInitialPublicOffering"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_495221a8-7dae-43c1-9c31-5730253f628b" xlink:to="loc_us-gaap_ProceedsFromIssuanceInitialPublicOffering_a0c02998-77c2-40bb-bbc0-5302869c22a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_1c0a44cf-1b75-473a-a55a-30643cb90395" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_495221a8-7dae-43c1-9c31-5730253f628b" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_1c0a44cf-1b75-473a-a55a-30643cb90395" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_904bf8ad-0516-4147-a060-6fc3e2345536" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_495221a8-7dae-43c1-9c31-5730253f628b" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_904bf8ad-0516-4147-a060-6fc3e2345536" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_cdeba804-517c-42a2-9b29-0bc60ce88050" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_495221a8-7dae-43c1-9c31-5730253f628b" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_cdeba804-517c-42a2-9b29-0bc60ce88050" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfStockIssuanceCosts_372f3b95-042e-449e-8b4f-f62341de3b8b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfStockIssuanceCosts"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_495221a8-7dae-43c1-9c31-5730253f628b" xlink:to="loc_us-gaap_PaymentsOfStockIssuanceCosts_372f3b95-042e-449e-8b4f-f62341de3b8b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDerivativeInstrumentFinancingActivities_031de027-83af-4930-95d0-31e758c17bfd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromDerivativeInstrumentFinancingActivities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_495221a8-7dae-43c1-9c31-5730253f628b" xlink:to="loc_us-gaap_ProceedsFromDerivativeInstrumentFinancingActivities_031de027-83af-4930-95d0-31e758c17bfd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockPlans_490eac9f-5796-4c82-b479-0cba7a746e8d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromStockPlans"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_495221a8-7dae-43c1-9c31-5730253f628b" xlink:to="loc_us-gaap_ProceedsFromStockPlans_490eac9f-5796-4c82-b479-0cba7a746e8d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a2e6c9d6-03e6-4856-ad2d-5d9da0fd75bb" 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_af10e81a-d18f-489e-b0c7-a726707994e2" 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_a2e6c9d6-03e6-4856-ad2d-5d9da0fd75bb" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_af10e81a-d18f-489e-b0c7-a726707994e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_a5dd4629-0bf3-4d3e-a7e7-8045b2306d00" 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_a2e6c9d6-03e6-4856-ad2d-5d9da0fd75bb" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_a5dd4629-0bf3-4d3e-a7e7-8045b2306d00" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_70b9cc8b-2272-4d5e-8794-91c712af97bb" 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_a2e6c9d6-03e6-4856-ad2d-5d9da0fd75bb" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_70b9cc8b-2272-4d5e-8794-91c712af97bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_2b94b39a-d572-4964-92cd-dcb84c03c5c5" 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_a2e6c9d6-03e6-4856-ad2d-5d9da0fd75bb" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_2b94b39a-d572-4964-92cd-dcb84c03c5c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_LeasesRightOfUseAssetAmortization_dd77f77a-15eb-457c-9b36-dd295a1cebb6" xlink:href="twlo-20220930.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_a2e6c9d6-03e6-4856-ad2d-5d9da0fd75bb" xlink:to="loc_twlo_LeasesRightOfUseAssetAmortization_dd77f77a-15eb-457c-9b36-dd295a1cebb6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_c8c99003-68a7-4dca-a1ad-38b3ed36b032" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentAssets"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a2e6c9d6-03e6-4856-ad2d-5d9da0fd75bb" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_c8c99003-68a7-4dca-a1ad-38b3ed36b032" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_0fa6b191-28ad-479a-8a59-95e32edd4594" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a2e6c9d6-03e6-4856-ad2d-5d9da0fd75bb" xlink:to="loc_us-gaap_ShareBasedCompensation_0fa6b191-28ad-479a-8a59-95e32edd4594" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_9dc7a862-1900-445f-bf96-b73c6b28d36d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOperatingLeaseLiability"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a2e6c9d6-03e6-4856-ad2d-5d9da0fd75bb" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_9dc7a862-1900-445f-bf96-b73c6b28d36d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_2721a99a-d848-44cd-be3e-9576ae4e52ad" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProvisionForDoubtfulAccounts"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a2e6c9d6-03e6-4856-ad2d-5d9da0fd75bb" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_2721a99a-d848-44cd-be3e-9576ae4e52ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_46f8ae08-3925-4eda-8ef2-acfd45763b5d" 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_a2e6c9d6-03e6-4856-ad2d-5d9da0fd75bb" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_46f8ae08-3925-4eda-8ef2-acfd45763b5d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_CommonStockDonorAdvisedFundValue_c3f66a1d-5401-4ad0-8ef6-4853a457cd12" xlink:href="twlo-20220930.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_a2e6c9d6-03e6-4856-ad2d-5d9da0fd75bb" xlink:to="loc_twlo_CommonStockDonorAdvisedFundValue_c3f66a1d-5401-4ad0-8ef6-4853a457cd12" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_999c374b-18ab-45fa-909d-32d98e1c2eae" 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_a2e6c9d6-03e6-4856-ad2d-5d9da0fd75bb" xlink:to="loc_us-gaap_ProfitLoss_999c374b-18ab-45fa-909d-32d98e1c2eae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_0a9cd687-fc55-4f04-8641-8b0a22e78c23" 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_a2e6c9d6-03e6-4856-ad2d-5d9da0fd75bb" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_0a9cd687-fc55-4f04-8641-8b0a22e78c23" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_0237052d-28eb-467b-a364-41ee9b6cbe6f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a2e6c9d6-03e6-4856-ad2d-5d9da0fd75bb" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_0237052d-28eb-467b-a364-41ee9b6cbe6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_1ad9e884-0181-433d-9e33-457f3fcecdf5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a2e6c9d6-03e6-4856-ad2d-5d9da0fd75bb" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_1ad9e884-0181-433d-9e33-457f3fcecdf5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_0e98b470-4880-456c-84e3-089798cf36ba" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a2e6c9d6-03e6-4856-ad2d-5d9da0fd75bb" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_0e98b470-4880-456c-84e3-089798cf36ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_844937a6-5a36-4d40-8713-488a1ae9ec09" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="17" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a2e6c9d6-03e6-4856-ad2d-5d9da0fd75bb" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_844937a6-5a36-4d40-8713-488a1ae9ec09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostAmortization_ed3fb93d-8b05-4e7a-8a45-f1e761977a8f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CapitalizedContractCostAmortization"/>
    <link:calculationArc order="18" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a2e6c9d6-03e6-4856-ad2d-5d9da0fd75bb" xlink:to="loc_us-gaap_CapitalizedContractCostAmortization_ed3fb93d-8b05-4e7a-8a45-f1e761977a8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_311c57dc-8a10-4bde-9117-fec4c77c661f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromEquityMethodInvestments"/>
    <link:calculationArc order="19" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a2e6c9d6-03e6-4856-ad2d-5d9da0fd75bb" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_311c57dc-8a10-4bde-9117-fec4c77c661f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetImpairmentCharges_fa5a7a7d-34d4-4599-8796-0ba1b17e7851" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetImpairmentCharges"/>
    <link:calculationArc order="20" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a2e6c9d6-03e6-4856-ad2d-5d9da0fd75bb" xlink:to="loc_us-gaap_OtherAssetImpairmentCharges_fa5a7a7d-34d4-4599-8796-0ba1b17e7851" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_dc4552ac-a174-4d52-bcb8-2385d494b647" 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_829d86b7-17fe-4a41-872e-1026eff42027" 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_dc4552ac-a174-4d52-bcb8-2385d494b647" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_829d86b7-17fe-4a41-872e-1026eff42027" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_f6d33890-3972-4b65-bdd9-6395c3a44fa8" 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_dc4552ac-a174-4d52-bcb8-2385d494b647" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_f6d33890-3972-4b65-bdd9-6395c3a44fa8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToDevelopSoftware_de94c6f5-95f2-405f-9fae-ab48b6c7950e" 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_dc4552ac-a174-4d52-bcb8-2385d494b647" xlink:to="loc_us-gaap_PaymentsToDevelopSoftware_de94c6f5-95f2-405f-9fae-ab48b6c7950e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_a8978875-ff59-49b5-ad0c-487985b8361e" 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_dc4552ac-a174-4d52-bcb8-2385d494b647" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_a8978875-ff59-49b5-ad0c-487985b8361e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_65bd800e-8c73-4f90-a9d1-c2d5dc8a98c1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_dc4552ac-a174-4d52-bcb8-2385d494b647" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_65bd800e-8c73-4f90-a9d1-c2d5dc8a98c1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/FairValueMeasurementsAssetsMeasuredatFairValueonaRecurringBasisDetails" xlink:type="simple" xlink:href="twlo-20220930.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_AvailableForSaleDebtSecuritiesAmortizedCostBasis_56357743-ffbe-41a3-abc8-b80a8aa85e91" 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_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_46634df7-1e30-4fab-8f25-1d3b04898039" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_56357743-ffbe-41a3-abc8-b80a8aa85e91" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_46634df7-1e30-4fab-8f25-1d3b04898039" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_39aef3f5-b4c1-4efc-824a-dd279d8905aa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_56357743-ffbe-41a3-abc8-b80a8aa85e91" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_39aef3f5-b4c1-4efc-824a-dd279d8905aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_7c3d2a60-7a8c-4274-83f4-f5798bf4e3a1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_56357743-ffbe-41a3-abc8-b80a8aa85e91" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_7c3d2a60-7a8c-4274-83f4-f5798bf4e3a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_FinancialAssetsAmortizedCostOrCarryingValue_34c8a79c-659c-4338-9dba-3b9cc6901d8b" xlink:href="twlo-20220930.xsd#twlo_FinancialAssetsAmortizedCostOrCarryingValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_8f6a755c-8b9b-4925-9699-98b2b2758d63" 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_34c8a79c-659c-4338-9dba-3b9cc6901d8b" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_8f6a755c-8b9b-4925-9699-98b2b2758d63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_5fdb427c-540e-49a8-ac02-85f4dfedd89c" 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_34c8a79c-659c-4338-9dba-3b9cc6901d8b" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_5fdb427c-540e-49a8-ac02-85f4dfedd89c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_b4ac4a00-a559-4edc-8135-e111b725c5e9" 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_7439fbb7-7853-4cc1-97f9-0aa2f97124ca" 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_b4ac4a00-a559-4edc-8135-e111b725c5e9" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_7439fbb7-7853-4cc1-97f9-0aa2f97124ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_79752378-48fc-4a66-be77-6984ff6b2971" 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_b4ac4a00-a559-4edc-8135-e111b725c5e9" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_79752378-48fc-4a66-be77-6984ff6b2971" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/FairValueMeasurementsContractualMaturitiesDetails" xlink:type="simple" xlink:href="twlo-20220930.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_3fb8f17a-7e4d-4879-9aec-383fac0b78a1" 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_0d29fca8-2ae3-4938-a629-41c3a43694c5" 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_3fb8f17a-7e4d-4879-9aec-383fac0b78a1" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_0d29fca8-2ae3-4938-a629-41c3a43694c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoAmortizedCostBasis_ba1051ac-2dc2-4d35-86d0-2ea8e46d2211" xlink:href="twlo-20220930.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_3fb8f17a-7e4d-4879-9aec-383fac0b78a1" xlink:to="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoAmortizedCostBasis_ba1051ac-2dc2-4d35-86d0-2ea8e46d2211" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_8a9cfc09-f549-4a28-9bd2-87730ba9b3ab" 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_e1e6b137-4d84-40d3-ac2f-5bbdb164b079" 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_8a9cfc09-f549-4a28-9bd2-87730ba9b3ab" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_e1e6b137-4d84-40d3-ac2f-5bbdb164b079" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoFairValue_9536b100-5026-4064-996c-0b436dcefe1b" xlink:href="twlo-20220930.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_8a9cfc09-f549-4a28-9bd2-87730ba9b3ab" xlink:to="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoFairValue_9536b100-5026-4064-996c-0b436dcefe1b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/PropertyandEquipmentScheduleofPropertyandEquipmentNetDetails" xlink:type="simple" xlink:href="twlo-20220930.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_348dbe1b-6f77-464e-9515-6ef2daed7fb7" 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_a7686767-a7c1-4599-9703-18b51263fe9d" 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_348dbe1b-6f77-464e-9515-6ef2daed7fb7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_a7686767-a7c1-4599-9703-18b51263fe9d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_146b31e4-60a3-4361-9553-7d8a287d072a" 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_348dbe1b-6f77-464e-9515-6ef2daed7fb7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_146b31e4-60a3-4361-9553-7d8a287d072a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssetsIntangibleAssetsDetails" xlink:type="simple" xlink:href="twlo-20220930.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_94e607a2-2d84-41b9-b756-23ec7777588f" 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_d597f5a7-d8a9-4cfe-9ba4-aaf31eb93f08" 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_94e607a2-2d84-41b9-b756-23ec7777588f" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_d597f5a7-d8a9-4cfe-9ba4-aaf31eb93f08" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_4bf531a0-1fe1-42f1-9029-9f5c00a4564a" 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_94e607a2-2d84-41b9-b756-23ec7777588f" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_4bf531a0-1fe1-42f1-9029-9f5c00a4564a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_9ffb299f-9beb-4c11-b524-ea25d188d362" 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_a5d49e93-a395-43a3-a89e-916bfbc9b59a" 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_9ffb299f-9beb-4c11-b524-ea25d188d362" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_a5d49e93-a395-43a3-a89e-916bfbc9b59a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_272a7e23-20dd-4d3e-a1a4-66f89953b5c5" 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_9ffb299f-9beb-4c11-b524-ea25d188d362" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_272a7e23-20dd-4d3e-a1a4-66f89953b5c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_c12e6a2b-e7e2-4d70-8da1-0b94f473a0a2" 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_50204762-a90a-4be2-b64b-005920b0fa60" 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_c12e6a2b-e7e2-4d70-8da1-0b94f473a0a2" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_50204762-a90a-4be2-b64b-005920b0fa60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_22643c49-3327-40b6-aa27-9d49ac3db1d2" 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_c12e6a2b-e7e2-4d70-8da1-0b94f473a0a2" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_22643c49-3327-40b6-aa27-9d49ac3db1d2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssetsIntangibleAssetsDetails_1" xlink:type="simple" xlink:href="twlo-20220930.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_6c945ef7-d812-49d5-8b56-3d838c4f2dcb" 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_a05abf18-075c-4d64-937f-0f82913faefc" 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_6c945ef7-d812-49d5-8b56-3d838c4f2dcb" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_a05abf18-075c-4d64-937f-0f82913faefc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_7ad7485c-880c-4fd8-b783-b56f1431be8b" 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_6c945ef7-d812-49d5-8b56-3d838c4f2dcb" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_7ad7485c-880c-4fd8-b783-b56f1431be8b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssetsTotalEstimatedFutureAmortizationExpenseDetails" xlink:type="simple" xlink:href="twlo-20220930.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_366ff04c-bf2c-4004-9bbc-f701b0e03c01" 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_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_9e0ca11a-52bf-49b6-943b-902218b9e977" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_366ff04c-bf2c-4004-9bbc-f701b0e03c01" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_9e0ca11a-52bf-49b6-943b-902218b9e977" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearFour_512c04f9-5b8f-42b0-ade5-094f7bc781d6" xlink:href="twlo-20220930.xsd#twlo_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearFour"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_366ff04c-bf2c-4004-9bbc-f701b0e03c01" xlink:to="loc_twlo_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearFour_512c04f9-5b8f-42b0-ade5-094f7bc781d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_8d8efa88-9d20-4a00-bdd4-09d3495f1711" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_366ff04c-bf2c-4004-9bbc-f701b0e03c01" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_8d8efa88-9d20-4a00-bdd4-09d3495f1711" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_4ea8dae9-072c-4832-b484-bdbbed9fb796" 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_366ff04c-bf2c-4004-9bbc-f701b0e03c01" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_4ea8dae9-072c-4832-b484-bdbbed9fb796" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_d52b6c7b-07dc-4910-aceb-c88d8a8552ff" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_366ff04c-bf2c-4004-9bbc-f701b0e03c01" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_d52b6c7b-07dc-4910-aceb-c88d8a8552ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_8a427be2-14c0-40d4-97b6-eb973b4409a0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_366ff04c-bf2c-4004-9bbc-f701b0e03c01" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_8a427be2-14c0-40d4-97b6-eb973b4409a0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/AccruedExpensesandOtherCurrentLiabilitiesDetails" xlink:type="simple" xlink:href="twlo-20220930.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_524d598e-c205-41e3-9506-55cfb1859051" xlink:href="twlo-20220930.xsd#twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_EmployeeSabbaticalExpense_41dc3736-cef6-4f81-b365-99b08efd1b4e" xlink:href="twlo-20220930.xsd#twlo_EmployeeSabbaticalExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_524d598e-c205-41e3-9506-55cfb1859051" xlink:to="loc_twlo_EmployeeSabbaticalExpense_41dc3736-cef6-4f81-b365-99b08efd1b4e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_b417776d-eab6-43bb-a6f2-59586296cceb" 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_524d598e-c205-41e3-9506-55cfb1859051" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_b417776d-eab6-43bb-a6f2-59586296cceb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserveCurrent_87f087c4-6ce0-4c7c-9160-c114a5af98c6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestructuringReserveCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_524d598e-c205-41e3-9506-55cfb1859051" xlink:to="loc_us-gaap_RestructuringReserveCurrent_87f087c4-6ce0-4c7c-9160-c114a5af98c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_6027973a-e1d9-4cd8-8576-51fc2f382de2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinanceLeaseLiabilityCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_524d598e-c205-41e3-9506-55cfb1859051" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_6027973a-e1d9-4cd8-8576-51fc2f382de2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AccruedCostOfRevenueCurrent_b83179cc-5599-4d4d-93c7-4453c9b67013" xlink:href="twlo-20220930.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_524d598e-c205-41e3-9506-55cfb1859051" xlink:to="loc_twlo_AccruedCostOfRevenueCurrent_b83179cc-5599-4d4d-93c7-4453c9b67013" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilitiesCurrent_eb57ca71-b478-4ea6-be77-a7836fd8141a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeLiabilitiesCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_524d598e-c205-41e3-9506-55cfb1859051" xlink:to="loc_us-gaap_DerivativeLiabilitiesCurrent_eb57ca71-b478-4ea6-be77-a7836fd8141a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedBonusesCurrent_63451186-7a64-44ad-a0e1-95ebf1b81b75" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedBonusesCurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_524d598e-c205-41e3-9506-55cfb1859051" xlink:to="loc_us-gaap_AccruedBonusesCurrent_63451186-7a64-44ad-a0e1-95ebf1b81b75" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherEmployeeRelatedLiabilitiesCurrent_aef6fee7-5e47-4e09-b536-d45fd1a33474" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherEmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_524d598e-c205-41e3-9506-55cfb1859051" xlink:to="loc_us-gaap_OtherEmployeeRelatedLiabilitiesCurrent_aef6fee7-5e47-4e09-b536-d45fd1a33474" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxesPayableCurrent_904c87ac-85ce-4ccf-96bf-080222ac4025" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TaxesPayableCurrent"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_524d598e-c205-41e3-9506-55cfb1859051" xlink:to="loc_us-gaap_TaxesPayableCurrent_904c87ac-85ce-4ccf-96bf-080222ac4025" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_9cc37366-d9ee-4619-a0c0-336ed073abca" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_524d598e-c205-41e3-9506-55cfb1859051" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_9cc37366-d9ee-4619-a0c0-336ed073abca" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/NotesPayableSummaryofLongTermDebtDetails" xlink:type="simple" xlink:href="twlo-20220930.xsd#NotesPayableSummaryofLongTermDebtDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/NotesPayableSummaryofLongTermDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_cf68e15d-2792-4e9f-9eb6-2ada2ab8910a" 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_6dc0c99b-3d59-4256-86f6-470511f73851" 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_cf68e15d-2792-4e9f-9eb6-2ada2ab8910a" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_6dc0c99b-3d59-4256-86f6-470511f73851" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_7dc29996-7a65-4139-8974-fef9c46921a8" 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_cf68e15d-2792-4e9f-9eb6-2ada2ab8910a" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_7dc29996-7a65-4139-8974-fef9c46921a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_5c30bbb7-a66e-46b5-8de7-33fef3cd2664" 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_cf68e15d-2792-4e9f-9eb6-2ada2ab8910a" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_5c30bbb7-a66e-46b5-8de7-33fef3cd2664" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/StockholdersEquityCommonStockSharesReservedDetails" xlink:type="simple" xlink:href="twlo-20220930.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_b20e6fff-3843-4e73-9834-9e7bed07baf7" 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_724f98c5-8946-48d1-a36d-06b8d04c73c3" 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_b20e6fff-3843-4e73-9834-9e7bed07baf7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_724f98c5-8946-48d1-a36d-06b8d04c73c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_0c1c719a-ef9c-44c0-b658-46c4c41e5867" 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_b20e6fff-3843-4e73-9834-9e7bed07baf7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_0c1c719a-ef9c-44c0-b658-46c4c41e5867" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_CommonStockCapitalSharesReservedForFutureIssuanceDonorAdvisedFund_a4358772-224a-43a0-85e9-96ea20f95410" xlink:href="twlo-20220930.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_b20e6fff-3843-4e73-9834-9e7bed07baf7" xlink:to="loc_twlo_CommonStockCapitalSharesReservedForFutureIssuanceDonorAdvisedFund_a4358772-224a-43a0-85e9-96ea20f95410" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_470d025b-79be-4f43-9477-b60cd612ef71" 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_b20e6fff-3843-4e73-9834-9e7bed07baf7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_470d025b-79be-4f43-9477-b60cd612ef71" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/StockBasedCompensationUnrecognizedCompensationCostDetails" xlink:type="simple" xlink:href="twlo-20220930.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_0651b74a-7163-484c-a600-ff00e8c975d4" 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_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions_9d3460fa-3852-43f5-87a3-9c541e52a1d4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_0651b74a-7163-484c-a600-ff00e8c975d4" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions_9d3460fa-3852-43f5-87a3-9c541e52a1d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_8504a900-c362-4bde-af80-b97509faabdc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_0651b74a-7163-484c-a600-ff00e8c975d4" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_8504a900-c362-4bde-af80-b97509faabdc" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
