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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:b1f3f9dc-de3c-4c6c-ab29-5424fdbef0da,g:de24c267-ecf8-47ef-a8a2-164a221b59f6-->
<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/DocumentandEntityInformation" xlink:type="simple" xlink:href="twlo-20210331.xsd#DocumentandEntityInformation"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/DocumentandEntityInformation" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/CondensedConsolidatedBalanceSheets" xlink:type="simple" xlink:href="twlo-20210331.xsd#CondensedConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/CondensedConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_5ccaf9d7-d548-433b-aa96-a9b3fdc7ba1c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_4bba48b7-353c-4283-b18a-dd3d71ee0d75" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_5ccaf9d7-d548-433b-aa96-a9b3fdc7ba1c" xlink:to="loc_us-gaap_AssetsCurrent_4bba48b7-353c-4283-b18a-dd3d71ee0d75" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_d9a593ba-91bc-4019-8b60-8b8390a37b8a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_5ccaf9d7-d548-433b-aa96-a9b3fdc7ba1c" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_d9a593ba-91bc-4019-8b60-8b8390a37b8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_c10b77a9-3c22-490b-853d-6a459979f1a1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_5ccaf9d7-d548-433b-aa96-a9b3fdc7ba1c" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_c10b77a9-3c22-490b-853d-6a459979f1a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_175e6543-d4ed-4f4e-a262-cd2912e2828e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_5ccaf9d7-d548-433b-aa96-a9b3fdc7ba1c" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_175e6543-d4ed-4f4e-a262-cd2912e2828e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_ebae1d20-98ef-4dcb-a846-9f4325bbbe8e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_5ccaf9d7-d548-433b-aa96-a9b3fdc7ba1c" xlink:to="loc_us-gaap_Goodwill_ebae1d20-98ef-4dcb-a846-9f4325bbbe8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_0bb3fc84-b8f9-48b2-b0f6-a5855662fbe3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_5ccaf9d7-d548-433b-aa96-a9b3fdc7ba1c" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_0bb3fc84-b8f9-48b2-b0f6-a5855662fbe3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_1ec9a1c5-b4a4-495c-87dd-14d62890370d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_5a6717b7-e218-4b7c-b306-fd3084dbdf6f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_1ec9a1c5-b4a4-495c-87dd-14d62890370d" xlink:to="loc_us-gaap_AccountsPayableCurrent_5a6717b7-e218-4b7c-b306-fd3084dbdf6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_7c0a950a-4c50-41dd-aef1-f44edc6bee7e" xlink:href="twlo-20210331.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_1ec9a1c5-b4a4-495c-87dd-14d62890370d" xlink:to="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_7c0a950a-4c50-41dd-aef1-f44edc6bee7e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_a7937c84-1713-4031-a8e1-b23f61382480" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_1ec9a1c5-b4a4-495c-87dd-14d62890370d" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_a7937c84-1713-4031-a8e1-b23f61382480" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_9c6008eb-a598-4404-a92c-7bf9a37ee656" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_1ec9a1c5-b4a4-495c-87dd-14d62890370d" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_9c6008eb-a598-4404-a92c-7bf9a37ee656" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_8847f922-0733-40eb-b952-d251656185d1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_8b60ca45-5837-4c3b-9161-577a24ce1cff" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_8847f922-0733-40eb-b952-d251656185d1" xlink:to="loc_us-gaap_PreferredStockValue_8b60ca45-5837-4c3b-9161-577a24ce1cff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_ecffba02-30eb-4815-b42a-9952b936c1dc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_8847f922-0733-40eb-b952-d251656185d1" xlink:to="loc_us-gaap_CommonStockValue_ecffba02-30eb-4815-b42a-9952b936c1dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_60ab7b1a-5477-4d8a-9332-8d53e35281d1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_8847f922-0733-40eb-b952-d251656185d1" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_60ab7b1a-5477-4d8a-9332-8d53e35281d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_88bf2aac-2a1f-478b-8358-f767bbe45854" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_8847f922-0733-40eb-b952-d251656185d1" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_88bf2aac-2a1f-478b-8358-f767bbe45854" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_ecead4ef-d30f-4a74-9fbe-9de874e5db48" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_8847f922-0733-40eb-b952-d251656185d1" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_ecead4ef-d30f-4a74-9fbe-9de874e5db48" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_fc7cf73c-bd95-4d25-b625-cea468149e03" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_3d638034-979f-45b5-a9d5-ac1680158cef" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_fc7cf73c-bd95-4d25-b625-cea468149e03" xlink:to="loc_us-gaap_LiabilitiesCurrent_3d638034-979f-45b5-a9d5-ac1680158cef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_0d0a5ced-0405-49f8-a752-35d2bdfb0d3a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_fc7cf73c-bd95-4d25-b625-cea468149e03" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_0d0a5ced-0405-49f8-a752-35d2bdfb0d3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_b983ddd4-0144-4af7-976e-7de92fe7cb06" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_fc7cf73c-bd95-4d25-b625-cea468149e03" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_b983ddd4-0144-4af7-976e-7de92fe7cb06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_02c60f3f-3346-4477-bb1f-075e8620afea" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_fc7cf73c-bd95-4d25-b625-cea468149e03" xlink:to="loc_us-gaap_LongTermDebt_02c60f3f-3346-4477-bb1f-075e8620afea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_86b7930f-759c-4c64-b1c4-7b96d20b75d4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_fc7cf73c-bd95-4d25-b625-cea468149e03" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_86b7930f-759c-4c64-b1c4-7b96d20b75d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_e5061e65-7588-48f2-ad75-4360a51578b8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_f180614e-e391-4781-82bf-d9a0a17b5e99" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_e5061e65-7588-48f2-ad75-4360a51578b8" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_f180614e-e391-4781-82bf-d9a0a17b5e99" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_91395287-0bf4-4cb6-b87f-39f43956c090" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_e5061e65-7588-48f2-ad75-4360a51578b8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_91395287-0bf4-4cb6-b87f-39f43956c090" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_dc422b5a-c9e0-49e0-9495-404b1dac1b88" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_e5061e65-7588-48f2-ad75-4360a51578b8" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_dc422b5a-c9e0-49e0-9495-404b1dac1b88" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_806cc52b-f1b0-47ee-8fd3-cda08d645022" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_e5061e65-7588-48f2-ad75-4360a51578b8" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_806cc52b-f1b0-47ee-8fd3-cda08d645022" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_276ba1c6-4e04-41f8-9cbb-37c0be49522b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_16229358-a724-4392-bb49-194cbaf882bc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_276ba1c6-4e04-41f8-9cbb-37c0be49522b" xlink:to="loc_us-gaap_Liabilities_16229358-a724-4392-bb49-194cbaf882bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_f59ce5ae-4e73-4a2a-8195-3fd2be363dc2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_276ba1c6-4e04-41f8-9cbb-37c0be49522b" xlink:to="loc_us-gaap_CommitmentsAndContingencies_f59ce5ae-4e73-4a2a-8195-3fd2be363dc2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_36808f8b-eb08-48e0-9e8f-d8859646b6f7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_276ba1c6-4e04-41f8-9cbb-37c0be49522b" xlink:to="loc_us-gaap_StockholdersEquity_36808f8b-eb08-48e0-9e8f-d8859646b6f7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/CondensedConsolidatedStatementsofOperations" xlink:type="simple" xlink:href="twlo-20210331.xsd#CondensedConsolidatedStatementsofOperations"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/CondensedConsolidatedStatementsofOperations" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_c2bb46f7-90a7-4d75-83c2-98518595481b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_8ff5bb2a-5204-4110-b589-df82a04bfa30" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_c2bb46f7-90a7-4d75-83c2-98518595481b" xlink:to="loc_us-gaap_GrossProfit_8ff5bb2a-5204-4110-b589-df82a04bfa30" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_c7859395-7d34-4307-b016-59a8f71ab0b5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_c2bb46f7-90a7-4d75-83c2-98518595481b" xlink:to="loc_us-gaap_OperatingExpenses_c7859395-7d34-4307-b016-59a8f71ab0b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c4f66d4f-12cb-4898-88f8-10d08cecd1fc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_b11bae2a-df6a-410c-b366-982f7731f463" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_c4f66d4f-12cb-4898-88f8-10d08cecd1fc" xlink:to="loc_us-gaap_OperatingIncomeLoss_b11bae2a-df6a-410c-b366-982f7731f463" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_d8230d21-baf8-4390-9bc5-bc9ba774ce58" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c4f66d4f-12cb-4898-88f8-10d08cecd1fc" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_d8230d21-baf8-4390-9bc5-bc9ba774ce58" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_41625a8e-30b0-4fcb-a8bb-ffc7a7cae5ad" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_8c821c68-d1d9-4cb5-a364-6c62b16ef060" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_41625a8e-30b0-4fcb-a8bb-ffc7a7cae5ad" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_8c821c68-d1d9-4cb5-a364-6c62b16ef060" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_0a9a7ac4-da34-49a6-a3ef-4057d693f045" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_41625a8e-30b0-4fcb-a8bb-ffc7a7cae5ad" xlink:to="loc_us-gaap_CostOfRevenue_0a9a7ac4-da34-49a6-a3ef-4057d693f045" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_7cde00ae-2b47-4850-a921-f4d4490491d0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_58adf4b7-ad66-4a91-84a5-07e093dd3719" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_NetIncomeLossAvailableToCommonStockholdersBasic_7cde00ae-2b47-4850-a921-f4d4490491d0" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_58adf4b7-ad66-4a91-84a5-07e093dd3719" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_6b21a970-c3d4-4363-b4ad-235edbef9bec" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_NetIncomeLossAvailableToCommonStockholdersBasic_7cde00ae-2b47-4850-a921-f4d4490491d0" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_6b21a970-c3d4-4363-b4ad-235edbef9bec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_15ac49cc-1ddb-415f-be7d-83715872ebc7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_211d6260-0d58-4051-9a29-4ccb871f4a00" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_15ac49cc-1ddb-415f-be7d-83715872ebc7" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_211d6260-0d58-4051-9a29-4ccb871f4a00" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_f3c0c9a0-7380-4320-aa2f-59739d121404" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SellingAndMarketingExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_15ac49cc-1ddb-415f-be7d-83715872ebc7" xlink:to="loc_us-gaap_SellingAndMarketingExpense_f3c0c9a0-7380-4320-aa2f-59739d121404" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_fbec9a4b-3368-49b3-a7d0-6bed724f00cc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_15ac49cc-1ddb-415f-be7d-83715872ebc7" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_fbec9a4b-3368-49b3-a7d0-6bed724f00cc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/CondensedConsolidatedStatementsofComprehensiveLoss" xlink:type="simple" xlink:href="twlo-20210331.xsd#CondensedConsolidatedStatementsofComprehensiveLoss"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/CondensedConsolidatedStatementsofComprehensiveLoss" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_0bb5dfae-49d8-4139-8f9e-80612568e24c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_2f37c0ae-d0d3-4e15-b7c4-f1e7affff87f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_0bb5dfae-49d8-4139-8f9e-80612568e24c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_2f37c0ae-d0d3-4e15-b7c4-f1e7affff87f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_ddf43790-c81b-4ada-877c-7740280a250a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_0bb5dfae-49d8-4139-8f9e-80612568e24c" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_ddf43790-c81b-4ada-877c-7740280a250a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_bb586070-aa74-4f08-b5d8-29b53a656f9d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_3fee0895-a488-41cf-9ed8-dc12fbbabaa7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_bb586070-aa74-4f08-b5d8-29b53a656f9d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_3fee0895-a488-41cf-9ed8-dc12fbbabaa7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_ad323499-c2fd-43dc-921d-318444d9a7f7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_bb586070-aa74-4f08-b5d8-29b53a656f9d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_ad323499-c2fd-43dc-921d-318444d9a7f7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/CondensedConsolidatedStatementsofStockholdersEquity" xlink:type="simple" xlink:href="twlo-20210331.xsd#CondensedConsolidatedStatementsofStockholdersEquity"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/CondensedConsolidatedStatementsofStockholdersEquity" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/CondensedConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="twlo-20210331.xsd#CondensedConsolidatedStatementsofCashFlows"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/CondensedConsolidatedStatementsofCashFlows" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d44bff67-68b2-43da-bea6-9f2b6903dad7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_8f4ccf0e-793b-4d6c-b8e8-9999359deb6e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d44bff67-68b2-43da-bea6-9f2b6903dad7" xlink:to="loc_us-gaap_ProfitLoss_8f4ccf0e-793b-4d6c-b8e8-9999359deb6e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_42acf1eb-354f-4ac9-a425-5c19a8623013" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d44bff67-68b2-43da-bea6-9f2b6903dad7" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_42acf1eb-354f-4ac9-a425-5c19a8623013" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_LeasesRightOfUseAssetAmortization_0337bf5d-cfb4-419f-a91e-c1c082d61737" xlink:href="twlo-20210331.xsd#twlo_LeasesRightOfUseAssetAmortization"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d44bff67-68b2-43da-bea6-9f2b6903dad7" xlink:to="loc_twlo_LeasesRightOfUseAssetAmortization_0337bf5d-cfb4-419f-a91e-c1c082d61737" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_12ce47de-e7aa-4b3f-b597-67a5f6379a4a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d44bff67-68b2-43da-bea6-9f2b6903dad7" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_12ce47de-e7aa-4b3f-b597-67a5f6379a4a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_122ed99d-a16b-4f0a-b7eb-2129b967a8ff" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d44bff67-68b2-43da-bea6-9f2b6903dad7" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_122ed99d-a16b-4f0a-b7eb-2129b967a8ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_a372ce14-650a-4665-aff4-05c404777b90" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d44bff67-68b2-43da-bea6-9f2b6903dad7" xlink:to="loc_us-gaap_ShareBasedCompensation_a372ce14-650a-4665-aff4-05c404777b90" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostAmortization_771d7ccd-8156-4e8b-9802-08a9ed5720ff" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CapitalizedContractCostAmortization"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d44bff67-68b2-43da-bea6-9f2b6903dad7" xlink:to="loc_us-gaap_CapitalizedContractCostAmortization_771d7ccd-8156-4e8b-9802-08a9ed5720ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_2e4f92c1-feb7-48a1-8050-2feea4427d87" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProvisionForDoubtfulAccounts"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d44bff67-68b2-43da-bea6-9f2b6903dad7" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_2e4f92c1-feb7-48a1-8050-2feea4427d87" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_CommonStockDonorAdvisedFundValue_d09ede8d-8007-4126-b8df-b148084e654e" xlink:href="twlo-20210331.xsd#twlo_CommonStockDonorAdvisedFundValue"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d44bff67-68b2-43da-bea6-9f2b6903dad7" xlink:to="loc_twlo_CommonStockDonorAdvisedFundValue_d09ede8d-8007-4126-b8df-b148084e654e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_11e73657-8b30-4f5e-a5c3-9f9f1782fc6d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d44bff67-68b2-43da-bea6-9f2b6903dad7" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_11e73657-8b30-4f5e-a5c3-9f9f1782fc6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_83ebb2cf-a6f7-4b5c-86c9-ce8055c4f69c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d44bff67-68b2-43da-bea6-9f2b6903dad7" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_83ebb2cf-a6f7-4b5c-86c9-ce8055c4f69c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_e5632376-e9ee-451a-b503-0731d3a63501" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d44bff67-68b2-43da-bea6-9f2b6903dad7" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_e5632376-e9ee-451a-b503-0731d3a63501" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_a17a5020-a087-4b71-95ad-7d930fb60a80" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d44bff67-68b2-43da-bea6-9f2b6903dad7" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_a17a5020-a087-4b71-95ad-7d930fb60a80" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_faad0da6-a602-4e77-b51c-96ca39b40326" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentAssets"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d44bff67-68b2-43da-bea6-9f2b6903dad7" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_faad0da6-a602-4e77-b51c-96ca39b40326" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_7244950b-874f-43b0-a725-34f7c7b655c3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d44bff67-68b2-43da-bea6-9f2b6903dad7" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_7244950b-874f-43b0-a725-34f7c7b655c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_606e3861-c5c9-4054-848d-d8fc7498eac7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d44bff67-68b2-43da-bea6-9f2b6903dad7" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_606e3861-c5c9-4054-848d-d8fc7498eac7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_0542d175-0845-46d3-ae99-107326fe7937" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:calculationArc order="17" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d44bff67-68b2-43da-bea6-9f2b6903dad7" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_0542d175-0845-46d3-ae99-107326fe7937" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_IncreaseDecreaseInOperatingLeaseLiability_2727f20f-0534-4f46-b15c-40827636925d" xlink:href="twlo-20210331.xsd#twlo_IncreaseDecreaseInOperatingLeaseLiability"/>
    <link:calculationArc order="18" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d44bff67-68b2-43da-bea6-9f2b6903dad7" xlink:to="loc_twlo_IncreaseDecreaseInOperatingLeaseLiability_2727f20f-0534-4f46-b15c-40827636925d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_26b67842-3441-4d03-a80e-b77cfde66019" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities"/>
    <link:calculationArc order="19" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d44bff67-68b2-43da-bea6-9f2b6903dad7" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_26b67842-3441-4d03-a80e-b77cfde66019" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_3e455d82-e0ca-410a-9091-ada9449c6b36" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_d291db18-f27e-4733-a056-be67e75650da" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_3e455d82-e0ca-410a-9091-ada9449c6b36" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_d291db18-f27e-4733-a056-be67e75650da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_b85b66af-b94f-4a1e-8272-9760c15cdf2d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_3e455d82-e0ca-410a-9091-ada9449c6b36" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_b85b66af-b94f-4a1e-8272-9760c15cdf2d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_a8d2a78d-8a88-4352-82a3-3524983f5e0b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_3e455d82-e0ca-410a-9091-ada9449c6b36" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_a8d2a78d-8a88-4352-82a3-3524983f5e0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToDevelopSoftware_6e86a60e-c779-4ed5-af9c-32de67eb6852" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToDevelopSoftware"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_3e455d82-e0ca-410a-9091-ada9449c6b36" xlink:to="loc_us-gaap_PaymentsToDevelopSoftware_6e86a60e-c779-4ed5-af9c-32de67eb6852" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_b7a1c464-2f2f-425e-a1a7-d7124cd26bdf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_3e455d82-e0ca-410a-9091-ada9449c6b36" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_b7a1c464-2f2f-425e-a1a7-d7124cd26bdf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_d12f330d-0abb-487a-8dae-f256373b1b1d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_64182d62-a506-497a-aa0a-72e3fcc8ac06" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_d12f330d-0abb-487a-8dae-f256373b1b1d" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_64182d62-a506-497a-aa0a-72e3fcc8ac06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_5eb06488-0a10-4793-81e4-6afcf7f625c9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_d12f330d-0abb-487a-8dae-f256373b1b1d" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_5eb06488-0a10-4793-81e4-6afcf7f625c9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_0df96537-2afc-4288-9f36-ba6ac651cc39" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_d12f330d-0abb-487a-8dae-f256373b1b1d" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_0df96537-2afc-4288-9f36-ba6ac651cc39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_f8106611-3ece-4a32-8519-ca8303712b91" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_d12f330d-0abb-487a-8dae-f256373b1b1d" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_f8106611-3ece-4a32-8519-ca8303712b91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a0bec5aa-5d16-42ba-b2d7-7ff98f002851" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_f96028e9-d77f-47f5-88f2-e6bedef7ad0b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a0bec5aa-5d16-42ba-b2d7-7ff98f002851" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_f96028e9-d77f-47f5-88f2-e6bedef7ad0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_e6232534-7ec2-400e-bc2f-0e59e1a07f9e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_a0bec5aa-5d16-42ba-b2d7-7ff98f002851" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_e6232534-7ec2-400e-bc2f-0e59e1a07f9e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_4b5a7fcf-39e1-4cbf-b62c-f2d1cc168bdc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a0bec5aa-5d16-42ba-b2d7-7ff98f002851" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_4b5a7fcf-39e1-4cbf-b62c-f2d1cc168bdc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_a4d72ef0-ae7b-49d6-96d8-21cbd1fc8c34" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a0bec5aa-5d16-42ba-b2d7-7ff98f002851" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_a4d72ef0-ae7b-49d6-96d8-21cbd1fc8c34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfStockIssuanceCosts_7d363e74-c125-4e86-a8b9-36f1186daadd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_a0bec5aa-5d16-42ba-b2d7-7ff98f002851" xlink:to="loc_us-gaap_PaymentsOfStockIssuanceCosts_7d363e74-c125-4e86-a8b9-36f1186daadd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_ProceedsFromAPublicEquityOffering_efc8a43f-1715-4d6c-9e76-08445b97c8f4" xlink:href="twlo-20210331.xsd#twlo_ProceedsFromAPublicEquityOffering"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a0bec5aa-5d16-42ba-b2d7-7ff98f002851" xlink:to="loc_twlo_ProceedsFromAPublicEquityOffering_efc8a43f-1715-4d6c-9e76-08445b97c8f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_fec3fe3a-92f5-451b-ac73-25c86c85c75e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a0bec5aa-5d16-42ba-b2d7-7ff98f002851" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_fec3fe3a-92f5-451b-ac73-25c86c85c75e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/OrganizationandDescriptionofBusiness" xlink:type="simple" xlink:href="twlo-20210331.xsd#OrganizationandDescriptionofBusiness"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/OrganizationandDescriptionofBusiness" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/SummaryofSignificantAccountingPolicies" xlink:type="simple" xlink:href="twlo-20210331.xsd#SummaryofSignificantAccountingPolicies"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/SummaryofSignificantAccountingPolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/SummaryofSignificantAccountingPoliciesPolicies" xlink:type="simple" xlink:href="twlo-20210331.xsd#SummaryofSignificantAccountingPoliciesPolicies"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/SummaryofSignificantAccountingPoliciesPolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/FairValueMeasurements" xlink:type="simple" xlink:href="twlo-20210331.xsd#FairValueMeasurements"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/FairValueMeasurements" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/FairValueMeasurementsTables" xlink:type="simple" xlink:href="twlo-20210331.xsd#FairValueMeasurementsTables"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/FairValueMeasurementsTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/FairValueMeasurementsAssetsMeasuredatFairValueonaRecurringBasisDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#FairValueMeasurementsAssetsMeasuredatFairValueonaRecurringBasisDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/FairValueMeasurementsAssetsMeasuredatFairValueonaRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_twlo_FinancialAssetsAmortizedCostOrCarryingValue_aff23fc7-101c-4752-ab45-6fbcbd42dbf0" xlink:href="twlo-20210331.xsd#twlo_FinancialAssetsAmortizedCostOrCarryingValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_b286b5c8-6937-4a0c-8eaa-bedb95b381d6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_FinancialAssetsAmortizedCostOrCarryingValue_aff23fc7-101c-4752-ab45-6fbcbd42dbf0" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_b286b5c8-6937-4a0c-8eaa-bedb95b381d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_a2e10b7f-1535-4ca9-b5e5-b07af26c3841" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_FinancialAssetsAmortizedCostOrCarryingValue_aff23fc7-101c-4752-ab45-6fbcbd42dbf0" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_a2e10b7f-1535-4ca9-b5e5-b07af26c3841" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_b3c353ba-3166-414e-b287-2631f22fc385" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_cfdb0d53-330c-43db-a474-aa3d0c8e72b1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_b3c353ba-3166-414e-b287-2631f22fc385" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_cfdb0d53-330c-43db-a474-aa3d0c8e72b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_a0565d41-f8f0-40af-9208-779b91dee457" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_b3c353ba-3166-414e-b287-2631f22fc385" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_a0565d41-f8f0-40af-9208-779b91dee457" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_1e23c9bd-95e9-493b-9eff-d753e6d297e8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_b3c353ba-3166-414e-b287-2631f22fc385" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_1e23c9bd-95e9-493b-9eff-d753e6d297e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_ddc3d978-652e-4476-a191-8c5fcef9fd58" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_5ad15f86-0885-4abc-b7fc-b53b1da9a9fa" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_ddc3d978-652e-4476-a191-8c5fcef9fd58" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_5ad15f86-0885-4abc-b7fc-b53b1da9a9fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_fbea494d-8986-42b0-8136-3f81ee778ad7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_ddc3d978-652e-4476-a191-8c5fcef9fd58" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_fbea494d-8986-42b0-8136-3f81ee778ad7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/FairValueMeasurementsNarrativeDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#FairValueMeasurementsNarrativeDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/FairValueMeasurementsNarrativeDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/FairValueMeasurementsContractualMaturitiesDetails" xlink:type="simple" xlink:href="twlo-20210331.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_AvailableForSaleSecuritiesDebtSecurities_94f09d89-4350-41d3-bf22-6f8c4631746d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_18ed102d-3e30-48fa-b729-cf790c9e6402" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_94f09d89-4350-41d3-bf22-6f8c4631746d" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_18ed102d-3e30-48fa-b729-cf790c9e6402" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoFairValue_a3e864fa-7f90-4322-957e-57ec1c063777" xlink:href="twlo-20210331.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_94f09d89-4350-41d3-bf22-6f8c4631746d" xlink:to="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoFairValue_a3e864fa-7f90-4322-957e-57ec1c063777" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_8493048e-2a5e-4217-a952-f318c8c44c19" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_99b0479b-8e12-4f31-9f6f-41a1d835b161" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_8493048e-2a5e-4217-a952-f318c8c44c19" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_99b0479b-8e12-4f31-9f6f-41a1d835b161" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoAmortizedCostBasis_88f04722-c4f2-43d0-983e-3888452f1442" xlink:href="twlo-20210331.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_8493048e-2a5e-4217-a952-f318c8c44c19" xlink:to="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoAmortizedCostBasis_88f04722-c4f2-43d0-983e-3888452f1442" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/PropertyandEquipment" xlink:type="simple" xlink:href="twlo-20210331.xsd#PropertyandEquipment"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/PropertyandEquipment" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/PropertyandEquipmentTables" xlink:type="simple" xlink:href="twlo-20210331.xsd#PropertyandEquipmentTables"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/PropertyandEquipmentTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/PropertyandEquipmentPropertyandEquipmentNetDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#PropertyandEquipmentPropertyandEquipmentNetDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/PropertyandEquipmentPropertyandEquipmentNetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_45b0f271-3e5f-4d4d-a619-a1aaceba04c7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_0a43d574-1612-4eae-9b83-3005d8e06553" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_45b0f271-3e5f-4d4d-a619-a1aaceba04c7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_0a43d574-1612-4eae-9b83-3005d8e06553" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_151c9de4-c95b-4a0c-bfa3-596af88c3d74" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_45b0f271-3e5f-4d4d-a619-a1aaceba04c7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_151c9de4-c95b-4a0c-bfa3-596af88c3d74" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/PropertyandEquipmentNarrativeDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#PropertyandEquipmentNarrativeDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/PropertyandEquipmentNarrativeDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/RightofUseAssetandLeaseLiabilities" xlink:type="simple" xlink:href="twlo-20210331.xsd#RightofUseAssetandLeaseLiabilities"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/RightofUseAssetandLeaseLiabilities" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/RightofUseAssetandLeaseLiabilitiesTables" xlink:type="simple" xlink:href="twlo-20210331.xsd#RightofUseAssetandLeaseLiabilitiesTables"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/RightofUseAssetandLeaseLiabilitiesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/RightofUseAssetandLeaseLiabilitiesNarrativeDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#RightofUseAssetandLeaseLiabilitiesNarrativeDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/RightofUseAssetandLeaseLiabilitiesNarrativeDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/RightofUseAssetandLeaseLiabilitiesComponentsofLeaseExpenseDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#RightofUseAssetandLeaseLiabilitiesComponentsofLeaseExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/RightofUseAssetandLeaseLiabilitiesComponentsofLeaseExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseCost_6fd99a2a-d16d-4a7a-9ec6-3747c6836ba4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_80e65c72-1fc1-4493-b0c3-0cf2619b535d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_6fd99a2a-d16d-4a7a-9ec6-3747c6836ba4" xlink:to="loc_us-gaap_OperatingLeaseCost_80e65c72-1fc1-4493-b0c3-0cf2619b535d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_6ea6a271-3158-41b2-85c7-831933d63b37" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseRightOfUseAssetAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_6fd99a2a-d16d-4a7a-9ec6-3747c6836ba4" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_6ea6a271-3158-41b2-85c7-831933d63b37" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseInterestExpense_729b8e94-b5be-49d3-a3e1-9bf1c7a0de48" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseInterestExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_6fd99a2a-d16d-4a7a-9ec6-3747c6836ba4" xlink:to="loc_us-gaap_FinanceLeaseInterestExpense_729b8e94-b5be-49d3-a3e1-9bf1c7a0de48" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermLeaseCost_f82d6739-582f-422c-b039-fc496498ac25" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermLeaseCost"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_6fd99a2a-d16d-4a7a-9ec6-3747c6836ba4" xlink:to="loc_us-gaap_ShortTermLeaseCost_f82d6739-582f-422c-b039-fc496498ac25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableLeaseCost_40b04185-a089-4586-bd5a-fdbeb60a37c8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VariableLeaseCost"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_6fd99a2a-d16d-4a7a-9ec6-3747c6836ba4" xlink:to="loc_us-gaap_VariableLeaseCost_40b04185-a089-4586-bd5a-fdbeb60a37c8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/RightofUseAssetandLeaseLiabilitiesBalanceSheetClassificationofLeaseAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#RightofUseAssetandLeaseLiabilitiesBalanceSheetClassificationofLeaseAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/RightofUseAssetandLeaseLiabilitiesBalanceSheetClassificationofLeaseAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_twlo_LeaseLiability_f650e862-be02-4271-92f2-052f78a3a19a" xlink:href="twlo-20210331.xsd#twlo_LeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_1b79a4f5-6a11-41c6-a23a-aaa21c9eca0c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_LeaseLiability_f650e862-be02-4271-92f2-052f78a3a19a" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_1b79a4f5-6a11-41c6-a23a-aaa21c9eca0c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_d2a1b256-6826-4183-9ce7-15da850b58cc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiabilityCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_LeaseLiability_f650e862-be02-4271-92f2-052f78a3a19a" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_d2a1b256-6826-4183-9ce7-15da850b58cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_7b523d0e-919d-4795-95ce-24f7083b35ba" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_LeaseLiability_f650e862-be02-4271-92f2-052f78a3a19a" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_7b523d0e-919d-4795-95ce-24f7083b35ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_49202011-15eb-40cd-8a7a-447ea1375848" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_LeaseLiability_f650e862-be02-4271-92f2-052f78a3a19a" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_49202011-15eb-40cd-8a7a-447ea1375848" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_LeaseRightOfUseAsset_888e200e-a10d-4cf8-bc6c-05af6bad2335" xlink:href="twlo-20210331.xsd#twlo_LeaseRightOfUseAsset"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_f5db64b1-d8d9-42b3-b534-62dd08cba990" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_LeaseRightOfUseAsset_888e200e-a10d-4cf8-bc6c-05af6bad2335" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_f5db64b1-d8d9-42b3-b534-62dd08cba990" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAsset_bd4a6d0a-b2da-47e6-86eb-fb952f5fc3e5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseRightOfUseAsset"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_LeaseRightOfUseAsset_888e200e-a10d-4cf8-bc6c-05af6bad2335" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAsset_bd4a6d0a-b2da-47e6-86eb-fb952f5fc3e5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/RightofUseAssetandLeaseLiabilitiesSupplementalCashFlowsDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#RightofUseAssetandLeaseLiabilitiesSupplementalCashFlowsDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/RightofUseAssetandLeaseLiabilitiesSupplementalCashFlowsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/RightofUseAssetandLeaseLiabilitiesLeaseMaturitiesDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#RightofUseAssetandLeaseLiabilitiesLeaseMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/RightofUseAssetandLeaseLiabilitiesLeaseMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_fb74a572-d966-4d3a-ab09-8f056574c4a1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_5a3a2597-25db-483d-bf77-61be0bd29927" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_fb74a572-d966-4d3a-ab09-8f056574c4a1" xlink:to="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_5a3a2597-25db-483d-bf77-61be0bd29927" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_1056db78-2554-4422-bce0-0b08fe443a27" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_fb74a572-d966-4d3a-ab09-8f056574c4a1" xlink:to="loc_us-gaap_FinanceLeaseLiability_1056db78-2554-4422-bce0-0b08fe443a27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_8cd517dc-abbb-43a9-9ee7-7b030aad21ea" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_2abc7796-3d05-488d-9eb3-7cba3659bd2f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiabilityCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiability_8cd517dc-abbb-43a9-9ee7-7b030aad21ea" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_2abc7796-3d05-488d-9eb3-7cba3659bd2f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_957a1286-9585-4814-9114-1aa9cedca3ac" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiability_8cd517dc-abbb-43a9-9ee7-7b030aad21ea" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_957a1286-9585-4814-9114-1aa9cedca3ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_7e2a6b3f-3210-4ca2-bbdd-4dcf77b1e59d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_6b32841e-b644-49fc-8a8c-6d38f720b2ef" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_7e2a6b3f-3210-4ca2-bbdd-4dcf77b1e59d" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_6b32841e-b644-49fc-8a8c-6d38f720b2ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_debfcfdc-e287-4d84-971c-6d76222c6639" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_7e2a6b3f-3210-4ca2-bbdd-4dcf77b1e59d" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_debfcfdc-e287-4d84-971c-6d76222c6639" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_bc967825-ece2-4656-ba90-4daf5c726a82" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_7e2a6b3f-3210-4ca2-bbdd-4dcf77b1e59d" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_bc967825-ece2-4656-ba90-4daf5c726a82" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_71828849-350e-4201-91f3-29328c7c9530" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_7e2a6b3f-3210-4ca2-bbdd-4dcf77b1e59d" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_71828849-350e-4201-91f3-29328c7c9530" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_906ef843-c4a9-4d88-982c-759fd5ff3cc2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_7e2a6b3f-3210-4ca2-bbdd-4dcf77b1e59d" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_906ef843-c4a9-4d88-982c-759fd5ff3cc2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFour_d48bc94b-dacf-4814-a28f-725d8e5e12d8" xlink:href="twlo-20210331.xsd#twlo_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFour"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_7e2a6b3f-3210-4ca2-bbdd-4dcf77b1e59d" xlink:to="loc_twlo_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFour_d48bc94b-dacf-4814-a28f-725d8e5e12d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_3021058c-44c0-4b9d-b180-15f67a394aff" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_77a25763-3513-4058-a126-b67f16d95da5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeaseLiability_3021058c-44c0-4b9d-b180-15f67a394aff" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_77a25763-3513-4058-a126-b67f16d95da5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_ad8a6ceb-26df-433f-a57b-39a6f8476e75" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeaseLiability_3021058c-44c0-4b9d-b180-15f67a394aff" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_ad8a6ceb-26df-433f-a57b-39a6f8476e75" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/RightofUseAssetandLeaseLiabilitiesLeaseMaturitiesDetails_1" xlink:type="simple" xlink:href="twlo-20210331.xsd#RightofUseAssetandLeaseLiabilitiesLeaseMaturitiesDetails_1"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/RightofUseAssetandLeaseLiabilitiesLeaseMaturitiesDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_ff0b3758-99aa-4b73-a194-7d0e9539bfc1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_d227e256-fb63-4dce-a60d-e8cb22d9cd85" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_ff0b3758-99aa-4b73-a194-7d0e9539bfc1" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_d227e256-fb63-4dce-a60d-e8cb22d9cd85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_FinanceLeaseLiabilityPaymentsDueAfterYearFour_5f59d2f9-bd2d-4138-8147-1f23d1642c1b" xlink:href="twlo-20210331.xsd#twlo_FinanceLeaseLiabilityPaymentsDueAfterYearFour"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_ff0b3758-99aa-4b73-a194-7d0e9539bfc1" xlink:to="loc_twlo_FinanceLeaseLiabilityPaymentsDueAfterYearFour_5f59d2f9-bd2d-4138-8147-1f23d1642c1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_ca6ac4cd-a1d5-48c4-aff4-bb51db0c6302" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_ff0b3758-99aa-4b73-a194-7d0e9539bfc1" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_ca6ac4cd-a1d5-48c4-aff4-bb51db0c6302" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_e391ff13-b621-4dae-9574-af8809ca13da" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_ff0b3758-99aa-4b73-a194-7d0e9539bfc1" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_e391ff13-b621-4dae-9574-af8809ca13da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_bb802487-d470-4f0a-9cd5-0f2d630f8654" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_ff0b3758-99aa-4b73-a194-7d0e9539bfc1" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_bb802487-d470-4f0a-9cd5-0f2d630f8654" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_f852e5fb-00a0-4825-9b55-980688b20dc9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_ff0b3758-99aa-4b73-a194-7d0e9539bfc1" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_f852e5fb-00a0-4825-9b55-980688b20dc9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_7e3d4a0b-34e8-4187-9fd5-dde911b6ae31" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_88e58b78-4515-4e67-a07c-138b64205561" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_7e3d4a0b-34e8-4187-9fd5-dde911b6ae31" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_88e58b78-4515-4e67-a07c-138b64205561" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_ae701e53-7cea-4db4-8a2f-2105e1ddab17" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_7e3d4a0b-34e8-4187-9fd5-dde911b6ae31" xlink:to="loc_us-gaap_OperatingLeaseLiability_ae701e53-7cea-4db4-8a2f-2105e1ddab17" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/BusinessCombinations" xlink:type="simple" xlink:href="twlo-20210331.xsd#BusinessCombinations"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/BusinessCombinations" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/BusinessCombinationsTables" xlink:type="simple" xlink:href="twlo-20210331.xsd#BusinessCombinationsTables"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/BusinessCombinationsTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/BusinessCombinationsConsiderationDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#BusinessCombinationsConsiderationDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/BusinessCombinationsConsiderationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/BusinessCombinationsPurchasePriceAllocationDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#BusinessCombinationsPurchasePriceAllocationDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/BusinessCombinationsPurchasePriceAllocationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_d0ef11c2-0430-47a5-908a-ee80f454672b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_29cf4de3-dcda-4b94-adaa-c26858c54462" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_d0ef11c2-0430-47a5-908a-ee80f454672b" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_29cf4de3-dcda-4b94-adaa-c26858c54462" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_974fb054-535f-4a2c-a523-4cd3801a9f16" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_d0ef11c2-0430-47a5-908a-ee80f454672b" xlink:to="loc_us-gaap_Goodwill_974fb054-535f-4a2c-a523-4cd3801a9f16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetTangibleLiabilities_9ab824dc-9499-4334-9748-1ae3caa983d4" xlink:href="twlo-20210331.xsd#twlo_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetTangibleLiabilities"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_d0ef11c2-0430-47a5-908a-ee80f454672b" xlink:to="loc_twlo_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetTangibleLiabilities_9ab824dc-9499-4334-9748-1ae3caa983d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_ef399573-1362-4098-b263-530900efac6c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_d0ef11c2-0430-47a5-908a-ee80f454672b" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_ef399573-1362-4098-b263-530900efac6c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/BusinessCombinationsIdentifiableFinitelivedIntangibleAssetsDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#BusinessCombinationsIdentifiableFinitelivedIntangibleAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/BusinessCombinationsIdentifiableFinitelivedIntangibleAssetsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssets" xlink:type="simple" xlink:href="twlo-20210331.xsd#GoodwillandIntangibleAssets"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/GoodwillandIntangibleAssets" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssetsTables" xlink:type="simple" xlink:href="twlo-20210331.xsd#GoodwillandIntangibleAssetsTables"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/GoodwillandIntangibleAssetsTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssetsGoodwillRollforwardDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#GoodwillandIntangibleAssetsGoodwillRollforwardDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/GoodwillandIntangibleAssetsGoodwillRollforwardDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssetsIntangibleAssetsDetails" xlink:type="simple" xlink:href="twlo-20210331.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_IntangibleAssetsGrossExcludingGoodwill_c20df3b5-f7ab-4e20-805a-355253fc0666" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_815a4879-8c37-4210-bc67-65cd23c4f040" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_c20df3b5-f7ab-4e20-805a-355253fc0666" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_815a4879-8c37-4210-bc67-65cd23c4f040" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_c0b0d503-cf86-4fba-bac7-303d6dd5448a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_c20df3b5-f7ab-4e20-805a-355253fc0666" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_c0b0d503-cf86-4fba-bac7-303d6dd5448a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_341d436a-86f7-4e2c-9eb5-e4bc4e470903" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_60732ac8-e2a3-4bfc-b895-91dea366728a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_341d436a-86f7-4e2c-9eb5-e4bc4e470903" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_60732ac8-e2a3-4bfc-b895-91dea366728a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_ed166924-e94f-452c-a946-7aeb3bcf498b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_341d436a-86f7-4e2c-9eb5-e4bc4e470903" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_ed166924-e94f-452c-a946-7aeb3bcf498b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_ee094a6a-8305-4285-88a7-4112b5fcca1c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_0408e366-3089-42ab-b0e8-cc4fda738247" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_ee094a6a-8305-4285-88a7-4112b5fcca1c" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_0408e366-3089-42ab-b0e8-cc4fda738247" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_5de162e4-cb9a-4614-b85d-494c295db5f9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_ee094a6a-8305-4285-88a7-4112b5fcca1c" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_5de162e4-cb9a-4614-b85d-494c295db5f9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssetsIntangibleAssetsDetails_1" xlink:type="simple" xlink:href="twlo-20210331.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_6536cf67-9a83-44b6-8af9-813c53390524" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_8c428dcc-55ae-4674-a5b9-f9ef38ed6da4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_6536cf67-9a83-44b6-8af9-813c53390524" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_8c428dcc-55ae-4674-a5b9-f9ef38ed6da4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_88d2782f-e894-47b0-a5a7-19edd415621e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_6536cf67-9a83-44b6-8af9-813c53390524" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_88d2782f-e894-47b0-a5a7-19edd415621e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssetsAmortizationExpenseDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#GoodwillandIntangibleAssetsAmortizationExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/GoodwillandIntangibleAssetsAmortizationExpenseDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssetsTotalEstimatedFutureAmortizationExpenseDetails" xlink:type="simple" xlink:href="twlo-20210331.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_10c02790-98b3-40c4-b3ef-176c8be0bd41" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_24bddc87-4b3e-4096-84d7-e302b0e17567" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_10c02790-98b3-40c4-b3ef-176c8be0bd41" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_24bddc87-4b3e-4096-84d7-e302b0e17567" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_4ee6c9c4-aead-4a5b-9b0c-001b9a21c43c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_10c02790-98b3-40c4-b3ef-176c8be0bd41" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_4ee6c9c4-aead-4a5b-9b0c-001b9a21c43c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_e10f6103-7b0e-4bd2-b66c-96f7d690ac60" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_10c02790-98b3-40c4-b3ef-176c8be0bd41" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_e10f6103-7b0e-4bd2-b66c-96f7d690ac60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_15a4df27-a657-4b24-9dfd-5956dd8847d1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_10c02790-98b3-40c4-b3ef-176c8be0bd41" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_15a4df27-a657-4b24-9dfd-5956dd8847d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_55d4770d-3650-4031-98aa-c0bbe3ecd7f8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_10c02790-98b3-40c4-b3ef-176c8be0bd41" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_55d4770d-3650-4031-98aa-c0bbe3ecd7f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearFour_aeafdd0e-4870-4844-98c8-da52d004cea0" xlink:href="twlo-20210331.xsd#twlo_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearFour"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_10c02790-98b3-40c4-b3ef-176c8be0bd41" xlink:to="loc_twlo_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearFour_aeafdd0e-4870-4844-98c8-da52d004cea0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/AccruedExpensesandOtherLiabilities" xlink:type="simple" xlink:href="twlo-20210331.xsd#AccruedExpensesandOtherLiabilities"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/AccruedExpensesandOtherLiabilities" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/AccruedExpensesandOtherLiabilitiesTables" xlink:type="simple" xlink:href="twlo-20210331.xsd#AccruedExpensesandOtherLiabilitiesTables"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/AccruedExpensesandOtherLiabilitiesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/AccruedExpensesandOtherLiabilitiesAccruedExpensesandOtherLiabilitiesDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#AccruedExpensesandOtherLiabilitiesAccruedExpensesandOtherLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/AccruedExpensesandOtherLiabilitiesAccruedExpensesandOtherLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_96769e8a-4fd2-4a2b-98fc-4838be3264b6" xlink:href="twlo-20210331.xsd#twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_9b952e77-95a9-4f28-b13e-e8317f930d69" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_96769e8a-4fd2-4a2b-98fc-4838be3264b6" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_9b952e77-95a9-4f28-b13e-e8317f930d69" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedBonusesCurrent_6c4436c4-4f0e-4d65-85fd-b745c4f97695" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccruedBonusesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_96769e8a-4fd2-4a2b-98fc-4838be3264b6" xlink:to="loc_us-gaap_AccruedBonusesCurrent_6c4436c4-4f0e-4d65-85fd-b745c4f97695" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AccruedCostOfRevenueCurrent_73c8c953-7b9d-48e3-bc02-841b985101f2" xlink:href="twlo-20210331.xsd#twlo_AccruedCostOfRevenueCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_96769e8a-4fd2-4a2b-98fc-4838be3264b6" xlink:to="loc_twlo_AccruedCostOfRevenueCurrent_73c8c953-7b9d-48e3-bc02-841b985101f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxesPayableCurrent_1eb84b2d-1469-432d-b9f2-aeba738746bb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TaxesPayableCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_96769e8a-4fd2-4a2b-98fc-4838be3264b6" xlink:to="loc_us-gaap_TaxesPayableCurrent_1eb84b2d-1469-432d-b9f2-aeba738746bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherEmployeeRelatedLiabilitiesCurrent_cdc7492d-650a-497b-9401-806bb9c75dcd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherEmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_96769e8a-4fd2-4a2b-98fc-4838be3264b6" xlink:to="loc_us-gaap_OtherEmployeeRelatedLiabilitiesCurrent_cdc7492d-650a-497b-9401-806bb9c75dcd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_3105ceb7-b4bd-4cf4-ab7f-4fcec67888de" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_96769e8a-4fd2-4a2b-98fc-4838be3264b6" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_3105ceb7-b4bd-4cf4-ab7f-4fcec67888de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredRentCreditCurrent_6d9acfcf-f163-4f83-9021-a65bc00d0f51" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredRentCreditCurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_96769e8a-4fd2-4a2b-98fc-4838be3264b6" xlink:to="loc_us-gaap_DeferredRentCreditCurrent_6d9acfcf-f163-4f83-9021-a65bc00d0f51" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/AccruedExpensesandOtherLiabilitiesLongtermLiabilitiesDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#AccruedExpensesandOtherLiabilitiesLongtermLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/AccruedExpensesandOtherLiabilitiesLongtermLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_a6d3f955-925d-4479-a9a0-657af56a899a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_8ee5299a-b65e-42c0-9cef-038024b0964e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_a6d3f955-925d-4479-a9a0-657af56a899a" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_8ee5299a-b65e-42c0-9cef-038024b0964e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_BusinessCombinationConsiderationHoldbackNonCurrent_17c3133c-9597-4e05-bd22-7b2c5e97875a" xlink:href="twlo-20210331.xsd#twlo_BusinessCombinationConsiderationHoldbackNonCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_a6d3f955-925d-4479-a9a0-657af56a899a" xlink:to="loc_twlo_BusinessCombinationConsiderationHoldbackNonCurrent_17c3133c-9597-4e05-bd22-7b2c5e97875a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesNoncurrent_110ec3d6-f824-465f-9474-3d3efb6e6f90" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAccruedLiabilitiesNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_a6d3f955-925d-4479-a9a0-657af56a899a" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesNoncurrent_110ec3d6-f824-465f-9474-3d3efb6e6f90" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/NotesPayable" xlink:type="simple" xlink:href="twlo-20210331.xsd#NotesPayable"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/NotesPayable" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/NotesPayableTables" xlink:type="simple" xlink:href="twlo-20210331.xsd#NotesPayableTables"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/NotesPayableTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/NotesPayableSummaryofLongTermDebtDetails" xlink:type="simple" xlink:href="twlo-20210331.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_b6717b6f-e350-46e6-a433-23c564842e20" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_09652b9a-a383-4dcd-9a9e-3f5d928e2f77" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_b6717b6f-e350-46e6-a433-23c564842e20" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_09652b9a-a383-4dcd-9a9e-3f5d928e2f77" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_b1b8d777-1615-4ca9-abe6-9960ba155c78" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_b6717b6f-e350-46e6-a433-23c564842e20" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_b1b8d777-1615-4ca9-abe6-9960ba155c78" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_271dadcf-dee9-4bbd-aad9-ce842bfe3ad8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_b6717b6f-e350-46e6-a433-23c564842e20" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_271dadcf-dee9-4bbd-aad9-ce842bfe3ad8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/NotesPayableIssuanceDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#NotesPayableIssuanceDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/NotesPayableIssuanceDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/NotesPayableTermsDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#NotesPayableTermsDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/NotesPayableTermsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/NotesPayableNetCarryingAmountDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#NotesPayableNetCarryingAmountDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/NotesPayableNetCarryingAmountDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/NotesPayableInterestExpenseDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#NotesPayableInterestExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/NotesPayableInterestExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_d47c35e9-1735-4bf5-bd35-e431e69bb786" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpenseDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfDebtDiscountPremium_830c10cc-1e84-4911-9af0-7a78b624b3fe" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AmortizationOfDebtDiscountPremium"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseDebt_d47c35e9-1735-4bf5-bd35-e431e69bb786" xlink:to="loc_us-gaap_AmortizationOfDebtDiscountPremium_830c10cc-1e84-4911-9af0-7a78b624b3fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebtExcludingAmortization_4bd004df-e049-4281-94f5-3c20ad5e5656" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpenseDebtExcludingAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseDebt_d47c35e9-1735-4bf5-bd35-e431e69bb786" xlink:to="loc_us-gaap_InterestExpenseDebtExcludingAmortization_4bd004df-e049-4281-94f5-3c20ad5e5656" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_9f1e0b61-63e0-414c-8744-67aa25a07929" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseDebt_d47c35e9-1735-4bf5-bd35-e431e69bb786" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_9f1e0b61-63e0-414c-8744-67aa25a07929" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/NotesPayableCappedCallsDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#NotesPayableCappedCallsDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/NotesPayableCappedCallsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/SupplementalBalanceSheetInformation" xlink:type="simple" xlink:href="twlo-20210331.xsd#SupplementalBalanceSheetInformation"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/SupplementalBalanceSheetInformation" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/SupplementalBalanceSheetInformationTables" xlink:type="simple" xlink:href="twlo-20210331.xsd#SupplementalBalanceSheetInformationTables"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/SupplementalBalanceSheetInformationTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/SupplementalBalanceSheetInformationAllowanceforDoubtfulAccountsDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#SupplementalBalanceSheetInformationAllowanceforDoubtfulAccountsDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/SupplementalBalanceSheetInformationAllowanceforDoubtfulAccountsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/SupplementalBalanceSheetInformationSalesCreditReserveDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#SupplementalBalanceSheetInformationSalesCreditReserveDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/SupplementalBalanceSheetInformationSalesCreditReserveDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/RevenuebyGeographicArea" xlink:type="simple" xlink:href="twlo-20210331.xsd#RevenuebyGeographicArea"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/RevenuebyGeographicArea" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/RevenuebyGeographicAreaTables" xlink:type="simple" xlink:href="twlo-20210331.xsd#RevenuebyGeographicAreaTables"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/RevenuebyGeographicAreaTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/RevenuebyGeographicAreaRevenuebyGeographicAreaDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#RevenuebyGeographicAreaRevenuebyGeographicAreaDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/RevenuebyGeographicAreaRevenuebyGeographicAreaDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/RevenuebyGeographicAreaPercentageofRevenuebyGeographicAreaDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#RevenuebyGeographicAreaPercentageofRevenuebyGeographicAreaDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/RevenuebyGeographicAreaPercentageofRevenuebyGeographicAreaDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/CommitmentsandContingencies" xlink:type="simple" xlink:href="twlo-20210331.xsd#CommitmentsandContingencies"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/CommitmentsandContingencies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/CommitmentsandContingenciesOtherCommitmentsDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#CommitmentsandContingenciesOtherCommitmentsDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/CommitmentsandContingenciesOtherCommitmentsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/CommitmentsandContingenciesIndemnificationAgreementsDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#CommitmentsandContingenciesIndemnificationAgreementsDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/CommitmentsandContingenciesIndemnificationAgreementsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/CommitmentsandContingenciesOthertaxesDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#CommitmentsandContingenciesOthertaxesDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/CommitmentsandContingenciesOthertaxesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/StockholdersEquity" xlink:type="simple" xlink:href="twlo-20210331.xsd#StockholdersEquity"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/StockholdersEquity" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/StockholdersEquityTables" xlink:type="simple" xlink:href="twlo-20210331.xsd#StockholdersEquityTables"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/StockholdersEquityTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/StockholdersEquityPreferredStockDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#StockholdersEquityPreferredStockDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/StockholdersEquityPreferredStockDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/StockholdersEquityCommonStockDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#StockholdersEquityCommonStockDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/StockholdersEquityCommonStockDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/StockholdersEquityCommonStockSharesReservedDetails" xlink:type="simple" xlink:href="twlo-20210331.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_c420a384-a742-4799-af84-ebdb48f06240" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_2ff49ae1-ef15-4de6-8434-587366cd6b9f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_c420a384-a742-4799-af84-ebdb48f06240" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_2ff49ae1-ef15-4de6-8434-587366cd6b9f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_7ae7d39a-8136-4bf0-a1be-3c932f6e4cdc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_c420a384-a742-4799-af84-ebdb48f06240" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_7ae7d39a-8136-4bf0-a1be-3c932f6e4cdc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_CommonStockCapitalSharesReservedForFutureIssuanceDonorAdvisedFund_915d8cda-4847-4d19-9656-bdbd658e29d7" xlink:href="twlo-20210331.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_c420a384-a742-4799-af84-ebdb48f06240" xlink:to="loc_twlo_CommonStockCapitalSharesReservedForFutureIssuanceDonorAdvisedFund_915d8cda-4847-4d19-9656-bdbd658e29d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_e920c7a6-feb5-4d09-bac5-85f409cfdda5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_c420a384-a742-4799-af84-ebdb48f06240" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_e920c7a6-feb5-4d09-bac5-85f409cfdda5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_CommonStockCapitalSharesReservedForConvertibleDebt_7b1b22ce-1147-4233-ab2b-4f55dac14472" xlink:href="twlo-20210331.xsd#twlo_CommonStockCapitalSharesReservedForConvertibleDebt"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_c420a384-a742-4799-af84-ebdb48f06240" xlink:to="loc_twlo_CommonStockCapitalSharesReservedForConvertibleDebt_7b1b22ce-1147-4233-ab2b-4f55dac14472" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/StockholdersEquityStockholdersEquityPublicOfferingDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#StockholdersEquityStockholdersEquityPublicOfferingDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/StockholdersEquityStockholdersEquityPublicOfferingDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/StockBasedCompensation" xlink:type="simple" xlink:href="twlo-20210331.xsd#StockBasedCompensation"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/StockBasedCompensation" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/StockBasedCompensationTables" xlink:type="simple" xlink:href="twlo-20210331.xsd#StockBasedCompensationTables"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/StockBasedCompensationTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/StockBasedCompensationNarrativeDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#StockBasedCompensationNarrativeDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/StockBasedCompensationNarrativeDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/StockBasedCompensationStockOptionActivityDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#StockBasedCompensationStockOptionActivityDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/StockBasedCompensationStockOptionActivityDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/StockBasedCompensationStockOptionsAdditionalInformationDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#StockBasedCompensationStockOptionsAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/StockBasedCompensationStockOptionsAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/StockBasedCompensationRestrictedStockUnitsActivityDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#StockBasedCompensationRestrictedStockUnitsActivityDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/StockBasedCompensationRestrictedStockUnitsActivityDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/StockBasedCompensationRestrictedStockUnitsUnrecognizedCompensationCostDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#StockBasedCompensationRestrictedStockUnitsUnrecognizedCompensationCostDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/StockBasedCompensationRestrictedStockUnitsUnrecognizedCompensationCostDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/StockBasedCompensationValuationAssumptionsDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#StockBasedCompensationValuationAssumptionsDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/StockBasedCompensationValuationAssumptionsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/StockBasedCompensationStockBasedCompensationExpenseDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#StockBasedCompensationStockBasedCompensationExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/StockBasedCompensationStockBasedCompensationExpenseDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/NetLossPerShareAttributabletoCommonStockholders" xlink:type="simple" xlink:href="twlo-20210331.xsd#NetLossPerShareAttributabletoCommonStockholders"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/NetLossPerShareAttributabletoCommonStockholders" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/NetLossPerShareAttributabletoCommonStockholdersTables" xlink:type="simple" xlink:href="twlo-20210331.xsd#NetLossPerShareAttributabletoCommonStockholdersTables"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/NetLossPerShareAttributabletoCommonStockholdersTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/NetLossperShareAttributabletoCommonStockholdersGeneralInformationDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#NetLossperShareAttributabletoCommonStockholdersGeneralInformationDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/NetLossperShareAttributabletoCommonStockholdersGeneralInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/NetLossPerShareAttributabletoCommonStockholdersBasicandDilutedNetLossperShareAttributabletoCommonStockholdersDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#NetLossPerShareAttributabletoCommonStockholdersBasicandDilutedNetLossperShareAttributabletoCommonStockholdersDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/NetLossPerShareAttributabletoCommonStockholdersBasicandDilutedNetLossperShareAttributabletoCommonStockholdersDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/NetLossPerShareAttributabletoCommonStockholdersAntiDilutiveSecuritiesDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#NetLossPerShareAttributabletoCommonStockholdersAntiDilutiveSecuritiesDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/NetLossPerShareAttributabletoCommonStockholdersAntiDilutiveSecuritiesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/IncomeTaxes" xlink:type="simple" xlink:href="twlo-20210331.xsd#IncomeTaxes"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/IncomeTaxes" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.twilio.com/role/IncomeTaxesIncomeTaxesAdditionalInformationDetails" xlink:type="simple" xlink:href="twlo-20210331.xsd#IncomeTaxesIncomeTaxesAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/IncomeTaxesIncomeTaxesAdditionalInformationDetails" xlink:type="extended"/>
</link:linkbase>
