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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:2534789e-4b88-4456-aca1-c3fa7af67dc3,g:d8df852c-6dd7-4af0-9b9c-5c1e2f1b8605-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:roleRef roleURI="http://www.twilio.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="simple" xlink:href="twlo-20210630.xsd#CondensedConsolidatedBalanceSheetsUnaudited"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_2e2b29a8-9230-4ecb-8369-8d8ca861843c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_ecc46c24-95ff-4cfd-b10c-126f1c6cfa14" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_2e2b29a8-9230-4ecb-8369-8d8ca861843c" xlink:to="loc_us-gaap_Liabilities_ecc46c24-95ff-4cfd-b10c-126f1c6cfa14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_39a850ad-c533-4c4c-a763-afb00699e6b4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_2e2b29a8-9230-4ecb-8369-8d8ca861843c" xlink:to="loc_us-gaap_CommitmentsAndContingencies_39a850ad-c533-4c4c-a763-afb00699e6b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_ca145105-e2b1-4a02-99af-f06a908ccdb3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_2e2b29a8-9230-4ecb-8369-8d8ca861843c" xlink:to="loc_us-gaap_StockholdersEquity_ca145105-e2b1-4a02-99af-f06a908ccdb3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_6f517256-7a54-467e-ac05-7f994feed41c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_ec6068fa-4a11-4d7f-9adf-426c511caefd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_6f517256-7a54-467e-ac05-7f994feed41c" xlink:to="loc_us-gaap_AssetsCurrent_ec6068fa-4a11-4d7f-9adf-426c511caefd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_184723d0-8119-4b72-80e3-b1840cf21fd6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_6f517256-7a54-467e-ac05-7f994feed41c" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_184723d0-8119-4b72-80e3-b1840cf21fd6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_8dbfdb00-234a-4a36-ba9f-dcfb3c7b6974" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_6f517256-7a54-467e-ac05-7f994feed41c" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_8dbfdb00-234a-4a36-ba9f-dcfb3c7b6974" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_5d0f1804-3d7b-4041-b6e2-f9817a568d05" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_6f517256-7a54-467e-ac05-7f994feed41c" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_5d0f1804-3d7b-4041-b6e2-f9817a568d05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_8460386e-caab-4fbc-86a4-b2037e77afcc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_6f517256-7a54-467e-ac05-7f994feed41c" xlink:to="loc_us-gaap_Goodwill_8460386e-caab-4fbc-86a4-b2037e77afcc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_6cc13a1a-ddde-4197-81d8-d3e4543ec337" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_6f517256-7a54-467e-ac05-7f994feed41c" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_6cc13a1a-ddde-4197-81d8-d3e4543ec337" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_257bdd32-8c1a-4d07-8d5e-9f2d0d5ceaf5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_a7a741ef-3f3a-43f9-87cf-5207b0851244" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_257bdd32-8c1a-4d07-8d5e-9f2d0d5ceaf5" xlink:to="loc_us-gaap_PreferredStockValue_a7a741ef-3f3a-43f9-87cf-5207b0851244" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_a9094f70-6a6b-4fe8-856c-384678de28c0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_257bdd32-8c1a-4d07-8d5e-9f2d0d5ceaf5" xlink:to="loc_us-gaap_CommonStockValue_a9094f70-6a6b-4fe8-856c-384678de28c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_50f9845c-e06a-4e72-9797-613530dbb8af" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_257bdd32-8c1a-4d07-8d5e-9f2d0d5ceaf5" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_50f9845c-e06a-4e72-9797-613530dbb8af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_f608016c-3bea-4525-8632-920bd48e762e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_257bdd32-8c1a-4d07-8d5e-9f2d0d5ceaf5" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_f608016c-3bea-4525-8632-920bd48e762e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_d7575a92-4a0b-4aeb-85dc-70a7a1b66bb0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_257bdd32-8c1a-4d07-8d5e-9f2d0d5ceaf5" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_d7575a92-4a0b-4aeb-85dc-70a7a1b66bb0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_d2486247-e179-40d2-bc26-fbac6773a09e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_417f8ca1-07fa-4943-ae09-a75213856189" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d2486247-e179-40d2-bc26-fbac6773a09e" xlink:to="loc_us-gaap_LiabilitiesCurrent_417f8ca1-07fa-4943-ae09-a75213856189" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_831d07a8-0765-4545-b3ec-091ae4dc8cdf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d2486247-e179-40d2-bc26-fbac6773a09e" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_831d07a8-0765-4545-b3ec-091ae4dc8cdf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_b0e0bc44-4cae-4c21-bcce-b194b7b5a48a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d2486247-e179-40d2-bc26-fbac6773a09e" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_b0e0bc44-4cae-4c21-bcce-b194b7b5a48a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_859bcf8b-cb5b-442b-8dac-d03d797df662" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d2486247-e179-40d2-bc26-fbac6773a09e" xlink:to="loc_us-gaap_LongTermDebt_859bcf8b-cb5b-442b-8dac-d03d797df662" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_02133d75-6aaf-462f-8df9-484ad2328a44" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d2486247-e179-40d2-bc26-fbac6773a09e" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_02133d75-6aaf-462f-8df9-484ad2328a44" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_97a4b6bb-465c-4267-9d19-de7e156d0151" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_abb1b36d-df67-4143-9f39-ac93f8917a51" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_97a4b6bb-465c-4267-9d19-de7e156d0151" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_abb1b36d-df67-4143-9f39-ac93f8917a51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_4aa55caf-8db1-412c-846f-034f26a24e69" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_97a4b6bb-465c-4267-9d19-de7e156d0151" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_4aa55caf-8db1-412c-846f-034f26a24e69" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_bf53f5dc-1e46-4024-a070-b094b5d1b614" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_97a4b6bb-465c-4267-9d19-de7e156d0151" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_bf53f5dc-1e46-4024-a070-b094b5d1b614" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_4e0308bc-d5e4-4dac-9e42-7a78046cddc4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_97a4b6bb-465c-4267-9d19-de7e156d0151" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_4e0308bc-d5e4-4dac-9e42-7a78046cddc4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_5ebcefb0-94ba-46a1-ae9b-f60aa63c19c5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_4b756e8c-0932-4c3e-82ab-34d705ea0c6b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_5ebcefb0-94ba-46a1-ae9b-f60aa63c19c5" xlink:to="loc_us-gaap_AccountsPayableCurrent_4b756e8c-0932-4c3e-82ab-34d705ea0c6b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_79454978-a308-46c4-9792-b99b7a5d23e5" xlink:href="twlo-20210630.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_5ebcefb0-94ba-46a1-ae9b-f60aa63c19c5" xlink:to="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_79454978-a308-46c4-9792-b99b7a5d23e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_1952e51e-44da-4d18-b73a-ac0659d6de5d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_5ebcefb0-94ba-46a1-ae9b-f60aa63c19c5" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_1952e51e-44da-4d18-b73a-ac0659d6de5d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_b43d5be6-fa61-4937-a9d7-078da1b065d1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_5ebcefb0-94ba-46a1-ae9b-f60aa63c19c5" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_b43d5be6-fa61-4937-a9d7-078da1b065d1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/CondensedConsolidatedStatementsofOperationsUnaudited" xlink:type="simple" xlink:href="twlo-20210630.xsd#CondensedConsolidatedStatementsofOperationsUnaudited"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/CondensedConsolidatedStatementsofOperationsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_139963d3-0161-4359-98a5-4cd549f1c46c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_d1e93dea-fd0c-49fb-b36f-561de52443f6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_NetIncomeLoss_139963d3-0161-4359-98a5-4cd549f1c46c" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_d1e93dea-fd0c-49fb-b36f-561de52443f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_9cd3a70b-6cb8-4f70-8fe7-a3ac4886addf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_NetIncomeLoss_139963d3-0161-4359-98a5-4cd549f1c46c" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_9cd3a70b-6cb8-4f70-8fe7-a3ac4886addf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_9bf3a631-be6e-4486-be86-f876567050fe" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_ef081b33-ebbe-4a35-9f6e-bffda66a8014" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_9bf3a631-be6e-4486-be86-f876567050fe" xlink:to="loc_us-gaap_GrossProfit_ef081b33-ebbe-4a35-9f6e-bffda66a8014" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_33497293-cf7b-43c2-92d7-8481ecdb8656" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_9bf3a631-be6e-4486-be86-f876567050fe" xlink:to="loc_us-gaap_OperatingExpenses_33497293-cf7b-43c2-92d7-8481ecdb8656" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_c604eb0a-77de-4853-a339-17c7f725d634" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_046ed4e8-e783-4bd3-bcc5-f0bdf3c686bc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_c604eb0a-77de-4853-a339-17c7f725d634" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_046ed4e8-e783-4bd3-bcc5-f0bdf3c686bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_ad8645a0-2d99-4ee5-ad11-b524c784bf23" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_c604eb0a-77de-4853-a339-17c7f725d634" xlink:to="loc_us-gaap_SellingAndMarketingExpense_ad8645a0-2d99-4ee5-ad11-b524c784bf23" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_7356141f-075a-40e4-8a6d-376963adbf25" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_c604eb0a-77de-4853-a339-17c7f725d634" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_7356141f-075a-40e4-8a6d-376963adbf25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_be0a4568-7216-46f6-835b-0be79160ac58" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_80ffe6a6-ce33-4784-82a4-7486bbbbd477" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_be0a4568-7216-46f6-835b-0be79160ac58" xlink:to="loc_us-gaap_OperatingIncomeLoss_80ffe6a6-ce33-4784-82a4-7486bbbbd477" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_663e339f-8173-43fb-af00-81d7d235e22e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_be0a4568-7216-46f6-835b-0be79160ac58" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_663e339f-8173-43fb-af00-81d7d235e22e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_0b4410a4-391c-4881-a879-ad2c5e0dc4e5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_86668587-c497-461c-abf8-20d1b3514eec" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_0b4410a4-391c-4881-a879-ad2c5e0dc4e5" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_86668587-c497-461c-abf8-20d1b3514eec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_1bec10d7-5c28-49bc-9d45-597c9944aa8e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_0b4410a4-391c-4881-a879-ad2c5e0dc4e5" xlink:to="loc_us-gaap_CostOfRevenue_1bec10d7-5c28-49bc-9d45-597c9944aa8e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/CondensedConsolidatedStatementsofComprehensiveLossUnaudited" xlink:type="simple" xlink:href="twlo-20210630.xsd#CondensedConsolidatedStatementsofComprehensiveLossUnaudited"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/CondensedConsolidatedStatementsofComprehensiveLossUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_b6e1215b-25d5-4bbe-97ab-fcbf746ced76" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_673a6ce7-af7f-457e-9879-932cfab84cf8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_b6e1215b-25d5-4bbe-97ab-fcbf746ced76" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_673a6ce7-af7f-457e-9879-932cfab84cf8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_dcc4c3c6-1af7-4e66-b51f-e75b4427d21d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_b6e1215b-25d5-4bbe-97ab-fcbf746ced76" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_dcc4c3c6-1af7-4e66-b51f-e75b4427d21d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent_06f17ac7-d48b-44bd-a05f-b66697168d8e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_b6e1215b-25d5-4bbe-97ab-fcbf746ced76" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent_06f17ac7-d48b-44bd-a05f-b66697168d8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_d14b46e6-5c23-45be-aafd-039eb52f90af" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_58be459c-e08d-48b2-9f59-deb5a1d44815" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d14b46e6-5c23-45be-aafd-039eb52f90af" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_58be459c-e08d-48b2-9f59-deb5a1d44815" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_7db6f15a-0d33-4a86-837b-2f21781cdf10" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_d14b46e6-5c23-45be-aafd-039eb52f90af" xlink:to="loc_us-gaap_NetIncomeLoss_7db6f15a-0d33-4a86-837b-2f21781cdf10" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/CondensedConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="twlo-20210630.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_NetCashProvidedByUsedInInvestingActivities_0c23707a-abb4-4604-9660-9a2887555366" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_3bf00d2b-b3d4-4da9-b8e5-fbf942c5f290" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_0c23707a-abb4-4604-9660-9a2887555366" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_3bf00d2b-b3d4-4da9-b8e5-fbf942c5f290" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_151ddedf-bd46-402f-b744-498945ea820c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_0c23707a-abb4-4604-9660-9a2887555366" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_151ddedf-bd46-402f-b744-498945ea820c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_041f63c7-3f25-491a-9831-c335772a9d4f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_0c23707a-abb4-4604-9660-9a2887555366" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_041f63c7-3f25-491a-9831-c335772a9d4f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToDevelopSoftware_731d5a39-bcde-465d-b923-4825c2a0aff5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_0c23707a-abb4-4604-9660-9a2887555366" xlink:to="loc_us-gaap_PaymentsToDevelopSoftware_731d5a39-bcde-465d-b923-4825c2a0aff5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_ef465657-0a0b-445c-8dec-70cca728f537" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_0c23707a-abb4-4604-9660-9a2887555366" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_ef465657-0a0b-445c-8dec-70cca728f537" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_7909cd1d-8535-4c25-ba47-5f5eb095d2df" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_84334437-2774-4a48-b2f7-3ec43554c171" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_7909cd1d-8535-4c25-ba47-5f5eb095d2df" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_84334437-2774-4a48-b2f7-3ec43554c171" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsNoncurrent_ec0e548a-36a7-41e6-8b15-1f7fac36b225" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalentsNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_7909cd1d-8535-4c25-ba47-5f5eb095d2df" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsNoncurrent_ec0e548a-36a7-41e6-8b15-1f7fac36b225" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_e56f114b-682c-4a08-ba17-5412c965ed6b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_7909cd1d-8535-4c25-ba47-5f5eb095d2df" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_e56f114b-682c-4a08-ba17-5412c965ed6b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_8273a2b9-c965-416f-9cdb-b3a9168baba0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1753486a-1634-4339-9b0b-ab48364169e9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_8273a2b9-c965-416f-9cdb-b3a9168baba0" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1753486a-1634-4339-9b0b-ab48364169e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_aca9a053-970a-46e8-aa13-5f0a4b8c8136" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_8273a2b9-c965-416f-9cdb-b3a9168baba0" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_aca9a053-970a-46e8-aa13-5f0a4b8c8136" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_40d34721-eaf0-41c0-95d0-db7f7401d72f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_8273a2b9-c965-416f-9cdb-b3a9168baba0" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_40d34721-eaf0-41c0-95d0-db7f7401d72f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_d3b7111e-184f-4267-8ef6-5a318457eb55" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_8273a2b9-c965-416f-9cdb-b3a9168baba0" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_d3b7111e-184f-4267-8ef6-5a318457eb55" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_fdb79dc1-2d26-46ac-a571-931b07090171" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_2ba2e184-28a9-4fd6-90e2-c64d4ec6c231" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_fdb79dc1-2d26-46ac-a571-931b07090171" xlink:to="loc_us-gaap_ProfitLoss_2ba2e184-28a9-4fd6-90e2-c64d4ec6c231" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_6080c8ff-e6a2-4630-b514-cfa216b1fe2d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_fdb79dc1-2d26-46ac-a571-931b07090171" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_6080c8ff-e6a2-4630-b514-cfa216b1fe2d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_LeasesRightOfUseAssetAmortization_fd9ac66d-d29c-46ee-8e7a-7226136f9b41" xlink:href="twlo-20210630.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_fdb79dc1-2d26-46ac-a571-931b07090171" xlink:to="loc_twlo_LeasesRightOfUseAssetAmortization_fd9ac66d-d29c-46ee-8e7a-7226136f9b41" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_3a038fa0-fcd0-4d70-bb6e-71b97116069a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_fdb79dc1-2d26-46ac-a571-931b07090171" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_3a038fa0-fcd0-4d70-bb6e-71b97116069a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_821d6f4a-d60a-4b5b-ba44-fec0e21c3bbf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_fdb79dc1-2d26-46ac-a571-931b07090171" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_821d6f4a-d60a-4b5b-ba44-fec0e21c3bbf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_4c985a95-fbd2-4841-9f47-dca22936e00f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_fdb79dc1-2d26-46ac-a571-931b07090171" xlink:to="loc_us-gaap_ShareBasedCompensation_4c985a95-fbd2-4841-9f47-dca22936e00f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostAmortization_c42df640-5fbf-4a1a-848f-b87e00b549e4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_fdb79dc1-2d26-46ac-a571-931b07090171" xlink:to="loc_us-gaap_CapitalizedContractCostAmortization_c42df640-5fbf-4a1a-848f-b87e00b549e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_969f6498-e24f-4b66-8d06-bb65f7f737fb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_fdb79dc1-2d26-46ac-a571-931b07090171" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_969f6498-e24f-4b66-8d06-bb65f7f737fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_CommonStockDonorAdvisedFundValue_de8d451e-762b-4573-a467-85d3b4abf3d3" xlink:href="twlo-20210630.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_fdb79dc1-2d26-46ac-a571-931b07090171" xlink:to="loc_twlo_CommonStockDonorAdvisedFundValue_de8d451e-762b-4573-a467-85d3b4abf3d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_33f75791-4bb9-424d-9c6e-f6a570ba5431" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_fdb79dc1-2d26-46ac-a571-931b07090171" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_33f75791-4bb9-424d-9c6e-f6a570ba5431" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_d4f4f887-47f2-4269-b714-8646ec1c93c4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_fdb79dc1-2d26-46ac-a571-931b07090171" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_d4f4f887-47f2-4269-b714-8646ec1c93c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_b8943048-35cc-4ebf-ac3c-74360bb36410" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_fdb79dc1-2d26-46ac-a571-931b07090171" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_b8943048-35cc-4ebf-ac3c-74360bb36410" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_83e555d9-7696-47aa-95e8-c0c5eb717e38" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_fdb79dc1-2d26-46ac-a571-931b07090171" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_83e555d9-7696-47aa-95e8-c0c5eb717e38" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_2d06413b-2a21-477b-8849-f1b3e43c0756" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_fdb79dc1-2d26-46ac-a571-931b07090171" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_2d06413b-2a21-477b-8849-f1b3e43c0756" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_5d29cc03-758d-491b-a00f-2c2c63ac8ba1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_fdb79dc1-2d26-46ac-a571-931b07090171" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_5d29cc03-758d-491b-a00f-2c2c63ac8ba1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_9d4c2ace-5430-4b94-b6fc-d4966be5f352" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_fdb79dc1-2d26-46ac-a571-931b07090171" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_9d4c2ace-5430-4b94-b6fc-d4966be5f352" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_50ebaae7-ba6b-4c8a-bc50-5fa806729911" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_fdb79dc1-2d26-46ac-a571-931b07090171" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_50ebaae7-ba6b-4c8a-bc50-5fa806729911" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_5ae3d4a0-1d8d-45e8-a6e6-b96ea81407b2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInOperatingLeaseLiability"/>
    <link:calculationArc order="18" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_fdb79dc1-2d26-46ac-a571-931b07090171" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_5ae3d4a0-1d8d-45e8-a6e6-b96ea81407b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_e48c6626-b21d-486a-bc94-fd6c13472f5f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_fdb79dc1-2d26-46ac-a571-931b07090171" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_e48c6626-b21d-486a-bc94-fd6c13472f5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_7fbaea7c-a24f-4aa7-a9fa-939e6a3f4de0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_ProceedsFromAPublicEquityOffering_b9d09df1-8faf-404f-a2af-7fd0b1aaebc0" xlink:href="twlo-20210630.xsd#twlo_ProceedsFromAPublicEquityOffering"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_7fbaea7c-a24f-4aa7-a9fa-939e6a3f4de0" xlink:to="loc_twlo_ProceedsFromAPublicEquityOffering_b9d09df1-8faf-404f-a2af-7fd0b1aaebc0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfStockIssuanceCosts_0692f552-8705-4af5-9c60-d56a257da514" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsOfStockIssuanceCosts"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_7fbaea7c-a24f-4aa7-a9fa-939e6a3f4de0" xlink:to="loc_us-gaap_PaymentsOfStockIssuanceCosts_0692f552-8705-4af5-9c60-d56a257da514" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_45cb4000-d381-47dc-acd2-ebe73978973c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_7fbaea7c-a24f-4aa7-a9fa-939e6a3f4de0" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_45cb4000-d381-47dc-acd2-ebe73978973c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_225b8faa-3afc-4720-8a2d-3579b4104cb9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_7fbaea7c-a24f-4aa7-a9fa-939e6a3f4de0" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_225b8faa-3afc-4720-8a2d-3579b4104cb9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromConvertibleDebt_786f3931-e468-4465-8415-00bf65c9dacc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromConvertibleDebt"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_7fbaea7c-a24f-4aa7-a9fa-939e6a3f4de0" xlink:to="loc_us-gaap_ProceedsFromConvertibleDebt_786f3931-e468-4465-8415-00bf65c9dacc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_PaymentsForConvertibleDebtTransactionCosts_0d4a0f63-9716-4c8d-9056-4133d04b6c74" xlink:href="twlo-20210630.xsd#twlo_PaymentsForConvertibleDebtTransactionCosts"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_7fbaea7c-a24f-4aa7-a9fa-939e6a3f4de0" xlink:to="loc_twlo_PaymentsForConvertibleDebtTransactionCosts_0d4a0f63-9716-4c8d-9056-4133d04b6c74" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_45b41bc9-cc76-4e87-b228-a04bf03dd1ee" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_7fbaea7c-a24f-4aa7-a9fa-939e6a3f4de0" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_45b41bc9-cc76-4e87-b228-a04bf03dd1ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_b19a2db0-5b1c-413c-9622-bea479dc440e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_7fbaea7c-a24f-4aa7-a9fa-939e6a3f4de0" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_b19a2db0-5b1c-413c-9622-bea479dc440e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_9976588a-a467-4beb-9631-c93bd92ddc56" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_7fbaea7c-a24f-4aa7-a9fa-939e6a3f4de0" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_9976588a-a467-4beb-9631-c93bd92ddc56" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/FairValueMeasurementsAssetsMeasuredatFairValueonaRecurringBasisDetails" xlink:type="simple" xlink:href="twlo-20210630.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_aefc2e4e-a83d-4b41-b396-f76af66fbbf0" xlink:href="twlo-20210630.xsd#twlo_FinancialAssetsAmortizedCostOrCarryingValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_482a942a-61e6-484a-a2d3-1c1b69a40920" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_aefc2e4e-a83d-4b41-b396-f76af66fbbf0" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_482a942a-61e6-484a-a2d3-1c1b69a40920" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_9ac8b46b-42b9-44e7-85b7-8ed21757c374" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_aefc2e4e-a83d-4b41-b396-f76af66fbbf0" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_9ac8b46b-42b9-44e7-85b7-8ed21757c374" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_40a39ec5-c3d3-4b01-aa27-d4c2c14c366e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_3cfd7573-8701-465d-bf26-aed99bb852a4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_40a39ec5-c3d3-4b01-aa27-d4c2c14c366e" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_3cfd7573-8701-465d-bf26-aed99bb852a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_b1d6e793-b308-4c30-a0ce-8fb0fa1247d6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_40a39ec5-c3d3-4b01-aa27-d4c2c14c366e" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_b1d6e793-b308-4c30-a0ce-8fb0fa1247d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_174b7040-e6a9-4d51-9cc5-f12c5369e6ef" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_40a39ec5-c3d3-4b01-aa27-d4c2c14c366e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_174b7040-e6a9-4d51-9cc5-f12c5369e6ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_3d5848e2-407d-4eb2-b372-32bfb8fe9220" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_67dbca0a-d144-4225-ad9d-35b013cfb532" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_3d5848e2-407d-4eb2-b372-32bfb8fe9220" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_67dbca0a-d144-4225-ad9d-35b013cfb532" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_d0da31c7-31bd-4bc5-9405-9db3c68916c7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_3d5848e2-407d-4eb2-b372-32bfb8fe9220" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_d0da31c7-31bd-4bc5-9405-9db3c68916c7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/FairValueMeasurementsContractualMaturitiesDetails" xlink:type="simple" xlink:href="twlo-20210630.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_dcec4aa8-2478-4b3f-99cb-277b39fc8596" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_28f0401f-72fc-462d-88dc-d8ec5a45226e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_dcec4aa8-2478-4b3f-99cb-277b39fc8596" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_28f0401f-72fc-462d-88dc-d8ec5a45226e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoFairValue_054c89ec-95da-4da7-bcc8-f672df84479d" xlink:href="twlo-20210630.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_dcec4aa8-2478-4b3f-99cb-277b39fc8596" xlink:to="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoFairValue_054c89ec-95da-4da7-bcc8-f672df84479d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_05837eac-8dfd-4395-b457-8b073ae663a8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_c1e21cdd-3184-43fc-a2cb-75e4b7f7dcd3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_05837eac-8dfd-4395-b457-8b073ae663a8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_c1e21cdd-3184-43fc-a2cb-75e4b7f7dcd3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoAmortizedCostBasis_ab419e10-92db-4296-8b67-42bb7e387023" xlink:href="twlo-20210630.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_05837eac-8dfd-4395-b457-8b073ae663a8" xlink:to="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoAmortizedCostBasis_ab419e10-92db-4296-8b67-42bb7e387023" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/PropertyandEquipmentPropertyandEquipmentNetDetails" xlink:type="simple" xlink:href="twlo-20210630.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_dc270176-906d-44ce-8043-e11659281e01" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_71e0661b-7bd6-4dfe-a276-4ebb4051cf14" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_dc270176-906d-44ce-8043-e11659281e01" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_71e0661b-7bd6-4dfe-a276-4ebb4051cf14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_5ac939b2-30cb-4a71-a242-691d0d5d8de2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_dc270176-906d-44ce-8043-e11659281e01" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_5ac939b2-30cb-4a71-a242-691d0d5d8de2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/RightofUseAssetandLeaseLiabilitiesComponentsofLeaseExpenseDetails" xlink:type="simple" xlink:href="twlo-20210630.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_ba029ac9-6ff5-45e3-baac-a154d68b3b38" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_54eebf4a-27ae-43bc-b5d5-8ba74c85b0e8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_ba029ac9-6ff5-45e3-baac-a154d68b3b38" xlink:to="loc_us-gaap_OperatingLeaseCost_54eebf4a-27ae-43bc-b5d5-8ba74c85b0e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_151ff794-a2ce-41e9-a83a-66f26bbfe3f9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_ba029ac9-6ff5-45e3-baac-a154d68b3b38" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_151ff794-a2ce-41e9-a83a-66f26bbfe3f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseInterestExpense_7700cdb9-98aa-4801-8923-c8d05c736b44" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_ba029ac9-6ff5-45e3-baac-a154d68b3b38" xlink:to="loc_us-gaap_FinanceLeaseInterestExpense_7700cdb9-98aa-4801-8923-c8d05c736b44" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermLeaseCost_ffd7d4a5-21b5-404e-9723-316eb1486776" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_ba029ac9-6ff5-45e3-baac-a154d68b3b38" xlink:to="loc_us-gaap_ShortTermLeaseCost_ffd7d4a5-21b5-404e-9723-316eb1486776" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableLeaseCost_e0f01a4e-70da-4886-b3b1-bf1d1944c097" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_ba029ac9-6ff5-45e3-baac-a154d68b3b38" xlink:to="loc_us-gaap_VariableLeaseCost_e0f01a4e-70da-4886-b3b1-bf1d1944c097" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/RightofUseAssetandLeaseLiabilitiesBalanceSheetClassificationofLeaseAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="twlo-20210630.xsd#RightofUseAssetandLeaseLiabilitiesBalanceSheetClassificationofLeaseAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/RightofUseAssetandLeaseLiabilitiesBalanceSheetClassificationofLeaseAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_twlo_LeaseRightOfUseAsset_0cb99ce0-a291-4027-90b4-237fffe2177a" xlink:href="twlo-20210630.xsd#twlo_LeaseRightOfUseAsset"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_4fcfe6d8-bee3-439a-8841-106aea82b636" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_0cb99ce0-a291-4027-90b4-237fffe2177a" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_4fcfe6d8-bee3-439a-8841-106aea82b636" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAsset_c674044d-2538-4a9a-8207-4617189a392e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_0cb99ce0-a291-4027-90b4-237fffe2177a" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAsset_c674044d-2538-4a9a-8207-4617189a392e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_LeaseLiability_56792e19-e27c-48cd-af3a-e44589f073a2" xlink:href="twlo-20210630.xsd#twlo_LeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_a067bf8e-2a05-4659-9b25-5d9bb35108cc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_56792e19-e27c-48cd-af3a-e44589f073a2" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_a067bf8e-2a05-4659-9b25-5d9bb35108cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_18ad5c54-07b1-4370-a2fc-8a1afe230023" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_56792e19-e27c-48cd-af3a-e44589f073a2" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_18ad5c54-07b1-4370-a2fc-8a1afe230023" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_e96cf7cf-643a-4695-a523-8bfbdd8ce5d4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_56792e19-e27c-48cd-af3a-e44589f073a2" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_e96cf7cf-643a-4695-a523-8bfbdd8ce5d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_c7f3cd7b-e014-4f34-bcbb-1f316176301d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_56792e19-e27c-48cd-af3a-e44589f073a2" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_c7f3cd7b-e014-4f34-bcbb-1f316176301d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/RightofUseAssetandLeaseLiabilitiesLeaseMaturitiesDetails" xlink:type="simple" xlink:href="twlo-20210630.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_LesseeOperatingLeaseLiabilityPaymentsDue_0477617e-0988-4668-932a-05514de52911" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_02475903-a16b-4809-934a-a6b9ef5566f0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_0477617e-0988-4668-932a-05514de52911" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_02475903-a16b-4809-934a-a6b9ef5566f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_48059d7c-bf54-4aac-a43c-c892f4f56ed5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_0477617e-0988-4668-932a-05514de52911" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_48059d7c-bf54-4aac-a43c-c892f4f56ed5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_39a82a07-c4b6-4c92-a72a-0116d54c25f9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_0477617e-0988-4668-932a-05514de52911" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_39a82a07-c4b6-4c92-a72a-0116d54c25f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_2665f097-47e8-45e2-870f-67451f2ec947" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_0477617e-0988-4668-932a-05514de52911" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_2665f097-47e8-45e2-870f-67451f2ec947" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_45c6040d-c3c0-4169-85be-d573587a58dc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_0477617e-0988-4668-932a-05514de52911" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_45c6040d-c3c0-4169-85be-d573587a58dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFour_9844b9a1-41da-4b5a-94d0-529dcddea3ed" xlink:href="twlo-20210630.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_0477617e-0988-4668-932a-05514de52911" xlink:to="loc_twlo_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFour_9844b9a1-41da-4b5a-94d0-529dcddea3ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_5846ea3b-621f-476d-94cd-112655bf0658" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_b5a46f14-dc25-4de6-ae05-9f52f673f0f4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_5846ea3b-621f-476d-94cd-112655bf0658" xlink:to="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_b5a46f14-dc25-4de6-ae05-9f52f673f0f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_8c72994e-67cc-4a83-8e98-1d4c3986d552" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_5846ea3b-621f-476d-94cd-112655bf0658" xlink:to="loc_us-gaap_FinanceLeaseLiability_8c72994e-67cc-4a83-8e98-1d4c3986d552" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_bd656706-41fd-4c12-b888-cef4ef2b416a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_219db8bb-3c5c-46fb-ba5d-a270b328fd2a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_bd656706-41fd-4c12-b888-cef4ef2b416a" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_219db8bb-3c5c-46fb-ba5d-a270b328fd2a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_fb9f8088-10f6-402b-954b-e071eb8403d1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_bd656706-41fd-4c12-b888-cef4ef2b416a" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_fb9f8088-10f6-402b-954b-e071eb8403d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_c932a827-a43c-459d-8494-6ab2042bb4a9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinanceLeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_d386ae28-8b2f-440a-9895-85edb3b0167a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_c932a827-a43c-459d-8494-6ab2042bb4a9" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_d386ae28-8b2f-440a-9895-85edb3b0167a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_a01675fd-1658-4030-90a9-5272ca65e8e9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_c932a827-a43c-459d-8494-6ab2042bb4a9" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_a01675fd-1658-4030-90a9-5272ca65e8e9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/RightofUseAssetandLeaseLiabilitiesLeaseMaturitiesDetails_1" xlink:type="simple" xlink:href="twlo-20210630.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_8a03deb8-5cc8-4dd4-b77e-be8b0c85f7fc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_7fe67fad-1d41-4abf-8fae-4ec14e387fee" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_8a03deb8-5cc8-4dd4-b77e-be8b0c85f7fc" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_7fe67fad-1d41-4abf-8fae-4ec14e387fee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_10ae15a9-2821-4026-bec1-b4fa7b0b9ac2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_8a03deb8-5cc8-4dd4-b77e-be8b0c85f7fc" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_10ae15a9-2821-4026-bec1-b4fa7b0b9ac2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_fbb4f410-f4a5-43e4-85d4-1279a526c7ea" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_8a03deb8-5cc8-4dd4-b77e-be8b0c85f7fc" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_fbb4f410-f4a5-43e4-85d4-1279a526c7ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_88f3f0f0-3f7f-4ec9-bbec-01a916d2556a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_8a03deb8-5cc8-4dd4-b77e-be8b0c85f7fc" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_88f3f0f0-3f7f-4ec9-bbec-01a916d2556a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_792e39fc-5125-4a76-87b8-7e5afabf7daa" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_8a03deb8-5cc8-4dd4-b77e-be8b0c85f7fc" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_792e39fc-5125-4a76-87b8-7e5afabf7daa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_FinanceLeaseLiabilityPaymentsDueAfterYearFour_2c3515d1-6500-45e3-a340-624ea3461d40" xlink:href="twlo-20210630.xsd#twlo_FinanceLeaseLiabilityPaymentsDueAfterYearFour"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_8a03deb8-5cc8-4dd4-b77e-be8b0c85f7fc" xlink:to="loc_twlo_FinanceLeaseLiabilityPaymentsDueAfterYearFour_2c3515d1-6500-45e3-a340-624ea3461d40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_f28d518c-29b0-45ec-86de-963123eee31c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_686461ca-a3fa-40e9-84e6-156902d6f333" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_f28d518c-29b0-45ec-86de-963123eee31c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_686461ca-a3fa-40e9-84e6-156902d6f333" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_dc9f6538-903d-488c-806e-170dec851019" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_f28d518c-29b0-45ec-86de-963123eee31c" xlink:to="loc_us-gaap_OperatingLeaseLiability_dc9f6538-903d-488c-806e-170dec851019" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssetsIntangibleAssetsDetails" xlink:type="simple" xlink:href="twlo-20210630.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_7ae9a2a5-742e-43a7-8318-26224bd62043" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_14eb2127-0959-49c6-890a-3bb80398b98a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_7ae9a2a5-742e-43a7-8318-26224bd62043" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_14eb2127-0959-49c6-890a-3bb80398b98a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_a5326845-ec30-4d9d-bfab-9e0edb927dce" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_7ae9a2a5-742e-43a7-8318-26224bd62043" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_a5326845-ec30-4d9d-bfab-9e0edb927dce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_036d0aa0-d1d0-49b5-9c16-afec0d510096" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_b01dfa0b-c8e3-41ec-8159-6a60946fde84" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_036d0aa0-d1d0-49b5-9c16-afec0d510096" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_b01dfa0b-c8e3-41ec-8159-6a60946fde84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_80f91143-3e24-4169-a556-c321924fd509" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_036d0aa0-d1d0-49b5-9c16-afec0d510096" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_80f91143-3e24-4169-a556-c321924fd509" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_dce89d6f-4ab7-4972-b23d-95c0b2330b97" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_b7e4a848-d017-4554-bda5-629b777c201a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_dce89d6f-4ab7-4972-b23d-95c0b2330b97" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_b7e4a848-d017-4554-bda5-629b777c201a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_f221b40e-5a6c-4f05-b2cf-106760bf687e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_dce89d6f-4ab7-4972-b23d-95c0b2330b97" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_f221b40e-5a6c-4f05-b2cf-106760bf687e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssetsIntangibleAssetsDetails_1" xlink:type="simple" xlink:href="twlo-20210630.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_a3b944f7-0344-4467-9f35-87c6e15161c8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_1da5235c-6906-4382-82f0-86ac2d6ded60" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_a3b944f7-0344-4467-9f35-87c6e15161c8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_1da5235c-6906-4382-82f0-86ac2d6ded60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_93f3f8a1-7053-4ebc-b58d-a13931789b46" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_a3b944f7-0344-4467-9f35-87c6e15161c8" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_93f3f8a1-7053-4ebc-b58d-a13931789b46" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssetsTotalEstimatedFutureAmortizationExpenseDetails" xlink:type="simple" xlink:href="twlo-20210630.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_8c3d5737-3a6b-4a08-a8de-b97bc662c21c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_17d5e6cc-94bb-4cba-89a7-c5a769bb6346" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_8c3d5737-3a6b-4a08-a8de-b97bc662c21c" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_17d5e6cc-94bb-4cba-89a7-c5a769bb6346" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_4c709134-66a2-4ea0-b7c2-14a0bae195fa" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_8c3d5737-3a6b-4a08-a8de-b97bc662c21c" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_4c709134-66a2-4ea0-b7c2-14a0bae195fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_760389d7-dab2-408d-8316-0c9ec81305f1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_8c3d5737-3a6b-4a08-a8de-b97bc662c21c" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_760389d7-dab2-408d-8316-0c9ec81305f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_0bb9fa37-9bc9-4df9-b0b3-46282347740a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_8c3d5737-3a6b-4a08-a8de-b97bc662c21c" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_0bb9fa37-9bc9-4df9-b0b3-46282347740a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_a1ea038f-8820-4538-b6bc-ea0fd80aee88" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_8c3d5737-3a6b-4a08-a8de-b97bc662c21c" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_a1ea038f-8820-4538-b6bc-ea0fd80aee88" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearFour_7c12e5af-c7bb-4c86-b608-d2819d3a20b3" xlink:href="twlo-20210630.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_8c3d5737-3a6b-4a08-a8de-b97bc662c21c" xlink:to="loc_twlo_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearFour_7c12e5af-c7bb-4c86-b608-d2819d3a20b3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/AccruedExpensesandOtherLiabilitiesAccruedExpensesandOtherLiabilitiesDetails" xlink:type="simple" xlink:href="twlo-20210630.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_f02524f9-13f5-423a-9ad9-bc5abf749127" xlink:href="twlo-20210630.xsd#twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_e0832892-40a1-4374-ac16-4b280fca714d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_f02524f9-13f5-423a-9ad9-bc5abf749127" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_e0832892-40a1-4374-ac16-4b280fca714d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedBonusesCurrent_c04b1d0e-6ee4-4428-b1a3-d5e3e8e77cb0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_f02524f9-13f5-423a-9ad9-bc5abf749127" xlink:to="loc_us-gaap_AccruedBonusesCurrent_c04b1d0e-6ee4-4428-b1a3-d5e3e8e77cb0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AccruedCostOfRevenueCurrent_d659aacf-a9dd-4071-a0d7-b34ed2111f50" xlink:href="twlo-20210630.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_f02524f9-13f5-423a-9ad9-bc5abf749127" xlink:to="loc_twlo_AccruedCostOfRevenueCurrent_d659aacf-a9dd-4071-a0d7-b34ed2111f50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxesPayableCurrent_29dd920d-d922-446a-a930-5830cbc0764f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_f02524f9-13f5-423a-9ad9-bc5abf749127" xlink:to="loc_us-gaap_TaxesPayableCurrent_29dd920d-d922-446a-a930-5830cbc0764f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherEmployeeRelatedLiabilitiesCurrent_5b81e2a5-dd9b-4c76-a681-f552b0eff298" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_f02524f9-13f5-423a-9ad9-bc5abf749127" xlink:to="loc_us-gaap_OtherEmployeeRelatedLiabilitiesCurrent_5b81e2a5-dd9b-4c76-a681-f552b0eff298" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredRentCreditCurrent_7e8af0b2-a7e7-4747-9f2f-0bf5300bd576" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredRentCreditCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_f02524f9-13f5-423a-9ad9-bc5abf749127" xlink:to="loc_us-gaap_DeferredRentCreditCurrent_7e8af0b2-a7e7-4747-9f2f-0bf5300bd576" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_ecaa6bbd-aec5-4482-92d8-7953d97d0bec" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_f02524f9-13f5-423a-9ad9-bc5abf749127" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_ecaa6bbd-aec5-4482-92d8-7953d97d0bec" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/AccruedExpensesandOtherLiabilitiesLongtermLiabilitiesDetails" xlink:type="simple" xlink:href="twlo-20210630.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_51ed07e9-88f0-4271-8e6d-dd88d11b921d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_a96a4da9-9132-42af-8d54-9ba1eb2aea78" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_51ed07e9-88f0-4271-8e6d-dd88d11b921d" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_a96a4da9-9132-42af-8d54-9ba1eb2aea78" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_BusinessCombinationConsiderationHoldbackNonCurrent_d6fe630a-1c11-4dc6-962c-0de302b7ace8" xlink:href="twlo-20210630.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_51ed07e9-88f0-4271-8e6d-dd88d11b921d" xlink:to="loc_twlo_BusinessCombinationConsiderationHoldbackNonCurrent_d6fe630a-1c11-4dc6-962c-0de302b7ace8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesNoncurrent_e335c3cf-548d-47e4-a557-60fb83616da7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_51ed07e9-88f0-4271-8e6d-dd88d11b921d" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesNoncurrent_e335c3cf-548d-47e4-a557-60fb83616da7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/NotesPayableSummaryofLongTermDebtDetails" xlink:type="simple" xlink:href="twlo-20210630.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_171cd8cf-3d64-42f3-b217-6bd46abc3417" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_c55830bc-2693-4717-903c-90e299bf6de8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_171cd8cf-3d64-42f3-b217-6bd46abc3417" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_c55830bc-2693-4717-903c-90e299bf6de8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_68eb665c-5eed-4bc2-a411-a67af217ae1b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_171cd8cf-3d64-42f3-b217-6bd46abc3417" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_68eb665c-5eed-4bc2-a411-a67af217ae1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_3287127e-b73a-460e-b1ef-cfd14acf3098" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_171cd8cf-3d64-42f3-b217-6bd46abc3417" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_3287127e-b73a-460e-b1ef-cfd14acf3098" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/NotesPayableInterestExpenseDetails" xlink:type="simple" xlink:href="twlo-20210630.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_f45a1d20-14de-4937-b5fa-0fd2c1933ed9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestExpenseDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfDebtDiscountPremium_161826b2-3edd-4180-98ae-f497128ca543" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_f45a1d20-14de-4937-b5fa-0fd2c1933ed9" xlink:to="loc_us-gaap_AmortizationOfDebtDiscountPremium_161826b2-3edd-4180-98ae-f497128ca543" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebtExcludingAmortization_b9a7b990-4a3e-4289-9515-da2fff9803ee" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_f45a1d20-14de-4937-b5fa-0fd2c1933ed9" xlink:to="loc_us-gaap_InterestExpenseDebtExcludingAmortization_b9a7b990-4a3e-4289-9515-da2fff9803ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_c446085c-210d-474e-8d98-0658b7b0b5f2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_f45a1d20-14de-4937-b5fa-0fd2c1933ed9" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_c446085c-210d-474e-8d98-0658b7b0b5f2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/StockholdersEquityCommonStockSharesReservedDetails" xlink:type="simple" xlink:href="twlo-20210630.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_9c6f4ee6-ff0c-4a71-8294-2565e31e557c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_632246d7-0413-4462-aaf6-d049c0793b9f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_9c6f4ee6-ff0c-4a71-8294-2565e31e557c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_632246d7-0413-4462-aaf6-d049c0793b9f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber_855e1063-9f57-49ed-893c-16ef41adae94" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_9c6f4ee6-ff0c-4a71-8294-2565e31e557c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber_855e1063-9f57-49ed-893c-16ef41adae94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_CommonStockCapitalSharesReservedForFutureIssuanceDonorAdvisedFund_343e2446-2819-4dee-af39-3acfcbec26d6" xlink:href="twlo-20210630.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_9c6f4ee6-ff0c-4a71-8294-2565e31e557c" xlink:to="loc_twlo_CommonStockCapitalSharesReservedForFutureIssuanceDonorAdvisedFund_343e2446-2819-4dee-af39-3acfcbec26d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_ae5ca36d-d338-49e8-9bf4-05975e0262e0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_9c6f4ee6-ff0c-4a71-8294-2565e31e557c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_ae5ca36d-d338-49e8-9bf4-05975e0262e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_CommonStockCapitalSharesReservedForConvertibleDebt_872aaeca-4b6b-4c4b-bdc2-84e6f7c3f0e4" xlink:href="twlo-20210630.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_9c6f4ee6-ff0c-4a71-8294-2565e31e557c" xlink:to="loc_twlo_CommonStockCapitalSharesReservedForConvertibleDebt_872aaeca-4b6b-4c4b-bdc2-84e6f7c3f0e4" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
