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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:5b2c135a-6354-4604-b933-705581a21953,g:234a0aaa-53e4-487d-a483-be210757be46-->
<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/ConsolidatedBalanceSheets" xlink:type="simple" xlink:href="twlo-20211231.xsd#ConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_558df5ae-b6ac-4aad-98e7-3e12e5f750e2" 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_b3ef9fec-3423-4de5-95c0-e60413811282" 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_558df5ae-b6ac-4aad-98e7-3e12e5f750e2" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_b3ef9fec-3423-4de5-95c0-e60413811282" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_b9c83ad5-f92f-402b-9a73-33889ba29ad9" 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_558df5ae-b6ac-4aad-98e7-3e12e5f750e2" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_b9c83ad5-f92f-402b-9a73-33889ba29ad9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_4fa4e906-9c0f-423c-a64c-2e9ed4b9ee4b" 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_558df5ae-b6ac-4aad-98e7-3e12e5f750e2" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_4fa4e906-9c0f-423c-a64c-2e9ed4b9ee4b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_3b7aa87f-d20d-4075-a51c-c438981a5a6b" 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_558df5ae-b6ac-4aad-98e7-3e12e5f750e2" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_3b7aa87f-d20d-4075-a51c-c438981a5a6b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_e4375fae-6671-4ed2-b64b-edb4c0f6162e" 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_defedb2b-31fc-4390-aea3-333e5c5d2f0c" 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_e4375fae-6671-4ed2-b64b-edb4c0f6162e" xlink:to="loc_us-gaap_LiabilitiesCurrent_defedb2b-31fc-4390-aea3-333e5c5d2f0c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_21b1d1ef-2e3d-47e0-aff6-bfacc2d8b8a3" 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_e4375fae-6671-4ed2-b64b-edb4c0f6162e" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_21b1d1ef-2e3d-47e0-aff6-bfacc2d8b8a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_86bc87ac-f9a9-4414-8631-e05639dce2b5" 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_e4375fae-6671-4ed2-b64b-edb4c0f6162e" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_86bc87ac-f9a9-4414-8631-e05639dce2b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_e765db89-52dd-4c75-8886-50c04f2e947e" 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_e4375fae-6671-4ed2-b64b-edb4c0f6162e" xlink:to="loc_us-gaap_LongTermDebt_e765db89-52dd-4c75-8886-50c04f2e947e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_5cbdea8e-5c38-4717-9f38-f077195caefa" 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_e4375fae-6671-4ed2-b64b-edb4c0f6162e" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_5cbdea8e-5c38-4717-9f38-f077195caefa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_881313e6-7848-4509-8919-77c024cbf472" 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_5d7e6cf7-f12c-49a7-9614-56e8a5c75747" 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_881313e6-7848-4509-8919-77c024cbf472" xlink:to="loc_us-gaap_AssetsCurrent_5d7e6cf7-f12c-49a7-9614-56e8a5c75747" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_446fdb5d-e21c-4d41-b71a-c3d2a7dd689d" 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_881313e6-7848-4509-8919-77c024cbf472" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_446fdb5d-e21c-4d41-b71a-c3d2a7dd689d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_2f755d93-6d02-4063-bb8c-5c175f14cb42" 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_881313e6-7848-4509-8919-77c024cbf472" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_2f755d93-6d02-4063-bb8c-5c175f14cb42" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_f3ab6089-e216-49e9-bc2c-9a4dcca6f144" 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_881313e6-7848-4509-8919-77c024cbf472" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_f3ab6089-e216-49e9-bc2c-9a4dcca6f144" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_325ef145-ea07-44a6-be13-be587343aa3c" 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_881313e6-7848-4509-8919-77c024cbf472" xlink:to="loc_us-gaap_Goodwill_325ef145-ea07-44a6-be13-be587343aa3c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_9cb47622-8c36-4aef-8f1a-99c8c1e8296e" 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_881313e6-7848-4509-8919-77c024cbf472" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_9cb47622-8c36-4aef-8f1a-99c8c1e8296e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_a37b90df-8b00-43d7-b549-dea3abd2f163" 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_04502715-dd23-481e-9c76-667aef6d5fe9" 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_a37b90df-8b00-43d7-b549-dea3abd2f163" xlink:to="loc_us-gaap_AccountsPayableCurrent_04502715-dd23-481e-9c76-667aef6d5fe9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_661e8598-2aec-4c0d-8d03-ad8af8d6be50" xlink:href="twlo-20211231.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_a37b90df-8b00-43d7-b549-dea3abd2f163" xlink:to="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_661e8598-2aec-4c0d-8d03-ad8af8d6be50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_39cfd75d-664e-47bd-aaf6-50a05f80beeb" 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_a37b90df-8b00-43d7-b549-dea3abd2f163" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_39cfd75d-664e-47bd-aaf6-50a05f80beeb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_a746faec-d50e-4a7e-9633-2dfff8c2c0b0" 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_a37b90df-8b00-43d7-b549-dea3abd2f163" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_a746faec-d50e-4a7e-9633-2dfff8c2c0b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_af698411-4a65-4630-82a4-a43029546814" 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_3eefd86d-c885-4a24-8d40-b1aebf34fd4a" 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_af698411-4a65-4630-82a4-a43029546814" xlink:to="loc_us-gaap_PreferredStockValue_3eefd86d-c885-4a24-8d40-b1aebf34fd4a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_dc1ec20d-d01a-4b99-a9c3-c519cb087de5" 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_af698411-4a65-4630-82a4-a43029546814" xlink:to="loc_us-gaap_CommonStockValue_dc1ec20d-d01a-4b99-a9c3-c519cb087de5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_f704992e-057f-409c-91be-0102c7d1c96d" 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_af698411-4a65-4630-82a4-a43029546814" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_f704992e-057f-409c-91be-0102c7d1c96d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_393404b6-cfaa-4e8e-97d3-3675c81a85b5" 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_af698411-4a65-4630-82a4-a43029546814" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_393404b6-cfaa-4e8e-97d3-3675c81a85b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_a04c50c1-7632-4ad1-bece-592eed6994f2" 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_af698411-4a65-4630-82a4-a43029546814" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_a04c50c1-7632-4ad1-bece-592eed6994f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_609a3cc5-e2a9-4c99-8e07-b376ad90bcad" 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_b23bf769-9c2f-4527-9fcf-fb66f6d2121c" 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_609a3cc5-e2a9-4c99-8e07-b376ad90bcad" xlink:to="loc_us-gaap_Liabilities_b23bf769-9c2f-4527-9fcf-fb66f6d2121c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_18297c70-e531-4764-b287-cf8d9767cd3f" 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_609a3cc5-e2a9-4c99-8e07-b376ad90bcad" xlink:to="loc_us-gaap_CommitmentsAndContingencies_18297c70-e531-4764-b287-cf8d9767cd3f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_8e09d4db-3035-42d3-86d8-093f1b1d8248" 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_609a3cc5-e2a9-4c99-8e07-b376ad90bcad" xlink:to="loc_us-gaap_StockholdersEquity_8e09d4db-3035-42d3-86d8-093f1b1d8248" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/ConsolidatedStatementsofOperations" xlink:type="simple" xlink:href="twlo-20211231.xsd#ConsolidatedStatementsofOperations"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/ConsolidatedStatementsofOperations" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_381bf9cf-0db9-43ce-b4d3-056dfd305efa" 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_1124d8ef-306f-4818-8052-0e808de113ca" 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_381bf9cf-0db9-43ce-b4d3-056dfd305efa" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_1124d8ef-306f-4818-8052-0e808de113ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_8e0c9f8d-ff7b-49aa-8d3d-49068bb1cd17" 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_381bf9cf-0db9-43ce-b4d3-056dfd305efa" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_8e0c9f8d-ff7b-49aa-8d3d-49068bb1cd17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_fafb44c0-61c4-4ed0-a313-b96ae75308d3" 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_79e1d72f-4c89-45d5-b732-7ddf29ffb930" 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_fafb44c0-61c4-4ed0-a313-b96ae75308d3" xlink:to="loc_us-gaap_GrossProfit_79e1d72f-4c89-45d5-b732-7ddf29ffb930" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_7c97ed98-53c6-49c1-ac81-f0720dc1ee5c" 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_fafb44c0-61c4-4ed0-a313-b96ae75308d3" xlink:to="loc_us-gaap_OperatingExpenses_7c97ed98-53c6-49c1-ac81-f0720dc1ee5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_809f53a0-d1d0-4570-aded-bd1c80359ba5" 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_e8cbc0b5-bb7a-41c9-9263-2c8f034e307b" 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_809f53a0-d1d0-4570-aded-bd1c80359ba5" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_e8cbc0b5-bb7a-41c9-9263-2c8f034e307b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_fced7533-99a5-4404-b06a-286056cb9784" 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_809f53a0-d1d0-4570-aded-bd1c80359ba5" xlink:to="loc_us-gaap_SellingAndMarketingExpense_fced7533-99a5-4404-b06a-286056cb9784" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_692a43cd-15de-45c0-94d8-bb1b9fb8bf43" 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_809f53a0-d1d0-4570-aded-bd1c80359ba5" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_692a43cd-15de-45c0-94d8-bb1b9fb8bf43" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_e6ffce36-8c90-4728-9299-ac83265aeaa3" 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_a2b83714-a621-49ee-a269-2b625ade4621" 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_e6ffce36-8c90-4728-9299-ac83265aeaa3" xlink:to="loc_us-gaap_OperatingIncomeLoss_a2b83714-a621-49ee-a269-2b625ade4621" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_8ac75b2d-269f-4b45-84bb-78aa93d5ef2e" 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_e6ffce36-8c90-4728-9299-ac83265aeaa3" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_8ac75b2d-269f-4b45-84bb-78aa93d5ef2e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_ba8878c2-bd28-4c7f-a352-047608b948cd" 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_be4f825f-acdd-46e9-8d8a-f99e5669f2df" 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_ba8878c2-bd28-4c7f-a352-047608b948cd" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_be4f825f-acdd-46e9-8d8a-f99e5669f2df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_c146bffc-49f7-44ea-bc68-37c34052a6f8" 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_ba8878c2-bd28-4c7f-a352-047608b948cd" xlink:to="loc_us-gaap_CostOfRevenue_c146bffc-49f7-44ea-bc68-37c34052a6f8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/ConsolidatedStatementsofComprehensiveLoss" xlink:type="simple" xlink:href="twlo-20211231.xsd#ConsolidatedStatementsofComprehensiveLoss"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/ConsolidatedStatementsofComprehensiveLoss" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_e1d66b9b-08e5-48b8-b9af-a2657f1a5897" 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_NetIncomeLoss_ae737cca-6745-4ea0-8e81-81a738bc30a2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_e1d66b9b-08e5-48b8-b9af-a2657f1a5897" xlink:to="loc_us-gaap_NetIncomeLoss_ae737cca-6745-4ea0-8e81-81a738bc30a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_d7d13b4d-6333-43d7-8bbb-1b2e199aefd5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_e1d66b9b-08e5-48b8-b9af-a2657f1a5897" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_d7d13b4d-6333-43d7-8bbb-1b2e199aefd5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_79eef9e1-fc11-450c-93e3-b61b245c83d3" 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_b1de998f-d912-44c1-b919-757211284b60" 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_79eef9e1-fc11-450c-93e3-b61b245c83d3" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_b1de998f-d912-44c1-b919-757211284b60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_8ada0c52-70fb-45d7-94a1-e2321a0af77b" 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_79eef9e1-fc11-450c-93e3-b61b245c83d3" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_8ada0c52-70fb-45d7-94a1-e2321a0af77b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent_aee6a50a-007d-4789-90be-6e90f42eb6fe" 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_79eef9e1-fc11-450c-93e3-b61b245c83d3" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent_aee6a50a-007d-4789-90be-6e90f42eb6fe" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/ConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="twlo-20211231.xsd#ConsolidatedStatementsofCashFlows"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/ConsolidatedStatementsofCashFlows" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_b4a208d4-ee05-4a12-aee8-41471c57654d" 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_82920235-5f85-4e8f-bd0d-ed6a52ecddb0" 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_b4a208d4-ee05-4a12-aee8-41471c57654d" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_82920235-5f85-4e8f-bd0d-ed6a52ecddb0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_cc4c3756-8e0d-4bf8-ad6d-3cb57add1af5" 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_b4a208d4-ee05-4a12-aee8-41471c57654d" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_cc4c3756-8e0d-4bf8-ad6d-3cb57add1af5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e0f6e017-9c64-4af8-a13c-fcbfc9554ed8" 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_b4a208d4-ee05-4a12-aee8-41471c57654d" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e0f6e017-9c64-4af8-a13c-fcbfc9554ed8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_52aa31ee-bf08-4d77-bec6-f99b37898c7e" 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_b4a208d4-ee05-4a12-aee8-41471c57654d" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_52aa31ee-bf08-4d77-bec6-f99b37898c7e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b55883e0-a020-4690-83ab-2a81f4e511c6" 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_00e5288e-b131-4e82-97cb-31fe11f912c7" 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_b55883e0-a020-4690-83ab-2a81f4e511c6" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_00e5288e-b131-4e82-97cb-31fe11f912c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_ce200e52-fa26-4cbf-8245-d86fd65f7b6f" 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_b55883e0-a020-4690-83ab-2a81f4e511c6" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_ce200e52-fa26-4cbf-8245-d86fd65f7b6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToDevelopSoftware_2ebe6b82-0a8b-46f2-a44b-1eb7e88913b2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsToDevelopSoftware"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b55883e0-a020-4690-83ab-2a81f4e511c6" xlink:to="loc_us-gaap_PaymentsToDevelopSoftware_2ebe6b82-0a8b-46f2-a44b-1eb7e88913b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_c510b3f1-23da-448b-b1f7-bb24e6f24819" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b55883e0-a020-4690-83ab-2a81f4e511c6" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_c510b3f1-23da-448b-b1f7-bb24e6f24819" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_2798f89b-392e-4c03-9895-487fec41ec30" 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_b55883e0-a020-4690-83ab-2a81f4e511c6" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_2798f89b-392e-4c03-9895-487fec41ec30" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_1abce220-7254-4073-9f09-f0c5bbc57990" 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_RestrictedCashAndCashEquivalentsNoncurrent_982098c2-b5dd-4326-9835-35a76bf45319" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalentsNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_1abce220-7254-4073-9f09-f0c5bbc57990" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsNoncurrent_982098c2-b5dd-4326-9835-35a76bf45319" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_02f5f635-4800-4a31-9332-daff283174bc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_1abce220-7254-4073-9f09-f0c5bbc57990" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_02f5f635-4800-4a31-9332-daff283174bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_926968ad-4418-4391-8a86-b95b50021da5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_1abce220-7254-4073-9f09-f0c5bbc57990" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_926968ad-4418-4391-8a86-b95b50021da5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_25e8a8c3-3995-43cd-9d08-a80bc697c6cf" 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_d7994f11-11a2-4daa-921e-35cfe63c5b59" 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_25e8a8c3-3995-43cd-9d08-a80bc697c6cf" xlink:to="loc_us-gaap_ProfitLoss_d7994f11-11a2-4daa-921e-35cfe63c5b59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_a6dce4a7-172c-4dc9-baa6-eb5c10c64ce5" 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_25e8a8c3-3995-43cd-9d08-a80bc697c6cf" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_a6dce4a7-172c-4dc9-baa6-eb5c10c64ce5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_LeasesRightOfUseAssetAmortization_c9ade689-5245-4121-a980-ab393c7cd179" xlink:href="twlo-20211231.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_25e8a8c3-3995-43cd-9d08-a80bc697c6cf" xlink:to="loc_twlo_LeasesRightOfUseAssetAmortization_c9ade689-5245-4121-a980-ab393c7cd179" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_ec8219ab-e4b7-41bb-bb5d-483522fab9d3" 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_25e8a8c3-3995-43cd-9d08-a80bc697c6cf" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_ec8219ab-e4b7-41bb-bb5d-483522fab9d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_a3e9df9d-7f1f-4e24-9042-11901be83481" 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_25e8a8c3-3995-43cd-9d08-a80bc697c6cf" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_a3e9df9d-7f1f-4e24-9042-11901be83481" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_2007a057-a8c9-460d-846b-c48a49a66349" 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_25e8a8c3-3995-43cd-9d08-a80bc697c6cf" xlink:to="loc_us-gaap_ShareBasedCompensation_2007a057-a8c9-460d-846b-c48a49a66349" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_8a87d192-b0ab-47ed-b9c2-ca93a365c55c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_25e8a8c3-3995-43cd-9d08-a80bc697c6cf" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_8a87d192-b0ab-47ed-b9c2-ca93a365c55c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_93844b48-46aa-4771-bc26-9c89124b097c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_25e8a8c3-3995-43cd-9d08-a80bc697c6cf" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_93844b48-46aa-4771-bc26-9c89124b097c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_793993d1-4681-41a3-b606-8d63bc7642b6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentAssets"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_25e8a8c3-3995-43cd-9d08-a80bc697c6cf" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_793993d1-4681-41a3-b606-8d63bc7642b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_cbf578e1-0cae-4bcf-8b00-5bde68c49f0a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_25e8a8c3-3995-43cd-9d08-a80bc697c6cf" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_cbf578e1-0cae-4bcf-8b00-5bde68c49f0a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_4b763347-7084-4ea4-86ff-451284f5ddb7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_25e8a8c3-3995-43cd-9d08-a80bc697c6cf" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_4b763347-7084-4ea4-86ff-451284f5ddb7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_cedc41cf-5d06-47ce-b2fe-e627bac661c8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_25e8a8c3-3995-43cd-9d08-a80bc697c6cf" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_cedc41cf-5d06-47ce-b2fe-e627bac661c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_ad114bd6-a013-4691-9a5b-6aaef184a600" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_25e8a8c3-3995-43cd-9d08-a80bc697c6cf" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_ad114bd6-a013-4691-9a5b-6aaef184a600" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_fa55a7e4-000d-4b78-85cd-ba20f6aa81ec" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInOperatingLeaseLiability"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_25e8a8c3-3995-43cd-9d08-a80bc697c6cf" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_fa55a7e4-000d-4b78-85cd-ba20f6aa81ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromAcquisition_f0b52118-d05f-4c5b-b13e-5b06eeaca57c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromAcquisition"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_25e8a8c3-3995-43cd-9d08-a80bc697c6cf" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromAcquisition_f0b52118-d05f-4c5b-b13e-5b06eeaca57c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_19012f68-d1a8-41d0-ae1d-528d5075df04" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_25e8a8c3-3995-43cd-9d08-a80bc697c6cf" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_19012f68-d1a8-41d0-ae1d-528d5075df04" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostAmortization_30e0f691-e718-4453-99d8-c0dc7b8bb8ea" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CapitalizedContractCostAmortization"/>
    <link:calculationArc order="17" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_25e8a8c3-3995-43cd-9d08-a80bc697c6cf" xlink:to="loc_us-gaap_CapitalizedContractCostAmortization_30e0f691-e718-4453-99d8-c0dc7b8bb8ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_CommonStockDonorAdvisedFundValue_2ffb3801-b02b-48a3-b053-69fd1fcddbb6" xlink:href="twlo-20211231.xsd#twlo_CommonStockDonorAdvisedFundValue"/>
    <link:calculationArc order="18" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_25e8a8c3-3995-43cd-9d08-a80bc697c6cf" xlink:to="loc_twlo_CommonStockDonorAdvisedFundValue_2ffb3801-b02b-48a3-b053-69fd1fcddbb6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_4b768e23-d788-47e1-a0e6-cf40c89c898e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="19" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_25e8a8c3-3995-43cd-9d08-a80bc697c6cf" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_4b768e23-d788-47e1-a0e6-cf40c89c898e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseImpairmentLoss_e39fa5eb-d0b6-4f68-a5d6-89e8e298d1cd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseImpairmentLoss"/>
    <link:calculationArc order="20" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_25e8a8c3-3995-43cd-9d08-a80bc697c6cf" xlink:to="loc_us-gaap_OperatingLeaseImpairmentLoss_e39fa5eb-d0b6-4f68-a5d6-89e8e298d1cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a180c090-eace-4d0b-a4cc-7df93b7bf533" 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_us-gaap_ProceedsFromIssuanceInitialPublicOffering_ed6c0895-7b11-4020-8a92-2d2eb863bef0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromIssuanceInitialPublicOffering"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a180c090-eace-4d0b-a4cc-7df93b7bf533" xlink:to="loc_us-gaap_ProceedsFromIssuanceInitialPublicOffering_ed6c0895-7b11-4020-8a92-2d2eb863bef0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDerivativeInstrumentFinancingActivities_66f4e952-6bba-4156-92cd-56e434fb4ea5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromDerivativeInstrumentFinancingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a180c090-eace-4d0b-a4cc-7df93b7bf533" xlink:to="loc_us-gaap_ProceedsFromDerivativeInstrumentFinancingActivities_66f4e952-6bba-4156-92cd-56e434fb4ea5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_2e9d4151-c243-4378-818f-3b90c7ea9ae0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a180c090-eace-4d0b-a4cc-7df93b7bf533" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_2e9d4151-c243-4378-818f-3b90c7ea9ae0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_418df649-0a1b-467a-8767-1727d1536b6e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a180c090-eace-4d0b-a4cc-7df93b7bf533" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_418df649-0a1b-467a-8767-1727d1536b6e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions_c3b3d77f-b5c5-431a-a06e-099f1d6cb26e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a180c090-eace-4d0b-a4cc-7df93b7bf533" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions_c3b3d77f-b5c5-431a-a06e-099f1d6cb26e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_14742093-a31e-4d7c-99dc-bcdf69dfc12c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a180c090-eace-4d0b-a4cc-7df93b7bf533" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_14742093-a31e-4d7c-99dc-bcdf69dfc12c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_c6113c0b-7029-4e33-bc61-e1244bab581e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a180c090-eace-4d0b-a4cc-7df93b7bf533" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_c6113c0b-7029-4e33-bc61-e1244bab581e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/FairValueMeasurementsAssetsMeasuredatFairValueonaRecurringBasisDetails" xlink:type="simple" xlink:href="twlo-20211231.xsd#FairValueMeasurementsAssetsMeasuredatFairValueonaRecurringBasisDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/FairValueMeasurementsAssetsMeasuredatFairValueonaRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_680ce121-5c3b-4973-89c5-95ce315882b6" 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_AvailableForSaleSecuritiesDebtSecurities_65bae1d6-89d8-480b-8ee3-c28304aa2f4f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_680ce121-5c3b-4973-89c5-95ce315882b6" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_65bae1d6-89d8-480b-8ee3-c28304aa2f4f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_355dd249-9b49-4b45-b2c7-a24a03f45e8e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_680ce121-5c3b-4973-89c5-95ce315882b6" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_355dd249-9b49-4b45-b2c7-a24a03f45e8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_95f6388b-f035-43ff-8be3-7846608bf2db" 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_151791cc-87f4-4802-9e95-357803d390d2" 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_95f6388b-f035-43ff-8be3-7846608bf2db" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_151791cc-87f4-4802-9e95-357803d390d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_d67bb9b9-6325-49e1-b917-2b1f1457b76b" 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_95f6388b-f035-43ff-8be3-7846608bf2db" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_d67bb9b9-6325-49e1-b917-2b1f1457b76b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_3147d9e8-3aab-4b87-b26a-136edac6f2f8" 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_95f6388b-f035-43ff-8be3-7846608bf2db" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_3147d9e8-3aab-4b87-b26a-136edac6f2f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_FinancialAssetsAmortizedCostOrCarryingValue_56b6ccf3-0d87-4569-9b09-b991a4203d0e" xlink:href="twlo-20211231.xsd#twlo_FinancialAssetsAmortizedCostOrCarryingValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_d270519d-0c87-43ad-a93a-48de136b5517" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_FinancialAssetsAmortizedCostOrCarryingValue_56b6ccf3-0d87-4569-9b09-b991a4203d0e" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_d270519d-0c87-43ad-a93a-48de136b5517" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_b5344fef-aa1c-45fd-82d8-39b93c36eefc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_FinancialAssetsAmortizedCostOrCarryingValue_56b6ccf3-0d87-4569-9b09-b991a4203d0e" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_b5344fef-aa1c-45fd-82d8-39b93c36eefc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/FairValueMeasurementsContractualMaturitiesDetails" xlink:type="simple" xlink:href="twlo-20211231.xsd#FairValueMeasurementsContractualMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/FairValueMeasurementsContractualMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_3110f051-9cb3-4af6-9d80-3994d6dd91f6" 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_d18ee5de-e8d0-49ba-bd6d-8aa55d84e9d9" 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_3110f051-9cb3-4af6-9d80-3994d6dd91f6" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_d18ee5de-e8d0-49ba-bd6d-8aa55d84e9d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoAmortizedCostBasis_5b73a223-2b2e-4e06-b221-8579afd08d9e" xlink:href="twlo-20211231.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_3110f051-9cb3-4af6-9d80-3994d6dd91f6" xlink:to="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoAmortizedCostBasis_5b73a223-2b2e-4e06-b221-8579afd08d9e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_ba8fb951-8807-4449-b224-b63ae373d23f" 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_4e453ddb-72f3-4516-bf6f-9582fde26de9" 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_ba8fb951-8807-4449-b224-b63ae373d23f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_4e453ddb-72f3-4516-bf6f-9582fde26de9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoFairValue_a34e445b-b137-4b59-9f14-6c91a9b4d48a" xlink:href="twlo-20211231.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_ba8fb951-8807-4449-b224-b63ae373d23f" xlink:to="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoFairValue_a34e445b-b137-4b59-9f14-6c91a9b4d48a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/PropertyandEquipmentScheduleofPropertyandEquipmentNetDetails" xlink:type="simple" xlink:href="twlo-20211231.xsd#PropertyandEquipmentScheduleofPropertyandEquipmentNetDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/PropertyandEquipmentScheduleofPropertyandEquipmentNetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_55f9ee19-528e-4926-bb36-39a48be34924" 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_5c8ca505-3371-4af7-b46e-24fd352977be" 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_55f9ee19-528e-4926-bb36-39a48be34924" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_5c8ca505-3371-4af7-b46e-24fd352977be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_b27e76ab-c04a-4df5-b5af-3404085f8922" 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_55f9ee19-528e-4926-bb36-39a48be34924" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_b27e76ab-c04a-4df5-b5af-3404085f8922" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/RightofUseAssetsandLeaseLiabilitiesLeaseMaturitiesDetails" xlink:type="simple" xlink:href="twlo-20211231.xsd#RightofUseAssetsandLeaseLiabilitiesLeaseMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/RightofUseAssetsandLeaseLiabilitiesLeaseMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_a9f4240f-0e35-4102-b7d4-d5ebffc0fcba" 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_51bdb5d7-eb2a-4715-8cc7-5bd420a6d1f4" 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_a9f4240f-0e35-4102-b7d4-d5ebffc0fcba" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_51bdb5d7-eb2a-4715-8cc7-5bd420a6d1f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_68685f84-2e91-442b-8c7f-11966ab77f1f" 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_a9f4240f-0e35-4102-b7d4-d5ebffc0fcba" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_68685f84-2e91-442b-8c7f-11966ab77f1f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_8b229e71-6bea-49d5-80c5-50b832876c7c" 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_453bbff1-bf76-454c-bdf6-8580aaa842fa" 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_8b229e71-6bea-49d5-80c5-50b832876c7c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_453bbff1-bf76-454c-bdf6-8580aaa842fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_abbed1a8-7152-407a-9f94-d8fffc0d8586" 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_8b229e71-6bea-49d5-80c5-50b832876c7c" xlink:to="loc_us-gaap_OperatingLeaseLiability_abbed1a8-7152-407a-9f94-d8fffc0d8586" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/RightofUseAssetsandLeaseLiabilitiesLeaseMaturitiesDetails_1" xlink:type="simple" xlink:href="twlo-20211231.xsd#RightofUseAssetsandLeaseLiabilitiesLeaseMaturitiesDetails_1"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/RightofUseAssetsandLeaseLiabilitiesLeaseMaturitiesDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_60de76fa-87e4-46ce-a65e-ec78118e40e1" 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_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_0ac4e315-564a-41b6-b2ab-e3ec8fd301c6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_60de76fa-87e4-46ce-a65e-ec78118e40e1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_0ac4e315-564a-41b6-b2ab-e3ec8fd301c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_661ff13e-8f35-478a-b224-4e7e76415d28" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_60de76fa-87e4-46ce-a65e-ec78118e40e1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_661ff13e-8f35-478a-b224-4e7e76415d28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_6611b2a1-f974-4d2e-8d4a-be92efb41f16" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_60de76fa-87e4-46ce-a65e-ec78118e40e1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_6611b2a1-f974-4d2e-8d4a-be92efb41f16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_4e57a838-7a92-409d-872f-7ac36e3588eb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_60de76fa-87e4-46ce-a65e-ec78118e40e1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_4e57a838-7a92-409d-872f-7ac36e3588eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_c32443ef-6708-4181-95dc-c956ee7e5a79" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_60de76fa-87e4-46ce-a65e-ec78118e40e1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_c32443ef-6708-4181-95dc-c956ee7e5a79" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_2a1959f0-2653-4cf6-90c5-cdca5097ed03" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_60de76fa-87e4-46ce-a65e-ec78118e40e1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_2a1959f0-2653-4cf6-90c5-cdca5097ed03" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/BusinessCombinationsPurchasePriceComponentsDetails" xlink:type="simple" xlink:href="twlo-20211231.xsd#BusinessCombinationsPurchasePriceComponentsDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/BusinessCombinationsPurchasePriceComponentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_079d4b09-c5f6-4875-b303-8c6e9bd3937b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_db145123-6d19-4de9-837a-096c357f9a48" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationConsiderationTransferred1_079d4b09-c5f6-4875-b303-8c6e9bd3937b" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_db145123-6d19-4de9-837a-096c357f9a48" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_9407c091-3e41-44e6-b178-bdfd25c61f89" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationConsiderationTransferred1_079d4b09-c5f6-4875-b303-8c6e9bd3937b" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_9407c091-3e41-44e6-b178-bdfd25c61f89" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_EquityAwardsAssumedDuringPeriodValue_a20ab592-e01b-43cc-b856-08edfa0f42d6" xlink:href="twlo-20211231.xsd#twlo_EquityAwardsAssumedDuringPeriodValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationConsiderationTransferred1_079d4b09-c5f6-4875-b303-8c6e9bd3937b" xlink:to="loc_twlo_EquityAwardsAssumedDuringPeriodValue_a20ab592-e01b-43cc-b856-08edfa0f42d6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/BusinessCombinationsPurchasePriceAllocationDetails" xlink:type="simple" xlink:href="twlo-20211231.xsd#BusinessCombinationsPurchasePriceAllocationDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/BusinessCombinationsPurchasePriceAllocationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_87c744f9-56e2-4f7f-9b89-6ed2590f0e47" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_e4b6e846-19da-492b-9d24-eb741be785a2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_87c744f9-56e2-4f7f-9b89-6ed2590f0e47" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_e4b6e846-19da-492b-9d24-eb741be785a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_f42d919d-b031-4500-8dda-19df2a934ee9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_87c744f9-56e2-4f7f-9b89-6ed2590f0e47" xlink:to="loc_us-gaap_Goodwill_f42d919d-b031-4500-8dda-19df2a934ee9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_b5a72518-19ed-482f-8c42-aba3e16a9fd8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_87c744f9-56e2-4f7f-9b89-6ed2590f0e47" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_b5a72518-19ed-482f-8c42-aba3e16a9fd8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_b65cf1c8-908a-4899-aef1-235ce3b82bc8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_87c744f9-56e2-4f7f-9b89-6ed2590f0e47" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_b65cf1c8-908a-4899-aef1-235ce3b82bc8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingRightOfUseAssets_f16a5fdc-101e-4247-bdea-8d4ec5c6a73f" xlink:href="twlo-20211231.xsd#twlo_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingRightOfUseAssets"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_87c744f9-56e2-4f7f-9b89-6ed2590f0e47" xlink:to="loc_twlo_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingRightOfUseAssets_f16a5fdc-101e-4247-bdea-8d4ec5c6a73f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_0a2379b4-9b62-4995-b7fd-fabdb4b8c209" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_87c744f9-56e2-4f7f-9b89-6ed2590f0e47" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_0a2379b4-9b62-4995-b7fd-fabdb4b8c209" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingLeaseLiability_80e31d84-f91e-462a-8f4d-7f30c212652f" xlink:href="twlo-20211231.xsd#twlo_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingLeaseLiability"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_87c744f9-56e2-4f7f-9b89-6ed2590f0e47" xlink:to="loc_twlo_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingLeaseLiability_80e31d84-f91e-462a-8f4d-7f30c212652f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_c41314dd-1ad0-47b2-8894-2fc873141538" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_87c744f9-56e2-4f7f-9b89-6ed2590f0e47" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_c41314dd-1ad0-47b2-8894-2fc873141538" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_8d171e45-e6ea-40d1-bb00-bcfb4c944260" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_87c744f9-56e2-4f7f-9b89-6ed2590f0e47" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_8d171e45-e6ea-40d1-bb00-bcfb4c944260" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_f6f81cfd-7c6f-46de-9190-55fb756e25db" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_87c744f9-56e2-4f7f-9b89-6ed2590f0e47" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_f6f81cfd-7c6f-46de-9190-55fb756e25db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesDeferredRevenue_027cd43d-ddda-4deb-860a-c6802a8aa56f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesDeferredRevenue"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_87c744f9-56e2-4f7f-9b89-6ed2590f0e47" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesDeferredRevenue_027cd43d-ddda-4deb-860a-c6802a8aa56f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssetsIntangibleAssetsDetails" xlink:type="simple" xlink:href="twlo-20211231.xsd#GoodwillandIntangibleAssetsIntangibleAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/GoodwillandIntangibleAssetsIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_75217cd6-9c55-4200-942f-c189411adc92" 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_8f2395e0-343d-4355-97b4-1a39039230e4" 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_75217cd6-9c55-4200-942f-c189411adc92" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_8f2395e0-343d-4355-97b4-1a39039230e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_54e3b2e6-30bb-48f6-9e4e-f1d457ff802b" 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_75217cd6-9c55-4200-942f-c189411adc92" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_54e3b2e6-30bb-48f6-9e4e-f1d457ff802b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_2e0e8d90-8a67-4ae5-b744-e04beb4a31da" 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_75861889-a5ab-43e0-abe4-1d939c5a63fa" 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_2e0e8d90-8a67-4ae5-b744-e04beb4a31da" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_75861889-a5ab-43e0-abe4-1d939c5a63fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_ba8b7768-dbde-4d6d-ba11-45c15d9df05b" 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_2e0e8d90-8a67-4ae5-b744-e04beb4a31da" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_ba8b7768-dbde-4d6d-ba11-45c15d9df05b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_9da05500-d910-442a-9075-90a614f43b70" 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_88893d65-1819-4299-af58-4f812023a1e4" 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_9da05500-d910-442a-9075-90a614f43b70" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_88893d65-1819-4299-af58-4f812023a1e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_b5e43c40-80fe-44ab-9ea0-08b78e138cf2" 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_9da05500-d910-442a-9075-90a614f43b70" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_b5e43c40-80fe-44ab-9ea0-08b78e138cf2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssetsIntangibleAssetsDetails_1" xlink:type="simple" xlink:href="twlo-20211231.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_da9762bb-7fe8-4f2b-9c08-29893a99785b" 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_2664bb70-a87a-428d-8391-b99e0ee034b5" 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_da9762bb-7fe8-4f2b-9c08-29893a99785b" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_2664bb70-a87a-428d-8391-b99e0ee034b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_ab112c07-23d4-4009-b8eb-731e06aa7171" 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_da9762bb-7fe8-4f2b-9c08-29893a99785b" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_ab112c07-23d4-4009-b8eb-731e06aa7171" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssetsTotalEstimatedFutureAmortizationExpenseDetails" xlink:type="simple" xlink:href="twlo-20211231.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_d293d6a4-6269-40cd-9b54-ca08900c95a2" 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_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_0a7014e5-bb2e-4c8b-9956-f12ad8ada73d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_d293d6a4-6269-40cd-9b54-ca08900c95a2" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_0a7014e5-bb2e-4c8b-9956-f12ad8ada73d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_30b69a6b-7ef2-4779-92b8-4d72052659c8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_d293d6a4-6269-40cd-9b54-ca08900c95a2" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_30b69a6b-7ef2-4779-92b8-4d72052659c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_e261449a-7d89-4d28-be74-6e93d284abc9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_d293d6a4-6269-40cd-9b54-ca08900c95a2" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_e261449a-7d89-4d28-be74-6e93d284abc9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_1a1fe423-3f81-48ea-926c-76665d8d637b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_d293d6a4-6269-40cd-9b54-ca08900c95a2" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_1a1fe423-3f81-48ea-926c-76665d8d637b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_e8d29e52-9138-4a95-a51d-b2dc09a17821" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_d293d6a4-6269-40cd-9b54-ca08900c95a2" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_e8d29e52-9138-4a95-a51d-b2dc09a17821" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_a3ab6b94-cf9c-40b4-b80c-994c4612cc2e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_d293d6a4-6269-40cd-9b54-ca08900c95a2" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_a3ab6b94-cf9c-40b4-b80c-994c4612cc2e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/AccruedExpensesandOtherLiabilitiesDetails" xlink:type="simple" xlink:href="twlo-20211231.xsd#AccruedExpensesandOtherLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/AccruedExpensesandOtherLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_81ec1992-987a-4e9d-b0e5-290e91a87d58" xlink:href="twlo-20211231.xsd#twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_6f2a4779-a96e-4bf4-be81-2fbfb2542544" 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_81ec1992-987a-4e9d-b0e5-290e91a87d58" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_6f2a4779-a96e-4bf4-be81-2fbfb2542544" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedBonusesCurrent_141febe7-2edd-4927-9cc3-cba10bddbbd4" 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_81ec1992-987a-4e9d-b0e5-290e91a87d58" xlink:to="loc_us-gaap_AccruedBonusesCurrent_141febe7-2edd-4927-9cc3-cba10bddbbd4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_AccruedCostOfRevenueCurrent_1b83e43b-098d-4768-8b79-188b17dc3253" xlink:href="twlo-20211231.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_81ec1992-987a-4e9d-b0e5-290e91a87d58" xlink:to="loc_twlo_AccruedCostOfRevenueCurrent_1b83e43b-098d-4768-8b79-188b17dc3253" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxesPayableCurrent_b9a99f94-01e4-4502-ae91-7b00f31e5462" 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_81ec1992-987a-4e9d-b0e5-290e91a87d58" xlink:to="loc_us-gaap_TaxesPayableCurrent_b9a99f94-01e4-4502-ae91-7b00f31e5462" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherEmployeeRelatedLiabilitiesCurrent_0faf008b-9f30-48c3-b78b-29927a3801f2" 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_81ec1992-987a-4e9d-b0e5-290e91a87d58" xlink:to="loc_us-gaap_OtherEmployeeRelatedLiabilitiesCurrent_0faf008b-9f30-48c3-b78b-29927a3801f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_5edb7b24-266c-4736-a723-e6742203b64b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinanceLeaseLiabilityCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_81ec1992-987a-4e9d-b0e5-290e91a87d58" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_5edb7b24-266c-4736-a723-e6742203b64b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_c8cc997d-a727-4d9e-ade2-fc6d5194cbda" 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_81ec1992-987a-4e9d-b0e5-290e91a87d58" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_c8cc997d-a727-4d9e-ade2-fc6d5194cbda" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/NotesPayableSummaryofLongTermDebtDetails" xlink:type="simple" xlink:href="twlo-20211231.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_41f5c48a-1967-4d4e-a2c7-b364eae4126b" 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_DebtInstrumentFaceAmount_48f80a37-7aca-4c11-9c96-4c3f502efb23" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_41f5c48a-1967-4d4e-a2c7-b364eae4126b" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_48f80a37-7aca-4c11-9c96-4c3f502efb23" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_39effa9a-3409-4050-8a09-e3ec7a00aff0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_41f5c48a-1967-4d4e-a2c7-b364eae4126b" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_39effa9a-3409-4050-8a09-e3ec7a00aff0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_2e9ddf05-0c62-42af-b60c-c744e961684a" 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_41f5c48a-1967-4d4e-a2c7-b364eae4126b" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_2e9ddf05-0c62-42af-b60c-c744e961684a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/CommitmentsandContingenciesOtherCommitmentsDetails" xlink:type="simple" xlink:href="twlo-20211231.xsd#CommitmentsandContingenciesOtherCommitmentsDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/CommitmentsandContingenciesOtherCommitmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount_e2d077b1-2143-4120-b66d-8c70b66ea028" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFirstAnniversary_56398853-3d2b-4ebd-ae5f-7b9bd350cdeb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFirstAnniversary"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount_e2d077b1-2143-4120-b66d-8c70b66ea028" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFirstAnniversary_56398853-3d2b-4ebd-ae5f-7b9bd350cdeb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary_95f80e3d-5cef-42a0-87eb-4dfe31882a41" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount_e2d077b1-2143-4120-b66d-8c70b66ea028" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary_95f80e3d-5cef-42a0-87eb-4dfe31882a41" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnThirdAnniversary_7449a593-55d9-427e-96d2-49100da9dfbb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnThirdAnniversary"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount_e2d077b1-2143-4120-b66d-8c70b66ea028" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnThirdAnniversary_7449a593-55d9-427e-96d2-49100da9dfbb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFourthAnniversary_18f2d56f-0688-4436-b3c6-18cb31367298" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFourthAnniversary"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount_e2d077b1-2143-4120-b66d-8c70b66ea028" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFourthAnniversary_18f2d56f-0688-4436-b3c6-18cb31367298" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/StockholdersEquityCommonStockSharesReservedDetails" xlink:type="simple" xlink:href="twlo-20211231.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_4070ecee-1f19-45a7-a283-6d7f0c5c93dd" 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_57cae2c4-e07c-417b-85e3-bf2e0b993628" 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_4070ecee-1f19-45a7-a283-6d7f0c5c93dd" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_57cae2c4-e07c-417b-85e3-bf2e0b993628" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_c53c530f-b56c-45a7-95b1-073ae546a187" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_4070ecee-1f19-45a7-a283-6d7f0c5c93dd" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_c53c530f-b56c-45a7-95b1-073ae546a187" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_CommonStockCapitalSharesReservedForFutureIssuanceDonorAdvisedFund_618caf72-1942-4b4f-ab80-9a2984d63e29" xlink:href="twlo-20211231.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_4070ecee-1f19-45a7-a283-6d7f0c5c93dd" xlink:to="loc_twlo_CommonStockCapitalSharesReservedForFutureIssuanceDonorAdvisedFund_618caf72-1942-4b4f-ab80-9a2984d63e29" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_2afbcccf-7c1b-4dce-856d-641c207ebcbb" 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_4070ecee-1f19-45a7-a283-6d7f0c5c93dd" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_2afbcccf-7c1b-4dce-856d-641c207ebcbb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_CommonStockCapitalSharesReservedForConvertibleDebt_bef9c77c-2ffa-4ac7-80e3-102edaee49cc" xlink:href="twlo-20211231.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_4070ecee-1f19-45a7-a283-6d7f0c5c93dd" xlink:to="loc_twlo_CommonStockCapitalSharesReservedForConvertibleDebt_bef9c77c-2ffa-4ac7-80e3-102edaee49cc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/IncomeTaxesDomesticandForeignComponentsofLossBeforeIncomeTaxesDetails" xlink:type="simple" xlink:href="twlo-20211231.xsd#IncomeTaxesDomesticandForeignComponentsofLossBeforeIncomeTaxesDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/IncomeTaxesDomesticandForeignComponentsofLossBeforeIncomeTaxesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_34e2db68-8980-4569-b4f4-c871fcca61d2" 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_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_2e39fd66-e80c-456b-a6e5-34d7636d7044" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_34e2db68-8980-4569-b4f4-c871fcca61d2" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_2e39fd66-e80c-456b-a6e5-34d7636d7044" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_ff8fec5e-b480-48b6-af7a-c6acbe7a5c8b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_34e2db68-8980-4569-b4f4-c871fcca61d2" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_ff8fec5e-b480-48b6-af7a-c6acbe7a5c8b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/IncomeTaxesProvisionforIncomeTaxesDetails" xlink:type="simple" xlink:href="twlo-20211231.xsd#IncomeTaxesProvisionforIncomeTaxesDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/IncomeTaxesProvisionforIncomeTaxesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_2805e0be-a3d4-42df-ac64-3da9b9b28610" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_8975d9ab-6fae-45a6-bb4f-66c9308b4cfa" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_2805e0be-a3d4-42df-ac64-3da9b9b28610" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_8975d9ab-6fae-45a6-bb4f-66c9308b4cfa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_eff328d9-7cf9-4bd0-abaf-96208ede13e4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_2805e0be-a3d4-42df-ac64-3da9b9b28610" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_eff328d9-7cf9-4bd0-abaf-96208ede13e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_d0089762-d5ef-4aef-9e4c-bf8c69f22dd4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_8490279c-9ba0-4750-8459-5a7dcd848d93" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_d0089762-d5ef-4aef-9e4c-bf8c69f22dd4" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_8490279c-9ba0-4750-8459-5a7dcd848d93" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_8bcb0019-9eca-4a9b-826c-04fedb002ef5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_d0089762-d5ef-4aef-9e4c-bf8c69f22dd4" xlink:to="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_8bcb0019-9eca-4a9b-826c-04fedb002ef5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_14468317-000e-4f2f-bc9f-f05fac416a8d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredForeignIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_d0089762-d5ef-4aef-9e4c-bf8c69f22dd4" xlink:to="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_14468317-000e-4f2f-bc9f-f05fac416a8d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_c45151ed-74ae-4492-ade7-1eb06260e48b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_1869597d-3e3b-4a00-952b-daa820ad15ec" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CurrentStateAndLocalTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_c45151ed-74ae-4492-ade7-1eb06260e48b" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_1869597d-3e3b-4a00-952b-daa820ad15ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentForeignTaxExpenseBenefit_896eba55-7f72-4289-a577-6456dda1bd44" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CurrentForeignTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_c45151ed-74ae-4492-ade7-1eb06260e48b" xlink:to="loc_us-gaap_CurrentForeignTaxExpenseBenefit_896eba55-7f72-4289-a577-6456dda1bd44" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_6ef0e4c5-458a-400a-8826-e8d36199882c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CurrentFederalTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_c45151ed-74ae-4492-ade7-1eb06260e48b" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_6ef0e4c5-458a-400a-8826-e8d36199882c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/IncomeTaxesReconciliationoftheStatutoryFederalTaxRateandtheEffectiveTaxRateDetails" xlink:type="simple" xlink:href="twlo-20211231.xsd#IncomeTaxesReconciliationoftheStatutoryFederalTaxRateandtheEffectiveTaxRateDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/IncomeTaxesReconciliationoftheStatutoryFederalTaxRateandtheEffectiveTaxRateDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_698ffb50-aa3c-435f-b3d1-dad8224c3f26" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_c31be1b6-d0f5-48d7-8d69-f983b2d3a4fb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_698ffb50-aa3c-435f-b3d1-dad8224c3f26" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_c31be1b6-d0f5-48d7-8d69-f983b2d3a4fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_1b913c84-dc39-488a-a7fe-c6a621439496" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_698ffb50-aa3c-435f-b3d1-dad8224c3f26" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_1b913c84-dc39-488a-a7fe-c6a621439496" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_d15164bb-b15a-42c3-b1b5-fa71e7ca5e68" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_698ffb50-aa3c-435f-b3d1-dad8224c3f26" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_d15164bb-b15a-42c3-b1b5-fa71e7ca5e68" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits_dd4ddbc1-7d73-4f5d-8f18-a2415e195139" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_698ffb50-aa3c-435f-b3d1-dad8224c3f26" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits_dd4ddbc1-7d73-4f5d-8f18-a2415e195139" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_07c1deae-f5dd-4ae6-9f70-f3d7cabbad27" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_698ffb50-aa3c-435f-b3d1-dad8224c3f26" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_07c1deae-f5dd-4ae6-9f70-f3d7cabbad27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_EffectiveIncomeTaxRateReconciliationPermanentDifferencesPercent_5d4a8722-f78e-4694-b67e-640dbd2d685a" xlink:href="twlo-20211231.xsd#twlo_EffectiveIncomeTaxRateReconciliationPermanentDifferencesPercent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_698ffb50-aa3c-435f-b3d1-dad8224c3f26" xlink:to="loc_twlo_EffectiveIncomeTaxRateReconciliationPermanentDifferencesPercent_5d4a8722-f78e-4694-b67e-640dbd2d685a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_9cff0a94-3f3f-4fcf-aaee-65ece20971e1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_698ffb50-aa3c-435f-b3d1-dad8224c3f26" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_9cff0a94-3f3f-4fcf-aaee-65ece20971e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_45098dc1-69a8-46c4-8885-1c9b6ed09eab" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_698ffb50-aa3c-435f-b3d1-dad8224c3f26" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_45098dc1-69a8-46c4-8885-1c9b6ed09eab" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.twilio.com/role/IncomeTaxesSignificantComponentsofDeferredTaxAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="twlo-20211231.xsd#IncomeTaxesSignificantComponentsofDeferredTaxAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.twilio.com/role/IncomeTaxesSignificantComponentsofDeferredTaxAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_ed50b0d8-fd42-4414-8b5e-f3337d6d6e6d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_feb4ca2e-071a-4150-b791-2fb6798c0bc6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_ed50b0d8-fd42-4414-8b5e-f3337d6d6e6d" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_feb4ca2e-071a-4150-b791-2fb6798c0bc6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccruals_8bd8ce6b-c9dd-4c66-82f3-0d32a69ead0b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccruals"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_ed50b0d8-fd42-4414-8b5e-f3337d6d6e6d" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccruals_8bd8ce6b-c9dd-4c66-82f3-0d32a69ead0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_0e251285-2d30-44ba-8e10-8c822b1a6bb4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_ed50b0d8-fd42-4414-8b5e-f3337d6d6e6d" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_0e251285-2d30-44ba-8e10-8c822b1a6bb4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch_05be41e9-f5a2-4cc7-91b9-0bbd007c3cb3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_ed50b0d8-fd42-4414-8b5e-f3337d6d6e6d" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch_05be41e9-f5a2-4cc7-91b9-0bbd007c3cb3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsCharitableContributionCarryforwards_7a723ffa-0c78-46c3-bc30-4a3d7dee4c7b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsCharitableContributionCarryforwards"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_ed50b0d8-fd42-4414-8b5e-f3337d6d6e6d" xlink:to="loc_us-gaap_DeferredTaxAssetsCharitableContributionCarryforwards_7a723ffa-0c78-46c3-bc30-4a3d7dee4c7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_DeferredTaxAssetsCappedCall_ae5bbcd9-ed89-43e4-80b6-467a034e0ded" xlink:href="twlo-20211231.xsd#twlo_DeferredTaxAssetsCappedCall"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_ed50b0d8-fd42-4414-8b5e-f3337d6d6e6d" xlink:to="loc_twlo_DeferredTaxAssetsCappedCall_ae5bbcd9-ed89-43e4-80b6-467a034e0ded" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_DeferredTaxAssetsDebtIssuanceCosts_47357bea-64ef-4502-9150-e87dd56e3884" xlink:href="twlo-20211231.xsd#twlo_DeferredTaxAssetsDebtIssuanceCosts"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_ed50b0d8-fd42-4414-8b5e-f3337d6d6e6d" xlink:to="loc_twlo_DeferredTaxAssetsDebtIssuanceCosts_47357bea-64ef-4502-9150-e87dd56e3884" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment_fc5288ff-be50-494a-85f4-d97aabc7905b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_ed50b0d8-fd42-4414-8b5e-f3337d6d6e6d" xlink:to="loc_us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment_fc5288ff-be50-494a-85f4-d97aabc7905b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGoodwillAndIntangibleAssets_bbdd4272-10cb-4acf-bfd4-6a2f149145ea" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsGoodwillAndIntangibleAssets"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_ed50b0d8-fd42-4414-8b5e-f3337d6d6e6d" xlink:to="loc_us-gaap_DeferredTaxAssetsGoodwillAndIntangibleAssets_bbdd4272-10cb-4acf-bfd4-6a2f149145ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_DeferredTaxAssetLeaseLiability_ff8c0222-9083-4247-a5ec-dc772f68a88e" xlink:href="twlo-20211231.xsd#twlo_DeferredTaxAssetLeaseLiability"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_ed50b0d8-fd42-4414-8b5e-f3337d6d6e6d" xlink:to="loc_twlo_DeferredTaxAssetLeaseLiability_ff8c0222-9083-4247-a5ec-dc772f68a88e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_18af05a0-9bbc-4bf5-8377-de845e14f86c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsOther"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_ed50b0d8-fd42-4414-8b5e-f3337d6d6e6d" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_18af05a0-9bbc-4bf5-8377-de845e14f86c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_43c10677-9892-4f23-85cd-53717367e991" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_7f6dcfc2-1e09-470c-a4db-658a1be3a59a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_43c10677-9892-4f23-85cd-53717367e991" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_7f6dcfc2-1e09-470c-a4db-658a1be3a59a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_a0d30d57-5fc2-4323-b991-67b1fe798b40" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_43c10677-9892-4f23-85cd-53717367e991" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_a0d30d57-5fc2-4323-b991-67b1fe798b40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilities_51a73e66-8e16-4b46-be86-37527733abca" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_48439740-be88-40be-a575-328f26c7311f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsNet"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_51a73e66-8e16-4b46-be86-37527733abca" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_48439740-be88-40be-a575-328f26c7311f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedSoftware_fc764ac6-f929-4395-b68c-27f88cd422f6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedSoftware"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_51a73e66-8e16-4b46-be86-37527733abca" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedSoftware_fc764ac6-f929-4395-b68c-27f88cd422f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPrepaidExpenses_45f87d71-0203-4307-9265-bb9859b9c3f8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxLiabilitiesPrepaidExpenses"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_51a73e66-8e16-4b46-be86-37527733abca" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPrepaidExpenses_45f87d71-0203-4307-9265-bb9859b9c3f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets_fc34561a-51dc-4523-8b34-c2efaa474f9c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_51a73e66-8e16-4b46-be86-37527733abca" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets_fc34561a-51dc-4523-8b34-c2efaa474f9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_27105aab-0f89-42b4-85b9-db655d5c0a9e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_51a73e66-8e16-4b46-be86-37527733abca" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_27105aab-0f89-42b4-85b9-db655d5c0a9e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_DeferredTaxLiabilitiesConvertibleDebt_e514cf22-9adc-4786-84d1-096c515712c5" xlink:href="twlo-20211231.xsd#twlo_DeferredTaxLiabilitiesConvertibleDebt"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_51a73e66-8e16-4b46-be86-37527733abca" xlink:to="loc_twlo_DeferredTaxLiabilitiesConvertibleDebt_e514cf22-9adc-4786-84d1-096c515712c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesLeasingArrangements_e8448370-c5dc-44d6-b393-31174d3d71a5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxLiabilitiesLeasingArrangements"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_51a73e66-8e16-4b46-be86-37527733abca" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesLeasingArrangements_e8448370-c5dc-44d6-b393-31174d3d71a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_twlo_DeferredTaxLiabilitiesDeferredCommissions_ea0f8c0b-8593-4561-a9cf-de379a4eca67" xlink:href="twlo-20211231.xsd#twlo_DeferredTaxLiabilitiesDeferredCommissions"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_51a73e66-8e16-4b46-be86-37527733abca" xlink:to="loc_twlo_DeferredTaxLiabilitiesDeferredCommissions_ea0f8c0b-8593-4561-a9cf-de379a4eca67" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesOther_4117acc2-5513-4790-8816-f044693c354c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxLiabilitiesOther"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_51a73e66-8e16-4b46-be86-37527733abca" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesOther_4117acc2-5513-4790-8816-f044693c354c" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
