| | | | | | | | | | | | | | | | | | | | | |
<?xml version="1.0" encoding="windows-1252"?> |
<!-- XBRL Document Created with the Workiva Platform --> |
<!-- Copyright 2024 Workiva --> |
<!-- r:74f13190-a226-453c-8f38-ee57a27d3191,g:34bb14ed-1de0-4802-8936-95c1a088c31c --> |
<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-20231231.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_LiabilitiesCurrent_df919290-cfc9-4ed4-802b-d49bb15b4bf6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesCurrent"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_a2a75aae-c0b4-4d94-8512-8667fa381049" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_df919290-cfc9-4ed4-802b-d49bb15b4bf6" xlink:to="loc_us-gaap_AccountsPayableCurrent_a2a75aae-c0b4-4d94-8512-8667fa381049" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_f2dd5e31-c622-4d17-8c95-e39e3955f306" xlink:href="twlo-20231231.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_df919290-cfc9-4ed4-802b-d49bb15b4bf6" xlink:to="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_f2dd5e31-c622-4d17-8c95-e39e3955f306" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_3171b512-a13c-4901-9791-8c6372048617" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_df919290-cfc9-4ed4-802b-d49bb15b4bf6" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_3171b512-a13c-4901-9791-8c6372048617" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_1e10a631-55c5-47a3-bdf9-268c80d2e8bd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_df919290-cfc9-4ed4-802b-d49bb15b4bf6" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_1e10a631-55c5-47a3-bdf9-268c80d2e8bd" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_752be19e-93ef-4579-9d10-ad401c1c6229" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_496b047b-4cac-42bb-8584-57446200e8ae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_752be19e-93ef-4579-9d10-ad401c1c6229" xlink:to="loc_us-gaap_PreferredStockValue_496b047b-4cac-42bb-8584-57446200e8ae" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_5ba5d33c-c56a-4504-ac0d-69c4488ba13a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_752be19e-93ef-4579-9d10-ad401c1c6229" xlink:to="loc_us-gaap_CommonStockValue_5ba5d33c-c56a-4504-ac0d-69c4488ba13a" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_d7f158bb-33ed-426b-94f5-c1bf6b4a0657" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_752be19e-93ef-4579-9d10-ad401c1c6229" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_d7f158bb-33ed-426b-94f5-c1bf6b4a0657" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_07d67c62-c75e-458b-90b9-e2b14ebc10b9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_752be19e-93ef-4579-9d10-ad401c1c6229" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_07d67c62-c75e-458b-90b9-e2b14ebc10b9" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_00c84420-419e-42c9-bcdf-05176f9d69ac" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_752be19e-93ef-4579-9d10-ad401c1c6229" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_00c84420-419e-42c9-bcdf-05176f9d69ac" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_04f7d14a-c562-4b80-8f47-c3f2c3094802" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Liabilities"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_0250c34e-017d-4011-9fa6-fafc6e8f7239" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_04f7d14a-c562-4b80-8f47-c3f2c3094802" xlink:to="loc_us-gaap_LiabilitiesCurrent_0250c34e-017d-4011-9fa6-fafc6e8f7239" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_43d18921-b643-455b-9a79-af836a682a35" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_04f7d14a-c562-4b80-8f47-c3f2c3094802" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_43d18921-b643-455b-9a79-af836a682a35" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_c6461465-c816-439d-aa8a-ab1dfd22b09f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_04f7d14a-c562-4b80-8f47-c3f2c3094802" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_c6461465-c816-439d-aa8a-ab1dfd22b09f" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_d03a88d5-41db-406b-8c1f-cb7f528307ff" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_04f7d14a-c562-4b80-8f47-c3f2c3094802" xlink:to="loc_us-gaap_LongTermDebt_d03a88d5-41db-406b-8c1f-cb7f528307ff" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_406cb208-b42c-4ab0-b798-1aabe6a69b29" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_04f7d14a-c562-4b80-8f47-c3f2c3094802" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_406cb208-b42c-4ab0-b798-1aabe6a69b29" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_6f0a8386-a975-49a9-900e-7ae567868753" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsCurrent"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_5c648bcd-0155-4895-8c76-29c8388fd309" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_6f0a8386-a975-49a9-900e-7ae567868753" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_5c648bcd-0155-4895-8c76-29c8388fd309" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_ac47ae35-3e5a-46b5-b9b2-db1323594bae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_6f0a8386-a975-49a9-900e-7ae567868753" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_ac47ae35-3e5a-46b5-b9b2-db1323594bae" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_aca0058d-59ce-43a7-9453-b9d037ab29f6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_6f0a8386-a975-49a9-900e-7ae567868753" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_aca0058d-59ce-43a7-9453-b9d037ab29f6" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_6e2b26f9-49fd-4af0-9ddf-0623d1242344" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_6f0a8386-a975-49a9-900e-7ae567868753" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_6e2b26f9-49fd-4af0-9ddf-0623d1242344" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_1be47dae-d701-43b7-86eb-c077aa108d10" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Assets"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_df194c0a-aee1-4e02-8766-4da781b16c89" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_1be47dae-d701-43b7-86eb-c077aa108d10" xlink:to="loc_us-gaap_AssetsCurrent_df194c0a-aee1-4e02-8766-4da781b16c89" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_0854e193-0426-4b5e-b5f7-8d93751ffeb0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_1be47dae-d701-43b7-86eb-c077aa108d10" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_0854e193-0426-4b5e-b5f7-8d93751ffeb0" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_acd0b4e1-7932-4781-9e39-968f88d92187" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_1be47dae-d701-43b7-86eb-c077aa108d10" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_acd0b4e1-7932-4781-9e39-968f88d92187" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestments_cd68813d-7349-4e65-a603-a14c314fbd75" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityMethodInvestments"/> |
| | <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_1be47dae-d701-43b7-86eb-c077aa108d10" xlink:to="loc_us-gaap_EquityMethodInvestments_cd68813d-7349-4e65-a603-a14c314fbd75" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_3b4686fd-7bb0-4db0-b64d-ccc8a9e906cb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/> |
| | <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_1be47dae-d701-43b7-86eb-c077aa108d10" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_3b4686fd-7bb0-4db0-b64d-ccc8a9e906cb" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_e32a5de0-39ab-4cc9-a0ce-3ca6beaa1860" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/> |
| | <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_1be47dae-d701-43b7-86eb-c077aa108d10" xlink:to="loc_us-gaap_Goodwill_e32a5de0-39ab-4cc9-a0ce-3ca6beaa1860" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_08ea20ee-9a32-489c-8037-5eaac5e12e45" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAssetsNoncurrent"/> |
| | <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_1be47dae-d701-43b7-86eb-c077aa108d10" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_08ea20ee-9a32-489c-8037-5eaac5e12e45" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_8ccecd73-8b93-44a8-8d66-2763250e9bcc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_ff950b10-5b6b-4430-b9b7-90ac17bc2464" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_8ccecd73-8b93-44a8-8d66-2763250e9bcc" xlink:to="loc_us-gaap_Liabilities_ff950b10-5b6b-4430-b9b7-90ac17bc2464" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_2606d24d-76b1-409c-afe9-191a78c9c290" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_8ccecd73-8b93-44a8-8d66-2763250e9bcc" xlink:to="loc_us-gaap_CommitmentsAndContingencies_2606d24d-76b1-409c-afe9-191a78c9c290" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_98b99f46-e9c7-48cd-83e1-5f1c4525389e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_8ccecd73-8b93-44a8-8d66-2763250e9bcc" xlink:to="loc_us-gaap_StockholdersEquity_98b99f46-e9c7-48cd-83e1-5f1c4525389e" xlink:type="arc"/> |
| | </link:calculationLink> |
| <link:roleRef roleURI="http://www.twilio.com/role/ConsolidatedStatementsofOperations" xlink:type="simple" xlink:href="twlo-20231231.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_GrossProfit_8807cbc4-b5ba-41a4-88a0-b32015da4f7b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GrossProfit"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_039a09bd-1c94-4bc4-a3ad-f3d93f6d349a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_8807cbc4-b5ba-41a4-88a0-b32015da4f7b" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_039a09bd-1c94-4bc4-a3ad-f3d93f6d349a" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_5d33eb62-3c49-4cea-9ff2-0c8f1ed0369e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_8807cbc4-b5ba-41a4-88a0-b32015da4f7b" xlink:to="loc_us-gaap_CostOfRevenue_5d33eb62-3c49-4cea-9ff2-0c8f1ed0369e" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_b90c1078-c0a5-43c2-9923-b62fc1be6786" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingIncomeLoss"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_76b9ddf4-2933-4545-a170-b05ecd83eee9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_b90c1078-c0a5-43c2-9923-b62fc1be6786" xlink:to="loc_us-gaap_GrossProfit_76b9ddf4-2933-4545-a170-b05ecd83eee9" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_8deffe7f-e5af-428a-93e1-08e002dc4a16" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_b90c1078-c0a5-43c2-9923-b62fc1be6786" xlink:to="loc_us-gaap_OperatingExpenses_8deffe7f-e5af-428a-93e1-08e002dc4a16" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_f43aa1e8-b1ba-47d6-905d-5d9ffc0907e6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a768303f-9dfc-4191-9143-3d72a76e0f93" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_f43aa1e8-b1ba-47d6-905d-5d9ffc0907e6" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a768303f-9dfc-4191-9143-3d72a76e0f93" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_83acc088-aae0-45df-8fd3-9aef59328c7b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_f43aa1e8-b1ba-47d6-905d-5d9ffc0907e6" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_83acc088-aae0-45df-8fd3-9aef59328c7b" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_0837bb8d-a87a-4e0a-aa0c-48d6d2df1d9f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NonoperatingIncomeExpense"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_0fd61236-9e1d-4bb1-9659-d4cbe0014ba6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNonoperatingIncomeExpense"/> |
| | <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_0837bb8d-a87a-4e0a-aa0c-48d6d2df1d9f" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_0fd61236-9e1d-4bb1-9659-d4cbe0014ba6" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_dd4569d8-1011-4bae-b3b6-de62dae75ed9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromEquityMethodInvestments"/> |
| | <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_0837bb8d-a87a-4e0a-aa0c-48d6d2df1d9f" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_dd4569d8-1011-4bae-b3b6-de62dae75ed9" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount_22c07b4f-1bed-4974-842f-145e99f5215c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount"/> |
| | <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_0837bb8d-a87a-4e0a-aa0c-48d6d2df1d9f" xlink:to="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount_22c07b4f-1bed-4974-842f-145e99f5215c" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_9e7cb264-3e31-4389-a9bd-c335b30e64d6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingExpenses"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_b47103b7-568b-4253-909c-82027d5e14c0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_9e7cb264-3e31-4389-a9bd-c335b30e64d6" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_b47103b7-568b-4253-909c-82027d5e14c0" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_2cde6f02-3b8e-4ade-9f12-182355cfe628" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_9e7cb264-3e31-4389-a9bd-c335b30e64d6" xlink:to="loc_us-gaap_SellingAndMarketingExpense_2cde6f02-3b8e-4ade-9f12-182355cfe628" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_f7538170-c919-4c7c-9baa-633da25c36c1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_9e7cb264-3e31-4389-a9bd-c335b30e64d6" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_f7538170-c919-4c7c-9baa-633da25c36c1" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_a60b3d03-f3af-4e42-b00f-f46b5788f3bc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringCharges"/> |
| | <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_9e7cb264-3e31-4389-a9bd-c335b30e64d6" xlink:to="loc_us-gaap_RestructuringCharges_a60b3d03-f3af-4e42-b00f-f46b5788f3bc" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf_244c3aff-7e2c-435c-b573-a1eec1837676" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf"/> |
| | <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_9e7cb264-3e31-4389-a9bd-c335b30e64d6" xlink:to="loc_us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf_244c3aff-7e2c-435c-b573-a1eec1837676" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_fb7ac948-30a4-4832-ae76-af72c7246522" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_e59b5daa-c589-4864-9931-563d959ce5a2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_fb7ac948-30a4-4832-ae76-af72c7246522" xlink:to="loc_us-gaap_OperatingIncomeLoss_e59b5daa-c589-4864-9931-563d959ce5a2" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_e156c3f3-501f-480c-8825-7d1413fd1e5d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NonoperatingIncomeExpense"/> |
| | <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_fb7ac948-30a4-4832-ae76-af72c7246522" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_e156c3f3-501f-480c-8825-7d1413fd1e5d" xlink:type="arc"/> |
| | </link:calculationLink> |
| <link:roleRef roleURI="http://www.twilio.com/role/ConsolidatedStatementsofComprehensiveLoss" xlink:type="simple" xlink:href="twlo-20231231.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_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_3b82839c-e029-4dfd-b3a5-2a2b35117fc0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_e8bc0a5e-d5e0-4269-aefe-e89600aae7ba" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_3b82839c-e029-4dfd-b3a5-2a2b35117fc0" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_e8bc0a5e-d5e0-4269-aefe-e89600aae7ba" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_51a37cd8-6903-4daf-9d8e-956f99766070" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_3b82839c-e029-4dfd-b3a5-2a2b35117fc0" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_51a37cd8-6903-4daf-9d8e-956f99766070" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent_66a32ad4-734a-42e5-b371-1875eb553fae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_3b82839c-e029-4dfd-b3a5-2a2b35117fc0" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent_66a32ad4-734a-42e5-b371-1875eb553fae" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciEquityMethodInvestmentAfterTax_dbf384e4-43fa-41ec-84d4-3eff3eaba096" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OciEquityMethodInvestmentAfterTax"/> |
| | <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_3b82839c-e029-4dfd-b3a5-2a2b35117fc0" xlink:to="loc_us-gaap_OciEquityMethodInvestmentAfterTax_dbf384e4-43fa-41ec-84d4-3eff3eaba096" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_43027fa3-ec78-41f6-a4d9-12f8e8f244b4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_740b4f0a-c6da-47e0-91ac-8d7353500568" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_43027fa3-ec78-41f6-a4d9-12f8e8f244b4" xlink:to="loc_us-gaap_NetIncomeLoss_740b4f0a-c6da-47e0-91ac-8d7353500568" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_f24a96dc-0b39-4c9f-98c3-e88b79f5e189" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_43027fa3-ec78-41f6-a4d9-12f8e8f244b4" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_f24a96dc-0b39-4c9f-98c3-e88b79f5e189" xlink:type="arc"/> |
| | </link:calculationLink> |
| <link:roleRef roleURI="http://www.twilio.com/role/ConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="twlo-20231231.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_NetCashProvidedByUsedInFinancingActivities_4e9f54cd-6a23-456f-af84-94d209a748ea" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceInitialPublicOffering_824bbe8b-9a19-43f8-bde0-08e3abbca523" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4e9f54cd-6a23-456f-af84-94d209a748ea" xlink:to="loc_us-gaap_ProceedsFromIssuanceInitialPublicOffering_824bbe8b-9a19-43f8-bde0-08e3abbca523" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_a6ba61c2-73eb-4551-89fe-95b4a6353a15" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/> |
| | <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4e9f54cd-6a23-456f-af84-94d209a748ea" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_a6ba61c2-73eb-4551-89fe-95b4a6353a15" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockPlans_46b7c556-6af5-4bab-99ad-3f72a63f670e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromStockPlans"/> |
| | <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4e9f54cd-6a23-456f-af84-94d209a748ea" xlink:to="loc_us-gaap_ProceedsFromStockPlans_46b7c556-6af5-4bab-99ad-3f72a63f670e" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_e44dab3b-4242-4bb4-9dfc-7242f9132223" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/> |
| | <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4e9f54cd-6a23-456f-af84-94d209a748ea" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_e44dab3b-4242-4bb4-9dfc-7242f9132223" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfStockIssuanceCosts_20f23bfb-7813-4c02-86c3-08fcde0f0484" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsOfStockIssuanceCosts"/> |
| | <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4e9f54cd-6a23-456f-af84-94d209a748ea" xlink:to="loc_us-gaap_PaymentsOfStockIssuanceCosts_20f23bfb-7813-4c02-86c3-08fcde0f0484" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_7953221b-e72d-4f5c-abbf-96d32f7f4ccc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities"/> |
| | <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4e9f54cd-6a23-456f-af84-94d209a748ea" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_7953221b-e72d-4f5c-abbf-96d32f7f4ccc" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_1fbf3e0f-624e-4846-84a1-322dfe06dfa8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4e9f54cd-6a23-456f-af84-94d209a748ea" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_1fbf3e0f-624e-4846-84a1-322dfe06dfa8" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDerivativeInstrumentFinancingActivities_c6f6dc43-44ad-4f29-b3d5-be796ca3fd67" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromDerivativeInstrumentFinancingActivities"/> |
| | <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4e9f54cd-6a23-456f-af84-94d209a748ea" xlink:to="loc_us-gaap_ProceedsFromDerivativeInstrumentFinancingActivities_c6f6dc43-44ad-4f29-b3d5-be796ca3fd67" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_03f2d495-c743-44a6-acc8-78514bfa61c2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_6a9c39d8-353f-4aec-b8f5-1bfabd9bec4c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue"/> |
| | <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_03f2d495-c743-44a6-acc8-78514bfa61c2" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_6a9c39d8-353f-4aec-b8f5-1bfabd9bec4c" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsNoncurrent_d860fa5a-a0ab-4d64-ace1-40ad980213a5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedCashAndCashEquivalentsNoncurrent"/> |
| | <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_03f2d495-c743-44a6-acc8-78514bfa61c2" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsNoncurrent_d860fa5a-a0ab-4d64-ace1-40ad980213a5" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_c5943bb7-16f4-4ee6-aa9a-073da00f69bb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_03f2d495-c743-44a6-acc8-78514bfa61c2" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_c5943bb7-16f4-4ee6-aa9a-073da00f69bb" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4c6b9579-c23f-4d19-9ab1-8cb6ac31c806" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_8c726f49-3b1a-4d3d-a91d-4eb632dbf689" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities"/> |
| | <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4c6b9579-c23f-4d19-9ab1-8cb6ac31c806" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_8c726f49-3b1a-4d3d-a91d-4eb632dbf689" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDivestitureOfBusinessesNetOfCashDivested_4f2ad62b-0788-4845-8052-e56117720c4d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromDivestitureOfBusinessesNetOfCashDivested"/> |
| | <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4c6b9579-c23f-4d19-9ab1-8cb6ac31c806" xlink:to="loc_us-gaap_ProceedsFromDivestitureOfBusinessesNetOfCashDivested_4f2ad62b-0788-4845-8052-e56117720c4d" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_46db1c16-b8ab-4d5e-bc04-67fe5a9ec422" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/> |
| | <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4c6b9579-c23f-4d19-9ab1-8cb6ac31c806" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_46db1c16-b8ab-4d5e-bc04-67fe5a9ec422" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_f4ef8ac0-1ee8-4cd0-af2c-bfd0c246ff59" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireInvestments"/> |
| | <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4c6b9579-c23f-4d19-9ab1-8cb6ac31c806" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_f4ef8ac0-1ee8-4cd0-af2c-bfd0c246ff59" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToDevelopSoftware_40a558ec-7b53-4243-932a-353d6ca316d0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToDevelopSoftware"/> |
| | <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4c6b9579-c23f-4d19-9ab1-8cb6ac31c806" xlink:to="loc_us-gaap_PaymentsToDevelopSoftware_40a558ec-7b53-4243-932a-353d6ca316d0" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireOtherProductiveAssets_a2de1bab-2da7-4fd9-802a-66b05ab5173e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireOtherProductiveAssets"/> |
| | <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4c6b9579-c23f-4d19-9ab1-8cb6ac31c806" xlink:to="loc_us-gaap_PaymentsToAcquireOtherProductiveAssets_a2de1bab-2da7-4fd9-802a-66b05ab5173e" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostAmortization_38422fc5-ed3e-4162-8eb7-6e1eb36a6243" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CapitalizedContractCostAmortization"/> |
| | <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_CapitalizedContractCostAmortization_38422fc5-ed3e-4162-8eb7-6e1eb36a6243" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_199f09fa-ec99-436d-a779-fb5c5481b887" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/> |
| | <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_199f09fa-ec99-436d-a779-fb5c5481b887" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_bbd665ff-0d27-41a0-a6e1-ccfbd4339503" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProvisionForDoubtfulAccounts"/> |
| | <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_bbd665ff-0d27-41a0-a6e1-ccfbd4339503" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_2808c452-94bf-414c-99fb-d371fe3f8375" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/> |
| | <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_2808c452-94bf-414c-99fb-d371fe3f8375" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_afd799e1-d3ed-482f-8d9c-f58123841ad1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement"/> |
| | <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_afd799e1-d3ed-482f-8d9c-f58123841ad1" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_56138361-e6f5-417f-aa63-cb1d55956c65" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/> |
| | <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_56138361-e6f5-417f-aa63-cb1d55956c65" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf_69252805-b706-4aff-be35-d54beb6aa882" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf"/> |
| | <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf_69252805-b706-4aff-be35-d54beb6aa882" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_6ebf238a-871f-490e-8273-4b7872650596" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense"/> |
| | <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_6ebf238a-871f-490e-8273-4b7872650596" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_twlo_CommonStockDonorAdvisedFundValue_b46b3cbd-a2c7-4c81-8ee9-69790f65161d" xlink:href="twlo-20231231.xsd#twlo_CommonStockDonorAdvisedFundValue"/> |
| | <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_twlo_CommonStockDonorAdvisedFundValue_b46b3cbd-a2c7-4c81-8ee9-69790f65161d" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount_b181f771-97ef-4be6-ad94-1476f014e1ba" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount"/> |
| | <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount_b181f771-97ef-4be6-ad94-1476f014e1ba" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiGainLoss_e1d41b6b-aede-40bf-b279-e4409088c4b4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquitySecuritiesFvNiGainLoss"/> |
| | <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_EquitySecuritiesFvNiGainLoss_e1d41b6b-aede-40bf-b279-e4409088c4b4" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_6e462cc2-9e6e-4b6b-8aed-5fa6f04bd171" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/> |
| | <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_6e462cc2-9e6e-4b6b-8aed-5fa6f04bd171" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_c2605bf4-47cb-4b9a-9adc-75b822f70940" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/> |
| | <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_c2605bf4-47cb-4b9a-9adc-75b822f70940" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_a03020ed-518a-4f3d-8d65-d345a5f4f83e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromEquityMethodInvestments"/> |
| | <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_a03020ed-518a-4f3d-8d65-d345a5f4f83e" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_8b854b62-a439-4e85-ad60-315bbcb8e0da" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DepreciationDepletionAndAmortization"/> |
| | <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_8b854b62-a439-4e85-ad60-315bbcb8e0da" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_23e07304-80c2-4e75-a7b4-16acb9968b87" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/> |
| | <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_23e07304-80c2-4e75-a7b4-16acb9968b87" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_f3625c2f-3e5d-4144-8ebc-f8c64fa4867c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/> |
| | <link:calculationArc order="17" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_f3625c2f-3e5d-4144-8ebc-f8c64fa4867c" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_7d82a419-1308-49b2-a20b-9aa1bf8f6ff6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentAssets"/> |
| | <link:calculationArc order="18" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_7d82a419-1308-49b2-a20b-9aa1bf8f6ff6" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupNotDiscontinuedOperationGainLossOnDisposal_a0e197cd-d87e-4181-af6f-11f54bc819ff" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DisposalGroupNotDiscontinuedOperationGainLossOnDisposal"/> |
| | <link:calculationArc order="19" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_DisposalGroupNotDiscontinuedOperationGainLossOnDisposal_a0e197cd-d87e-4181-af6f-11f54bc819ff" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_d505e527-f24b-4041-a2e6-2205697be6ee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities"/> |
| | <link:calculationArc order="20" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_d505e527-f24b-4041-a2e6-2205697be6ee" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_0f0757c4-1603-4f30-aec5-a906060ec2b0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensation"/> |
| | <link:calculationArc order="21" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_ShareBasedCompensation_0f0757c4-1603-4f30-aec5-a906060ec2b0" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_1fc4a765-e052-40ad-9903-3f8960865200" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOperatingLeaseLiability"/> |
| | <link:calculationArc order="22" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_1fc4a765-e052-40ad-9903-3f8960865200" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_a7807c86-b9eb-445a-b355-bf900f7af95c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProfitLoss"/> |
| | <link:calculationArc order="23" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a69e4cc7-6232-4d35-908f-d108ee168c92" xlink:to="loc_us-gaap_ProfitLoss_a7807c86-b9eb-445a-b355-bf900f7af95c" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9e980cca-e7f1-4ea0-8714-a668bfa704b7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_ee2a71c2-17d1-4245-bb07-ba43dd7b3e00" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/> |
| | <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9e980cca-e7f1-4ea0-8714-a668bfa704b7" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_ee2a71c2-17d1-4245-bb07-ba43dd7b3e00" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9cead34c-35d1-4c3c-bdd8-04c025ea9f47" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/> |
| | <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9e980cca-e7f1-4ea0-8714-a668bfa704b7" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9cead34c-35d1-4c3c-bdd8-04c025ea9f47" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_0d6830f5-4cdb-46db-a337-f33ebdbc9160" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/> |
| | <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9e980cca-e7f1-4ea0-8714-a668bfa704b7" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_0d6830f5-4cdb-46db-a337-f33ebdbc9160" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_6b5ce682-edd5-4cc5-ba9d-ef2a3b82746c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_9e980cca-e7f1-4ea0-8714-a668bfa704b7" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_6b5ce682-edd5-4cc5-ba9d-ef2a3b82746c" xlink:type="arc"/> |
| | </link:calculationLink> |
| <link:roleRef roleURI="http://www.twilio.com/role/FairValueMeasurementsAssetsMeasuredatFairValueonaRecurringBasisDetails" xlink:type="simple" xlink:href="twlo-20231231.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_6818e330-7944-4805-b6e8-1a323dc87d29" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsFairValueDisclosure"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_12b14e75-723d-4702-8189-daaf12196814" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/> |
| | <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_6818e330-7944-4805-b6e8-1a323dc87d29" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_12b14e75-723d-4702-8189-daaf12196814" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentsFairValueDisclosure_783b1f87-aca4-4fd3-b74e-3e120d960b11" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InvestmentsFairValueDisclosure"/> |
| | <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_6818e330-7944-4805-b6e8-1a323dc87d29" xlink:to="loc_us-gaap_InvestmentsFairValueDisclosure_783b1f87-aca4-4fd3-b74e-3e120d960b11" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_558d6ba2-e3a6-494c-83cf-c0b5014151fa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_00e1b96f-4e8f-405b-96a1-834dbcb87c05" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/> |
| | <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_558d6ba2-e3a6-494c-83cf-c0b5014151fa" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_00e1b96f-4e8f-405b-96a1-834dbcb87c05" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_31aafbfb-47e8-42a2-bcf6-8368a45ddb5b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/> |
| | <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_558d6ba2-e3a6-494c-83cf-c0b5014151fa" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_31aafbfb-47e8-42a2-bcf6-8368a45ddb5b" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_05ecc306-b9e5-4192-8ace-95adad6976db" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/> |
| | <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_558d6ba2-e3a6-494c-83cf-c0b5014151fa" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_05ecc306-b9e5-4192-8ace-95adad6976db" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_2a833d70-edd1-4510-8c94-5a7f34171966" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/> |
| | <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_558d6ba2-e3a6-494c-83cf-c0b5014151fa" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_2a833d70-edd1-4510-8c94-5a7f34171966" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_twlo_FinancialAssetsAmortizedCostOrCarryingValue_00810c4f-dab9-4333-b5e3-afb972f84690" xlink:href="twlo-20231231.xsd#twlo_FinancialAssetsAmortizedCostOrCarryingValue"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_a850ea78-c01c-4021-bf4e-4c1a3e179892" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/> |
| | <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_FinancialAssetsAmortizedCostOrCarryingValue_00810c4f-dab9-4333-b5e3-afb972f84690" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_a850ea78-c01c-4021-bf4e-4c1a3e179892" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiCost_b126e113-5f84-48e2-ac22-dd1fffbad1eb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquitySecuritiesFvNiCost"/> |
| | <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_FinancialAssetsAmortizedCostOrCarryingValue_00810c4f-dab9-4333-b5e3-afb972f84690" xlink:to="loc_us-gaap_EquitySecuritiesFvNiCost_b126e113-5f84-48e2-ac22-dd1fffbad1eb" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_23be69e7-83d4-47ec-b1d8-6c6614ab307d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/> |
| | <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_FinancialAssetsAmortizedCostOrCarryingValue_00810c4f-dab9-4333-b5e3-afb972f84690" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_23be69e7-83d4-47ec-b1d8-6c6614ab307d" xlink:type="arc"/> |
| | </link:calculationLink> |
| <link:roleRef roleURI="http://www.twilio.com/role/FairValueMeasurementsContractualMaturitiesDetails" xlink:type="simple" xlink:href="twlo-20231231.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_cea19d89-05f3-42df-97ae-75af8b82be2d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_07f2b1c7-ebb5-4ff3-9396-c9184cd391d1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_cea19d89-05f3-42df-97ae-75af8b82be2d" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_07f2b1c7-ebb5-4ff3-9396-c9184cd391d1" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoAmortizedCostBasis_d0cd2b75-1239-4efc-a603-0647f9ff24b4" xlink:href="twlo-20231231.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_cea19d89-05f3-42df-97ae-75af8b82be2d" xlink:to="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoAmortizedCostBasis_d0cd2b75-1239-4efc-a603-0647f9ff24b4" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_67620cbc-6568-4bb9-bd99-e9f3bf813fc8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_0a7aa265-7f65-470f-b374-a5632501a397" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_67620cbc-6568-4bb9-bd99-e9f3bf813fc8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_0a7aa265-7f65-470f-b374-a5632501a397" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoFairValue_e028f4c4-f75e-4ca0-9c35-6b7c20d54b4c" xlink:href="twlo-20231231.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_67620cbc-6568-4bb9-bd99-e9f3bf813fc8" xlink:to="loc_twlo_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoFairValue_e028f4c4-f75e-4ca0-9c35-6b7c20d54b4c" xlink:type="arc"/> |
| | </link:calculationLink> |
| <link:roleRef roleURI="http://www.twilio.com/role/PropertyandEquipmentScheduleofPropertyandEquipmentDetails" xlink:type="simple" xlink:href="twlo-20231231.xsd#PropertyandEquipmentScheduleofPropertyandEquipmentDetails"/> |
| <link:calculationLink xlink:role="http://www.twilio.com/role/PropertyandEquipmentScheduleofPropertyandEquipmentDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_bec07c6a-1059-4d8c-b59e-bead10fcfbc7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_93bd87ed-3eff-44b4-baf6-f97f2556b4a0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_bec07c6a-1059-4d8c-b59e-bead10fcfbc7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_93bd87ed-3eff-44b4-baf6-f97f2556b4a0" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_eff9e06b-ec42-4e13-8134-5c50740975d6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_bec07c6a-1059-4d8c-b59e-bead10fcfbc7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_eff9e06b-ec42-4e13-8134-5c50740975d6" xlink:type="arc"/> |
| | </link:calculationLink> |
| <link:roleRef roleURI="http://www.twilio.com/role/RightofUseAssetsandLeaseLiabilitiesLeaseMaturitiesDetails" xlink:type="simple" xlink:href="twlo-20231231.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_LesseeOperatingLeaseLiabilityPaymentsDue_32a51c2b-9e1c-4b7f-88ba-a0752ee7e55b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_1b03ae46-f1d3-41fb-b5d5-d113742c55b4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_32a51c2b-9e1c-4b7f-88ba-a0752ee7e55b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_1b03ae46-f1d3-41fb-b5d5-d113742c55b4" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_b2377886-ab40-4833-a55a-a24248ef77ea" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_32a51c2b-9e1c-4b7f-88ba-a0752ee7e55b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_b2377886-ab40-4833-a55a-a24248ef77ea" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_0fd8716b-7308-4db0-9fcd-4c0fd7856802" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_32a51c2b-9e1c-4b7f-88ba-a0752ee7e55b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_0fd8716b-7308-4db0-9fcd-4c0fd7856802" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_95bd4567-4e68-4fa7-b4a9-fdc3f8b47ce2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_32a51c2b-9e1c-4b7f-88ba-a0752ee7e55b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_95bd4567-4e68-4fa7-b4a9-fdc3f8b47ce2" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_d7ddb707-2a63-495e-9947-3c8b80e208db" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_32a51c2b-9e1c-4b7f-88ba-a0752ee7e55b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_d7ddb707-2a63-495e-9947-3c8b80e208db" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_6829a1a1-821e-4805-9beb-913b7447eed8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_32a51c2b-9e1c-4b7f-88ba-a0752ee7e55b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_6829a1a1-821e-4805-9beb-913b7447eed8" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_1eb62588-1e66-4bd3-ada1-aa3b4a0d25e5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseLiability"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_bccc11ac-9470-4aa6-88f7-8ca7b2138da7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_1eb62588-1e66-4bd3-ada1-aa3b4a0d25e5" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_bccc11ac-9470-4aa6-88f7-8ca7b2138da7" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_8b93aa65-240f-42ef-a8cf-0df81ae46ebe" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_1eb62588-1e66-4bd3-ada1-aa3b4a0d25e5" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_8b93aa65-240f-42ef-a8cf-0df81ae46ebe" xlink:type="arc"/> |
| | </link:calculationLink> |
| <link:roleRef roleURI="http://www.twilio.com/role/RightofUseAssetsandLeaseLiabilitiesLeaseMaturitiesDetails_1" xlink:type="simple" xlink:href="twlo-20231231.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_25f7beb7-b669-4f01-8af8-0b9bde2159ec" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_5f08a16f-6dc6-4920-a5a6-49e6b12bdb06" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_25f7beb7-b669-4f01-8af8-0b9bde2159ec" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_5f08a16f-6dc6-4920-a5a6-49e6b12bdb06" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_a32475ab-a0a1-48be-9d3c-657c1c068519" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_25f7beb7-b669-4f01-8af8-0b9bde2159ec" xlink:to="loc_us-gaap_OperatingLeaseLiability_a32475ab-a0a1-48be-9d3c-657c1c068519" xlink:type="arc"/> |
| | </link:calculationLink> |
| <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssetsIntangibleAssetsDetails" xlink:type="simple" xlink:href="twlo-20231231.xsd#GoodwillandIntangibleAssetsIntangibleAssetsDetails"/> |
| <link:calculationLink xlink:role="http://www.twilio.com/role/GoodwillandIntangibleAssetsIntangibleAssetsDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_098b5f08-6993-404e-831f-91714f861d1a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_227fcbe4-f620-457e-9a37-b4b3c02d0443" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_098b5f08-6993-404e-831f-91714f861d1a" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_227fcbe4-f620-457e-9a37-b4b3c02d0443" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_3b21c852-e5d4-4cf8-8aed-ebd9fac1be9d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_098b5f08-6993-404e-831f-91714f861d1a" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_3b21c852-e5d4-4cf8-8aed-ebd9fac1be9d" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_b8e1be87-0e4a-49a5-8079-e0d33acbdb57" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_894d0107-243d-40f1-b038-4abd2700df69" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_b8e1be87-0e4a-49a5-8079-e0d33acbdb57" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_894d0107-243d-40f1-b038-4abd2700df69" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_39bbd1ca-62ce-4444-9305-5578bdd12445" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_b8e1be87-0e4a-49a5-8079-e0d33acbdb57" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_39bbd1ca-62ce-4444-9305-5578bdd12445" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_10dde467-a058-4aa2-8d48-a4e12270fe36" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_a9713279-85e0-4141-a7b0-04c78875b2b4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_10dde467-a058-4aa2-8d48-a4e12270fe36" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_a9713279-85e0-4141-a7b0-04c78875b2b4" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_b5a79425-a0a4-442b-90b5-cb3295b717f0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_10dde467-a058-4aa2-8d48-a4e12270fe36" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_b5a79425-a0a4-442b-90b5-cb3295b717f0" xlink:type="arc"/> |
| | </link:calculationLink> |
| <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssetsIntangibleAssetsDetails_1" xlink:type="simple" xlink:href="twlo-20231231.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_ee8ffcf9-c58f-49dd-b258-b35a401d08c1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_09bce7b9-42c4-43ed-8fe8-4bd89af78ed6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_ee8ffcf9-c58f-49dd-b258-b35a401d08c1" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_09bce7b9-42c4-43ed-8fe8-4bd89af78ed6" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_589ad8c7-80c3-4655-b167-c444123b78fd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_ee8ffcf9-c58f-49dd-b258-b35a401d08c1" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_589ad8c7-80c3-4655-b167-c444123b78fd" xlink:type="arc"/> |
| | </link:calculationLink> |
| <link:roleRef roleURI="http://www.twilio.com/role/GoodwillandIntangibleAssetsTotalEstimatedFutureAmortizationExpenseDetails" xlink:type="simple" xlink:href="twlo-20231231.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_da964808-27a6-4fcb-86de-e6049bdd93ae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_b815e5e4-5178-4986-a5fa-36100b124dd1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/> |
| | <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_da964808-27a6-4fcb-86de-e6049bdd93ae" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_b815e5e4-5178-4986-a5fa-36100b124dd1" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_85dd5665-a327-486f-9296-8d0646453ec6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive"/> |
| | <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_da964808-27a6-4fcb-86de-e6049bdd93ae" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_85dd5665-a327-486f-9296-8d0646453ec6" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_39aa5277-676d-4988-b3f1-dc34754768c9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour"/> |
| | <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_da964808-27a6-4fcb-86de-e6049bdd93ae" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_39aa5277-676d-4988-b3f1-dc34754768c9" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_fccbb385-64fb-484d-a8dd-1bf9f549de31" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/> |
| | <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_da964808-27a6-4fcb-86de-e6049bdd93ae" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_fccbb385-64fb-484d-a8dd-1bf9f549de31" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_89598ca4-7540-4e78-b29a-e2d080774760" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_da964808-27a6-4fcb-86de-e6049bdd93ae" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_89598ca4-7540-4e78-b29a-e2d080774760" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_3be459ed-7f90-4a59-a75b-7ecfe7f6eb49" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/> |
| | <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_da964808-27a6-4fcb-86de-e6049bdd93ae" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_3be459ed-7f90-4a59-a75b-7ecfe7f6eb49" xlink:type="arc"/> |
| | </link:calculationLink> |
| <link:roleRef roleURI="http://www.twilio.com/role/AccruedExpensesandOtherCurrentLiabilitiesDetails" xlink:type="simple" xlink:href="twlo-20231231.xsd#AccruedExpensesandOtherCurrentLiabilitiesDetails"/> |
| <link:calculationLink xlink:role="http://www.twilio.com/role/AccruedExpensesandOtherCurrentLiabilitiesDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_1662e48d-c3f6-4063-8e78-30ea9041efbe" xlink:href="twlo-20231231.xsd#twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_7794d5b6-5a82-471a-a4bd-8eb8bdd0e016" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_1662e48d-c3f6-4063-8e78-30ea9041efbe" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_7794d5b6-5a82-471a-a4bd-8eb8bdd0e016" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_2229b03a-5e1b-4237-89c3-611e118ad384" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAccruedLiabilitiesCurrent"/> |
| | <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_1662e48d-c3f6-4063-8e78-30ea9041efbe" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_2229b03a-5e1b-4237-89c3-611e118ad384" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedBonusesCurrent_2d7a4cb5-1be5-4dc0-8596-ea1fadd12750" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedBonusesCurrent"/> |
| | <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_1662e48d-c3f6-4063-8e78-30ea9041efbe" xlink:to="loc_us-gaap_AccruedBonusesCurrent_2d7a4cb5-1be5-4dc0-8596-ea1fadd12750" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_twlo_AccruedCostOfRevenueCurrent_d62d388c-5f73-47a9-a9fe-a54629724258" xlink:href="twlo-20231231.xsd#twlo_AccruedCostOfRevenueCurrent"/> |
| | <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_1662e48d-c3f6-4063-8e78-30ea9041efbe" xlink:to="loc_twlo_AccruedCostOfRevenueCurrent_d62d388c-5f73-47a9-a9fe-a54629724258" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserveCurrent_cab17752-d11f-4beb-8ba5-ceb0448406f2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringReserveCurrent"/> |
| | <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_1662e48d-c3f6-4063-8e78-30ea9041efbe" xlink:to="loc_us-gaap_RestructuringReserveCurrent_cab17752-d11f-4beb-8ba5-ceb0448406f2" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherEmployeeRelatedLiabilitiesCurrent_ca86834c-e7e5-4217-a9c7-ed8e0d425fec" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherEmployeeRelatedLiabilitiesCurrent"/> |
| | <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_1662e48d-c3f6-4063-8e78-30ea9041efbe" xlink:to="loc_us-gaap_OtherEmployeeRelatedLiabilitiesCurrent_ca86834c-e7e5-4217-a9c7-ed8e0d425fec" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_twlo_EmployeeSabbaticalExpense_2ca66566-21df-43b0-bc7c-8473648523f6" xlink:href="twlo-20231231.xsd#twlo_EmployeeSabbaticalExpense"/> |
| | <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_1662e48d-c3f6-4063-8e78-30ea9041efbe" xlink:to="loc_twlo_EmployeeSabbaticalExpense_2ca66566-21df-43b0-bc7c-8473648523f6" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxesPayableCurrent_90e642a6-f60a-408c-8326-11b43a89cc27" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TaxesPayableCurrent"/> |
| | <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_1662e48d-c3f6-4063-8e78-30ea9041efbe" xlink:to="loc_us-gaap_TaxesPayableCurrent_90e642a6-f60a-408c-8326-11b43a89cc27" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_c5d11141-12ab-4c09-b538-f959a6b59ab2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityCurrent"/> |
| | <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_twlo_AccruedLiabilitiesAndOtherLiabilitiesCurrent_1662e48d-c3f6-4063-8e78-30ea9041efbe" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_c5d11141-12ab-4c09-b538-f959a6b59ab2" xlink:type="arc"/> |
| | </link:calculationLink> |
| <link:roleRef roleURI="http://www.twilio.com/role/LongTermDebtScheduleofLongTermDebtDetails" xlink:type="simple" xlink:href="twlo-20231231.xsd#LongTermDebtScheduleofLongTermDebtDetails"/> |
| <link:calculationLink xlink:role="http://www.twilio.com/role/LongTermDebtScheduleofLongTermDebtDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_5a53f7cc-3c4e-4b34-afd1-d3acb0d7cdcc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebt"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_540bcfb9-2f29-4088-a6c9-d84ed37e9c45" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_5a53f7cc-3c4e-4b34-afd1-d3acb0d7cdcc" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_540bcfb9-2f29-4088-a6c9-d84ed37e9c45" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_f2f50978-c4f1-4035-9a4d-48b5ab07e14a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_5a53f7cc-3c4e-4b34-afd1-d3acb0d7cdcc" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_f2f50978-c4f1-4035-9a4d-48b5ab07e14a" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_e4c06fcc-9d1f-4cd4-9bde-fc1858170b60" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_5a53f7cc-3c4e-4b34-afd1-d3acb0d7cdcc" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_e4c06fcc-9d1f-4cd4-9bde-fc1858170b60" xlink:type="arc"/> |
| | </link:calculationLink> |
| <link:roleRef roleURI="http://www.twilio.com/role/CommitmentandContingenciesFutureMinimumPaymentsDetails" xlink:type="simple" xlink:href="twlo-20231231.xsd#CommitmentandContingenciesFutureMinimumPaymentsDetails"/> |
| <link:calculationLink xlink:role="http://www.twilio.com/role/CommitmentandContingenciesFutureMinimumPaymentsDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount_a0d14940-4aec-4711-92c4-70e490ab1b9e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFirstAnniversary_3b8bd419-f4d3-4434-9ad4-02f176a7ea24" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_a0d14940-4aec-4711-92c4-70e490ab1b9e" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFirstAnniversary_3b8bd419-f4d3-4434-9ad4-02f176a7ea24" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary_5e5a07f7-e545-4336-aa47-4d5eefb681f2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_a0d14940-4aec-4711-92c4-70e490ab1b9e" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary_5e5a07f7-e545-4336-aa47-4d5eefb681f2" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnThirdAnniversary_ab3a49da-f0a6-479c-9d55-79bffbd9ff7b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_a0d14940-4aec-4711-92c4-70e490ab1b9e" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnThirdAnniversary_ab3a49da-f0a6-479c-9d55-79bffbd9ff7b" xlink:type="arc"/> |
| | </link:calculationLink> |
| <link:roleRef roleURI="http://www.twilio.com/role/StockholdersEquityCommonStockSharesReservedDetails" xlink:type="simple" xlink:href="twlo-20231231.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_10e9b8de-c920-4aad-9ad8-daa8b235358f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_5f774eee-7f6a-4f8f-aab0-dfc6591f1547" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_10e9b8de-c920-4aad-9ad8-daa8b235358f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_5f774eee-7f6a-4f8f-aab0-dfc6591f1547" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_36ec4450-b94d-40d4-b910-e040005b4168" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_10e9b8de-c920-4aad-9ad8-daa8b235358f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_36ec4450-b94d-40d4-b910-e040005b4168" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_twlo_CommonStockCapitalSharesReservedForFutureIssuanceDonorAdvisedFund_a7f74d97-2f1b-460e-b150-5af7751aaba0" xlink:href="twlo-20231231.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_10e9b8de-c920-4aad-9ad8-daa8b235358f" xlink:to="loc_twlo_CommonStockCapitalSharesReservedForFutureIssuanceDonorAdvisedFund_a7f74d97-2f1b-460e-b150-5af7751aaba0" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_a15f386a-0e5e-4e69-979e-394034e3f897" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_10e9b8de-c920-4aad-9ad8-daa8b235358f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_a15f386a-0e5e-4e69-979e-394034e3f897" xlink:type="arc"/> |
| | </link:calculationLink> |
| <link:roleRef roleURI="http://www.twilio.com/role/IncomeTaxesDomesticandForeignComponentsofLossBeforeIncomeTaxesDetails" xlink:type="simple" xlink:href="twlo-20231231.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_1ce502e1-90ce-4c58-af2b-412a2fe12b06" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_9e041000-66b7-4934-9317-fac463d5ae60" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_1ce502e1-90ce-4c58-af2b-412a2fe12b06" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_9e041000-66b7-4934-9317-fac463d5ae60" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_341fc05f-0941-4d3f-be56-404a82d7196d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_1ce502e1-90ce-4c58-af2b-412a2fe12b06" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_341fc05f-0941-4d3f-be56-404a82d7196d" xlink:type="arc"/> |
| | </link:calculationLink> |
| <link:roleRef roleURI="http://www.twilio.com/role/IncomeTaxesProvisionforBenefitfromIncomeTaxesDetails" xlink:type="simple" xlink:href="twlo-20231231.xsd#IncomeTaxesProvisionforBenefitfromIncomeTaxesDetails"/> |
| <link:calculationLink xlink:role="http://www.twilio.com/role/IncomeTaxesProvisionforBenefitfromIncomeTaxesDetails" xlink:type="extended"> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_0b72db42-4919-4039-aa10-0bf9d92b192f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExpenseBenefit"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_bc7e20ef-ec36-4546-9b57-448afc7c731e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_0b72db42-4919-4039-aa10-0bf9d92b192f" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_bc7e20ef-ec36-4546-9b57-448afc7c731e" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_53286ee0-999d-4c41-a28f-12f0c63691d9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_0b72db42-4919-4039-aa10-0bf9d92b192f" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_53286ee0-999d-4c41-a28f-12f0c63691d9" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_1b1f64b8-b1db-484f-ba55-432ed3387d6d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_68b7f860-55b9-4a5a-86e5-fa74ed88c45a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_1b1f64b8-b1db-484f-ba55-432ed3387d6d" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_68b7f860-55b9-4a5a-86e5-fa74ed88c45a" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_df6126e7-99aa-4602-9d49-eb3561ad51b7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_1b1f64b8-b1db-484f-ba55-432ed3387d6d" xlink:to="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_df6126e7-99aa-4602-9d49-eb3561ad51b7" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_2e411e82-6775-460c-a50a-56e750dc89d9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_1b1f64b8-b1db-484f-ba55-432ed3387d6d" xlink:to="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_2e411e82-6775-460c-a50a-56e750dc89d9" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_743d2121-f491-419e-a87b-7215b198bfd9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_77634260-331b-401c-ba54-a3b8668c48f7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_743d2121-f491-419e-a87b-7215b198bfd9" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_77634260-331b-401c-ba54-a3b8668c48f7" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentForeignTaxExpenseBenefit_88ddcf39-b725-4281-a43d-f81d82fcf12c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_743d2121-f491-419e-a87b-7215b198bfd9" xlink:to="loc_us-gaap_CurrentForeignTaxExpenseBenefit_88ddcf39-b725-4281-a43d-f81d82fcf12c" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_f656b1f1-cc9f-485b-a81c-86ae90508064" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_743d2121-f491-419e-a87b-7215b198bfd9" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_f656b1f1-cc9f-485b-a81c-86ae90508064" xlink:type="arc"/> |
| | </link:calculationLink> |
| <link:roleRef roleURI="http://www.twilio.com/role/IncomeTaxesReconciliationoftheStatutoryFederalTaxRateandtheEffectiveTaxRateDetails" xlink:type="simple" xlink:href="twlo-20231231.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_98a6ba59-d06c-45e4-9346-bbe7553ce5c6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_3e1e355e-dd77-4af2-b3ed-223663768fa5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_98a6ba59-d06c-45e4-9346-bbe7553ce5c6" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_3e1e355e-dd77-4af2-b3ed-223663768fa5" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_df74bcef-96ab-4108-a26d-6ce5fa00fe3e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_98a6ba59-d06c-45e4-9346-bbe7553ce5c6" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_df74bcef-96ab-4108-a26d-6ce5fa00fe3e" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_80009924-a75f-4ed2-b0d3-5e5d870c3ab0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_98a6ba59-d06c-45e4-9346-bbe7553ce5c6" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_80009924-a75f-4ed2-b0d3-5e5d870c3ab0" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits_fa2f2aa3-15e5-400e-b0f7-7d8b16f72849" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_98a6ba59-d06c-45e4-9346-bbe7553ce5c6" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits_fa2f2aa3-15e5-400e-b0f7-7d8b16f72849" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_3c07e8f1-7d5e-4e21-b28f-9d08943161b6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_98a6ba59-d06c-45e4-9346-bbe7553ce5c6" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_3c07e8f1-7d5e-4e21-b28f-9d08943161b6" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_c04601f8-bfa5-47a2-995a-47c2162ace44" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance"/> |
| | <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_98a6ba59-d06c-45e4-9346-bbe7553ce5c6" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_c04601f8-bfa5-47a2-995a-47c2162ace44" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_aaf93610-0e73-461f-b993-e4374c63a555" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments"/> |
| | <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_98a6ba59-d06c-45e4-9346-bbe7553ce5c6" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_aaf93610-0e73-461f-b993-e4374c63a555" xlink:type="arc"/> |
| | </link:calculationLink> |
| <link:roleRef roleURI="http://www.twilio.com/role/IncomeTaxesSignificantComponentsofDeferredTaxAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="twlo-20231231.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_1ce512ed-9098-4f1e-8d46-94192919e7da" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsGross"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsUnrealizedLossesOnAvailableforSaleSecuritiesGross_c46672e5-0c5c-4509-b5ee-cd29b7221655" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsUnrealizedLossesOnAvailableforSaleSecuritiesGross"/> |
| | <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_1ce512ed-9098-4f1e-8d46-94192919e7da" xlink:to="loc_us-gaap_DeferredTaxAssetsUnrealizedLossesOnAvailableforSaleSecuritiesGross_c46672e5-0c5c-4509-b5ee-cd29b7221655" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_5b6d4c99-da01-45a2-b9a2-b22cbf596a78" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsOther"/> |
| | <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_1ce512ed-9098-4f1e-8d46-94192919e7da" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_5b6d4c99-da01-45a2-b9a2-b22cbf596a78" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_twlo_DeferredTaxAssetLeaseLiability_eae0ebc1-ca26-4927-80e3-770ef5d3677e" xlink:href="twlo-20231231.xsd#twlo_DeferredTaxAssetLeaseLiability"/> |
| | <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_1ce512ed-9098-4f1e-8d46-94192919e7da" xlink:to="loc_twlo_DeferredTaxAssetLeaseLiability_eae0ebc1-ca26-4927-80e3-770ef5d3677e" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsInvestments_7a2d1d61-70f2-4bc8-8d3e-53c38b472c84" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsInvestments"/> |
| | <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_1ce512ed-9098-4f1e-8d46-94192919e7da" xlink:to="loc_us-gaap_DeferredTaxAssetsInvestments_7a2d1d61-70f2-4bc8-8d3e-53c38b472c84" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_e7b08134-9af8-4307-9ff9-886c4e22ef79" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards"/> |
| | <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_1ce512ed-9098-4f1e-8d46-94192919e7da" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_e7b08134-9af8-4307-9ff9-886c4e22ef79" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGoodwillAndIntangibleAssets_4b741ab3-633c-4b1f-bf93-849961544342" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsGoodwillAndIntangibleAssets"/> |
| | <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_1ce512ed-9098-4f1e-8d46-94192919e7da" xlink:to="loc_us-gaap_DeferredTaxAssetsGoodwillAndIntangibleAssets_4b741ab3-633c-4b1f-bf93-849961544342" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch_5a550109-e094-4a6c-8936-072639685960" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch"/> |
| | <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_1ce512ed-9098-4f1e-8d46-94192919e7da" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch_5a550109-e094-4a6c-8936-072639685960" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccruals_b0e1c4f1-c57f-45ba-a56f-c33b073f6c7f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccruals"/> |
| | <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_1ce512ed-9098-4f1e-8d46-94192919e7da" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccruals_b0e1c4f1-c57f-45ba-a56f-c33b073f6c7f" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_d5131a72-6906-476a-be7e-4fd686c13b10" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost"/> |
| | <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_1ce512ed-9098-4f1e-8d46-94192919e7da" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_d5131a72-6906-476a-be7e-4fd686c13b10" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsInProcessResearchAndDevelopment_98d79922-97ae-46b6-893e-6ec8402fd772" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsInProcessResearchAndDevelopment"/> |
| | <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_1ce512ed-9098-4f1e-8d46-94192919e7da" xlink:to="loc_us-gaap_DeferredTaxAssetsInProcessResearchAndDevelopment_98d79922-97ae-46b6-893e-6ec8402fd772" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilities_ab4ab97b-43d7-4f56-965a-b144b3669fa7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxLiabilities"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets_681c91f0-7766-4e9e-89ad-767d097c8090" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets"/> |
| | <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_ab4ab97b-43d7-4f56-965a-b144b3669fa7" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets_681c91f0-7766-4e9e-89ad-767d097c8090" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_twlo_DeferredTaxLiabilitiesDeferredCommissions_70bd31bb-ad18-40fd-904f-a705a36adb46" xlink:href="twlo-20231231.xsd#twlo_DeferredTaxLiabilitiesDeferredCommissions"/> |
| | <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_ab4ab97b-43d7-4f56-965a-b144b3669fa7" xlink:to="loc_twlo_DeferredTaxLiabilitiesDeferredCommissions_70bd31bb-ad18-40fd-904f-a705a36adb46" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_b8ad5412-fb50-4522-a6ef-4e3e2e4281d0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsNet"/> |
| | <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_ab4ab97b-43d7-4f56-965a-b144b3669fa7" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_b8ad5412-fb50-4522-a6ef-4e3e2e4281d0" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPrepaidExpenses_a13a59da-8093-4a96-9d06-555abc4d8ab1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxLiabilitiesPrepaidExpenses"/> |
| | <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_ab4ab97b-43d7-4f56-965a-b144b3669fa7" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPrepaidExpenses_a13a59da-8093-4a96-9d06-555abc4d8ab1" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedSoftware_48328b23-0af2-4921-a0b8-b61124f23dcd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedSoftware"/> |
| | <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_ab4ab97b-43d7-4f56-965a-b144b3669fa7" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedSoftware_48328b23-0af2-4921-a0b8-b61124f23dcd" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesLeasingArrangements_8e90cabf-8697-4d2b-a356-c864e844e1b6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxLiabilitiesLeasingArrangements"/> |
| | <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_ab4ab97b-43d7-4f56-965a-b144b3669fa7" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesLeasingArrangements_8e90cabf-8697-4d2b-a356-c864e844e1b6" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_babd51f3-ed17-42ef-98d8-6e7e67d62600" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPrepaidExpenses_a7b09a78-ca69-4aeb-8b58-750ea0fb70b8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxLiabilitiesPrepaidExpenses"/> |
| | <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_babd51f3-ed17-42ef-98d8-6e7e67d62600" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPrepaidExpenses_a7b09a78-ca69-4aeb-8b58-750ea0fb70b8" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets_e442a37a-d283-4442-ad6f-5dbce22af924" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets"/> |
| | <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_babd51f3-ed17-42ef-98d8-6e7e67d62600" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets_e442a37a-d283-4442-ad6f-5dbce22af924" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_twlo_DeferredTaxLiabilitiesDeferredCommissions_5618a2ce-b364-4c4c-905d-83884411d62d" xlink:href="twlo-20231231.xsd#twlo_DeferredTaxLiabilitiesDeferredCommissions"/> |
| | <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_babd51f3-ed17-42ef-98d8-6e7e67d62600" xlink:to="loc_twlo_DeferredTaxLiabilitiesDeferredCommissions_5618a2ce-b364-4c4c-905d-83884411d62d" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedSoftware_faabceb6-0624-41e2-9742-864b0212f9fe" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedSoftware"/> |
| | <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_babd51f3-ed17-42ef-98d8-6e7e67d62600" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedSoftware_faabceb6-0624-41e2-9742-864b0212f9fe" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesLeasingArrangements_9cef6af0-4600-4dbe-a4a7-f40c259ff97b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxLiabilitiesLeasingArrangements"/> |
| | <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_babd51f3-ed17-42ef-98d8-6e7e67d62600" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesLeasingArrangements_9cef6af0-4600-4dbe-a4a7-f40c259ff97b" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_05d43fb6-9306-474e-a5df-28d0acc88de8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsNet"/> |
| | <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_babd51f3-ed17-42ef-98d8-6e7e67d62600" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_05d43fb6-9306-474e-a5df-28d0acc88de8" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_58503062-95f3-4d97-b09d-dd4b3422f8b0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsNet"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_61bbc446-ca47-4a5d-9da4-c83dcbc69866" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsValuationAllowance"/> |
| | <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_58503062-95f3-4d97-b09d-dd4b3422f8b0" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_61bbc446-ca47-4a5d-9da4-c83dcbc69866" xlink:type="arc"/> |
| | <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_e36802d0-0326-4ec5-a95c-86a5ebc121ce" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsGross"/> |
| | <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_58503062-95f3-4d97-b09d-dd4b3422f8b0" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_e36802d0-0326-4ec5-a95c-86a5ebc121ce" xlink:type="arc"/> |
| | </link:calculationLink> |
| </link:linkbase> |