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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019dac10-03e5-7a3f-9fa3-bc0352092f60,g:ebca2dc9-a696-431b-aa62-1bd6da1353f7-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="https://xbrl.org/2023/arcrole/summation-item" xlink:type="simple" xlink:href="https://www.xbrl.org/2023/calculation-1.1.xsd#summation-item"/>
  <link:roleRef roleURI="http://www.opireit.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="opi-20250930.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://www.opireit.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_019dac10-04b7-708e-8ae0-3fc1aec24d97" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019dac10-04b7-74f1-9d91-77f0c3d21b08" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019dac10-04b7-708e-8ae0-3fc1aec24d97" xlink:to="loc_us-gaap_Liabilities_019dac10-04b7-74f1-9d91-77f0c3d21b08" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019dac10-04b7-7492-8183-a5994e3915fe" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019dac10-04b7-708e-8ae0-3fc1aec24d97" xlink:to="loc_us-gaap_StockholdersEquity_019dac10-04b7-7492-8183-a5994e3915fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_019dac10-04b7-7356-a538-f1cffcc2c80f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019dac10-04b7-708e-8ae0-3fc1aec24d97" xlink:to="loc_us-gaap_CommitmentsAndContingencies_019dac10-04b7-7356-a538-f1cffcc2c80f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019dac10-04b7-72e8-b0e7-d5188f788ebf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_019dac10-04b7-7a0f-b48a-ce417d05932b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019dac10-04b7-72e8-b0e7-d5188f788ebf" xlink:to="loc_us-gaap_OtherLiabilities_019dac10-04b7-7a0f-b48a-ce417d05932b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableOtherCurrentAndNoncurrent_019dac10-04b7-7aea-8faf-2f87bef37b00" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsPayableOtherCurrentAndNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019dac10-04b7-72e8-b0e7-d5188f788ebf" xlink:to="loc_us-gaap_AccountsPayableOtherCurrentAndNoncurrent_019dac10-04b7-7aea-8faf-2f87bef37b00" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffMarketLeaseUnfavorable_019dac10-04b7-74e6-85ee-61fab31fefae" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OffMarketLeaseUnfavorable"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019dac10-04b7-72e8-b0e7-d5188f788ebf" xlink:to="loc_us-gaap_OffMarketLeaseUnfavorable_019dac10-04b7-74e6-85ee-61fab31fefae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnsecuredDebt_019dac10-04b7-7b77-9adc-212239a4430e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_UnsecuredDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019dac10-04b7-72e8-b0e7-d5188f788ebf" xlink:to="loc_us-gaap_UnsecuredDebt_019dac10-04b7-7b77-9adc-212239a4430e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebt_019dac10-04b7-7ed9-814f-424610b172d4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SecuredDebt"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019dac10-04b7-72e8-b0e7-d5188f788ebf" xlink:to="loc_us-gaap_SecuredDebt_019dac10-04b7-7ed9-814f-424610b172d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_opi_LiabilitiesHeldForSaleProperty_019dac10-04b7-7aee-8da8-9819ac3f522f" xlink:href="opi-20250930.xsd#opi_LiabilitiesHeldForSaleProperty"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019dac10-04b7-72e8-b0e7-d5188f788ebf" xlink:to="loc_opi_LiabilitiesHeldForSaleProperty_019dac10-04b7-7aee-8da8-9819ac3f522f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealEstateInvestmentPropertyAtCost_019dac10-04b7-78c1-bed1-9ac53bc49e08" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RealEstateInvestmentPropertyAtCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Land_019dac10-04b7-752e-988a-fb8fbaccf50c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Land"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_RealEstateInvestmentPropertyAtCost_019dac10-04b7-78c1-bed1-9ac53bc49e08" xlink:to="loc_us-gaap_Land_019dac10-04b7-752e-988a-fb8fbaccf50c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentBuildingAndBuildingImprovements_019dac10-04b7-7786-928a-408d96ee7c86" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentBuildingAndBuildingImprovements"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_RealEstateInvestmentPropertyAtCost_019dac10-04b7-78c1-bed1-9ac53bc49e08" xlink:to="loc_us-gaap_InvestmentBuildingAndBuildingImprovements_019dac10-04b7-7786-928a-408d96ee7c86" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019dac10-04b7-73a1-b65c-8d3c922f8056" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealEstateInvestmentPropertyNet_019dac10-04b7-7687-9998-59e90b3de1a9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RealEstateInvestmentPropertyNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019dac10-04b7-73a1-b65c-8d3c922f8056" xlink:to="loc_us-gaap_RealEstateInvestmentPropertyNet_019dac10-04b7-7687-9998-59e90b3de1a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsHeldForSaleNotPartOfDisposalGroup_019dac10-04b7-7a89-abd7-2a6e2fb22007" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsHeldForSaleNotPartOfDisposalGroup"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019dac10-04b7-73a1-b65c-8d3c922f8056" xlink:to="loc_us-gaap_AssetsHeldForSaleNotPartOfDisposalGroup_019dac10-04b7-7a89-abd7-2a6e2fb22007" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealEstateInvestmentsJointVentures_019dac10-04b7-7495-b46d-4dbbde593510" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RealEstateInvestmentsJointVentures"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019dac10-04b7-73a1-b65c-8d3c922f8056" xlink:to="loc_us-gaap_RealEstateInvestmentsJointVentures_019dac10-04b7-7495-b46d-4dbbde593510" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019dac10-04b7-70ff-aa42-a67f728709b8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019dac10-04b7-73a1-b65c-8d3c922f8056" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019dac10-04b7-70ff-aa42-a67f728709b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019dac10-04b7-7494-8b44-bdcd182f704c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019dac10-04b7-73a1-b65c-8d3c922f8056" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019dac10-04b7-7494-8b44-bdcd182f704c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_019dac10-04b7-7207-83da-b557b58dec15" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedCashAndCashEquivalents"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019dac10-04b7-73a1-b65c-8d3c922f8056" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_019dac10-04b7-7207-83da-b557b58dec15" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNet_019dac10-04b7-7eea-8843-039df847bbc0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsReceivableNet"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019dac10-04b7-73a1-b65c-8d3c922f8056" xlink:to="loc_us-gaap_AccountsReceivableNet_019dac10-04b7-7eea-8843-039df847bbc0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCostsLeasingNet_019dac10-04b7-7f11-9213-e67f482346c5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredCostsLeasingNet"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019dac10-04b7-73a1-b65c-8d3c922f8056" xlink:to="loc_us-gaap_DeferredCostsLeasingNet_019dac10-04b7-7f11-9213-e67f482346c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_019dac10-04b7-7bb8-b8b6-d20e848255d3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019dac10-04b7-73a1-b65c-8d3c922f8056" xlink:to="loc_us-gaap_OtherAssets_019dac10-04b7-7bb8-b8b6-d20e848255d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealEstateInvestmentPropertyNet_019dac10-04b7-79e3-8827-4b9551bc8d17" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RealEstateInvestmentPropertyNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealEstateInvestmentPropertyAtCost_019dac10-04b7-7340-b903-e114d150b8e8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RealEstateInvestmentPropertyAtCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_RealEstateInvestmentPropertyNet_019dac10-04b7-79e3-8827-4b9551bc8d17" xlink:to="loc_us-gaap_RealEstateInvestmentPropertyAtCost_019dac10-04b7-7340-b903-e114d150b8e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealEstateInvestmentPropertyAccumulatedDepreciation_019dac10-04b7-7853-8e02-23462c170852" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RealEstateInvestmentPropertyAccumulatedDepreciation"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_RealEstateInvestmentPropertyNet_019dac10-04b7-79e3-8827-4b9551bc8d17" xlink:to="loc_us-gaap_RealEstateInvestmentPropertyAccumulatedDepreciation_019dac10-04b7-7853-8e02-23462c170852" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019dac10-04b7-73ef-90f8-b3f8cf1f20a8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_019dac10-04b7-723b-bbf1-1c486ff07120" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019dac10-04b7-73ef-90f8-b3f8cf1f20a8" xlink:to="loc_us-gaap_CommonStockValue_019dac10-04b7-723b-bbf1-1c486ff07120" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_019dac10-04b7-7879-90eb-c10f68430e95" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019dac10-04b7-73ef-90f8-b3f8cf1f20a8" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_019dac10-04b7-7879-90eb-c10f68430e95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019dac10-04b7-74d7-9d21-901af379de9a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019dac10-04b7-73ef-90f8-b3f8cf1f20a8" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019dac10-04b7-74d7-9d21-901af379de9a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CumulativeDividends_019dac10-04b7-7e91-8c1e-cc1f2a09ec77" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CumulativeDividends"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019dac10-04b7-73ef-90f8-b3f8cf1f20a8" xlink:to="loc_us-gaap_CumulativeDividends_019dac10-04b7-7e91-8c1e-cc1f2a09ec77" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.opireit.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" xlink:type="simple" xlink:href="opi-20250930.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"/>
  <link:calculationLink xlink:role="http://www.opireit.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_019dac10-04b7-7f84-aebd-15baf3586b50" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_019dac10-04b7-732f-bff6-81813ba78b0e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostsAndExpenses"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_019dac10-04b7-7f84-aebd-15baf3586b50" xlink:to="loc_us-gaap_CostsAndExpenses_019dac10-04b7-732f-bff6-81813ba78b0e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfProperties_019dac10-04b7-7e9c-8523-ecae8eddeed6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnSaleOfProperties"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_019dac10-04b7-7f84-aebd-15baf3586b50" xlink:to="loc_us-gaap_GainLossOnSaleOfProperties_019dac10-04b7-7e9c-8523-ecae8eddeed6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndOtherIncome_019dac10-04b7-78b7-b904-0d5a531f7301" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndOtherIncome"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_019dac10-04b7-7f84-aebd-15baf3586b50" xlink:to="loc_us-gaap_InterestAndOtherIncome_019dac10-04b7-78b7-b904-0d5a531f7301" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_019dac10-04b7-7fdc-a70f-da40e954ab1d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_019dac10-04b7-7f84-aebd-15baf3586b50" xlink:to="loc_us-gaap_InterestExpense_019dac10-04b7-7fdc-a70f-da40e954ab1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_opi_GainLossOnExtinguishmentOfDebtNet_019dac10-04b7-7ef3-b1a3-d173ddc45541" xlink:href="opi-20250930.xsd#opi_GainLossOnExtinguishmentOfDebtNet"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_019dac10-04b7-7f84-aebd-15baf3586b50" xlink:to="loc_opi_GainLossOnExtinguishmentOfDebtNet_019dac10-04b7-7ef3-b1a3-d173ddc45541" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_019dac10-04b7-726e-b1c5-83f6d2fdb572" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Revenues"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_019dac10-04b7-7f84-aebd-15baf3586b50" xlink:to="loc_us-gaap_Revenues_019dac10-04b7-726e-b1c5-83f6d2fdb572" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019dac10-04b7-758c-8e20-296e478c7b8b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_019dac10-04b7-755c-81d4-36ec9a7da086" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019dac10-04b7-758c-8e20-296e478c7b8b" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_019dac10-04b7-755c-81d4-36ec9a7da086" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019dac10-04b7-727f-ac05-4aee123fa484" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019dac10-04b7-758c-8e20-296e478c7b8b" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_019dac10-04b7-727f-ac05-4aee123fa484" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_019dac10-04b7-7fbf-be00-4318b7b1ee4c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromEquityMethodInvestments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019dac10-04b7-758c-8e20-296e478c7b8b" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_019dac10-04b7-7fbf-be00-4318b7b1ee4c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_019dac10-04b7-7b14-958a-ee476af44595" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostsAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealEstateTaxExpense_019dac10-04b7-7fc8-a04c-408b80a377c3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RealEstateTaxExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019dac10-04b7-7b14-958a-ee476af44595" xlink:to="loc_us-gaap_RealEstateTaxExpense_019dac10-04b7-7fc8-a04c-408b80a377c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilitiesOperatingExpense_019dac10-04b7-7e8e-a5d5-ddc30ec05f57" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_UtilitiesOperatingExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019dac10-04b7-7b14-958a-ee476af44595" xlink:to="loc_us-gaap_UtilitiesOperatingExpense_019dac10-04b7-7e8e-a5d5-ddc30ec05f57" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCostAndExpenseOperating_019dac10-04b7-74d2-a199-dda3251ff36f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherCostAndExpenseOperating"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019dac10-04b7-7b14-958a-ee476af44595" xlink:to="loc_us-gaap_OtherCostAndExpenseOperating_019dac10-04b7-74d2-a199-dda3251ff36f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_019dac10-04b7-72bc-82f4-696d3ed12fa6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DepreciationAndAmortization"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019dac10-04b7-7b14-958a-ee476af44595" xlink:to="loc_us-gaap_DepreciationAndAmortization_019dac10-04b7-72bc-82f4-696d3ed12fa6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfRealEstate_019dac10-04b7-71a0-b74d-c47ab8105e47" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ImpairmentOfRealEstate"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019dac10-04b7-7b14-958a-ee476af44595" xlink:to="loc_us-gaap_ImpairmentOfRealEstate_019dac10-04b7-71a0-b74d-c47ab8105e47" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_019dac10-04b7-7794-9fdd-8f375bc59d10" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019dac10-04b7-7b14-958a-ee476af44595" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_019dac10-04b7-7794-9fdd-8f375bc59d10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_019dac10-04b7-79d3-9557-4a8c68df1b6b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019dac10-04b7-7b14-958a-ee476af44595" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_019dac10-04b7-79d3-9557-4a8c68df1b6b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.opireit.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="opi-20250930.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://www.opireit.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019dac10-04b7-7b18-a8b2-a375735ec386" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfUnsecuredDebt_019dac10-04b7-7f5a-a984-11da79ff904b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RepaymentsOfUnsecuredDebt"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019dac10-04b7-7b18-a8b2-a375735ec386" xlink:to="loc_us-gaap_RepaymentsOfUnsecuredDebt_019dac10-04b7-7f5a-a984-11da79ff904b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_019dac10-04b7-7e66-8075-f19b94c298e2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019dac10-04b7-7b18-a8b2-a375735ec386" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_019dac10-04b7-7e66-8075-f19b94c298e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_opi_ProceedsFromIssuanceOfSecuredTermLoan_019dac10-04b7-7382-b735-49e743d817c1" xlink:href="opi-20250930.xsd#opi_ProceedsFromIssuanceOfSecuredTermLoan"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019dac10-04b7-7b18-a8b2-a375735ec386" xlink:to="loc_opi_ProceedsFromIssuanceOfSecuredTermLoan_019dac10-04b7-7382-b735-49e743d817c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_019dac10-04b7-79ad-98f0-de4617622162" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RepaymentsOfLongTermLinesOfCredit"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019dac10-04b7-7b18-a8b2-a375735ec386" xlink:to="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_019dac10-04b7-79ad-98f0-de4617622162" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_019dac10-04b7-7ecc-9991-b9d8a8ad0316" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromLongTermLinesOfCredit"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019dac10-04b7-7b18-a8b2-a375735ec386" xlink:to="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_019dac10-04b7-7ecc-9991-b9d8a8ad0316" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_019dac10-04b7-77ca-a397-d58c1a60fede" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019dac10-04b7-7b18-a8b2-a375735ec386" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_019dac10-04b7-77ca-a397-d58c1a60fede" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_019dac10-04b7-7614-be25-9e3571d36cc9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019dac10-04b7-7b18-a8b2-a375735ec386" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_019dac10-04b7-7614-be25-9e3571d36cc9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019dac10-04b7-7b7c-b9af-e1c54d41021c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019dac10-04b7-7b18-a8b2-a375735ec386" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019dac10-04b7-7b7c-b9af-e1c54d41021c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfSecuredDebt_019dac10-04b7-7c63-b8ca-3ee4ea215ec7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RepaymentsOfSecuredDebt"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019dac10-04b7-7b18-a8b2-a375735ec386" xlink:to="loc_us-gaap_RepaymentsOfSecuredDebt_019dac10-04b7-7c63-b8ca-3ee4ea215ec7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_019dac10-04b7-768b-b39e-754cf996ff1b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019dac10-04b7-7b18-a8b2-a375735ec386" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_019dac10-04b7-768b-b39e-754cf996ff1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019dac10-04b7-79be-9309-94d37137d599" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019dac10-04b7-73de-9029-aef1dc2cdd46" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019dac10-04b7-79be-9309-94d37137d599" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019dac10-04b7-73de-9029-aef1dc2cdd46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCash_019dac10-04b7-7e88-8be0-f25640e621c7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedCash"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019dac10-04b7-79be-9309-94d37137d599" xlink:to="loc_us-gaap_RestrictedCash_019dac10-04b7-7e88-8be0-f25640e621c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019dac10-04b7-79cb-b70f-82ad7b409325" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019dac10-04b7-7456-a247-24a6b06ace5e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019dac10-04b7-79cb-b70f-82ad7b409325" xlink:to="loc_us-gaap_NetIncomeLoss_019dac10-04b7-7456-a247-24a6b06ace5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_019dac10-04b7-742f-ae65-16af496e0ff3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Depreciation"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019dac10-04b7-79cb-b70f-82ad7b409325" xlink:to="loc_us-gaap_Depreciation_019dac10-04b7-742f-ae65-16af496e0ff3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_019dac10-04b7-744f-82d3-bc3f89abdc08" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019dac10-04b7-79cb-b70f-82ad7b409325" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_019dac10-04b7-744f-82d3-bc3f89abdc08" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_019dac10-04b7-7871-b122-86449440eca2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019dac10-04b7-79cb-b70f-82ad7b409325" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_019dac10-04b7-7871-b122-86449440eca2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAmortizationOfDeferredCharges_019dac10-04b7-7cac-871c-05b98aaa7de8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAmortizationOfDeferredCharges"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019dac10-04b7-79cb-b70f-82ad7b409325" xlink:to="loc_us-gaap_OtherAmortizationOfDeferredCharges_019dac10-04b7-7cac-871c-05b98aaa7de8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfProperties_019dac10-04b7-7d6f-a2ef-27f733faa21f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnSaleOfProperties"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019dac10-04b7-79cb-b70f-82ad7b409325" xlink:to="loc_us-gaap_GainLossOnSaleOfProperties_019dac10-04b7-7d6f-a2ef-27f733faa21f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StraightLineRent_019dac10-04b7-7a17-87ed-e8e52124291f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StraightLineRent"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019dac10-04b7-79cb-b70f-82ad7b409325" xlink:to="loc_us-gaap_StraightLineRent_019dac10-04b7-7a17-87ed-e8e52124291f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_019dac10-04b7-7689-874b-8303682456f9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019dac10-04b7-79cb-b70f-82ad7b409325" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_019dac10-04b7-7689-874b-8303682456f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_019dac10-04b7-7e5f-bcd1-571d5b326c96" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromEquityMethodInvestments"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019dac10-04b7-79cb-b70f-82ad7b409325" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_019dac10-04b7-7e5f-bcd1-571d5b326c96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInLeasingReceivables_019dac10-04b7-745f-a776-bab2b77e9486" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInLeasingReceivables"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019dac10-04b7-79cb-b70f-82ad7b409325" xlink:to="loc_us-gaap_IncreaseDecreaseInLeasingReceivables_019dac10-04b7-745f-a776-bab2b77e9486" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInDeferredLeasingFees_019dac10-04b7-7cc9-9fd1-a552a385ede0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInDeferredLeasingFees"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019dac10-04b7-79cb-b70f-82ad7b409325" xlink:to="loc_us-gaap_IncreaseDecreaseInDeferredLeasingFees_019dac10-04b7-7cc9-9fd1-a552a385ede0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_019dac10-04b7-7dc5-9c1f-8c5e050398de" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019dac10-04b7-79cb-b70f-82ad7b409325" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_019dac10-04b7-7dc5-9c1f-8c5e050398de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_019dac10-04b7-7b6d-a3a5-8db9eba30dc0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019dac10-04b7-79cb-b70f-82ad7b409325" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_019dac10-04b7-7b6d-a3a5-8db9eba30dc0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInDueToRelatedParties_019dac10-04b7-705b-8e79-aac188924c0d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInDueToRelatedParties"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019dac10-04b7-79cb-b70f-82ad7b409325" xlink:to="loc_us-gaap_IncreaseDecreaseInDueToRelatedParties_019dac10-04b7-705b-8e79-aac188924c0d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_019dac10-04b7-7687-9c64-acadd3b79b49" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019dac10-04b7-79cb-b70f-82ad7b409325" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_019dac10-04b7-7687-9c64-acadd3b79b49" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfRealEstate_019dac10-04b7-7941-99df-a8a24631c520" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ImpairmentOfRealEstate"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019dac10-04b7-79cb-b70f-82ad7b409325" xlink:to="loc_us-gaap_ImpairmentOfRealEstate_019dac10-04b7-7941-99df-a8a24631c520" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019dac10-04b7-7b71-9850-a24483a7c394" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019dac10-04b7-767b-b8f4-02e6ab595469" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019dac10-04b7-7b71-9850-a24483a7c394" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019dac10-04b7-767b-b8f4-02e6ab595469" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019dac10-04b7-752a-aa64-df3c16d47a30" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019dac10-04b7-7b71-9850-a24483a7c394" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019dac10-04b7-752a-aa64-df3c16d47a30" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019dac10-04b7-731b-abf7-ad310ba8d2ae" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019dac10-04b7-7b71-9850-a24483a7c394" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019dac10-04b7-731b-abf7-ad310ba8d2ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019dac10-04b7-7165-a1ca-2337891ec1cf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToDevelopRealEstateAssets_019dac10-04b7-7663-8cd8-45b2a62d2b6d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToDevelopRealEstateAssets"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019dac10-04b7-7165-a1ca-2337891ec1cf" xlink:to="loc_us-gaap_PaymentsToDevelopRealEstateAssets_019dac10-04b7-7663-8cd8-45b2a62d2b6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfRealEstateHeldforinvestment_019dac10-04b7-7ad1-8b65-70ec06d90fea" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleOfRealEstateHeldforinvestment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019dac10-04b7-7165-a1ca-2337891ec1cf" xlink:to="loc_us-gaap_ProceedsFromSaleOfRealEstateHeldforinvestment_019dac10-04b7-7ad1-8b65-70ec06d90fea" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.opireit.com/role/PerCommonShareAmountsIncomeLossPerCommonShareDetails" xlink:type="simple" xlink:href="opi-20250930.xsd#PerCommonShareAmountsIncomeLossPerCommonShareDetails"/>
  <link:calculationLink xlink:role="http://www.opireit.com/role/PerCommonShareAmountsIncomeLossPerCommonShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019dac10-04b7-7ec2-889e-516ee0e5736a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_019dac10-04b7-7308-b936-f3c215b51b33" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019dac10-04b7-7ec2-889e-516ee0e5736a" xlink:to="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_019dac10-04b7-7308-b936-f3c215b51b33" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019dac10-04b7-77f6-80f2-9c63050a9efa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_019dac10-04b7-7ec2-889e-516ee0e5736a" xlink:to="loc_us-gaap_NetIncomeLoss_019dac10-04b7-77f6-80f2-9c63050a9efa" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.opireit.com/role/FairValueofAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="opi-20250930.xsd#FairValueofAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.opireit.com/role/FairValueofAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtFairValue_019dac10-0589-7f09-b543-57be62a2e299" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebtFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotes_019dac10-0589-7055-be9f-8a753dfbc3aa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SeniorNotes"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtFairValue_019dac10-0589-7f09-b543-57be62a2e299" xlink:to="loc_us-gaap_SeniorNotes_019dac10-0589-7055-be9f-8a753dfbc3aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebt_019dac10-0589-7526-807d-fc7a72b27e27" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SecuredDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtFairValue_019dac10-0589-7f09-b543-57be62a2e299" xlink:to="loc_us-gaap_SecuredDebt_019dac10-0589-7526-807d-fc7a72b27e27" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
