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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019eb8e2-2f09-7304-abb3-e72bf552f982,g:507b2863-9e41-465f-832b-a991174a441c-->
<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:arcroleRef arcroleURI="https://xbrl.org/2023/arcrole/summation-item" xlink:type="simple" xlink:href="https://www.xbrl.org/2023/calculation-1.1.xsd#summation-item"/>
  <link:roleRef roleURI="http://www.roku.com/role/ConsolidatedBalanceSheets" xlink:type="simple" xlink:href="roku-20260618.xsd#ConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019eb8e2-30c2-7885-b205-aae892b0a3dc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_019eb8e2-30c2-71ff-8865-78f89a7a36fe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019eb8e2-30c2-7885-b205-aae892b0a3dc" xlink:to="loc_us-gaap_CommonStockValue_019eb8e2-30c2-71ff-8865-78f89a7a36fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_019eb8e2-30c2-7695-8a58-c82b96f2e821" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019eb8e2-30c2-7885-b205-aae892b0a3dc" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_019eb8e2-30c2-7695-8a58-c82b96f2e821" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019eb8e2-30c2-7447-8285-389f63a3c985" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019eb8e2-30c2-7885-b205-aae892b0a3dc" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019eb8e2-30c2-7447-8285-389f63a3c985" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019eb8e2-30c2-7d07-9ea9-78791f6ea0d7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019eb8e2-30c2-7885-b205-aae892b0a3dc" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019eb8e2-30c2-7d07-9ea9-78791f6ea0d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_019eb8e2-30c2-7548-8ef7-8c9dc567e0b7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019eb8e2-30c2-70e2-a8d1-e8be5126dab4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019eb8e2-30c2-7548-8ef7-8c9dc567e0b7" xlink:to="loc_us-gaap_Liabilities_019eb8e2-30c2-70e2-a8d1-e8be5126dab4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_019eb8e2-30c2-7328-af4b-aa17452f48c0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019eb8e2-30c2-7548-8ef7-8c9dc567e0b7" xlink:to="loc_us-gaap_CommitmentsAndContingencies_019eb8e2-30c2-7328-af4b-aa17452f48c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019eb8e2-30c2-7deb-a9b5-69b6afc6ddf5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019eb8e2-30c2-7548-8ef7-8c9dc567e0b7" xlink:to="loc_us-gaap_StockholdersEquity_019eb8e2-30c2-7deb-a9b5-69b6afc6ddf5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_019eb8e2-30c2-719b-b773-4987e775244b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_019eb8e2-30c2-7f6a-8532-d4cabe522e73" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019eb8e2-30c2-719b-b773-4987e775244b" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_019eb8e2-30c2-7f6a-8532-d4cabe522e73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_019eb8e2-30c2-7e15-95d9-bb61f6302472" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerLiabilityCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019eb8e2-30c2-719b-b773-4987e775244b" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_019eb8e2-30c2-7e15-95d9-bb61f6302472" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_019eb8e2-30c2-7b2a-b162-08a78f4807c9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019eb8e2-30c2-719b-b773-4987e775244b" xlink:to="loc_us-gaap_AccountsPayableCurrent_019eb8e2-30c2-7b2a-b162-08a78f4807c9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019eb8e2-30c2-789e-855f-b6ed6fb51ba7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_019eb8e2-30c2-7cd2-9694-c5906f013b44" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019eb8e2-30c2-789e-855f-b6ed6fb51ba7" xlink:to="loc_us-gaap_LiabilitiesCurrent_019eb8e2-30c2-7cd2-9694-c5906f013b44" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_019eb8e2-30c2-7f47-949b-d24f5e8a2a46" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019eb8e2-30c2-789e-855f-b6ed6fb51ba7" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_019eb8e2-30c2-7f47-949b-d24f5e8a2a46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_019eb8e2-30c2-79ad-8031-6f18af78a238" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019eb8e2-30c2-789e-855f-b6ed6fb51ba7" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_019eb8e2-30c2-79ad-8031-6f18af78a238" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_019eb8e2-30c2-7c68-882b-6ff0c88c205e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerLiabilityNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019eb8e2-30c2-789e-855f-b6ed6fb51ba7" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_019eb8e2-30c2-7c68-882b-6ff0c88c205e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_019eb8e2-30c2-7b0d-8f1a-80009719dc2e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019eb8e2-30c2-7dad-884f-7171716396fd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019eb8e2-30c2-7b0d-8f1a-80009719dc2e" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019eb8e2-30c2-7dad-884f-7171716396fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermInvestments_019eb8e2-30c2-791e-9b94-91ab69b6f494" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermInvestments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019eb8e2-30c2-7b0d-8f1a-80009719dc2e" xlink:to="loc_us-gaap_ShortTermInvestments_019eb8e2-30c2-791e-9b94-91ab69b6f494" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_019eb8e2-30c2-7aed-af7c-f3147b1387a2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019eb8e2-30c2-7b0d-8f1a-80009719dc2e" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_019eb8e2-30c2-7aed-af7c-f3147b1387a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_019eb8e2-30c2-7ddb-a3d3-e255766c979a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019eb8e2-30c2-7b0d-8f1a-80009719dc2e" xlink:to="loc_us-gaap_InventoryNet_019eb8e2-30c2-7ddb-a3d3-e255766c979a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_019eb8e2-30c2-780e-8864-09c4fad0deb7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019eb8e2-30c2-7b0d-8f1a-80009719dc2e" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_019eb8e2-30c2-780e-8864-09c4fad0deb7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019eb8e2-30c2-7631-9c6d-e1b693f55e54" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_019eb8e2-30c2-7a46-a4de-e81f75547612" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019eb8e2-30c2-7631-9c6d-e1b693f55e54" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_019eb8e2-30c2-7a46-a4de-e81f75547612" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_019eb8e2-30c2-7b0d-a455-70149d71e74a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019eb8e2-30c2-7631-9c6d-e1b693f55e54" xlink:to="loc_us-gaap_AssetsCurrent_019eb8e2-30c2-7b0d-a455-70149d71e74a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_019eb8e2-30c2-723b-903c-9e20f1a4c401" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019eb8e2-30c2-7631-9c6d-e1b693f55e54" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_019eb8e2-30c2-723b-903c-9e20f1a4c401" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_019eb8e2-30c2-74d5-bf0a-ec8d57907681" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019eb8e2-30c2-7631-9c6d-e1b693f55e54" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_019eb8e2-30c2-74d5-bf0a-ec8d57907681" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_019eb8e2-30c2-7baf-8e1a-7d070c1b719d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019eb8e2-30c2-7631-9c6d-e1b693f55e54" xlink:to="loc_us-gaap_Goodwill_019eb8e2-30c2-7baf-8e1a-7d070c1b719d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_ContentAssetsNetNoncurrent_019eb8e2-30c2-7e1b-80dc-1fa63c85275b" xlink:href="roku-20260618.xsd#roku_ContentAssetsNetNoncurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019eb8e2-30c2-7631-9c6d-e1b693f55e54" xlink:to="loc_roku_ContentAssetsNetNoncurrent_019eb8e2-30c2-7e1b-80dc-1fa63c85275b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_019eb8e2-30c2-7ee7-ac31-1b2ba9aa8ec3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019eb8e2-30c2-7631-9c6d-e1b693f55e54" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_019eb8e2-30c2-7ee7-ac31-1b2ba9aa8ec3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/ConsolidatedStatementsofOperations" xlink:type="simple" xlink:href="roku-20260618.xsd#ConsolidatedStatementsofOperations"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/ConsolidatedStatementsofOperations" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_019eb8e2-30c2-78d7-a8d2-1ffc35c2b8d9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_019eb8e2-30c2-7fbb-81a5-f2ab9d6809ab" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_019eb8e2-30c2-78d7-a8d2-1ffc35c2b8d9" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_019eb8e2-30c2-7fbb-81a5-f2ab9d6809ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_019eb8e2-30c2-769b-bb60-e45fa467c975" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SellingAndMarketingExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_019eb8e2-30c2-78d7-a8d2-1ffc35c2b8d9" xlink:to="loc_us-gaap_SellingAndMarketingExpense_019eb8e2-30c2-769b-bb60-e45fa467c975" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_019eb8e2-30c2-785a-bed4-56934cf4f215" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_019eb8e2-30c2-78d7-a8d2-1ffc35c2b8d9" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_019eb8e2-30c2-785a-bed4-56934cf4f215" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_019eb8e2-30c2-754b-a0a0-1ed22421d916" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseNonoperating_019eb8e2-30c2-7e4a-ad00-8b351d4c6bbd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseNonoperating"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_019eb8e2-30c2-754b-a0a0-1ed22421d916" xlink:to="loc_us-gaap_InterestExpenseNonoperating_019eb8e2-30c2-7e4a-ad00-8b351d4c6bbd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_019eb8e2-30c2-7cf7-827b-e173f9069466" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NonoperatingIncomeExpense_019eb8e2-30c2-754b-a0a0-1ed22421d916" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_019eb8e2-30c2-7cf7-827b-e173f9069466" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_019eb8e2-30c2-78c8-9bd1-644dcb1d2af0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019eb8e2-30c2-7d62-b3ae-86a246cf7a83" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_019eb8e2-30c2-78c8-9bd1-644dcb1d2af0" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019eb8e2-30c2-7d62-b3ae-86a246cf7a83" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_019eb8e2-30c2-7b9c-877c-d47b4f0cdd79" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_019eb8e2-30c2-78c8-9bd1-644dcb1d2af0" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_019eb8e2-30c2-7b9c-877c-d47b4f0cdd79" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_019eb8e2-30c2-7847-89ec-3e5c842aa7c1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_019eb8e2-30c2-7df7-983a-e9b0677b6721" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GrossProfit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_019eb8e2-30c2-7847-89ec-3e5c842aa7c1" xlink:to="loc_us-gaap_GrossProfit_019eb8e2-30c2-7df7-983a-e9b0677b6721" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_019eb8e2-30c2-7de7-b410-6633075d4730" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingExpenses"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_019eb8e2-30c2-7847-89ec-3e5c842aa7c1" xlink:to="loc_us-gaap_OperatingExpenses_019eb8e2-30c2-7de7-b410-6633075d4730" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019eb8e2-30c2-7817-8fcc-b8dc3ecc52a1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_019eb8e2-30c2-7d8f-9656-985cb1742c28" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019eb8e2-30c2-7817-8fcc-b8dc3ecc52a1" xlink:to="loc_us-gaap_OperatingIncomeLoss_019eb8e2-30c2-7d8f-9656-985cb1742c28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_019eb8e2-30c2-714e-af70-1142428261fe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019eb8e2-30c2-7817-8fcc-b8dc3ecc52a1" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_019eb8e2-30c2-714e-af70-1142428261fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019eb8e2-30c2-7ad0-828d-6102b395fe3e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019eb8e2-30c2-794d-b4e6-f7703e7d2fed" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019eb8e2-30c2-7ad0-828d-6102b395fe3e" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019eb8e2-30c2-794d-b4e6-f7703e7d2fed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019eb8e2-30c2-762b-8864-17f60a5c9fb5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019eb8e2-30c2-7ad0-828d-6102b395fe3e" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_019eb8e2-30c2-762b-8864-17f60a5c9fb5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" xlink:type="simple" xlink:href="roku-20260618.xsd#CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_019eb8e2-30c2-7405-a1c2-8f7b4add0ba6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019eb8e2-30c2-7085-adb4-41659f389640" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019eb8e2-30c2-7405-a1c2-8f7b4add0ba6" xlink:to="loc_us-gaap_NetIncomeLoss_019eb8e2-30c2-7085-adb4-41659f389640" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_019eb8e2-30c2-73ce-85b0-324c2bb2ba88" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019eb8e2-30c2-7405-a1c2-8f7b4add0ba6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_019eb8e2-30c2-73ce-85b0-324c2bb2ba88" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/ConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="roku-20260618.xsd#ConsolidatedStatementsofCashFlows"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/ConsolidatedStatementsofCashFlows" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_019eb8e2-30c2-70d3-b50c-45cc45ce7b24" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:to="loc_us-gaap_ShareBasedCompensation_019eb8e2-30c2-70d3-b50c-45cc45ce7b24" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019eb8e2-30c2-7831-a29e-218b9962163d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:to="loc_us-gaap_NetIncomeLoss_019eb8e2-30c2-7831-a29e-218b9962163d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_019eb8e2-30c2-77af-9908-dec6f4787270" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProvisionForDoubtfulAccounts"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_019eb8e2-30c2-77af-9908-dec6f4787270" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_019eb8e2-30c2-7200-83e7-456a72db44b5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInOperatingLeaseLiability"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_019eb8e2-30c2-7200-83e7-456a72db44b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_019eb8e2-30c2-7577-81d1-0e68aef6b8a7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_019eb8e2-30c2-7577-81d1-0e68aef6b8a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_019eb8e2-30c2-7f40-8293-f1b14941d012" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_019eb8e2-30c2-7f40-8293-f1b14941d012" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_019eb8e2-30c2-7908-98de-25c8fd8e4e36" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_019eb8e2-30c2-7908-98de-25c8fd8e4e36" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_019eb8e2-30c2-7648-9c98-6785f75becbe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:to="loc_us-gaap_AssetImpairmentCharges_019eb8e2-30c2-7648-9c98-6785f75becbe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_019eb8e2-30c2-70aa-b142-b4e3e115b7df" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherOperatingActivitiesCashFlowStatement"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:to="loc_us-gaap_OtherOperatingActivitiesCashFlowStatement_019eb8e2-30c2-70aa-b142-b4e3e115b7df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_019eb8e2-30c2-734d-a7dd-95463db2d856" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_019eb8e2-30c2-734d-a7dd-95463db2d856" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_AmortizationExpenseAndWriteOffOfContentAssets_019eb8e2-30c2-73ec-b834-72a62f92544e" xlink:href="roku-20260618.xsd#roku_AmortizationExpenseAndWriteOffOfContentAssets"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:to="loc_roku_AmortizationExpenseAndWriteOffOfContentAssets_019eb8e2-30c2-73ec-b834-72a62f92544e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_019eb8e2-30c2-7f65-939f-ad0d3f6b9716" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_019eb8e2-30c2-7f65-939f-ad0d3f6b9716" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_019eb8e2-30c2-70d8-bdcb-5a2c313e314f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_019eb8e2-30c2-70d8-bdcb-5a2c313e314f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_019eb8e2-30c2-7e22-88f9-3ed4517a3502" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_019eb8e2-30c2-7e22-88f9-3ed4517a3502" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_019eb8e2-30c2-7c3a-a0d5-f5d55ace0b1a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentAssets"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_019eb8e2-30c2-7c3a-a0d5-f5d55ace0b1a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_019eb8e2-30c2-7cb1-bb6b-734ab0b6e1de" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepreciationAndAmortization"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:to="loc_us-gaap_DepreciationAndAmortization_019eb8e2-30c2-7cb1-bb6b-734ab0b6e1de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_019eb8e2-30c2-7520-b3b8-86495630c7ca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities"/>
    <link:calculationArc order="17" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_019eb8e2-30c2-7520-b3b8-86495630c7ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_IncreaseDecreaseInContentAssetsAndLiabilitiesNet_019eb8e2-30c2-76c9-9841-faab8d1a7b25" xlink:href="roku-20260618.xsd#roku_IncreaseDecreaseInContentAssetsAndLiabilitiesNet"/>
    <link:calculationArc order="18" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:to="loc_roku_IncreaseDecreaseInContentAssetsAndLiabilitiesNet_019eb8e2-30c2-76c9-9841-faab8d1a7b25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_019eb8e2-30c2-75d1-a1fd-79466af4807e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ForeignCurrencyTransactionGainLossBeforeTax"/>
    <link:calculationArc order="19" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_019eb8e2-30c2-75d1-a1fd-79466af4807e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnInvestments_019eb8e2-30c2-7c29-9d88-a416ab0367d0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrealizedGainLossOnInvestments"/>
    <link:calculationArc order="20" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:to="loc_us-gaap_UnrealizedGainLossOnInvestments_019eb8e2-30c2-7c29-9d88-a416ab0367d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1_019eb8e2-30c2-7688-bccd-d74c3ebc0f02" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1"/>
    <link:calculationArc order="21" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-79d2-b568-2ede5ea4bd69" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsChangeInAmountOfContingentConsiderationLiability1_019eb8e2-30c2-7688-bccd-d74c3ebc0f02" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxesPaidNet_019eb8e2-30c2-7232-8de3-1b3ca21bd551" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxesPaidNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidFederalAfterRefundReceived_019eb8e2-30c2-757b-b93d-6bef1da6c88c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxPaidFederalAfterRefundReceived"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxesPaidNet_019eb8e2-30c2-7232-8de3-1b3ca21bd551" xlink:to="loc_us-gaap_IncomeTaxPaidFederalAfterRefundReceived_019eb8e2-30c2-757b-b93d-6bef1da6c88c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived_019eb8e2-30c2-7cec-ab5b-f02a94aa7a5a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxesPaidNet_019eb8e2-30c2-7232-8de3-1b3ca21bd551" xlink:to="loc_us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived_019eb8e2-30c2-7cec-ab5b-f02a94aa7a5a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidForeignAfterRefundReceived_019eb8e2-30c2-784a-960d-9d137c83ce2a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxPaidForeignAfterRefundReceived"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxesPaidNet_019eb8e2-30c2-7232-8de3-1b3ca21bd551" xlink:to="loc_us-gaap_IncomeTaxPaidForeignAfterRefundReceived_019eb8e2-30c2-784a-960d-9d137c83ce2a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_019eb8e2-30c2-7d82-bf84-a4d89efbe426" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-7359-ad8e-0e721c45452c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_019eb8e2-30c2-7d82-bf84-a4d89efbe426" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019eb8e2-30c2-7359-ad8e-0e721c45452c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eb8e2-30c2-755f-962c-5933d6ea310b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_019eb8e2-30c2-7d82-bf84-a4d89efbe426" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eb8e2-30c2-755f-962c-5933d6ea310b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019eb8e2-30c2-7f8f-89e6-6de94f62c2df" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_019eb8e2-30c2-7d82-bf84-a4d89efbe426" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019eb8e2-30c2-7f8f-89e6-6de94f62c2df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eb8e2-30c2-7308-8ec7-d702d3cbe690" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_019eb8e2-30c2-7449-837f-047da09078f3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eb8e2-30c2-7308-8ec7-d702d3cbe690" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_019eb8e2-30c2-7449-837f-047da09078f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_019eb8e2-30c2-7349-b2d1-bc5855cb8d99" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eb8e2-30c2-7308-8ec7-d702d3cbe690" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_019eb8e2-30c2-7349-b2d1-bc5855cb8d99" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_019eb8e2-30c2-766e-9e33-4331ae368a82" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireInvestments"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eb8e2-30c2-7308-8ec7-d702d3cbe690" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_019eb8e2-30c2-766e-9e33-4331ae368a82" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireShortTermInvestments_019eb8e2-30c2-777c-a156-54fa02dc9d44" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireShortTermInvestments"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eb8e2-30c2-7308-8ec7-d702d3cbe690" xlink:to="loc_us-gaap_PaymentsToAcquireShortTermInvestments_019eb8e2-30c2-777c-a156-54fa02dc9d44" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_RepaymentOfConvertibleNoteInvestingActivities_019eb8e2-30c2-7981-9819-f4ff0df90377" xlink:href="roku-20260618.xsd#roku_RepaymentOfConvertibleNoteInvestingActivities"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019eb8e2-30c2-7308-8ec7-d702d3cbe690" xlink:to="loc_roku_RepaymentOfConvertibleNoteInvestingActivities_019eb8e2-30c2-7981-9819-f4ff0df90377" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019eb8e2-30c2-70ba-aa87-4b0806673f7f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions_019eb8e2-30c2-7b94-bb1b-e3aaa7ce222f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019eb8e2-30c2-70ba-aa87-4b0806673f7f" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions_019eb8e2-30c2-7b94-bb1b-e3aaa7ce222f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_019eb8e2-30c2-7c70-803a-01d7ef98b0b8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019eb8e2-30c2-70ba-aa87-4b0806673f7f" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_019eb8e2-30c2-7c70-803a-01d7ef98b0b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfDebt_019eb8e2-30c2-7c68-9cee-7aa15924b6fb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RepaymentsOfDebt"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019eb8e2-30c2-70ba-aa87-4b0806673f7f" xlink:to="loc_us-gaap_RepaymentsOfDebt_019eb8e2-30c2-7c68-9cee-7aa15924b6fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_019eb8e2-30c2-7d03-b8e8-718865970115" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019eb8e2-30c2-70ba-aa87-4b0806673f7f" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_019eb8e2-30c2-7d03-b8e8-718865970115" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019eb8e2-30c2-7061-a9c9-9c46082c93e0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019eb8e2-30c2-70ba-aa87-4b0806673f7f" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019eb8e2-30c2-7061-a9c9-9c46082c93e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019eb8e2-30c2-7d57-ba7d-887efe644bb7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019eb8e2-30c2-7c77-833b-da91910714b4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019eb8e2-30c2-7d57-ba7d-887efe644bb7" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019eb8e2-30c2-7c77-833b-da91910714b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashCurrent_019eb8e2-30c2-7de5-8ec3-07eaeab90e64" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCashCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019eb8e2-30c2-7d57-ba7d-887efe644bb7" xlink:to="loc_us-gaap_RestrictedCashCurrent_019eb8e2-30c2-7de5-8ec3-07eaeab90e64" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/BusinessCombinationScheduleofPreliminaryAllocationofPurchaseConsiderationtoTangibleandIntangibleAssetsAcquiredandLiabilitiesAssumedDetails" xlink:type="simple" xlink:href="roku-20260618.xsd#BusinessCombinationScheduleofPreliminaryAllocationofPurchaseConsiderationtoTangibleandIntangibleAssetsAcquiredandLiabilitiesAssumedDetails"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/BusinessCombinationScheduleofPreliminaryAllocationofPurchaseConsiderationtoTangibleandIntangibleAssetsAcquiredandLiabilitiesAssumedDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_019eb8e2-30c2-7644-9cba-34e3f17479e5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_019eb8e2-30c2-70a8-81cc-3b41e65d7254" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_019eb8e2-30c2-7644-9cba-34e3f17479e5" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_019eb8e2-30c2-70a8-81cc-3b41e65d7254" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_BusinessCombinationRecognizedLiabilityAssumedAccruedLiabilitiesCurrent_019eb8e2-30c2-73b8-beda-9a545e016386" xlink:href="roku-20260618.xsd#roku_BusinessCombinationRecognizedLiabilityAssumedAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_019eb8e2-30c2-7644-9cba-34e3f17479e5" xlink:to="loc_roku_BusinessCombinationRecognizedLiabilityAssumedAccruedLiabilitiesCurrent_019eb8e2-30c2-73b8-beda-9a545e016386" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesDeferredRevenue_019eb8e2-30c2-7c07-b94c-c4441088fbce" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesDeferredRevenue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_019eb8e2-30c2-7644-9cba-34e3f17479e5" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesDeferredRevenue_019eb8e2-30c2-7c07-b94c-c4441088fbce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingLeaseLiabilities_019eb8e2-30c2-772a-96a6-bcaf9d4eed30" xlink:href="roku-20260618.xsd#roku_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingLeaseLiabilities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_019eb8e2-30c2-7644-9cba-34e3f17479e5" xlink:to="loc_roku_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingLeaseLiabilities_019eb8e2-30c2-772a-96a6-bcaf9d4eed30" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_019eb8e2-30c2-7f82-9941-772be744cae6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_019eb8e2-30c2-7644-9cba-34e3f17479e5" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_019eb8e2-30c2-7f82-9941-772be744cae6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_019eb8e2-30c2-7151-9d6f-3b0a3598ac67" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_019eb8e2-30c2-78b4-b936-0fc9d43f1e26" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_019eb8e2-30c2-7151-9d6f-3b0a3598ac67" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_019eb8e2-30c2-78b4-b936-0fc9d43f1e26" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_019eb8e2-30c2-7fd8-98f2-4a9234d82da3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_019eb8e2-30c2-7151-9d6f-3b0a3598ac67" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_019eb8e2-30c2-7fd8-98f2-4a9234d82da3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_019eb8e2-30c2-71bb-ae44-5c0c3e8da026" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_019eb8e2-30c2-72aa-ba10-d2c094587cc4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_019eb8e2-30c2-71bb-ae44-5c0c3e8da026" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_019eb8e2-30c2-72aa-ba10-d2c094587cc4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_019eb8e2-30c2-7497-973a-a8890c68b5e8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_019eb8e2-30c2-71bb-ae44-5c0c3e8da026" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_019eb8e2-30c2-7497-973a-a8890c68b5e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets_019eb8e2-30c2-720b-868d-d0836b9f0f35" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_019eb8e2-30c2-71bb-ae44-5c0c3e8da026" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets_019eb8e2-30c2-720b-868d-d0836b9f0f35" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingLeaseRightOfUseAssets_019eb8e2-30c2-7b1f-9e69-4a052e1fc4c6" xlink:href="roku-20260618.xsd#roku_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingLeaseRightOfUseAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_019eb8e2-30c2-71bb-ae44-5c0c3e8da026" xlink:to="loc_roku_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingLeaseRightOfUseAssets_019eb8e2-30c2-7b1f-9e69-4a052e1fc4c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_019eb8e2-30c2-75e3-ad65-63f38824cce2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_019eb8e2-30c2-71bb-ae44-5c0c3e8da026" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_019eb8e2-30c2-75e3-ad65-63f38824cce2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_019eb8e2-30c2-7dcf-9257-7b05bd79ff1a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_019eb8e2-30c2-71bb-ae44-5c0c3e8da026" xlink:to="loc_us-gaap_Goodwill_019eb8e2-30c2-7dcf-9257-7b05bd79ff1a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/GoodwillandIntangibleAssetsSummaryofIntangibleAssetsDetails" xlink:type="simple" xlink:href="roku-20260618.xsd#GoodwillandIntangibleAssetsSummaryofIntangibleAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/GoodwillandIntangibleAssetsSummaryofIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_019eb8e2-31aa-7ace-bfee-d71e2ed28be5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019eb8e2-31aa-7b4c-be9b-b3b918334bdb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_019eb8e2-31aa-7ace-bfee-d71e2ed28be5" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019eb8e2-31aa-7b4c-be9b-b3b918334bdb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019eb8e2-31aa-77cb-b989-0b666df27dcf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_019eb8e2-31aa-79a6-bee4-06151888c054" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019eb8e2-31aa-77cb-b989-0b666df27dcf" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_019eb8e2-31aa-79a6-bee4-06151888c054" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_019eb8e2-31aa-7f72-aa64-1ad21661ff69" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019eb8e2-31aa-77cb-b989-0b666df27dcf" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_019eb8e2-31aa-7f72-aa64-1ad21661ff69" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_019eb8e2-31aa-77ff-96e2-26d7f8f436f1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_019eb8e2-31aa-7ee6-9d39-292c79a986bd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_019eb8e2-31aa-77ff-96e2-26d7f8f436f1" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_019eb8e2-31aa-7ee6-9d39-292c79a986bd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/GoodwillandIntangibleAssetsSummaryofIntangibleAssetsDetails_1" xlink:type="simple" xlink:href="roku-20260618.xsd#GoodwillandIntangibleAssetsSummaryofIntangibleAssetsDetails_1"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/GoodwillandIntangibleAssetsSummaryofIntangibleAssetsDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_019eb8e2-31aa-7794-b130-5ac50b3cc39a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_019eb8e2-31aa-7bd2-ac09-33782398f5b9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_019eb8e2-31aa-7794-b130-5ac50b3cc39a" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_019eb8e2-31aa-7bd2-ac09-33782398f5b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_019eb8e2-31aa-7c95-b64a-217eb828eca0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_019eb8e2-31aa-7794-b130-5ac50b3cc39a" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_019eb8e2-31aa-7c95-b64a-217eb828eca0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/GoodwillandIntangibleAssetsScheduleofEstimatedFutureAmortizationExpenseforIntangibleAssetDetails" xlink:type="simple" xlink:href="roku-20260618.xsd#GoodwillandIntangibleAssetsScheduleofEstimatedFutureAmortizationExpenseforIntangibleAssetDetails"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/GoodwillandIntangibleAssetsScheduleofEstimatedFutureAmortizationExpenseforIntangibleAssetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019eb8e2-31aa-734d-a461-0b8d585e038d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_019eb8e2-31aa-7380-903c-f5751dbb8a0e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019eb8e2-31aa-734d-a461-0b8d585e038d" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_019eb8e2-31aa-7380-903c-f5751dbb8a0e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_019eb8e2-31aa-795f-8af4-01404bb9efed" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019eb8e2-31aa-734d-a461-0b8d585e038d" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_019eb8e2-31aa-795f-8af4-01404bb9efed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_019eb8e2-31aa-77b5-a64c-f21cdcfa5117" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019eb8e2-31aa-734d-a461-0b8d585e038d" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_019eb8e2-31aa-77b5-a64c-f21cdcfa5117" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_019eb8e2-31aa-7104-8a88-a8bb0ca15ec1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019eb8e2-31aa-734d-a461-0b8d585e038d" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_019eb8e2-31aa-7104-8a88-a8bb0ca15ec1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_019eb8e2-31aa-7a87-bbc8-bb040a449a73" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019eb8e2-31aa-734d-a461-0b8d585e038d" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_019eb8e2-31aa-7a87-bbc8-bb040a449a73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_019eb8e2-31aa-7e07-baaf-8895489269ef" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019eb8e2-31aa-734d-a461-0b8d585e038d" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_019eb8e2-31aa-7e07-baaf-8895489269ef" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/BalanceSheetComponentsScheduleofAccountsReceivableNetDetails" xlink:type="simple" xlink:href="roku-20260618.xsd#BalanceSheetComponentsScheduleofAccountsReceivableNetDetails"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/BalanceSheetComponentsScheduleofAccountsReceivableNetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_019eb8e2-31aa-7726-b406-d2aa328e2497" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableGrossCurrent_019eb8e2-31aa-779d-84d3-6224585ac085" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsReceivableGrossCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableNetCurrent_019eb8e2-31aa-7726-b406-d2aa328e2497" xlink:to="loc_us-gaap_AccountsReceivableGrossCurrent_019eb8e2-31aa-779d-84d3-6224585ac085" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesBalance_019eb8e2-31aa-74d3-875e-432c58a8aaa0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ValuationAllowancesAndReservesBalance"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableNetCurrent_019eb8e2-31aa-7726-b406-d2aa328e2497" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesBalance_019eb8e2-31aa-74d3-875e-432c58a8aaa0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/BalanceSheetComponentsScheduleofPropertyandEquipmentNetDetails" xlink:type="simple" xlink:href="roku-20260618.xsd#BalanceSheetComponentsScheduleofPropertyandEquipmentNetDetails"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/BalanceSheetComponentsScheduleofPropertyandEquipmentNetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_019eb8e2-31aa-7d94-b4f1-aa5a2a729654" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_019eb8e2-31aa-7c65-a96e-7dd3b58a84cf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_019eb8e2-31aa-7d94-b4f1-aa5a2a729654" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_019eb8e2-31aa-7c65-a96e-7dd3b58a84cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_019eb8e2-31aa-7fb3-b3ec-db5388734c5b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_019eb8e2-31aa-7d94-b4f1-aa5a2a729654" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_019eb8e2-31aa-7fb3-b3ec-db5388734c5b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails" xlink:type="simple" xlink:href="roku-20260618.xsd#BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_019eb8e2-31aa-7d16-8c38-90ab6d51e47d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_PaymentsDueToContentPublishersCurrent_019eb8e2-31aa-7c3e-88e3-667cff95d2a1" xlink:href="roku-20260618.xsd#roku_PaymentsDueToContentPublishersCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_019eb8e2-31aa-7d16-8c38-90ab6d51e47d" xlink:to="loc_roku_PaymentsDueToContentPublishersCurrent_019eb8e2-31aa-7c3e-88e3-667cff95d2a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_AccruedCostOfRevenueCurrent_019eb8e2-31aa-7e06-9a1a-7d52b9e430b9" xlink:href="roku-20260618.xsd#roku_AccruedCostOfRevenueCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_019eb8e2-31aa-7d16-8c38-90ab6d51e47d" xlink:to="loc_roku_AccruedCostOfRevenueCurrent_019eb8e2-31aa-7e06-9a1a-7d52b9e430b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedMarketingCostsCurrent_019eb8e2-31aa-7e8c-9e41-e275988bc7e6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccruedMarketingCostsCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_019eb8e2-31aa-7d16-8c38-90ab6d51e47d" xlink:to="loc_us-gaap_AccruedMarketingCostsCurrent_019eb8e2-31aa-7e8c-9e41-e275988bc7e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_019eb8e2-31aa-7dc9-9485-d8ed575aec7f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_019eb8e2-31aa-7d16-8c38-90ab6d51e47d" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_019eb8e2-31aa-7dc9-9485-d8ed575aec7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_AccruedLegalAndLicensingFees_019eb8e2-31aa-7403-a33e-d644c0b4fbc7" xlink:href="roku-20260618.xsd#roku_AccruedLegalAndLicensingFees"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_019eb8e2-31aa-7d16-8c38-90ab6d51e47d" xlink:to="loc_roku_AccruedLegalAndLicensingFees_019eb8e2-31aa-7403-a33e-d644c0b4fbc7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_ContentLiabilityCurrent_019eb8e2-31aa-791c-a6ca-05598e9a92a4" xlink:href="roku-20260618.xsd#roku_ContentLiabilityCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_019eb8e2-31aa-7d16-8c38-90ab6d51e47d" xlink:to="loc_roku_ContentLiabilityCurrent_019eb8e2-31aa-791c-a6ca-05598e9a92a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityCurrent_019eb8e2-31aa-7f14-a111-80667eed9038" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationContingentConsiderationLiabilityCurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_019eb8e2-31aa-7d16-8c38-90ab6d51e47d" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityCurrent_019eb8e2-31aa-7f14-a111-80667eed9038" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_019eb8e2-31aa-7417-88c5-183de5ebe625" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_019eb8e2-31aa-7d16-8c38-90ab6d51e47d" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_019eb8e2-31aa-7417-88c5-183de5ebe625" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/BalanceSheetComponentsScheduleofDeferredRevenueDetails" xlink:type="simple" xlink:href="roku-20260618.xsd#BalanceSheetComponentsScheduleofDeferredRevenueDetails"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/BalanceSheetComponentsScheduleofDeferredRevenueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiability_019eb8e2-31aa-7b0c-9e6e-837e7057f8be" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_019eb8e2-31aa-782a-9268-f7e09376b3f6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerLiabilityNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ContractWithCustomerLiability_019eb8e2-31aa-7b0c-9e6e-837e7057f8be" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_019eb8e2-31aa-782a-9268-f7e09376b3f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_019eb8e2-31aa-7822-90b0-a61d2949ed97" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerLiabilityCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ContractWithCustomerLiability_019eb8e2-31aa-7b0c-9e6e-837e7057f8be" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_019eb8e2-31aa-7822-90b0-a61d2949ed97" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/BalanceSheetComponentsScheduleofOtherLongTermLiabilitiesDetails" xlink:type="simple" xlink:href="roku-20260618.xsd#BalanceSheetComponentsScheduleofOtherLongTermLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/BalanceSheetComponentsScheduleofOtherLongTermLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_019eb8e2-31aa-7f17-b058-0f38aee3c658" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_ContentLiabilityNoncurrent_019eb8e2-31aa-7cf6-a4f2-3e41b0fc1eca" xlink:href="roku-20260618.xsd#roku_ContentLiabilityNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_019eb8e2-31aa-7f17-b058-0f38aee3c658" xlink:to="loc_roku_ContentLiabilityNoncurrent_019eb8e2-31aa-7cf6-a4f2-3e41b0fc1eca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherSundryLiabilitiesNoncurrent_019eb8e2-31aa-76f8-9846-0ecc9dc03e8d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherSundryLiabilitiesNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_019eb8e2-31aa-7f17-b058-0f38aee3c658" xlink:to="loc_us-gaap_OtherSundryLiabilitiesNoncurrent_019eb8e2-31aa-76f8-9846-0ecc9dc03e8d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityNoncurrent_019eb8e2-31aa-7182-8a69-042c65ad6eaf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationContingentConsiderationLiabilityNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrent_019eb8e2-31aa-7f17-b058-0f38aee3c658" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityNoncurrent_019eb8e2-31aa-7182-8a69-042c65ad6eaf" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/ContentAssetsScheduleOfAmortizationOfContentAssetsDetails" xlink:type="simple" xlink:href="roku-20260618.xsd#ContentAssetsScheduleOfAmortizationOfContentAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/ContentAssetsScheduleOfAmortizationOfContentAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_roku_AmortizationExpenseOfContentAssets_019eb8e2-31aa-7c2b-9192-9abe62539ac3" xlink:href="roku-20260618.xsd#roku_AmortizationExpenseOfContentAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_AmortizationExpenseOfLicensedContentAssets_019eb8e2-31aa-7665-8a0f-0d0155b3f3fa" xlink:href="roku-20260618.xsd#roku_AmortizationExpenseOfLicensedContentAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_roku_AmortizationExpenseOfContentAssets_019eb8e2-31aa-7c2b-9192-9abe62539ac3" xlink:to="loc_roku_AmortizationExpenseOfLicensedContentAssets_019eb8e2-31aa-7665-8a0f-0d0155b3f3fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_AmortizationExpenseOfProducedContentAssets_019eb8e2-31aa-7009-bc3f-9f2e0c46afe7" xlink:href="roku-20260618.xsd#roku_AmortizationExpenseOfProducedContentAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_roku_AmortizationExpenseOfContentAssets_019eb8e2-31aa-7c2b-9192-9abe62539ac3" xlink:to="loc_roku_AmortizationExpenseOfProducedContentAssets_019eb8e2-31aa-7009-bc3f-9f2e0c46afe7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/FairValueDisclosureScheduleofFinancialAssetsMeasuredatFairValueDetails" xlink:type="simple" xlink:href="roku-20260618.xsd#FairValueDisclosureScheduleofFinancialAssetsMeasuredatFairValueDetails"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/FairValueDisclosureScheduleofFinancialAssetsMeasuredatFairValueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_019eb8e2-31ab-7ec3-ad25-a45402b87c6d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityCurrent_019eb8e2-31ab-7cac-958b-42c25d15178a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationContingentConsiderationLiabilityCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_019eb8e2-31ab-7ec3-ad25-a45402b87c6d" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityCurrent_019eb8e2-31ab-7cac-958b-42c25d15178a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityNoncurrent_019eb8e2-31ab-7e99-bfd0-cd0509cdcf96" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationContingentConsiderationLiabilityNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_019eb8e2-31ab-7ec3-ad25-a45402b87c6d" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityNoncurrent_019eb8e2-31ab-7e99-bfd0-cd0509cdcf96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_019eb8e2-31ab-706d-8b02-5328bf3cd8fc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019eb8e2-31ab-7630-bc32-01b69ade1edd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019eb8e2-31ab-706d-8b02-5328bf3cd8fc" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019eb8e2-31ab-7630-bc32-01b69ade1edd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashCurrent_019eb8e2-31ab-79da-b339-cf9a7a9459c0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCashCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019eb8e2-31ab-706d-8b02-5328bf3cd8fc" xlink:to="loc_us-gaap_RestrictedCashCurrent_019eb8e2-31ab-79da-b339-cf9a7a9459c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermInvestments_019eb8e2-31ab-7fbf-8f02-651945bbac98" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermInvestments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019eb8e2-31ab-706d-8b02-5328bf3cd8fc" xlink:to="loc_us-gaap_ShortTermInvestments_019eb8e2-31ab-7fbf-8f02-651945bbac98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019eb8e2-31ab-70bd-91cb-acca2c1e0a14" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019eb8e2-31ab-706d-8b02-5328bf3cd8fc" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019eb8e2-31ab-70bd-91cb-acca2c1e0a14" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/LeasesScheduleofComponentsofLeaseExpenseDetails" xlink:type="simple" xlink:href="roku-20260618.xsd#LeasesScheduleofComponentsofLeaseExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/LeasesScheduleofComponentsofLeaseExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseCost_019eb8e2-31ab-70be-9a34-2736e43ed55c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_019eb8e2-31ab-750f-be45-1ef60a193fe0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_019eb8e2-31ab-70be-9a34-2736e43ed55c" xlink:to="loc_us-gaap_OperatingLeaseCost_019eb8e2-31ab-750f-be45-1ef60a193fe0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableLeaseCost_019eb8e2-31ab-76e8-89b4-0c80d4f1c284" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VariableLeaseCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_019eb8e2-31ab-70be-9a34-2736e43ed55c" xlink:to="loc_us-gaap_VariableLeaseCost_019eb8e2-31ab-76e8-89b4-0c80d4f1c284" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubleaseIncome_019eb8e2-31ab-7eb7-b4d0-7a8d13371503" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubleaseIncome"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_019eb8e2-31ab-70be-9a34-2736e43ed55c" xlink:to="loc_us-gaap_SubleaseIncome_019eb8e2-31ab-7eb7-b4d0-7a8d13371503" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/LeasesScheduleofSupplementalBalanceSheetInformationRelatedtoLeasesDetails" xlink:type="simple" xlink:href="roku-20260618.xsd#LeasesScheduleofSupplementalBalanceSheetInformationRelatedtoLeasesDetails"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/LeasesScheduleofSupplementalBalanceSheetInformationRelatedtoLeasesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_019eb8e2-31ab-759c-bb74-80fab062d046" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_019eb8e2-31ab-768e-b750-06bb460f65ca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeaseLiability_019eb8e2-31ab-759c-bb74-80fab062d046" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_019eb8e2-31ab-768e-b750-06bb460f65ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_019eb8e2-31ab-7bb9-9d91-c23289f80802" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeaseLiability_019eb8e2-31ab-759c-bb74-80fab062d046" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_019eb8e2-31ab-7bb9-9d91-c23289f80802" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/LeasesScheduleofFutureLeasePaymentsunderOperatingLeasesDetails" xlink:type="simple" xlink:href="roku-20260618.xsd#LeasesScheduleofFutureLeasePaymentsunderOperatingLeasesDetails"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/LeasesScheduleofFutureLeasePaymentsunderOperatingLeasesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019eb8e2-31ab-7bbf-8aca-2523c0387a2e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_019eb8e2-31ab-7852-beec-b5d82107fe4e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019eb8e2-31ab-7bbf-8aca-2523c0387a2e" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_019eb8e2-31ab-7852-beec-b5d82107fe4e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_019eb8e2-31ab-7a2b-a92d-43abd4f0c45d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019eb8e2-31ab-7bbf-8aca-2523c0387a2e" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_019eb8e2-31ab-7a2b-a92d-43abd4f0c45d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_019eb8e2-31ab-7edc-8be9-fc6fd2be9893" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019eb8e2-31ab-7bbf-8aca-2523c0387a2e" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_019eb8e2-31ab-7edc-8be9-fc6fd2be9893" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_019eb8e2-31ab-7849-acf2-cbb571bc7086" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019eb8e2-31ab-7bbf-8aca-2523c0387a2e" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_019eb8e2-31ab-7849-acf2-cbb571bc7086" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_019eb8e2-31ab-74e0-ac1f-0e0071d24219" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019eb8e2-31ab-7bbf-8aca-2523c0387a2e" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_019eb8e2-31ab-74e0-ac1f-0e0071d24219" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_019eb8e2-31ab-761d-9871-3743180a22ff" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019eb8e2-31ab-7bbf-8aca-2523c0387a2e" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_019eb8e2-31ab-761d-9871-3743180a22ff" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/LeasesScheduleofFutureLeasePaymentsunderOperatingLeasesDetails_1" xlink:type="simple" xlink:href="roku-20260618.xsd#LeasesScheduleofFutureLeasePaymentsunderOperatingLeasesDetails_1"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/LeasesScheduleofFutureLeasePaymentsunderOperatingLeasesDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019eb8e2-31ab-7468-b534-137e0364c9ad" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_019eb8e2-31ab-7e8c-b480-2089593f43a2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019eb8e2-31ab-7468-b534-137e0364c9ad" xlink:to="loc_us-gaap_OperatingLeaseLiability_019eb8e2-31ab-7e8c-b480-2089593f43a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_ExpectedTenantImprovementAllowance_019eb8e2-31ab-74d1-8b9f-47a1548262bb" xlink:href="roku-20260618.xsd#roku_ExpectedTenantImprovementAllowance"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019eb8e2-31ab-7468-b534-137e0364c9ad" xlink:to="loc_roku_ExpectedTenantImprovementAllowance_019eb8e2-31ab-74d1-8b9f-47a1548262bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_019eb8e2-31ab-7f76-993a-ae8ffffc15ff" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019eb8e2-31ab-7468-b534-137e0364c9ad" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_019eb8e2-31ab-7f76-993a-ae8ffffc15ff" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/StockholdersEquityScheduleofReservedSharesofCommonStockforIssuanceDetails" xlink:type="simple" xlink:href="roku-20260618.xsd#StockholdersEquityScheduleofReservedSharesofCommonStockforIssuanceDetails"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/StockholdersEquityScheduleofReservedSharesofCommonStockforIssuanceDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_019eb8e2-31ab-77ab-be3e-462d67994efd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_CumulativeCommonStockAwardsGranted_019eb8e2-31ab-76b2-a592-2715b40b6093" xlink:href="roku-20260618.xsd#roku_CumulativeCommonStockAwardsGranted"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_019eb8e2-31ab-77ab-be3e-462d67994efd" xlink:to="loc_roku_CumulativeCommonStockAwardsGranted_019eb8e2-31ab-76b2-a592-2715b40b6093" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_CumulativeCommonStockAwardsAvailableForIssuance_019eb8e2-31ab-783f-86a3-b39f09da9d33" xlink:href="roku-20260618.xsd#roku_CumulativeCommonStockAwardsAvailableForIssuance"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_019eb8e2-31ab-77ab-be3e-462d67994efd" xlink:to="loc_roku_CumulativeCommonStockAwardsAvailableForIssuance_019eb8e2-31ab-783f-86a3-b39f09da9d33" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/CommitmentsandContingenciesScheduleofPaymentsforContentObligationsDetails" xlink:type="simple" xlink:href="roku-20260618.xsd#CommitmentsandContingenciesScheduleofPaymentsforContentObligationsDetails"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/CommitmentsandContingenciesScheduleofPaymentsforContentObligationsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligation_019eb8e2-31ab-746e-830d-c0fdd5a31c99" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PurchaseObligation"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInFifthYear_019eb8e2-31ab-77ae-ab2e-4195d77d2146" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PurchaseObligationDueInFifthYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_019eb8e2-31ab-746e-830d-c0fdd5a31c99" xlink:to="loc_us-gaap_PurchaseObligationDueInFifthYear_019eb8e2-31ab-77ae-ab2e-4195d77d2146" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInSecondYear_019eb8e2-31ab-7c13-a577-9e0bfbfd3ef0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PurchaseObligationDueInSecondYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_019eb8e2-31ab-746e-830d-c0fdd5a31c99" xlink:to="loc_us-gaap_PurchaseObligationDueInSecondYear_019eb8e2-31ab-7c13-a577-9e0bfbfd3ef0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_019eb8e2-31ab-7cd8-a666-56f9b960f0de" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PurchaseObligationDueInNextTwelveMonths"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_019eb8e2-31ab-746e-830d-c0fdd5a31c99" xlink:to="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_019eb8e2-31ab-7cd8-a666-56f9b960f0de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueAfterFifthYear_019eb8e2-31ab-7d8f-a4f9-9db34218757f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PurchaseObligationDueAfterFifthYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_019eb8e2-31ab-746e-830d-c0fdd5a31c99" xlink:to="loc_us-gaap_PurchaseObligationDueAfterFifthYear_019eb8e2-31ab-7d8f-a4f9-9db34218757f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInFourthYear_019eb8e2-31ab-7c0e-937a-c204e74614f5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PurchaseObligationDueInFourthYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_019eb8e2-31ab-746e-830d-c0fdd5a31c99" xlink:to="loc_us-gaap_PurchaseObligationDueInFourthYear_019eb8e2-31ab-7c0e-937a-c204e74614f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInThirdYear_019eb8e2-31ab-783b-af6d-0d69b4d4fa38" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PurchaseObligationDueInThirdYear"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_019eb8e2-31ab-746e-830d-c0fdd5a31c99" xlink:to="loc_us-gaap_PurchaseObligationDueInThirdYear_019eb8e2-31ab-783b-af6d-0d69b4d4fa38" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/IncomeTaxesScheduleofComponentsofIncomeLossBeforeIncomeTaxesDetails" xlink:type="simple" xlink:href="roku-20260618.xsd#IncomeTaxesScheduleofComponentsofIncomeLossBeforeIncomeTaxesDetails"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/IncomeTaxesScheduleofComponentsofIncomeLossBeforeIncomeTaxesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019eb8e2-31ab-7f9f-820a-df9fc70db203" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_019eb8e2-31ab-77c2-a3cf-1f37d721c236" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019eb8e2-31ab-7f9f-820a-df9fc70db203" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_019eb8e2-31ab-77c2-a3cf-1f37d721c236" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_019eb8e2-31ab-7ea8-96b7-7c7210155fb6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019eb8e2-31ab-7f9f-820a-df9fc70db203" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_019eb8e2-31ab-7ea8-96b7-7c7210155fb6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/IncomeTaxesScheduleofIncomeTaxBenefitExpenseDetails" xlink:type="simple" xlink:href="roku-20260618.xsd#IncomeTaxesScheduleofIncomeTaxBenefitExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/IncomeTaxesScheduleofIncomeTaxBenefitExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019eb8e2-31ab-72e1-96c3-3e97e23c0a84" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_019eb8e2-31ab-7df5-85a2-368018590bdf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredForeignIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019eb8e2-31ab-72e1-96c3-3e97e23c0a84" xlink:to="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_019eb8e2-31ab-7df5-85a2-368018590bdf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_019eb8e2-31ab-7df7-af6a-a6c3e42ec2e3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019eb8e2-31ab-72e1-96c3-3e97e23c0a84" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_019eb8e2-31ab-7df7-af6a-a6c3e42ec2e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_019eb8e2-31ab-7575-868b-76fbae9f3955" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019eb8e2-31ab-72e1-96c3-3e97e23c0a84" xlink:to="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_019eb8e2-31ab-7575-868b-76fbae9f3955" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_019eb8e2-31ab-7085-9c6a-7de62e673e6e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_019eb8e2-31ab-7154-a60c-5467ba0e7bc3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CurrentFederalTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_019eb8e2-31ab-7085-9c6a-7de62e673e6e" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_019eb8e2-31ab-7154-a60c-5467ba0e7bc3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_019eb8e2-31ab-7ac7-879b-bf9e816673a4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CurrentStateAndLocalTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_019eb8e2-31ab-7085-9c6a-7de62e673e6e" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_019eb8e2-31ab-7ac7-879b-bf9e816673a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentForeignTaxExpenseBenefit_019eb8e2-31ab-72ea-83e7-59b3a6d332cd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CurrentForeignTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_019eb8e2-31ab-7085-9c6a-7de62e673e6e" xlink:to="loc_us-gaap_CurrentForeignTaxExpenseBenefit_019eb8e2-31ab-72ea-83e7-59b3a6d332cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019eb8e2-31ab-7d8e-9bab-c471149f10a5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_019eb8e2-31ab-7d5a-9ad1-da97f05ffa00" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019eb8e2-31ab-7d8e-9bab-c471149f10a5" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_019eb8e2-31ab-7d5a-9ad1-da97f05ffa00" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019eb8e2-31ab-79ef-a220-f79e077cafea" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019eb8e2-31ab-7d8e-9bab-c471149f10a5" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019eb8e2-31ab-79ef-a220-f79e077cafea" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/IncomeTaxesScheduleofReconciliationofStatutoryFederalIncomeTaxRatetoEffectiveTaxRateDetails" xlink:type="simple" xlink:href="roku-20260618.xsd#IncomeTaxesScheduleofReconciliationofStatutoryFederalIncomeTaxRatetoEffectiveTaxRateDetails"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/IncomeTaxesScheduleofReconciliationofStatutoryFederalIncomeTaxRatetoEffectiveTaxRateDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019eb8e2-31ab-7583-af8e-08cde23decb6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_019eb8e2-31ab-7229-acc7-a76a04312a17" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019eb8e2-31ab-7583-af8e-08cde23decb6" xlink:to="loc_us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_019eb8e2-31ab-7229-acc7-a76a04312a17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_019eb8e2-31ab-7439-bad2-e9d4a8726688" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019eb8e2-31ab-7583-af8e-08cde23decb6" xlink:to="loc_us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_019eb8e2-31ab-7439-bad2-e9d4a8726688" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential_019eb8e2-31ab-7ff4-81e3-da8fb553830c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019eb8e2-31ab-7583-af8e-08cde23decb6" xlink:to="loc_us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential_019eb8e2-31ab-7ff4-81e3-da8fb553830c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectForeignDisregardedEntitiesAmount_019eb8e2-31ab-727d-a9e0-dbada0b90418" xlink:href="roku-20260618.xsd#roku_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectForeignDisregardedEntitiesAmount"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019eb8e2-31ab-7583-af8e-08cde23decb6" xlink:to="loc_roku_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectForeignDisregardedEntitiesAmount_019eb8e2-31ab-727d-a9e0-dbada0b90418" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationCrossBorderOtherAmount_019eb8e2-31ab-7706-89dc-d995663cf6be" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationCrossBorderOtherAmount"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019eb8e2-31ab-7583-af8e-08cde23decb6" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationCrossBorderOtherAmount_019eb8e2-31ab-7706-89dc-d995663cf6be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxCreditsResearch_019eb8e2-31ab-7d60-ac27-064c1df0f3e5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationTaxCreditsResearch"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019eb8e2-31ab-7583-af8e-08cde23decb6" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxCreditsResearch_019eb8e2-31ab-7d60-ac27-064c1df0f3e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_EffectiveIncomeTaxRateReconciliationTaxCreditOtherAdjustmentsAmount_019eb8e2-31ab-7875-b639-4c12608984d8" xlink:href="roku-20260618.xsd#roku_EffectiveIncomeTaxRateReconciliationTaxCreditOtherAdjustmentsAmount"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019eb8e2-31ab-7583-af8e-08cde23decb6" xlink:to="loc_roku_EffectiveIncomeTaxRateReconciliationTaxCreditOtherAdjustmentsAmount_019eb8e2-31ab-7875-b639-4c12608984d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_019eb8e2-31ab-77e3-b28d-214727cfdea9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019eb8e2-31ab-7583-af8e-08cde23decb6" xlink:to="loc_us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_019eb8e2-31ab-77e3-b28d-214727cfdea9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost_019eb8e2-31ab-78da-8414-461f7866dc10" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019eb8e2-31ab-7583-af8e-08cde23decb6" xlink:to="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost_019eb8e2-31ab-78da-8414-461f7866dc10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitAmount_019eb8e2-31ab-7822-ab8e-ecd80a0e9e37" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitAmount"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019eb8e2-31ab-7583-af8e-08cde23decb6" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitAmount_019eb8e2-31ab-7822-ab8e-ecd80a0e9e37" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseOther_019eb8e2-31ab-7b3f-b2c6-a063037aae39" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationNondeductibleExpenseOther"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019eb8e2-31ab-7583-af8e-08cde23decb6" xlink:to="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseOther_019eb8e2-31ab-7b3f-b2c6-a063037aae39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxContingencies_019eb8e2-31ab-7b9e-b621-24daaae0e5eb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationTaxContingencies"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019eb8e2-31ab-7583-af8e-08cde23decb6" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxContingencies_019eb8e2-31ab-7b9e-b621-24daaae0e5eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationOtherAdjustments_019eb8e2-31ab-7f1f-b533-1c6745359b1d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationOtherAdjustments"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019eb8e2-31ab-7583-af8e-08cde23decb6" xlink:to="loc_us-gaap_IncomeTaxReconciliationOtherAdjustments_019eb8e2-31ab-7f1f-b533-1c6745359b1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019eb8e2-31ab-7d77-a999-5c69de096865" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_019eb8e2-31ab-7f02-9536-f39e76fa7c07" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019eb8e2-31ab-7d77-a999-5c69de096865" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_019eb8e2-31ab-7f02-9536-f39e76fa7c07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationFdiiPercent_019eb8e2-31ab-7cc6-8d3d-d025b2b1e6f2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationFdiiPercent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019eb8e2-31ab-7d77-a999-5c69de096865" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationFdiiPercent_019eb8e2-31ab-7cc6-8d3d-d025b2b1e6f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_EffectiveIncomeTaxRateReconciliationProvisionToReturnTrueUp_019eb8e2-31ab-73f8-b25c-d22237b73153" xlink:href="roku-20260618.xsd#roku_EffectiveIncomeTaxRateReconciliationProvisionToReturnTrueUp"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019eb8e2-31ab-7d77-a999-5c69de096865" xlink:to="loc_roku_EffectiveIncomeTaxRateReconciliationProvisionToReturnTrueUp_019eb8e2-31ab-73f8-b25c-d22237b73153" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseMealsAndEntertainment_019eb8e2-31ab-748f-a8eb-046066d727e0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseMealsAndEntertainment"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019eb8e2-31ab-7d77-a999-5c69de096865" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseMealsAndEntertainment_019eb8e2-31ab-748f-a8eb-046066d727e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_EffectiveIncomeTaxRateReconciliationChangeInUnrecognizedTaxBenefits_019eb8e2-31ab-7741-956d-5986a8b01d36" xlink:href="roku-20260618.xsd#roku_EffectiveIncomeTaxRateReconciliationChangeInUnrecognizedTaxBenefits"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019eb8e2-31ab-7d77-a999-5c69de096865" xlink:to="loc_roku_EffectiveIncomeTaxRateReconciliationChangeInUnrecognizedTaxBenefits_019eb8e2-31ab-7741-956d-5986a8b01d36" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_019eb8e2-31ab-70a8-b0d9-807e524f08a5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019eb8e2-31ab-7d77-a999-5c69de096865" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_019eb8e2-31ab-70a8-b0d9-807e524f08a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_EffectiveIncomeTaxRateReconciliationDiscreteTaxBenefitRecognizedOnTransferOfIntellectualPropertyPercent_019eb8e2-31ab-73da-8c39-3c5b02de9f8a" xlink:href="roku-20260618.xsd#roku_EffectiveIncomeTaxRateReconciliationDiscreteTaxBenefitRecognizedOnTransferOfIntellectualPropertyPercent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019eb8e2-31ab-7d77-a999-5c69de096865" xlink:to="loc_roku_EffectiveIncomeTaxRateReconciliationDiscreteTaxBenefitRecognizedOnTransferOfIntellectualPropertyPercent_019eb8e2-31ab-73da-8c39-3c5b02de9f8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_019eb8e2-31ab-710a-b0e3-5799e6de9571" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019eb8e2-31ab-7d77-a999-5c69de096865" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_019eb8e2-31ab-710a-b0e3-5799e6de9571" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsResearch_019eb8e2-31ab-77e2-bff9-6aa444462b51" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsResearch"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019eb8e2-31ab-7d77-a999-5c69de096865" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsResearch_019eb8e2-31ab-77e2-bff9-6aa444462b51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_019eb8e2-31ab-7e4e-b5c6-16ca741e28c8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019eb8e2-31ab-7d77-a999-5c69de096865" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_019eb8e2-31ab-7e4e-b5c6-16ca741e28c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_019eb8e2-31ab-7da9-8d8a-3fa728b561b8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019eb8e2-31ab-7d77-a999-5c69de096865" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_019eb8e2-31ab-7da9-8d8a-3fa728b561b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitPercent_019eb8e2-31ab-73cb-8063-4a2482acea16" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitPercent"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019eb8e2-31ab-7d77-a999-5c69de096865" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitPercent_019eb8e2-31ab-73cb-8063-4a2482acea16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectForeignDisregardedEntitiesPercent_019eb8e2-31ab-7f4f-867d-9c77b9d26761" xlink:href="roku-20260618.xsd#roku_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectForeignDisregardedEntitiesPercent"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019eb8e2-31ab-7d77-a999-5c69de096865" xlink:to="loc_roku_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectForeignDisregardedEntitiesPercent_019eb8e2-31ab-7f4f-867d-9c77b9d26761" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationCrossBorderOtherPercent_019eb8e2-31ab-7c43-81ed-c0abc4005f34" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationCrossBorderOtherPercent"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019eb8e2-31ab-7d77-a999-5c69de096865" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationCrossBorderOtherPercent_019eb8e2-31ab-7c43-81ed-c0abc4005f34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther_019eb8e2-31ab-79ae-80ab-035eb0f7c980" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019eb8e2-31ab-7d77-a999-5c69de096865" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther_019eb8e2-31ab-79ae-80ab-035eb0f7c980" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxContingencies_019eb8e2-31ab-7c4e-b9d5-0e693beda934" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxContingencies"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019eb8e2-31ab-7d77-a999-5c69de096865" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxContingencies_019eb8e2-31ab-7c4e-b9d5-0e693beda934" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_EffectiveIncomeTaxRateReconciliationTaxCreditOtherAdjustmentsPercent_019eb8e2-31ab-76cc-8045-ee88ab48d3a9" xlink:href="roku-20260618.xsd#roku_EffectiveIncomeTaxRateReconciliationTaxCreditOtherAdjustmentsPercent"/>
    <link:calculationArc order="17" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019eb8e2-31ab-7d77-a999-5c69de096865" xlink:to="loc_roku_EffectiveIncomeTaxRateReconciliationTaxCreditOtherAdjustmentsPercent_019eb8e2-31ab-76cc-8045-ee88ab48d3a9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/IncomeTaxesSummaryofSignificantComponentsofDeferredIncomeTaxAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="roku-20260618.xsd#IncomeTaxesSummaryofSignificantComponentsofDeferredIncomeTaxAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/IncomeTaxesSummaryofSignificantComponentsofDeferredIncomeTaxAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_019eb8e2-31ab-72c2-af69-ed1f48f83447" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_019eb8e2-31ab-75b2-a653-6e69db918cc2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_019eb8e2-31ab-72c2-af69-ed1f48f83447" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_019eb8e2-31ab-75b2-a653-6e69db918cc2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_019eb8e2-31ab-7d36-b9ac-e09c16191495" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_019eb8e2-31ab-72c2-af69-ed1f48f83447" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_019eb8e2-31ab-7d36-b9ac-e09c16191495" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_019eb8e2-31ab-7e22-8f6c-8090c016f52a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_019eb8e2-31ab-72c2-af69-ed1f48f83447" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_019eb8e2-31ab-7e22-8f6c-8090c016f52a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_019eb8e2-31ab-7abc-9dcd-f5fcf532219a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_019eb8e2-31ab-723b-98e9-9f3f6bc221b7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019eb8e2-31ab-7abc-9dcd-f5fcf532219a" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_019eb8e2-31ab-723b-98e9-9f3f6bc221b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment_019eb8e2-31ab-7b14-a7fc-3104703af307" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019eb8e2-31ab-7abc-9dcd-f5fcf532219a" xlink:to="loc_us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment_019eb8e2-31ab-7b14-a7fc-3104703af307" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_019eb8e2-31ab-78df-922b-31073ffd79eb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019eb8e2-31ab-7abc-9dcd-f5fcf532219a" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_019eb8e2-31ab-78df-922b-31073ffd79eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccruals_019eb8e2-31ab-7242-b0b3-e1cb1d5430cd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccruals"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019eb8e2-31ab-7abc-9dcd-f5fcf532219a" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccruals_019eb8e2-31ab-7242-b0b3-e1cb1d5430cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_DeferredTaxAssetsLeaseObligation_019eb8e2-31ab-70df-bfa5-d8235b912b5c" xlink:href="roku-20260618.xsd#roku_DeferredTaxAssetsLeaseObligation"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019eb8e2-31ab-7abc-9dcd-f5fcf532219a" xlink:to="loc_roku_DeferredTaxAssetsLeaseObligation_019eb8e2-31ab-70df-bfa5-d8235b912b5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_019eb8e2-31ab-7746-9cb2-5f7994c9a7ef" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxAssetsOther"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019eb8e2-31ab-7abc-9dcd-f5fcf532219a" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_019eb8e2-31ab-7746-9cb2-5f7994c9a7ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_DeferredTaxAssetsSection174Capitalization_019eb8e2-31ab-7e89-91ac-1a96ef9768b6" xlink:href="roku-20260618.xsd#roku_DeferredTaxAssetsSection174Capitalization"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019eb8e2-31ab-7abc-9dcd-f5fcf532219a" xlink:to="loc_roku_DeferredTaxAssetsSection174Capitalization_019eb8e2-31ab-7e89-91ac-1a96ef9768b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch_019eb8e2-31ab-7e8a-88be-b86bb6b91972" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019eb8e2-31ab-7abc-9dcd-f5fcf532219a" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch_019eb8e2-31ab-7e8a-88be-b86bb6b91972" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_019eb8e2-31ab-7158-a631-71ceef376d41" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesOther_019eb8e2-31ab-7c4a-802a-6fc10a38a99b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxLiabilitiesOther"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_019eb8e2-31ab-7158-a631-71ceef376d41" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesOther_019eb8e2-31ab-7c4a-802a-6fc10a38a99b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_roku_DeferredTaxLiabilitiesRightOfUseAsset_019eb8e2-31ab-7426-abed-764a6f5eeeb6" xlink:href="roku-20260618.xsd#roku_DeferredTaxLiabilitiesRightOfUseAsset"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_019eb8e2-31ab-7158-a631-71ceef376d41" xlink:to="loc_roku_DeferredTaxLiabilitiesRightOfUseAsset_019eb8e2-31ab-7426-abed-764a6f5eeeb6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.roku.com/role/NetIncomeLossPerShareScheduleofCalculationofBasicandDilutedNetIncomeLossPerShareDetails" xlink:type="simple" xlink:href="roku-20260618.xsd#NetIncomeLossPerShareScheduleofCalculationofBasicandDilutedNetIncomeLossPerShareDetails"/>
  <link:calculationLink xlink:role="http://www.roku.com/role/NetIncomeLossPerShareScheduleofCalculationofBasicandDilutedNetIncomeLossPerShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019eb8e2-31ab-76f1-b29b-d26919082a95" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019eb8e2-31ab-7839-9553-96e8f00cc903" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019eb8e2-31ab-76f1-b29b-d26919082a95" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019eb8e2-31ab-7839-9553-96e8f00cc903" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019eb8e2-31ab-7d78-a0af-6254c5c37a26" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019eb8e2-31ab-76f1-b29b-d26919082a95" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019eb8e2-31ab-7d78-a0af-6254c5c37a26" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
