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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2025 Workiva-->
<!--r:c2b72f0f-208e-4168-9b77-8b5794f832bb,g:3d8408a6-2ab7-4fc5-a48c-646439825cbd-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:roleRef roleURI="http://www.samsara.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="iot-20250201.xsd#CONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://www.samsara.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_462700e0-22df-4df3-82f8-d437bd885288" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_94e86c59-374d-42e4-877a-a417bafa277e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_462700e0-22df-4df3-82f8-d437bd885288" xlink:to="loc_us-gaap_Liabilities_94e86c59-374d-42e4-877a-a417bafa277e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_e5dce9e8-5adb-4db1-8ed8-fb05be614946" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_462700e0-22df-4df3-82f8-d437bd885288" xlink:to="loc_us-gaap_CommitmentsAndContingencies_e5dce9e8-5adb-4db1-8ed8-fb05be614946" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_7685f076-2a10-4692-8d42-399d1589fac9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_462700e0-22df-4df3-82f8-d437bd885288" xlink:to="loc_us-gaap_StockholdersEquity_7685f076-2a10-4692-8d42-399d1589fac9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_5bc2f994-c4a1-47f2-9f88-5e5613fe2cf5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_0fe300e3-0d0b-4078-9df7-1a3094020d62" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_5bc2f994-c4a1-47f2-9f88-5e5613fe2cf5" xlink:to="loc_us-gaap_AssetsCurrent_0fe300e3-0d0b-4078-9df7-1a3094020d62" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashNoncurrent_53e88df2-faf1-4eb0-b3c3-4d72c4df9860" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestrictedCashNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_5bc2f994-c4a1-47f2-9f88-5e5613fe2cf5" xlink:to="loc_us-gaap_RestrictedCashNoncurrent_53e88df2-faf1-4eb0-b3c3-4d72c4df9860" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterestNoncurrent_03972469-9c1b-4a2d-bf3c-18ff841f4315" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterestNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_5bc2f994-c4a1-47f2-9f88-5e5613fe2cf5" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterestNoncurrent_03972469-9c1b-4a2d-bf3c-18ff841f4315" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_5b25958b-3500-477f-b408-810edf1b50cb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_5bc2f994-c4a1-47f2-9f88-5e5613fe2cf5" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_5b25958b-3500-477f-b408-810edf1b50cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_c82bed94-643c-4263-87a2-5b493cb5d8d0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_5bc2f994-c4a1-47f2-9f88-5e5613fe2cf5" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_c82bed94-643c-4263-87a2-5b493cb5d8d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_iot_CapitalizedContractCostNetNoncurrentConnectedDeviceCosts_b689a6ee-fa7f-41ad-af7e-0aeca04453f6" xlink:href="iot-20250201.xsd#iot_CapitalizedContractCostNetNoncurrentConnectedDeviceCosts"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_5bc2f994-c4a1-47f2-9f88-5e5613fe2cf5" xlink:to="loc_iot_CapitalizedContractCostNetNoncurrentConnectedDeviceCosts_b689a6ee-fa7f-41ad-af7e-0aeca04453f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_iot_CapitalizedContractCostNetNoncurrentCommissionCosts_b72d711d-57c1-491b-b34f-5f0a6a79fd7d" xlink:href="iot-20250201.xsd#iot_CapitalizedContractCostNetNoncurrentCommissionCosts"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_5bc2f994-c4a1-47f2-9f88-5e5613fe2cf5" xlink:to="loc_iot_CapitalizedContractCostNetNoncurrentCommissionCosts_b72d711d-57c1-491b-b34f-5f0a6a79fd7d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_f72b0a8c-a990-4322-a3ef-5810780e2e8a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_5bc2f994-c4a1-47f2-9f88-5e5613fe2cf5" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_f72b0a8c-a990-4322-a3ef-5810780e2e8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_85882894-b5a8-4d0d-b3b0-f2dbf0bd1e91" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_8ba6e4a1-fde6-417a-9051-2f9e86c9a4a9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_85882894-b5a8-4d0d-b3b0-f2dbf0bd1e91" xlink:to="loc_us-gaap_AccountsPayableCurrent_8ba6e4a1-fde6-417a-9051-2f9e86c9a4a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_iot_AccruedAndOtherLiabilitiesCurrent_c39ecc4c-ad2d-4af5-b30a-098c4db583ef" xlink:href="iot-20250201.xsd#iot_AccruedAndOtherLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_85882894-b5a8-4d0d-b3b0-f2dbf0bd1e91" xlink:to="loc_iot_AccruedAndOtherLiabilitiesCurrent_c39ecc4c-ad2d-4af5-b30a-098c4db583ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedEmployeeBenefitsCurrent_f03c1b7b-4275-4627-8128-9041bb1708c5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccruedEmployeeBenefitsCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_85882894-b5a8-4d0d-b3b0-f2dbf0bd1e91" xlink:to="loc_us-gaap_AccruedEmployeeBenefitsCurrent_f03c1b7b-4275-4627-8128-9041bb1708c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_cce1f282-dabb-4457-b36c-87a0db6d554b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ContractWithCustomerLiabilityCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_85882894-b5a8-4d0d-b3b0-f2dbf0bd1e91" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_cce1f282-dabb-4457-b36c-87a0db6d554b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_67765c96-3e54-44c6-8f5c-cbaa1f82aa82" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_85882894-b5a8-4d0d-b3b0-f2dbf0bd1e91" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_67765c96-3e54-44c6-8f5c-cbaa1f82aa82" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_79bfe130-dc95-452e-b90e-ffa8183b6d9c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_91f3958e-1636-46bf-9e6b-10bc538ee494" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_79bfe130-dc95-452e-b90e-ffa8183b6d9c" xlink:to="loc_us-gaap_PreferredStockValue_91f3958e-1636-46bf-9e6b-10bc538ee494" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_d2cb1042-46e1-448a-87b4-b42446e9bd70" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_79bfe130-dc95-452e-b90e-ffa8183b6d9c" xlink:to="loc_us-gaap_CommonStockValue_d2cb1042-46e1-448a-87b4-b42446e9bd70" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_fa466717-3b3f-4058-92b6-b454fc3fb43d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_79bfe130-dc95-452e-b90e-ffa8183b6d9c" xlink:to="loc_us-gaap_AdditionalPaidInCapital_fa466717-3b3f-4058-92b6-b454fc3fb43d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_d5c18005-e5a7-41ee-b9b6-aafe5933199d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_79bfe130-dc95-452e-b90e-ffa8183b6d9c" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_d5c18005-e5a7-41ee-b9b6-aafe5933199d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_596b7a74-824b-462e-b55a-87d01f83935c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_79bfe130-dc95-452e-b90e-ffa8183b6d9c" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_596b7a74-824b-462e-b55a-87d01f83935c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_678e3fec-c992-4c45-9507-947ab469850d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_614447b5-89fc-4eef-8af3-908499e43408" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_678e3fec-c992-4c45-9507-947ab469850d" xlink:to="loc_us-gaap_LiabilitiesCurrent_614447b5-89fc-4eef-8af3-908499e43408" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_94cd8c3f-d41c-4bfc-a809-acb2b60c24b9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ContractWithCustomerLiabilityNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_678e3fec-c992-4c45-9507-947ab469850d" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_94cd8c3f-d41c-4bfc-a809-acb2b60c24b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_278f2773-2bb8-433e-b8d2-b229e63f651c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_678e3fec-c992-4c45-9507-947ab469850d" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_278f2773-2bb8-433e-b8d2-b229e63f651c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_c3c4c168-9553-463f-968d-c66f02836e3b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_678e3fec-c992-4c45-9507-947ab469850d" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_c3c4c168-9553-463f-968d-c66f02836e3b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_2afd28ce-4c70-4827-a329-f54a4b83cff9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_571020e7-a8cd-4445-a65d-045f26bf7067" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_2afd28ce-4c70-4827-a329-f54a4b83cff9" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_571020e7-a8cd-4445-a65d-045f26bf7067" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterestCurrent_5a60bec8-fc4e-4e1b-8996-3351e17989d1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterestCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_2afd28ce-4c70-4827-a329-f54a4b83cff9" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterestCurrent_5a60bec8-fc4e-4e1b-8996-3351e17989d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_3cfe3cff-a31b-4c9f-9dd2-aa98b3b59fc4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_2afd28ce-4c70-4827-a329-f54a4b83cff9" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_3cfe3cff-a31b-4c9f-9dd2-aa98b3b59fc4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_3ce8be12-94d9-4ceb-abe3-c8b037ea5347" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_2afd28ce-4c70-4827-a329-f54a4b83cff9" xlink:to="loc_us-gaap_InventoryNet_3ce8be12-94d9-4ceb-abe3-c8b037ea5347" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_iot_CapitalizedContractCostNetCurrentConnectedDeviceCosts_2afeb772-789a-48c1-8ddf-589ea6b757ef" xlink:href="iot-20250201.xsd#iot_CapitalizedContractCostNetCurrentConnectedDeviceCosts"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_2afd28ce-4c70-4827-a329-f54a4b83cff9" xlink:to="loc_iot_CapitalizedContractCostNetCurrentConnectedDeviceCosts_2afeb772-789a-48c1-8ddf-589ea6b757ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_692a6cc1-d4e5-4f5f-a6ce-569c35143924" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_2afd28ce-4c70-4827-a329-f54a4b83cff9" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_692a6cc1-d4e5-4f5f-a6ce-569c35143924" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.samsara.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS" xlink:type="simple" xlink:href="iot-20250201.xsd#CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS"/>
  <link:calculationLink xlink:role="http://www.samsara.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_0ddd1397-ec79-4609-b1f3-ea72777b41f1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_15660064-100b-4e45-8b99-423cb683be46" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GrossProfit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_0ddd1397-ec79-4609-b1f3-ea72777b41f1" xlink:to="loc_us-gaap_GrossProfit_15660064-100b-4e45-8b99-423cb683be46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_7c5ae823-1369-4dab-bbf1-81569fa50a61" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingExpenses"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_0ddd1397-ec79-4609-b1f3-ea72777b41f1" xlink:to="loc_us-gaap_OperatingExpenses_7c5ae823-1369-4dab-bbf1-81569fa50a61" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_4824f45c-d075-4248-8490-c8da7af56047" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_d14d5990-a50c-4d02-ba60-648ec44dfce4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_4824f45c-d075-4248-8490-c8da7af56047" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_d14d5990-a50c-4d02-ba60-648ec44dfce4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_f56f79fb-9457-476c-8368-941f49dcfb72" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_4824f45c-d075-4248-8490-c8da7af56047" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_f56f79fb-9457-476c-8368-941f49dcfb72" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_08075148-b85b-43bd-b356-2a81f4a661e7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_aeb25aac-2275-4c0e-a9ec-7348744fa921" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_08075148-b85b-43bd-b356-2a81f4a661e7" xlink:to="loc_us-gaap_NetIncomeLoss_aeb25aac-2275-4c0e-a9ec-7348744fa921" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_f74bb51a-32e3-4a80-b74d-d2a96fd0ff75" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_08075148-b85b-43bd-b356-2a81f4a661e7" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_f74bb51a-32e3-4a80-b74d-d2a96fd0ff75" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_739142c1-8b09-4d5a-a99c-1dbca4d64ac2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_b346f946-79cf-4dab-a4b2-f1d0be178e71" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_739142c1-8b09-4d5a-a99c-1dbca4d64ac2" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_b346f946-79cf-4dab-a4b2-f1d0be178e71" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_7ead731a-7535-409f-84c0-5fcde696bdb7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SellingAndMarketingExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_739142c1-8b09-4d5a-a99c-1dbca4d64ac2" xlink:to="loc_us-gaap_SellingAndMarketingExpense_7ead731a-7535-409f-84c0-5fcde696bdb7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_37527fce-badc-4057-856c-d48ec38cab8a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_739142c1-8b09-4d5a-a99c-1dbca4d64ac2" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_37527fce-badc-4057-856c-d48ec38cab8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossRelatedToLitigationSettlement_08a88aac-8a9e-4d1a-b1e7-1eea6924383e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossRelatedToLitigationSettlement"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_739142c1-8b09-4d5a-a99c-1dbca4d64ac2" xlink:to="loc_us-gaap_GainLossRelatedToLitigationSettlement_08a88aac-8a9e-4d1a-b1e7-1eea6924383e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_iot_LeaseModificationImpairmentAndRelatedCharges_5846b4ad-4d65-4386-a6d2-8cef801d2e56" xlink:href="iot-20250201.xsd#iot_LeaseModificationImpairmentAndRelatedCharges"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_739142c1-8b09-4d5a-a99c-1dbca4d64ac2" xlink:to="loc_iot_LeaseModificationImpairmentAndRelatedCharges_5846b4ad-4d65-4386-a6d2-8cef801d2e56" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_97a78c2e-3aa6-44d4-a942-223920cba311" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GrossProfit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_b118e2c3-3e06-418b-bc11-791eedf76099" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_97a78c2e-3aa6-44d4-a942-223920cba311" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_b118e2c3-3e06-418b-bc11-791eedf76099" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_cbd35032-f0b6-43b0-be6d-2b8dc1cb2b05" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CostOfRevenue"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossProfit_97a78c2e-3aa6-44d4-a942-223920cba311" xlink:to="loc_us-gaap_CostOfRevenue_cbd35032-f0b6-43b0-be6d-2b8dc1cb2b05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_3fd032b2-d8ef-41c8-bd6d-14c4a6798f90" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_f8e8d0ee-ce39-4de4-99be-2f62f7b8e394" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_3fd032b2-d8ef-41c8-bd6d-14c4a6798f90" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_f8e8d0ee-ce39-4de4-99be-2f62f7b8e394" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_3211ec98-368c-44e9-b7b4-ad3e3eae1cc8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_3fd032b2-d8ef-41c8-bd6d-14c4a6798f90" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_3211ec98-368c-44e9-b7b4-ad3e3eae1cc8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_9d41927d-2d2e-4ca8-a140-ada74977a3d2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_d5a0a900-cfde-4ab2-b9f8-81f641d872bd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_9d41927d-2d2e-4ca8-a140-ada74977a3d2" xlink:to="loc_us-gaap_OperatingIncomeLoss_d5a0a900-cfde-4ab2-b9f8-81f641d872bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_18cc5b37-87f8-4e52-b4ad-7ec3eaeb0707" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_9d41927d-2d2e-4ca8-a140-ada74977a3d2" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_18cc5b37-87f8-4e52-b4ad-7ec3eaeb0707" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.samsara.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="iot-20250201.xsd#CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://www.samsara.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7e2d8284-019f-4331-a386-fe09e7c65807" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_a01733ce-affb-4014-b8b4-5cf5027d741a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7e2d8284-019f-4331-a386-fe09e7c65807" xlink:to="loc_us-gaap_NetIncomeLoss_a01733ce-affb-4014-b8b4-5cf5027d741a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_ad3a229b-16bf-45d8-8e4b-4429d7a9ffee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7e2d8284-019f-4331-a386-fe09e7c65807" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_ad3a229b-16bf-45d8-8e4b-4429d7a9ffee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_22b0c4dd-a230-4282-a618-f7bba439116c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7e2d8284-019f-4331-a386-fe09e7c65807" xlink:to="loc_us-gaap_ShareBasedCompensation_22b0c4dd-a230-4282-a618-f7bba439116c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_6a060a20-ae5d-457a-b3a2-0ca99457135c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7e2d8284-019f-4331-a386-fe09e7c65807" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_6a060a20-ae5d-457a-b3a2-0ca99457135c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_739ee584-d310-44c5-9a6f-bd63d01811d3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7e2d8284-019f-4331-a386-fe09e7c65807" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_739ee584-d310-44c5-9a6f-bd63d01811d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_4a62706f-2b36-4d2a-add0-2fcb62482e51" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7e2d8284-019f-4331-a386-fe09e7c65807" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_4a62706f-2b36-4d2a-add0-2fcb62482e51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_815306e5-c3b1-4e0b-8a09-f7d9bed0531b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7e2d8284-019f-4331-a386-fe09e7c65807" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_815306e5-c3b1-4e0b-8a09-f7d9bed0531b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_iot_IncreaseDecreaseInCapitalizedContractCostConnectedDeviceCosts_0b15f595-b8d2-4c6d-bce2-02f109a6ea07" xlink:href="iot-20250201.xsd#iot_IncreaseDecreaseInCapitalizedContractCostConnectedDeviceCosts"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7e2d8284-019f-4331-a386-fe09e7c65807" xlink:to="loc_iot_IncreaseDecreaseInCapitalizedContractCostConnectedDeviceCosts_0b15f595-b8d2-4c6d-bce2-02f109a6ea07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_iot_IncreaseDecreaseInCapitalizedContractCostCommissionCosts_4b8cefb0-aaf3-4a2b-bde0-f9708af29e6d" xlink:href="iot-20250201.xsd#iot_IncreaseDecreaseInCapitalizedContractCostCommissionCosts"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7e2d8284-019f-4331-a386-fe09e7c65807" xlink:to="loc_iot_IncreaseDecreaseInCapitalizedContractCostCommissionCosts_4b8cefb0-aaf3-4a2b-bde0-f9708af29e6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_252b190e-14ea-4977-a3fa-d43f3d55b591" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentAssets"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7e2d8284-019f-4331-a386-fe09e7c65807" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_252b190e-14ea-4977-a3fa-d43f3d55b591" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities_ef71c4e9-f34d-4244-8e0d-f684c42a1466" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7e2d8284-019f-4331-a386-fe09e7c65807" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities_ef71c4e9-f34d-4244-8e0d-f684c42a1466" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_0a449050-8222-4a6c-b386-9bed0cd9ef7f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7e2d8284-019f-4331-a386-fe09e7c65807" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_0a449050-8222-4a6c-b386-9bed0cd9ef7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_iot_IncreaseDecreaseInOperatingLeaseRightOfUseAssetAndOperatingLeaseLiability_a30ea198-3f85-45b1-a9bc-de2738b93f5d" xlink:href="iot-20250201.xsd#iot_IncreaseDecreaseInOperatingLeaseRightOfUseAssetAndOperatingLeaseLiability"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7e2d8284-019f-4331-a386-fe09e7c65807" xlink:to="loc_iot_IncreaseDecreaseInOperatingLeaseRightOfUseAssetAndOperatingLeaseLiability_a30ea198-3f85-45b1-a9bc-de2738b93f5d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_5bb448c8-e88b-4b81-8ad4-346b02595282" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7e2d8284-019f-4331-a386-fe09e7c65807" xlink:to="loc_us-gaap_AssetImpairmentCharges_5bb448c8-e88b-4b81-8ad4-346b02595282" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_34fc4063-d003-4c11-901b-bc25f176dba6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7e2d8284-019f-4331-a386-fe09e7c65807" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_34fc4063-d003-4c11-901b-bc25f176dba6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_iot_NonCashLegalSettlement_15d09dc8-374d-4b35-bb1c-1b30f009ad43" xlink:href="iot-20250201.xsd#iot_NonCashLegalSettlement"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7e2d8284-019f-4331-a386-fe09e7c65807" xlink:to="loc_iot_NonCashLegalSettlement_15d09dc8-374d-4b35-bb1c-1b30f009ad43" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_49db5626-5c86-4e3c-b5bf-b26a77a5c5f0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_324a088f-d605-428b-ad14-b26ce626a752" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_49db5626-5c86-4e3c-b5bf-b26a77a5c5f0" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_324a088f-d605-428b-ad14-b26ce626a752" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_5da3ad8d-7cc9-4e3d-b671-63c33bb2f1d2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_49db5626-5c86-4e3c-b5bf-b26a77a5c5f0" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_5da3ad8d-7cc9-4e3d-b671-63c33bb2f1d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_3524999e-5279-448e-8814-d9ecec1cf9c0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_49db5626-5c86-4e3c-b5bf-b26a77a5c5f0" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_3524999e-5279-448e-8814-d9ecec1cf9c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_b25f6687-995a-4575-9b30-2a644f5c36ac" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_49db5626-5c86-4e3c-b5bf-b26a77a5c5f0" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_b25f6687-995a-4575-9b30-2a644f5c36ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_d9414dd9-943e-435b-bedf-46e7fd5e7202" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_49db5626-5c86-4e3c-b5bf-b26a77a5c5f0" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_d9414dd9-943e-435b-bedf-46e7fd5e7202" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_af750467-64ea-4b19-be15-807e7c0960f5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions_83b81714-42be-4d5e-a34e-ae783354d176" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_af750467-64ea-4b19-be15-807e7c0960f5" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions_83b81714-42be-4d5e-a34e-ae783354d176" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeasePrincipalPayments_4fd3fbf1-92b1-480a-a877-a39cbc0897d7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeasePrincipalPayments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_af750467-64ea-4b19-be15-807e7c0960f5" xlink:to="loc_us-gaap_FinanceLeasePrincipalPayments_4fd3fbf1-92b1-480a-a877-a39cbc0897d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_e9537d4c-63a8-4638-8f8e-2c25d2b2a0e6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_af750467-64ea-4b19-be15-807e7c0960f5" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_e9537d4c-63a8-4638-8f8e-2c25d2b2a0e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfStockIssuanceCosts_8bac9806-087c-4984-9739-00398e073f59" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfStockIssuanceCosts"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_af750467-64ea-4b19-be15-807e7c0960f5" xlink:to="loc_us-gaap_PaymentsOfStockIssuanceCosts_8bac9806-087c-4984-9739-00398e073f59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9472f3a3-801c-4722-b1b7-59fa99f2105b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_54c6f7bb-62e4-4d4d-a4a5-a8fc2c54c0af" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9472f3a3-801c-4722-b1b7-59fa99f2105b" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_54c6f7bb-62e4-4d4d-a4a5-a8fc2c54c0af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_48da15ba-aa14-4b43-8fc5-6f1739fe562f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9472f3a3-801c-4722-b1b7-59fa99f2105b" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_48da15ba-aa14-4b43-8fc5-6f1739fe562f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_fe30377b-c762-4e43-8df9-74c70e6cda3d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9472f3a3-801c-4722-b1b7-59fa99f2105b" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_fe30377b-c762-4e43-8df9-74c70e6cda3d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_2bc98cf7-33f2-4cba-bba4-9f7cce5bfdc3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9472f3a3-801c-4722-b1b7-59fa99f2105b" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_2bc98cf7-33f2-4cba-bba4-9f7cce5bfdc3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.samsara.com/role/CashCashEquivalentsRestrictedCashandInvestmentsScheduleofCashCashEquivalentsandRestrictedCashDetails" xlink:type="simple" xlink:href="iot-20250201.xsd#CashCashEquivalentsRestrictedCashandInvestmentsScheduleofCashCashEquivalentsandRestrictedCashDetails"/>
  <link:calculationLink xlink:role="http://www.samsara.com/role/CashCashEquivalentsRestrictedCashandInvestmentsScheduleofCashCashEquivalentsandRestrictedCashDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_e4c337cd-ea01-4112-83fc-ef50e273f8bc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_12c2c009-d92f-4e1b-abec-6829e8bcbcb6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_e4c337cd-ea01-4112-83fc-ef50e273f8bc" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_12c2c009-d92f-4e1b-abec-6829e8bcbcb6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_846cb41f-4f9f-4b66-8783-247bd279ff44" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestrictedCashAndCashEquivalents"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_e4c337cd-ea01-4112-83fc-ef50e273f8bc" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_846cb41f-4f9f-4b66-8783-247bd279ff44" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.samsara.com/role/CashCashEquivalentsRestrictedCashandInvestmentsScheduleofAvailableforsaleMarketableDebtSecuritiesRecordedWithinShorttermandLongtermInvestmentsDetails" xlink:type="simple" xlink:href="iot-20250201.xsd#CashCashEquivalentsRestrictedCashandInvestmentsScheduleofAvailableforsaleMarketableDebtSecuritiesRecordedWithinShorttermandLongtermInvestmentsDetails"/>
  <link:calculationLink xlink:role="http://www.samsara.com/role/CashCashEquivalentsRestrictedCashandInvestmentsScheduleofAvailableforsaleMarketableDebtSecuritiesRecordedWithinShorttermandLongtermInvestmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_728b2989-368d-43af-97c1-f01fcca236ee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_c337268c-3624-4035-bc16-4cda919ce22b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_728b2989-368d-43af-97c1-f01fcca236ee" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_c337268c-3624-4035-bc16-4cda919ce22b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_45b371d6-d4e5-464e-a516-c2b9d744d615" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_728b2989-368d-43af-97c1-f01fcca236ee" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_45b371d6-d4e5-464e-a516-c2b9d744d615" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_65c98150-351e-46a1-99a9-ff4eb09dc1e6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestAfterAllowanceForCreditLoss_728b2989-368d-43af-97c1-f01fcca236ee" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_65c98150-351e-46a1-99a9-ff4eb09dc1e6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.samsara.com/role/CashCashEquivalentsRestrictedCashandInvestmentsScheduleofFairValuesofAvailableforsaleMarketableDebtSecuritiesDetails" xlink:type="simple" xlink:href="iot-20250201.xsd#CashCashEquivalentsRestrictedCashandInvestmentsScheduleofFairValuesofAvailableforsaleMarketableDebtSecuritiesDetails"/>
  <link:calculationLink xlink:role="http://www.samsara.com/role/CashCashEquivalentsRestrictedCashandInvestmentsScheduleofFairValuesofAvailableforsaleMarketableDebtSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_aee84f11-219b-407a-9abb-858955606106" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_a8d56a7b-d83c-4a22-a467-98150312c025" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_aee84f11-219b-407a-9abb-858955606106" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_a8d56a7b-d83c-4a22-a467-98150312c025" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_iot_DebtSecuritiesAvailableForSaleMaturityAllocatedAndSingleMaturityDateRollingAfterOneThroughThreeYearsFairValue_d4463cdc-2691-4df4-a6d2-1d51173a65dd" xlink:href="iot-20250201.xsd#iot_DebtSecuritiesAvailableForSaleMaturityAllocatedAndSingleMaturityDateRollingAfterOneThroughThreeYearsFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_aee84f11-219b-407a-9abb-858955606106" xlink:to="loc_iot_DebtSecuritiesAvailableForSaleMaturityAllocatedAndSingleMaturityDateRollingAfterOneThroughThreeYearsFairValue_d4463cdc-2691-4df4-a6d2-1d51173a65dd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.samsara.com/role/FairValueMeasurementsDetails" xlink:type="simple" xlink:href="iot-20250201.xsd#FairValueMeasurementsDetails"/>
  <link:calculationLink xlink:role="http://www.samsara.com/role/FairValueMeasurementsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_iot_CashEquivalentsAndRestrictedCashFairValueDisclosure_b22d3b84-dd7b-465c-a3b5-aae222a02167" xlink:href="iot-20250201.xsd#iot_CashEquivalentsAndRestrictedCashFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_472bbcb3-aab1-4ab4-ba83-cc0b45d12890" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_iot_CashEquivalentsAndRestrictedCashFairValueDisclosure_b22d3b84-dd7b-465c-a3b5-aae222a02167" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_472bbcb3-aab1-4ab4-ba83-cc0b45d12890" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_iot_RestrictedCashFairValueDisclosure_8a5e3265-c315-4853-894c-c28b9d1b3915" xlink:href="iot-20250201.xsd#iot_RestrictedCashFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_iot_CashEquivalentsAndRestrictedCashFairValueDisclosure_b22d3b84-dd7b-465c-a3b5-aae222a02167" xlink:to="loc_iot_RestrictedCashFairValueDisclosure_8a5e3265-c315-4853-894c-c28b9d1b3915" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_62607455-d7ca-4e0d-90ab-6eb3f76dce28" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_iot_CashEquivalentsAndRestrictedCashFairValueDisclosure_b22d3b84-dd7b-465c-a3b5-aae222a02167" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_62607455-d7ca-4e0d-90ab-6eb3f76dce28" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.samsara.com/role/BalanceSheetComponentsScheduleofPropertyandEquipmentNetDetails" xlink:type="simple" xlink:href="iot-20250201.xsd#BalanceSheetComponentsScheduleofPropertyandEquipmentNetDetails"/>
  <link:calculationLink xlink:role="http://www.samsara.com/role/BalanceSheetComponentsScheduleofPropertyandEquipmentNetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_8aec30f5-7aac-4a61-beb6-eae06114885a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_03facb48-aadf-44da-8ec9-f311a1463641" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_8aec30f5-7aac-4a61-beb6-eae06114885a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_03facb48-aadf-44da-8ec9-f311a1463641" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_14f56f7f-107f-4900-989c-f4606b97cdb2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_8aec30f5-7aac-4a61-beb6-eae06114885a" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_14f56f7f-107f-4900-989c-f4606b97cdb2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.samsara.com/role/LeasesOperatingLeaseExpenseDetails" xlink:type="simple" xlink:href="iot-20250201.xsd#LeasesOperatingLeaseExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.samsara.com/role/LeasesOperatingLeaseExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseCost_df39dd66-014c-48a7-a4dd-9ec9680d3179" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_2bd761d9-795e-4b55-ab02-a45cb9307917" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_df39dd66-014c-48a7-a4dd-9ec9680d3179" xlink:to="loc_us-gaap_OperatingLeaseCost_2bd761d9-795e-4b55-ab02-a45cb9307917" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermLeaseCost_237bb2e6-41e0-4a0f-a9c2-c80c6b77a7c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShortTermLeaseCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_df39dd66-014c-48a7-a4dd-9ec9680d3179" xlink:to="loc_us-gaap_ShortTermLeaseCost_237bb2e6-41e0-4a0f-a9c2-c80c6b77a7c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubleaseIncome_15be96da-c9be-47de-9166-9bea48f34c9f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubleaseIncome"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_df39dd66-014c-48a7-a4dd-9ec9680d3179" xlink:to="loc_us-gaap_SubleaseIncome_15be96da-c9be-47de-9166-9bea48f34c9f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.samsara.com/role/LeasesScheduleofFutureMinimumLeasePaymentsDetails" xlink:type="simple" xlink:href="iot-20250201.xsd#LeasesScheduleofFutureMinimumLeasePaymentsDetails"/>
  <link:calculationLink xlink:role="http://www.samsara.com/role/LeasesScheduleofFutureMinimumLeasePaymentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_80c5b16c-1b34-4142-8ad7-339034b16ac1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_d8d71600-1e06-46fd-a5d0-f754c0fe7be7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_80c5b16c-1b34-4142-8ad7-339034b16ac1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_d8d71600-1e06-46fd-a5d0-f754c0fe7be7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_8d860f45-0fbb-4165-bc90-1aa95d814158" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_80c5b16c-1b34-4142-8ad7-339034b16ac1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_8d860f45-0fbb-4165-bc90-1aa95d814158" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_57c144c3-e4be-4905-a75f-952a488997ae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_80c5b16c-1b34-4142-8ad7-339034b16ac1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_57c144c3-e4be-4905-a75f-952a488997ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_cf193448-4db3-4305-828b-6e86f6036079" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_80c5b16c-1b34-4142-8ad7-339034b16ac1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_cf193448-4db3-4305-828b-6e86f6036079" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_49c699d8-e8d1-4510-81a0-ed82bf88cabf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_80c5b16c-1b34-4142-8ad7-339034b16ac1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_49c699d8-e8d1-4510-81a0-ed82bf88cabf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_633273cd-f4d4-408c-bfaf-31d2ce8786e3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_80c5b16c-1b34-4142-8ad7-339034b16ac1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_633273cd-f4d4-408c-bfaf-31d2ce8786e3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.samsara.com/role/LeasesScheduleofFutureMinimumLeasePaymentsDetails_1" xlink:type="simple" xlink:href="iot-20250201.xsd#LeasesScheduleofFutureMinimumLeasePaymentsDetails_1"/>
  <link:calculationLink xlink:role="http://www.samsara.com/role/LeasesScheduleofFutureMinimumLeasePaymentsDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_30765709-21dd-4745-ba96-8e8ebcd17a5a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_1fa8b266-95b4-4168-ad04-6fab4d663830" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_30765709-21dd-4745-ba96-8e8ebcd17a5a" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_1fa8b266-95b4-4168-ad04-6fab4d663830" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_60e011c7-ce31-485f-b616-457de36a35f1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_30765709-21dd-4745-ba96-8e8ebcd17a5a" xlink:to="loc_us-gaap_OperatingLeaseLiability_60e011c7-ce31-485f-b616-457de36a35f1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.samsara.com/role/CommitmentsandContingenciesPurchaseObligationFiscalYearMaturityDetails" xlink:type="simple" xlink:href="iot-20250201.xsd#CommitmentsandContingenciesPurchaseObligationFiscalYearMaturityDetails"/>
  <link:calculationLink xlink:role="http://www.samsara.com/role/CommitmentsandContingenciesPurchaseObligationFiscalYearMaturityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligation_87b94aee-ac28-4cd5-8e3d-84e58b9e5af5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PurchaseObligation"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInThirdYear_bd965252-8cdb-4484-b798-e82df719379b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PurchaseObligationDueInThirdYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_87b94aee-ac28-4cd5-8e3d-84e58b9e5af5" xlink:to="loc_us-gaap_PurchaseObligationDueInThirdYear_bd965252-8cdb-4484-b798-e82df719379b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_df2f1dd4-0c75-49fa-bd68-54aadbe0a150" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PurchaseObligationDueInNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_87b94aee-ac28-4cd5-8e3d-84e58b9e5af5" xlink:to="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_df2f1dd4-0c75-49fa-bd68-54aadbe0a150" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInFifthYear_c2152eb8-2727-494b-b1b0-0e5dd14e87fa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PurchaseObligationDueInFifthYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_87b94aee-ac28-4cd5-8e3d-84e58b9e5af5" xlink:to="loc_us-gaap_PurchaseObligationDueInFifthYear_c2152eb8-2727-494b-b1b0-0e5dd14e87fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInSecondYear_4f5ce50c-030f-4d2a-af53-271cb16e63a9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PurchaseObligationDueInSecondYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_87b94aee-ac28-4cd5-8e3d-84e58b9e5af5" xlink:to="loc_us-gaap_PurchaseObligationDueInSecondYear_4f5ce50c-030f-4d2a-af53-271cb16e63a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueAfterFifthYear_89d4af95-1e2b-425e-bb4c-214a5da5d855" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PurchaseObligationDueAfterFifthYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_87b94aee-ac28-4cd5-8e3d-84e58b9e5af5" xlink:to="loc_us-gaap_PurchaseObligationDueAfterFifthYear_89d4af95-1e2b-425e-bb4c-214a5da5d855" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInFourthYear_1eee3cf1-2ac2-4b9a-ba61-6043026d334c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PurchaseObligationDueInFourthYear"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PurchaseObligation_87b94aee-ac28-4cd5-8e3d-84e58b9e5af5" xlink:to="loc_us-gaap_PurchaseObligationDueInFourthYear_1eee3cf1-2ac2-4b9a-ba61-6043026d334c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.samsara.com/role/IncomeTaxesScheduleofIncomebeforeIncomeTaxDomesticandForeignDetails" xlink:type="simple" xlink:href="iot-20250201.xsd#IncomeTaxesScheduleofIncomebeforeIncomeTaxDomesticandForeignDetails"/>
  <link:calculationLink xlink:role="http://www.samsara.com/role/IncomeTaxesScheduleofIncomebeforeIncomeTaxDomesticandForeignDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_iot_IncomeLossFromContinuingOperationsBeforeIncomeTaxesNoncontrollingInterestNet_e3c32da1-902c-48e3-8a2b-f558b03f7f5c" xlink:href="iot-20250201.xsd#iot_IncomeLossFromContinuingOperationsBeforeIncomeTaxesNoncontrollingInterestNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_765aa7d8-a708-485f-9664-b728e4716a65" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_iot_IncomeLossFromContinuingOperationsBeforeIncomeTaxesNoncontrollingInterestNet_e3c32da1-902c-48e3-8a2b-f558b03f7f5c" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_765aa7d8-a708-485f-9664-b728e4716a65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_ba3f793e-405f-4e79-8e24-eb6ee8c74593" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_iot_IncomeLossFromContinuingOperationsBeforeIncomeTaxesNoncontrollingInterestNet_e3c32da1-902c-48e3-8a2b-f558b03f7f5c" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_ba3f793e-405f-4e79-8e24-eb6ee8c74593" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.samsara.com/role/IncomeTaxesScheduleofComponentsofProvisionforIncomeTaxesDetails" xlink:type="simple" xlink:href="iot-20250201.xsd#IncomeTaxesScheduleofComponentsofProvisionforIncomeTaxesDetails"/>
  <link:calculationLink xlink:role="http://www.samsara.com/role/IncomeTaxesScheduleofComponentsofProvisionforIncomeTaxesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_b3bff28b-2240-4774-a6b7-831e3964d061" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_50d7eda3-007c-4c3b-9f96-e53ac48957a8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_b3bff28b-2240-4774-a6b7-831e3964d061" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_50d7eda3-007c-4c3b-9f96-e53ac48957a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_f55e7745-a782-4fe4-a31f-60eb3ae0a16a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_b3bff28b-2240-4774-a6b7-831e3964d061" xlink:to="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_f55e7745-a782-4fe4-a31f-60eb3ae0a16a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_13a9f402-a1ad-4557-9053-fc5fcaf62523" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredForeignIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_b3bff28b-2240-4774-a6b7-831e3964d061" xlink:to="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_13a9f402-a1ad-4557-9053-fc5fcaf62523" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_874e3749-c648-4cf3-8382-4f5adf0533ab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_33c9b7ca-f8b1-415b-ad50-f12d4b07bb99" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_874e3749-c648-4cf3-8382-4f5adf0533ab" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_33c9b7ca-f8b1-415b-ad50-f12d4b07bb99" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_a2cf8dc2-48cc-4d40-8ecb-23b32c17da56" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_874e3749-c648-4cf3-8382-4f5adf0533ab" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_a2cf8dc2-48cc-4d40-8ecb-23b32c17da56" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_d83ed983-c25a-4004-b083-5ad6828e9b7f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_32690b7b-55d6-4376-8ad1-409f9c058cf6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CurrentStateAndLocalTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_d83ed983-c25a-4004-b083-5ad6828e9b7f" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_32690b7b-55d6-4376-8ad1-409f9c058cf6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_3d00bc39-cab8-4bb8-aed5-0e83971108f1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CurrentFederalTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_d83ed983-c25a-4004-b083-5ad6828e9b7f" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_3d00bc39-cab8-4bb8-aed5-0e83971108f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentForeignTaxExpenseBenefit_4c8d1ba2-b8a6-493d-b83d-721293bf3bd9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CurrentForeignTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_d83ed983-c25a-4004-b083-5ad6828e9b7f" xlink:to="loc_us-gaap_CurrentForeignTaxExpenseBenefit_4c8d1ba2-b8a6-493d-b83d-721293bf3bd9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.samsara.com/role/IncomeTaxesScheduleofEffectiveIncomeTaxRateReconciliationDetails" xlink:type="simple" xlink:href="iot-20250201.xsd#IncomeTaxesScheduleofEffectiveIncomeTaxRateReconciliationDetails"/>
  <link:calculationLink xlink:role="http://www.samsara.com/role/IncomeTaxesScheduleofEffectiveIncomeTaxRateReconciliationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_4b5911bd-b48d-42dc-ae52-c5584eb72d2f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_941fbe16-c2e1-4e83-b557-b0b9a3949719" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_4b5911bd-b48d-42dc-ae52-c5584eb72d2f" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_941fbe16-c2e1-4e83-b557-b0b9a3949719" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitPercent_b2c0514d-cdd2-4b45-bd02-6740e8d0e0ff" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitPercent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_4b5911bd-b48d-42dc-ae52-c5584eb72d2f" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitPercent_b2c0514d-cdd2-4b45-bd02-6740e8d0e0ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_iot_EffectiveIncomeTaxRateReconciliationPermanentDifferencesPercent_73ecae63-3353-49f2-87f7-fdc039d07ad9" xlink:href="iot-20250201.xsd#iot_EffectiveIncomeTaxRateReconciliationPermanentDifferencesPercent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_4b5911bd-b48d-42dc-ae52-c5584eb72d2f" xlink:to="loc_iot_EffectiveIncomeTaxRateReconciliationPermanentDifferencesPercent_73ecae63-3353-49f2-87f7-fdc039d07ad9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_6946a79b-53c0-4c64-8083-e59c316115ab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_4b5911bd-b48d-42dc-ae52-c5584eb72d2f" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_6946a79b-53c0-4c64-8083-e59c316115ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_a213da28-3f20-47bf-bad8-3dc104769c64" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_4b5911bd-b48d-42dc-ae52-c5584eb72d2f" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_a213da28-3f20-47bf-bad8-3dc104769c64" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationRepatriationOfForeignEarnings_832fd53c-b3d3-48bc-ba35-d2705825610a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationRepatriationOfForeignEarnings"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_4b5911bd-b48d-42dc-ae52-c5584eb72d2f" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationRepatriationOfForeignEarnings_832fd53c-b3d3-48bc-ba35-d2705825610a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsResearch_e255c3e3-ed5e-4b1f-8dbb-bfc8eeb15d88" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsResearch"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_4b5911bd-b48d-42dc-ae52-c5584eb72d2f" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsResearch_e255c3e3-ed5e-4b1f-8dbb-bfc8eeb15d88" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_ade689c3-915e-445d-9a2e-f79fab529d16" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_4b5911bd-b48d-42dc-ae52-c5584eb72d2f" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_ade689c3-915e-445d-9a2e-f79fab529d16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_d8752bd5-2447-441a-9fb8-fecb3886a429" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_4b5911bd-b48d-42dc-ae52-c5584eb72d2f" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_d8752bd5-2447-441a-9fb8-fecb3886a429" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.samsara.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="iot-20250201.xsd#IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.samsara.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilities_22ae2136-5b8b-4b8b-8dcf-11209ae2595c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_7692063c-d72d-42c4-abaa-ae5fd46b65b8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsNet"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_22ae2136-5b8b-4b8b-8dcf-11209ae2595c" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_7692063c-d72d-42c4-abaa-ae5fd46b65b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_85b4aae5-4aad-4784-9007-88102567a4cb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_22ae2136-5b8b-4b8b-8dcf-11209ae2595c" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_85b4aae5-4aad-4784-9007-88102567a4cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_5ec661da-8807-41bc-8a9c-bb81c8e5b3e4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccruals_66485cc0-ac47-4e79-bd0c-ad64fc4bd3e3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccruals"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_5ec661da-8807-41bc-8a9c-bb81c8e5b3e4" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccruals_66485cc0-ac47-4e79-bd0c-ad64fc4bd3e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_iot_DeferredTaxAssetsCapitalizedResearchAndDevelopment_9ce99118-0ad1-4328-aae1-fca16a147942" xlink:href="iot-20250201.xsd#iot_DeferredTaxAssetsCapitalizedResearchAndDevelopment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_5ec661da-8807-41bc-8a9c-bb81c8e5b3e4" xlink:to="loc_iot_DeferredTaxAssetsCapitalizedResearchAndDevelopment_9ce99118-0ad1-4328-aae1-fca16a147942" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_iot_DeferredTaxAssetsOperatingLeaseLiability_83eae4c1-4159-446e-94d7-3db3bd5219b7" xlink:href="iot-20250201.xsd#iot_DeferredTaxAssetsOperatingLeaseLiability"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_5ec661da-8807-41bc-8a9c-bb81c8e5b3e4" xlink:to="loc_iot_DeferredTaxAssetsOperatingLeaseLiability_83eae4c1-4159-446e-94d7-3db3bd5219b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_5530b5a7-bfee-440e-b206-920de52aa18b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_5ec661da-8807-41bc-8a9c-bb81c8e5b3e4" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_5530b5a7-bfee-440e-b206-920de52aa18b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwards_d3a1aae2-18ed-48f2-89fd-b179ec6b68a2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwards"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_5ec661da-8807-41bc-8a9c-bb81c8e5b3e4" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwards_d3a1aae2-18ed-48f2-89fd-b179ec6b68a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment_ec19556b-6b54-4c7c-a005-5f52ee498dcd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_5ec661da-8807-41bc-8a9c-bb81c8e5b3e4" xlink:to="loc_us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment_ec19556b-6b54-4c7c-a005-5f52ee498dcd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_c7395b56-9dfc-4a59-a743-72f36d7ea117" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_051051aa-8a02-419c-a4fb-bc8627ea8b52" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_c7395b56-9dfc-4a59-a743-72f36d7ea117" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_051051aa-8a02-419c-a4fb-bc8627ea8b52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_9058e509-2ac5-4688-86f0-a2df19a219cd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_c7395b56-9dfc-4a59-a743-72f36d7ea117" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_9058e509-2ac5-4688-86f0-a2df19a219cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_2a79859d-912c-46e0-8b26-010bdf7eca28" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_54b68504-94a7-4273-98cb-95e039b20052" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_2a79859d-912c-46e0-8b26-010bdf7eca28" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_54b68504-94a7-4273-98cb-95e039b20052" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_iot_DeferredTaxLiabilitiesDeferredCommissions_0c6ef0ee-f9a2-41c4-885a-3dab7c53adb9" xlink:href="iot-20250201.xsd#iot_DeferredTaxLiabilitiesDeferredCommissions"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_2a79859d-912c-46e0-8b26-010bdf7eca28" xlink:to="loc_iot_DeferredTaxLiabilitiesDeferredCommissions_0c6ef0ee-f9a2-41c4-885a-3dab7c53adb9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_iot_DeferredTaxLiabilitiesDeferredConnectedDeviceCosts_fc671a42-cf01-4e64-b72e-5bde300a6e1c" xlink:href="iot-20250201.xsd#iot_DeferredTaxLiabilitiesDeferredConnectedDeviceCosts"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_2a79859d-912c-46e0-8b26-010bdf7eca28" xlink:to="loc_iot_DeferredTaxLiabilitiesDeferredConnectedDeviceCosts_fc671a42-cf01-4e64-b72e-5bde300a6e1c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesLeasingArrangements_5a79890e-58ab-42e8-bbf0-5afe1a31155c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxLiabilitiesLeasingArrangements"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_2a79859d-912c-46e0-8b26-010bdf7eca28" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesLeasingArrangements_5a79890e-58ab-42e8-bbf0-5afe1a31155c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_iot_DeferredTaxLiabilitiesAccruals_c5d7172b-6cca-43de-813f-a45ec4e867b8" xlink:href="iot-20250201.xsd#iot_DeferredTaxLiabilitiesAccruals"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_2a79859d-912c-46e0-8b26-010bdf7eca28" xlink:to="loc_iot_DeferredTaxLiabilitiesAccruals_c5d7172b-6cca-43de-813f-a45ec4e867b8" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
