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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:85c3654b-8465-4b61-8263-6b64c0982ffa,g:21395414-a37d-443b-bcd5-32ffb639e50c-->
<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.apolloreit.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="simple" xlink:href="ari-20220930.xsd#CondensedConsolidatedBalanceSheetsUnaudited"/>
  <link:calculationLink xlink:role="http://www.apolloreit.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_eaf6a41b-b2d3-4c39-8bf8-e238a7726454" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebt_ece6bbeb-dea6-45e1-9132-f723b1bd0313" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SecuredDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_eaf6a41b-b2d3-4c39-8bf8-e238a7726454" xlink:to="loc_us-gaap_SecuredDebt_ece6bbeb-dea6-45e1-9132-f723b1bd0313" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotes_badf7ebf-d4df-440c-830a-9612fd29c827" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SeniorNotes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_eaf6a41b-b2d3-4c39-8bf8-e238a7726454" xlink:to="loc_us-gaap_SeniorNotes_badf7ebf-d4df-440c-830a-9612fd29c827" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebt_ef36cbc5-72fc-4c3c-86f4-3e04e53cd77b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConvertibleDebt"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_eaf6a41b-b2d3-4c39-8bf8-e238a7726454" xlink:to="loc_us-gaap_ConvertibleDebt_ef36cbc5-72fc-4c3c-86f4-3e04e53cd77b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AccountsPayableAccruedLiabilitiesAndOtherLiabilities_ff7c4eb0-cf15-4c4e-8439-e418e2e8fe76" xlink:href="ari-20220930.xsd#ari_AccountsPayableAccruedLiabilitiesAndOtherLiabilities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_eaf6a41b-b2d3-4c39-8bf8-e238a7726454" xlink:to="loc_ari_AccountsPayableAccruedLiabilitiesAndOtherLiabilities_ff7c4eb0-cf15-4c4e-8439-e418e2e8fe76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingMortgageLoansParticipationLiabilitiesAmount_b976e3af-4891-450d-a572-c21c3ec9a5ca" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ParticipatingMortgageLoansParticipationLiabilitiesAmount"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_eaf6a41b-b2d3-4c39-8bf8-e238a7726454" xlink:to="loc_us-gaap_ParticipatingMortgageLoansParticipationLiabilitiesAmount_b976e3af-4891-450d-a572-c21c3ec9a5ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DueToRelatedPartiesCurrentAndNoncurrent_92486b2b-e16b-4642-ad39-4c36835dddc7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DueToRelatedPartiesCurrentAndNoncurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_eaf6a41b-b2d3-4c39-8bf8-e238a7726454" xlink:to="loc_us-gaap_DueToRelatedPartiesCurrentAndNoncurrent_92486b2b-e16b-4642-ad39-4c36835dddc7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtRelatedToRealEstateOwnedHeldForInvestment_b9ca158c-3e41-48d5-88bb-334ffbaa330a" xlink:href="ari-20220930.xsd#ari_DebtRelatedToRealEstateOwnedHeldForInvestment"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_eaf6a41b-b2d3-4c39-8bf8-e238a7726454" xlink:to="loc_ari_DebtRelatedToRealEstateOwnedHeldForInvestment_b9ca158c-3e41-48d5-88bb-334ffbaa330a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_5ec5b8e2-43a5-4ecc-94eb-f4d8993e14bb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_51b42280-0a8b-4a39-ba27-3126849bb0c3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_5ec5b8e2-43a5-4ecc-94eb-f4d8993e14bb" xlink:to="loc_us-gaap_PreferredStockValue_51b42280-0a8b-4a39-ba27-3126849bb0c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_f661cfa4-5099-4cfd-bea6-c4314fa8ad9d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_5ec5b8e2-43a5-4ecc-94eb-f4d8993e14bb" xlink:to="loc_us-gaap_CommonStockValue_f661cfa4-5099-4cfd-bea6-c4314fa8ad9d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_12dd1f11-42e5-45ea-b845-b82b45fe1897" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_5ec5b8e2-43a5-4ecc-94eb-f4d8993e14bb" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_12dd1f11-42e5-45ea-b845-b82b45fe1897" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_22ce2ce2-9172-4178-bb7a-c0d1971e1c96" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_5ec5b8e2-43a5-4ecc-94eb-f4d8993e14bb" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_22ce2ce2-9172-4178-bb7a-c0d1971e1c96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_ddefc75c-c3b6-4d19-8f66-6cf95cf9f886" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_1e3166c3-ea64-4039-bb49-bb8323f2a994" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ddefc75c-c3b6-4d19-8f66-6cf95cf9f886" xlink:to="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_1e3166c3-ea64-4039-bb49-bb8323f2a994" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeclosedAssets_be13d141-3767-43d3-95f9-6027295b3cae" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeclosedAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ddefc75c-c3b6-4d19-8f66-6cf95cf9f886" xlink:to="loc_us-gaap_ForeclosedAssets_be13d141-3767-43d3-95f9-6027295b3cae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_c6e6d022-7568-4be9-9b53-055419b1b333" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ddefc75c-c3b6-4d19-8f66-6cf95cf9f886" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_c6e6d022-7568-4be9-9b53-055419b1b333" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_49b31f5d-4094-43df-b0f1-471f50569010" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ddefc75c-c3b6-4d19-8f66-6cf95cf9f886" xlink:to="loc_us-gaap_OtherAssets_49b31f5d-4094-43df-b0f1-471f50569010" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_6de3b07e-4bea-4760-b4b3-3c72cf68e830" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ddefc75c-c3b6-4d19-8f66-6cf95cf9f886" xlink:to="loc_us-gaap_DerivativeAssets_6de3b07e-4bea-4760-b4b3-3c72cf68e830" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_RealEstateOwnedNetOfImpairment_a33b9f67-d113-4697-81bb-b97c2d032bd5" xlink:href="ari-20220930.xsd#ari_RealEstateOwnedNetOfImpairment"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_ddefc75c-c3b6-4d19-8f66-6cf95cf9f886" xlink:to="loc_ari_RealEstateOwnedNetOfImpairment_a33b9f67-d113-4697-81bb-b97c2d032bd5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_2206a911-8506-4c71-bfd2-8c14d6b208af" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_aa7ef6f8-049c-46ef-a1b3-1cf55340db29" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_2206a911-8506-4c71-bfd2-8c14d6b208af" xlink:to="loc_us-gaap_Liabilities_aa7ef6f8-049c-46ef-a1b3-1cf55340db29" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_7cfdc5f9-ffd9-4382-91ed-2498cefa7290" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_2206a911-8506-4c71-bfd2-8c14d6b208af" xlink:to="loc_us-gaap_CommitmentsAndContingencies_7cfdc5f9-ffd9-4382-91ed-2498cefa7290" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_104f9aa0-ba55-4bf0-b599-7a50b44db07f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_2206a911-8506-4c71-bfd2-8c14d6b208af" xlink:to="loc_us-gaap_StockholdersEquity_104f9aa0-ba55-4bf0-b599-7a50b44db07f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CondensedConsolidatedStatementofOperationsUnaudited" xlink:type="simple" xlink:href="ari-20220930.xsd#CondensedConsolidatedStatementofOperationsUnaudited"/>
  <link:calculationLink xlink:role="http://www.apolloreit.com/role/CondensedConsolidatedStatementofOperationsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_c16757d0-ad80-41b9-bdfa-4269178b12dd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_c8c9a2e2-89c3-4a51-bfdc-54c6f1cfad0a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_NetIncomeLossAvailableToCommonStockholdersBasic_c16757d0-ad80-41b9-bdfa-4269178b12dd" xlink:to="loc_us-gaap_NetIncomeLoss_c8c9a2e2-89c3-4a51-bfdc-54c6f1cfad0a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_2506fe20-7012-4da8-aa4c-077c18c4f675" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockDividendsIncomeStatementImpact"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_c16757d0-ad80-41b9-bdfa-4269178b12dd" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_2506fe20-7012-4da8-aa4c-077c18c4f675" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_f263e744-b7a1-41ce-9cb5-581e6a033c03" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_fc71568f-fb40-4863-b25a-36e6fa349492" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_f263e744-b7a1-41ce-9cb5-581e6a033c03" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_fc71568f-fb40-4863-b25a-36e6fa349492" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty_4377ade8-05b2-4b44-a74f-20f142bbb284" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_f263e744-b7a1-41ce-9cb5-581e6a033c03" xlink:to="loc_us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty_4377ade8-05b2-4b44-a74f-20f142bbb284" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_RealEstateOwnedOperatingCostsAndExpenses_c61b407c-d05f-43b1-be81-32f36c142d09" xlink:href="ari-20220930.xsd#ari_RealEstateOwnedOperatingCostsAndExpenses"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_f263e744-b7a1-41ce-9cb5-581e6a033c03" xlink:to="loc_ari_RealEstateOwnedOperatingCostsAndExpenses_c61b407c-d05f-43b1-be81-32f36c142d09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_b74aa462-4845-4da4-a37e-d83f553caf83" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_f263e744-b7a1-41ce-9cb5-581e6a033c03" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_b74aa462-4845-4da4-a37e-d83f553caf83" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_6f53fe59-b4bf-4137-91e9-bbeb3faa194c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansCommercial_3ca82a79-099f-4990-8998-ff4500bd0b25" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestAndFeeIncomeLoansCommercial"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_6f53fe59-b4bf-4137-91e9-bbeb3faa194c" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansCommercial_3ca82a79-099f-4990-8998-ff4500bd0b25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_InterestandFeeIncomeLoansSubordinateCommercialRealEstate_bd3d799e-eb72-42a6-be73-02258f3f5c6d" xlink:href="ari-20220930.xsd#ari_InterestandFeeIncomeLoansSubordinateCommercialRealEstate"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_6f53fe59-b4bf-4137-91e9-bbeb3faa194c" xlink:to="loc_ari_InterestandFeeIncomeLoansSubordinateCommercialRealEstate_bd3d799e-eb72-42a6-be73-02258f3f5c6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_a8c6aa45-cf5d-4266-8608-0cbef5736950" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_6f53fe59-b4bf-4137-91e9-bbeb3faa194c" xlink:to="loc_us-gaap_InterestExpense_a8c6aa45-cf5d-4266-8608-0cbef5736950" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_32a41ee3-e934-44e3-b6c7-ee3c237619ee" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Revenues"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_527888c2-40f8-4e1e-bd94-8d3173c70b40" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_32a41ee3-e934-44e3-b6c7-ee3c237619ee" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_527888c2-40f8-4e1e-bd94-8d3173c70b40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueNotFromContractWithCustomerExcludingInterestIncome_d2105944-6225-4da4-9789-cfd5fd062009" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueNotFromContractWithCustomerExcludingInterestIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_32a41ee3-e934-44e3-b6c7-ee3c237619ee" xlink:to="loc_us-gaap_RevenueNotFromContractWithCustomerExcludingInterestIncome_d2105944-6225-4da4-9789-cfd5fd062009" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_aa531225-f30a-4a2e-ae63-684d48cf87a4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_dd7afecc-4f19-49e9-9722-1fe89c77fb26" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Revenues"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_aa531225-f30a-4a2e-ae63-684d48cf87a4" xlink:to="loc_us-gaap_Revenues_dd7afecc-4f19-49e9-9722-1fe89c77fb26" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_3f73c08f-e538-40d6-808e-0034592d6d24" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_NetIncomeLoss_aa531225-f30a-4a2e-ae63-684d48cf87a4" xlink:to="loc_us-gaap_OperatingExpenses_3f73c08f-e538-40d6-808e-0034592d6d24" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncome_ce59e4eb-4b44-4d11-983a-461d56b41ce6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNonoperatingIncome"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_aa531225-f30a-4a2e-ae63-684d48cf87a4" xlink:to="loc_us-gaap_OtherNonoperatingIncome_ce59e4eb-4b44-4d11-983a-461d56b41ce6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_734fa22c-c49f-4421-b1b6-29dc24bf7caf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProvisionForLoanLossesExpensed"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_aa531225-f30a-4a2e-ae63-684d48cf87a4" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_734fa22c-c49f-4421-b1b6-29dc24bf7caf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtSecuritiesAvailableForSaleImpairmentAndRealizedLoss_b00b1bc4-06f2-49f0-816d-2aeaad97fedc" xlink:href="ari-20220930.xsd#ari_DebtSecuritiesAvailableForSaleImpairmentAndRealizedLoss"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_aa531225-f30a-4a2e-ae63-684d48cf87a4" xlink:to="loc_ari_DebtSecuritiesAvailableForSaleImpairmentAndRealizedLoss_b00b1bc4-06f2-49f0-816d-2aeaad97fedc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_780105f6-6e4f-4414-af93-68e7f9561f9e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeignCurrencyTransactionGainLossBeforeTax"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_aa531225-f30a-4a2e-ae63-684d48cf87a4" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_780105f6-6e4f-4414-af93-68e7f9561f9e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfDerivatives_095ae8b4-0708-499f-a2e7-cd5fc367f074" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainLossOnSaleOfDerivatives"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_aa531225-f30a-4a2e-ae63-684d48cf87a4" xlink:to="loc_us-gaap_GainLossOnSaleOfDerivatives_095ae8b4-0708-499f-a2e7-cd5fc367f074" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss_3238e772-87d8-4bb9-85f0-7597e2b1f832" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_aa531225-f30a-4a2e-ae63-684d48cf87a4" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss_3238e772-87d8-4bb9-85f0-7597e2b1f832" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_5dd75385-fe11-4dcf-be70-0675e0d9607a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_aa531225-f30a-4a2e-ae63-684d48cf87a4" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_5dd75385-fe11-4dcf-be70-0675e0d9607a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CondensedConsolidatedStatementofCashFlowsUnaudited" xlink:type="simple" xlink:href="ari-20220930.xsd#CondensedConsolidatedStatementofCashFlowsUnaudited"/>
  <link:calculationLink xlink:role="http://www.apolloreit.com/role/CondensedConsolidatedStatementofCashFlowsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7a4bdff0-699d-4c48-b496-efcc54ec30ac" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_5d9d5a27-e466-44a8-b8cd-782b73b04ba1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_7a4bdff0-699d-4c48-b496-efcc54ec30ac" xlink:to="loc_us-gaap_NetIncomeLoss_5d9d5a27-e466-44a8-b8cd-782b73b04ba1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfDebtDiscountPremium_5bad699c-b5eb-4dd7-bb4b-fbf42a366eb8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AmortizationOfDebtDiscountPremium"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7a4bdff0-699d-4c48-b496-efcc54ec30ac" xlink:to="loc_us-gaap_AmortizationOfDebtDiscountPremium_5bad699c-b5eb-4dd7-bb4b-fbf42a366eb8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_540c9cc8-21fc-4472-a4db-9661039e3e84" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7a4bdff0-699d-4c48-b496-efcc54ec30ac" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_540c9cc8-21fc-4472-a4db-9661039e3e84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_873c9454-7d91-4bad-a729-8a88cbf0865f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7a4bdff0-699d-4c48-b496-efcc54ec30ac" xlink:to="loc_us-gaap_ShareBasedCompensation_873c9454-7d91-4bad-a729-8a88cbf0865f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_7437b6f2-b2e3-46b5-874b-d17c63fe8664" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProvisionForLoanLossesExpensed"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7a4bdff0-699d-4c48-b496-efcc54ec30ac" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_7437b6f2-b2e3-46b5-874b-d17c63fe8664" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossRealized_b1e17269-1b8d-426c-8ffc-bc73a8acb19f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeignCurrencyTransactionGainLossRealized"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7a4bdff0-699d-4c48-b496-efcc54ec30ac" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossRealized_b1e17269-1b8d-426c-8ffc-bc73a8acb19f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_RealizedLossesAndImpairmentsOnInvestmentsAndRealEstateOwned_4be50cd0-6b9e-4f8f-bbfd-32ee070066e5" xlink:href="ari-20220930.xsd#ari_RealizedLossesAndImpairmentsOnInvestmentsAndRealEstateOwned"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7a4bdff0-699d-4c48-b496-efcc54ec30ac" xlink:to="loc_ari_RealizedLossesAndImpairmentsOnInvestmentsAndRealEstateOwned_4be50cd0-6b9e-4f8f-bbfd-32ee070066e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_IncreaseDecreaseFromPaidInKind_f212ae6a-3ebe-4103-9021-01f069d4b03b" xlink:href="ari-20220930.xsd#ari_IncreaseDecreaseFromPaidInKind"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7a4bdff0-699d-4c48-b496-efcc54ec30ac" xlink:to="loc_ari_IncreaseDecreaseFromPaidInKind_f212ae6a-3ebe-4103-9021-01f069d4b03b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_b322897a-98d0-4ee4-9be3-c8c2a2f988e9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7a4bdff0-699d-4c48-b496-efcc54ec30ac" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_b322897a-98d0-4ee4-9be3-c8c2a2f988e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_IncreaseDecreaseinAccountsPayableAccruedLiabilitiesandOtherLiabilities_516926ec-2947-40ea-a3b3-b3298084befe" xlink:href="ari-20220930.xsd#ari_IncreaseDecreaseinAccountsPayableAccruedLiabilitiesandOtherLiabilities"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7a4bdff0-699d-4c48-b496-efcc54ec30ac" xlink:to="loc_ari_IncreaseDecreaseinAccountsPayableAccruedLiabilitiesandOtherLiabilities_516926ec-2947-40ea-a3b3-b3298084befe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_fe986afa-eba3-42bb-9724-aaf7b6b1bb37" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7a4bdff0-699d-4c48-b496-efcc54ec30ac" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_fe986afa-eba3-42bb-9724-aaf7b6b1bb37" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnDerivatives_b28d0ea9-b138-4339-88d1-85ecff2cf2f9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_UnrealizedGainLossOnDerivatives"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7a4bdff0-699d-4c48-b496-efcc54ec30ac" xlink:to="loc_us-gaap_UnrealizedGainLossOnDerivatives_b28d0ea9-b138-4339-88d1-85ecff2cf2f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_GainLossFromUnconsolidatedJointVenture_01f0c6d7-45d6-4d55-9ce5-58bec65ea433" xlink:href="ari-20220930.xsd#ari_GainLossFromUnconsolidatedJointVenture"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7a4bdff0-699d-4c48-b496-efcc54ec30ac" xlink:to="loc_ari_GainLossFromUnconsolidatedJointVenture_01f0c6d7-45d6-4d55-9ce5-58bec65ea433" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_742a09f8-10df-47ab-9bb8-f2abec869dc3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7a4bdff0-699d-4c48-b496-efcc54ec30ac" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_742a09f8-10df-47ab-9bb8-f2abec869dc3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingCashClassifiedWithinRealEstateOwnedHeldForSaleIncludingExchangeRateEffect_34ad3747-c89c-48c3-ba7f-d58d0305ca45" xlink:href="ari-20220930.xsd#ari_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingCashClassifiedWithinRealEstateOwnedHeldForSaleIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4f5c01d2-a486-441c-8602-8de34b4a2947" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingCashClassifiedWithinRealEstateOwnedHeldForSaleIncludingExchangeRateEffect_34ad3747-c89c-48c3-ba7f-d58d0305ca45" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4f5c01d2-a486-441c-8602-8de34b4a2947" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_786d2d36-3f39-40cf-be4b-8aae95458247" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingCashClassifiedWithinRealEstateOwnedHeldForSaleIncludingExchangeRateEffect_34ad3747-c89c-48c3-ba7f-d58d0305ca45" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_786d2d36-3f39-40cf-be4b-8aae95458247" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4c8a4c1d-2907-433f-a0ce-f77df5a0da86" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingCashClassifiedWithinRealEstateOwnedHeldForSaleIncludingExchangeRateEffect_34ad3747-c89c-48c3-ba7f-d58d0305ca45" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4c8a4c1d-2907-433f-a0ce-f77df5a0da86" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_dc30cc50-cbe7-4208-aa80-34dafb757663" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_PaymentstoPurchaseCommercialRealEstateLoansHeldforsale_da696269-1d3f-493d-9473-71fc9e4ca954" xlink:href="ari-20220930.xsd#ari_PaymentstoPurchaseCommercialRealEstateLoansHeldforsale"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_dc30cc50-cbe7-4208-aa80-34dafb757663" xlink:to="loc_ari_PaymentstoPurchaseCommercialRealEstateLoansHeldforsale_da696269-1d3f-493d-9473-71fc9e4ca954" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_PaymentstoPurchaseCommercialRealEstateLoansHeldforsaleAddonFunding_9928b0d0-fc73-4e99-85f5-733d49c2130a" xlink:href="ari-20220930.xsd#ari_PaymentstoPurchaseCommercialRealEstateLoansHeldforsaleAddonFunding"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_dc30cc50-cbe7-4208-aa80-34dafb757663" xlink:to="loc_ari_PaymentstoPurchaseCommercialRealEstateLoansHeldforsaleAddonFunding_9928b0d0-fc73-4e99-85f5-733d49c2130a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_PaymentstoPurchaseSubordinateCommercialRealEstateLoansHeldforsaleAddonFunding_08833e3f-4691-4652-b6e0-6031e00c805e" xlink:href="ari-20220930.xsd#ari_PaymentstoPurchaseSubordinateCommercialRealEstateLoansHeldforsaleAddonFunding"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_dc30cc50-cbe7-4208-aa80-34dafb757663" xlink:to="loc_ari_PaymentstoPurchaseSubordinateCommercialRealEstateLoansHeldforsaleAddonFunding_08833e3f-4691-4652-b6e0-6031e00c805e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndCollectionOfNotesReceivable_361ffdce-7abf-4588-b4fd-f4ada809a126" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleAndCollectionOfNotesReceivable"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_dc30cc50-cbe7-4208-aa80-34dafb757663" xlink:to="loc_us-gaap_ProceedsFromSaleAndCollectionOfNotesReceivable_361ffdce-7abf-4588-b4fd-f4ada809a126" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_ProceedsfromCollectionofCommercialRealEstateLoansHeldforsale_2c9d053d-453c-4c5a-8d05-7d3ab5d70b45" xlink:href="ari-20220930.xsd#ari_ProceedsfromCollectionofCommercialRealEstateLoansHeldforsale"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_dc30cc50-cbe7-4208-aa80-34dafb757663" xlink:to="loc_ari_ProceedsfromCollectionofCommercialRealEstateLoansHeldforsale_2c9d053d-453c-4c5a-8d05-7d3ab5d70b45" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLoanOriginations1_4b8698d6-bcf7-46b1-8086-0b36f4c7900a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromLoanOriginations1"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_dc30cc50-cbe7-4208-aa80-34dafb757663" xlink:to="loc_us-gaap_ProceedsFromLoanOriginations1_4b8698d6-bcf7-46b1-8086-0b36f4c7900a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_GainLossInCollateralHeldInvestingActivities_f6071379-6688-446d-b97d-c4de2fa5d33a" xlink:href="ari-20220930.xsd#ari_GainLossInCollateralHeldInvestingActivities"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_dc30cc50-cbe7-4208-aa80-34dafb757663" xlink:to="loc_ari_GainLossInCollateralHeldInvestingActivities_f6071379-6688-446d-b97d-c4de2fa5d33a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToDevelopRealEstateAssets_fab24cc4-dfc4-4690-9db1-f8b40a6cb4bf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToDevelopRealEstateAssets"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_dc30cc50-cbe7-4208-aa80-34dafb757663" xlink:to="loc_us-gaap_PaymentsToDevelopRealEstateAssets_fab24cc4-dfc4-4690-9db1-f8b40a6cb4bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfOtherRealEstate_b92fa392-2ce2-4eaa-9719-947be7a33f6e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleOfOtherRealEstate"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_dc30cc50-cbe7-4208-aa80-34dafb757663" xlink:to="loc_us-gaap_ProceedsFromSaleOfOtherRealEstate_b92fa392-2ce2-4eaa-9719-947be7a33f6e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_IncreaseDecreaseInRealEstateHeldForInvestment_47453410-8e59-4d51-aa46-0f968618995d" xlink:href="ari-20220930.xsd#ari_IncreaseDecreaseInRealEstateHeldForInvestment"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_dc30cc50-cbe7-4208-aa80-34dafb757663" xlink:to="loc_ari_IncreaseDecreaseInRealEstateHeldForInvestment_47453410-8e59-4d51-aa46-0f968618995d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_0acff4ff-d38f-4ceb-a697-90c390489846" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_IncreaseInCashClassifiedWithinRealEstateOwnedHeldForSale_b1e98479-6d87-4387-a1a4-0e04677b1124" xlink:href="ari-20220930.xsd#ari_IncreaseInCashClassifiedWithinRealEstateOwnedHeldForSale"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_0acff4ff-d38f-4ceb-a697-90c390489846" xlink:to="loc_ari_IncreaseInCashClassifiedWithinRealEstateOwnedHeldForSale_b1e98479-6d87-4387-a1a4-0e04677b1124" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingCashClassifiedWithinRealEstateOwnedHeldForSaleIncludingExchangeRateEffect_a354b40b-732f-4e6b-912c-2633965dac73" xlink:href="ari-20220930.xsd#ari_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingCashClassifiedWithinRealEstateOwnedHeldForSaleIncludingExchangeRateEffect"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_0acff4ff-d38f-4ceb-a697-90c390489846" xlink:to="loc_ari_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingCashClassifiedWithinRealEstateOwnedHeldForSaleIncludingExchangeRateEffect_a354b40b-732f-4e6b-912c-2633965dac73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dc4a36d6-ca09-4c80-9e62-62fd0834b9fe" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfStockIssuanceCosts_db813571-42a7-4cf3-adc8-127a82d81237" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfStockIssuanceCosts"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dc4a36d6-ca09-4c80-9e62-62fd0834b9fe" xlink:to="loc_us-gaap_PaymentsOfStockIssuanceCosts_db813571-42a7-4cf3-adc8-127a82d81237" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_ProceedsFromSecuritiesSoldUnderAgreementsToRepurchase_6238562d-61d6-4ecd-8519-76565c513662" xlink:href="ari-20220930.xsd#ari_ProceedsFromSecuritiesSoldUnderAgreementsToRepurchase"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dc4a36d6-ca09-4c80-9e62-62fd0834b9fe" xlink:to="loc_ari_ProceedsFromSecuritiesSoldUnderAgreementsToRepurchase_6238562d-61d6-4ecd-8519-76565c513662" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_PaymentsForSecuritiesSoldUnderAgreementsToRepurchase_ac17e6f4-0c69-4f9f-84eb-e7158906cca0" xlink:href="ari-20220930.xsd#ari_PaymentsForSecuritiesSoldUnderAgreementsToRepurchase"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dc4a36d6-ca09-4c80-9e62-62fd0834b9fe" xlink:to="loc_ari_PaymentsForSecuritiesSoldUnderAgreementsToRepurchase_ac17e6f4-0c69-4f9f-84eb-e7158906cca0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfSecuredDebt_09c869be-2b7f-4253-b090-5096be97585e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfSecuredDebt"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dc4a36d6-ca09-4c80-9e62-62fd0834b9fe" xlink:to="loc_us-gaap_RepaymentsOfSecuredDebt_09c869be-2b7f-4253-b090-5096be97585e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSecuredDebt_1e30ba9b-a281-461b-b62c-c4a02425079a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromIssuanceOfSecuredDebt"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dc4a36d6-ca09-4c80-9e62-62fd0834b9fe" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSecuredDebt_1e30ba9b-a281-461b-b62c-c4a02425079a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfFinancingCosts_f1537dda-635f-4e5f-9c83-fb90a0a9753d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfFinancingCosts"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dc4a36d6-ca09-4c80-9e62-62fd0834b9fe" xlink:to="loc_us-gaap_PaymentsOfFinancingCosts_f1537dda-635f-4e5f-9c83-fb90a0a9753d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_7db410c3-4f78-4bfc-9de7-3919d923b772" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dc4a36d6-ca09-4c80-9e62-62fd0834b9fe" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_7db410c3-4f78-4bfc-9de7-3919d923b772" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_0d6bceb1-0d57-4c0b-b38a-e3fac4f6c145" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dc4a36d6-ca09-4c80-9e62-62fd0834b9fe" xlink:to="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_0d6bceb1-0d57-4c0b-b38a-e3fac4f6c145" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromConvertibleDebt_8da77bdd-6b80-42dd-8bda-aaa32af6ae29" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromConvertibleDebt"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dc4a36d6-ca09-4c80-9e62-62fd0834b9fe" xlink:to="loc_us-gaap_ProceedsFromConvertibleDebt_8da77bdd-6b80-42dd-8bda-aaa32af6ae29" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_RepaymentOfMortgageRelatedToRealEstateOwnedHeldForInvestment_1203f37d-64bc-4be7-804b-ed12578652b8" xlink:href="ari-20220930.xsd#ari_RepaymentOfMortgageRelatedToRealEstateOwnedHeldForInvestment"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dc4a36d6-ca09-4c80-9e62-62fd0834b9fe" xlink:to="loc_ari_RepaymentOfMortgageRelatedToRealEstateOwnedHeldForInvestment_1203f37d-64bc-4be7-804b-ed12578652b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_1ad79761-4f33-4c4d-87f3-e4eaab689a63" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromPaymentsForOtherFinancingActivities"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dc4a36d6-ca09-4c80-9e62-62fd0834b9fe" xlink:to="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_1ad79761-4f33-4c4d-87f3-e4eaab689a63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfConvertibleDebt_b9d90012-e5e2-48ae-870b-a6bbe4be8733" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfConvertibleDebt"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dc4a36d6-ca09-4c80-9e62-62fd0834b9fe" xlink:to="loc_us-gaap_RepaymentsOfConvertibleDebt_b9d90012-e5e2-48ae-870b-a6bbe4be8733" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_ProceedsFromMortgageRelatedToRealEstateOwned_98c50dc6-abe7-4dcd-bf3e-d2fed2d7b9d0" xlink:href="ari-20220930.xsd#ari_ProceedsFromMortgageRelatedToRealEstateOwned"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dc4a36d6-ca09-4c80-9e62-62fd0834b9fe" xlink:to="loc_ari_ProceedsFromMortgageRelatedToRealEstateOwned_98c50dc6-abe7-4dcd-bf3e-d2fed2d7b9d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_086bc0f2-6bb7-46e6-b677-fb22a4d21233" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_dc4a36d6-ca09-4c80-9e62-62fd0834b9fe" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_086bc0f2-6bb7-46e6-b677-fb22a4d21233" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetScheduleofMortgageLoansbyPropertyTypeandGeographicDistributionDetails" xlink:type="simple" xlink:href="ari-20220930.xsd#CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetScheduleofMortgageLoansbyPropertyTypeandGeographicDistributionDetails"/>
  <link:calculationLink xlink:role="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetScheduleofMortgageLoansbyPropertyTypeandGeographicDistributionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_5ec00a29-27dd-4d31-a86a-268bd93a2a70" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_d7c8bcf0-6fad-4bf3-acaf-f35031c60a25" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_5ec00a29-27dd-4d31-a86a-268bd93a2a70" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_d7c8bcf0-6fad-4bf3-acaf-f35031c60a25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_b756be9d-6f14-4df3-bdc9-9cf2214fcd66" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_5ec00a29-27dd-4d31-a86a-268bd93a2a70" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_b756be9d-6f14-4df3-bdc9-9cf2214fcd66" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetAllocationofCarryingValueofLoanPortfolioBasedonInternalRiskRatingsDetails" xlink:type="simple" xlink:href="ari-20220930.xsd#CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetAllocationofCarryingValueofLoanPortfolioBasedonInternalRiskRatingsDetails"/>
  <link:calculationLink xlink:role="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetAllocationofCarryingValueofLoanPortfolioBasedonInternalRiskRatingsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_0a9d3564-700a-462a-bba8-60bf4a0869c8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_2511ca8f-5122-4a79-b038-8e7de8ddf15e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_0a9d3564-700a-462a-bba8-60bf4a0869c8" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_2511ca8f-5122-4a79-b038-8e7de8ddf15e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_70527723-3b70-406e-98a4-b5ddb7698929" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_0a9d3564-700a-462a-bba8-60bf4a0869c8" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_70527723-3b70-406e-98a4-b5ddb7698929" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_aa0248ff-be11-4c0d-ab7f-b0bb3fae88e6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_0a9d3564-700a-462a-bba8-60bf4a0869c8" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_aa0248ff-be11-4c0d-ab7f-b0bb3fae88e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_7bec709f-c42d-4241-8000-e3ce5fd503ff" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_0a9d3564-700a-462a-bba8-60bf4a0869c8" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_7bec709f-c42d-4241-8000-e3ce5fd503ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_4d7f7d48-9b5d-4c02-bde1-81962842e9ee" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_0a9d3564-700a-462a-bba8-60bf4a0869c8" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_4d7f7d48-9b5d-4c02-bde1-81962842e9ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_f423bb2a-9db9-4b38-99f6-1e6fe1b2e039" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_0a9d3564-700a-462a-bba8-60bf4a0869c8" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_f423bb2a-9db9-4b38-99f6-1e6fe1b2e039" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetCECLAllowanceasPercentageofAmortizedCostandTotalCommitmentDetails" xlink:type="simple" xlink:href="ari-20220930.xsd#CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetCECLAllowanceasPercentageofAmortizedCostandTotalCommitmentDetails"/>
  <link:calculationLink xlink:role="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetCECLAllowanceasPercentageofAmortizedCostandTotalCommitmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossExpenseReversal_9e7e1931-ed7e-4334-b27f-e8356b05396e" xlink:href="ari-20220930.xsd#ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossExpenseReversal"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableFundedCreditLossExpenseReversal_aaeddf7f-8425-4856-aca7-dc51328d800d" xlink:href="ari-20220930.xsd#ari_FinancingReceivableFundedCreditLossExpenseReversal"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossExpenseReversal_9e7e1931-ed7e-4334-b27f-e8356b05396e" xlink:to="loc_ari_FinancingReceivableFundedCreditLossExpenseReversal_aaeddf7f-8425-4856-aca7-dc51328d800d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal_09fb3055-ea4d-4468-9cfc-e9c479390e8b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossExpenseReversal_9e7e1931-ed7e-4334-b27f-e8356b05396e" xlink:to="loc_us-gaap_OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal_09fb3055-ea4d-4468-9cfc-e9c479390e8b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetWriteOffs_3d1cabc3-3fcd-4d26-913f-487cc4d7c5e5" xlink:href="ari-20220930.xsd#ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetWriteOffs"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableFundedAllowanceForWriteOffs_fb6f6a03-6871-423a-a6bf-563200d87a0c" xlink:href="ari-20220930.xsd#ari_FinancingReceivableFundedAllowanceForWriteOffs"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetWriteOffs_3d1cabc3-3fcd-4d26-913f-487cc4d7c5e5" xlink:to="loc_ari_FinancingReceivableFundedAllowanceForWriteOffs_fb6f6a03-6871-423a-a6bf-563200d87a0c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_OffBalanceSheetCreditLossLiabilityRealizedLoss_9ce3f96c-dd9f-4283-b98b-e80c3c985f0a" xlink:href="ari-20220930.xsd#ari_OffBalanceSheetCreditLossLiabilityRealizedLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetWriteOffs_3d1cabc3-3fcd-4d26-913f-487cc4d7c5e5" xlink:to="loc_ari_OffBalanceSheetCreditLossLiabilityRealizedLoss_9ce3f96c-dd9f-4283-b98b-e80c3c985f0a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiability_d3bd0361-db1c-4222-8e5d-c6c941d13ec5" xlink:href="ari-20220930.xsd#ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableFundedAllowanceforCreditLoss_908f3a7b-1b36-4237-abc9-e5c933d2acb9" xlink:href="ari-20220930.xsd#ari_FinancingReceivableFundedAllowanceforCreditLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiability_d3bd0361-db1c-4222-8e5d-c6c941d13ec5" xlink:to="loc_ari_FinancingReceivableFundedAllowanceforCreditLoss_908f3a7b-1b36-4237-abc9-e5c933d2acb9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffBalanceSheetCreditLossLiability_deafac08-9772-4cef-8431-ea8aea1b86b6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OffBalanceSheetCreditLossLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiability_d3bd0361-db1c-4222-8e5d-c6c941d13ec5" xlink:to="loc_us-gaap_OffBalanceSheetCreditLossLiability_deafac08-9772-4cef-8431-ea8aea1b86b6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetCurrentExpectedCreditLossesDetails" xlink:type="simple" xlink:href="ari-20220930.xsd#CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetCurrentExpectedCreditLossesDetails"/>
  <link:calculationLink xlink:role="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetCurrentExpectedCreditLossesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiability_23169a74-8f2b-476f-8ef7-c3b7d87a498a" xlink:href="ari-20220930.xsd#ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffBalanceSheetCreditLossLiability_cabcebf6-4f83-45eb-8a7d-d53411db016b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OffBalanceSheetCreditLossLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiability_23169a74-8f2b-476f-8ef7-c3b7d87a498a" xlink:to="loc_us-gaap_OffBalanceSheetCreditLossLiability_cabcebf6-4f83-45eb-8a7d-d53411db016b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_157bc664-4035-4061-9c03-264e700f6c88" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AllowanceForLoanAndLeaseLossesRealEstate"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiability_23169a74-8f2b-476f-8ef7-c3b7d87a498a" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_157bc664-4035-4061-9c03-264e700f6c88" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/AssetsandLiabilitiesRelatedtoRealEstateOwnedScheduleofRealEstateOwnedFixedAssetsDetails" xlink:type="simple" xlink:href="ari-20220930.xsd#AssetsandLiabilitiesRelatedtoRealEstateOwnedScheduleofRealEstateOwnedFixedAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.apolloreit.com/role/AssetsandLiabilitiesRelatedtoRealEstateOwnedScheduleofRealEstateOwnedFixedAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_4e04c723-6e0b-49d6-98a3-39ea4060f6f5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AccountsPayableAccruedLiabilitiesAndOtherLiabilitiesOfRealEstateOwned_b531cb6c-7101-4d97-94c2-dc6547e3eb1b" xlink:href="ari-20220930.xsd#ari_AccountsPayableAccruedLiabilitiesAndOtherLiabilitiesOfRealEstateOwned"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_4e04c723-6e0b-49d6-98a3-39ea4060f6f5" xlink:to="loc_ari_AccountsPayableAccruedLiabilitiesAndOtherLiabilitiesOfRealEstateOwned_b531cb6c-7101-4d97-94c2-dc6547e3eb1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_d85b7a8f-c120-4fed-becf-46e92f9297d2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_58eee503-bcdd-444f-b095-a4464fc57ec7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_d85b7a8f-c120-4fed-becf-46e92f9297d2" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_58eee503-bcdd-444f-b095-a4464fc57ec7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedBuildings_76099811-3f07-4add-81e1-ad150ab572ef" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedBuildings"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_d85b7a8f-c120-4fed-becf-46e92f9297d2" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedBuildings_76099811-3f07-4add-81e1-ad150ab572ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLand_4847bf70-6001-4bd6-99a0-c7bcf4208b2e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLand"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_d85b7a8f-c120-4fed-becf-46e92f9297d2" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLand_4847bf70-6001-4bd6-99a0-c7bcf4208b2e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedEquipment_6d3a3286-920b-475b-84de-2720ece30db1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedEquipment"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_d85b7a8f-c120-4fed-becf-46e92f9297d2" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedEquipment_6d3a3286-920b-475b-84de-2720ece30db1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealEstateOwnedAccumulatedDepreciation_f709df92-ee5e-46a3-b09e-a336369eb74b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RealEstateOwnedAccumulatedDepreciation"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_d85b7a8f-c120-4fed-becf-46e92f9297d2" xlink:to="loc_us-gaap_RealEstateOwnedAccumulatedDepreciation_f709df92-ee5e-46a3-b09e-a336369eb74b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_6878be99-e4ef-4870-b881-4466649a7c6f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_d85b7a8f-c120-4fed-becf-46e92f9297d2" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_6878be99-e4ef-4870-b881-4466649a7c6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_dddb1ecd-3e44-4442-889c-43c921b851df" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_10cf418f-3687-4b7f-89f5-51b89bd52f2f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_dddb1ecd-3e44-4442-889c-43c921b851df" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_10cf418f-3687-4b7f-89f5-51b89bd52f2f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_e464ffc6-dd5b-4db0-b198-1d3e397a9e61" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_dddb1ecd-3e44-4442-889c-43c921b851df" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_e464ffc6-dd5b-4db0-b198-1d3e397a9e61" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/AssetsandLiabilitiesRelatedtoRealEstateOwnedIncomeStatementImpactDetails" xlink:type="simple" xlink:href="ari-20220930.xsd#AssetsandLiabilitiesRelatedtoRealEstateOwnedIncomeStatementImpactDetails"/>
  <link:calculationLink xlink:role="http://www.apolloreit.com/role/AssetsandLiabilitiesRelatedtoRealEstateOwnedIncomeStatementImpactDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueNotFromContractWithCustomer_e784f197-c9fa-4989-b8a5-bf4d7b3e13d6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueNotFromContractWithCustomer"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_728184d1-71f8-4332-a385-3784e6452531" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RevenueNotFromContractWithCustomer_e784f197-c9fa-4989-b8a5-bf4d7b3e13d6" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_728184d1-71f8-4332-a385-3784e6452531" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperations_5fe7df63-147e-4607-ba73-cff2da121420" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperations"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RevenueNotFromContractWithCustomer_e784f197-c9fa-4989-b8a5-bf4d7b3e13d6" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperations_5fe7df63-147e-4607-ba73-cff2da121420" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueNotFromContractWithCustomerExcludingInterestIncome_f59cefe1-7750-495c-8418-f69f492b79b9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueNotFromContractWithCustomerExcludingInterestIncome"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RevenueNotFromContractWithCustomer_e784f197-c9fa-4989-b8a5-bf4d7b3e13d6" xlink:to="loc_us-gaap_RevenueNotFromContractWithCustomerExcludingInterestIncome_f59cefe1-7750-495c-8418-f69f492b79b9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/OtherAssetsDetails" xlink:type="simple" xlink:href="ari-20220930.xsd#OtherAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.apolloreit.com/role/OtherAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_b22dbd69-d532-4a88-ba9d-0d14d9e422f4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestReceivable_edf7c386-7a11-4e13-9b44-8390bd284758" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestReceivable"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_b22dbd69-d532-4a88-ba9d-0d14d9e422f4" xlink:to="loc_us-gaap_InterestReceivable_edf7c386-7a11-4e13-9b44-8390bd284758" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_ProceedsFromSaleOfLoansHeldForSaleReclassifiedIntoOtherAssets_701ea0ff-22cf-4779-a37d-c76d80baf6c2" xlink:href="ari-20220930.xsd#ari_ProceedsFromSaleOfLoansHeldForSaleReclassifiedIntoOtherAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_b22dbd69-d532-4a88-ba9d-0d14d9e422f4" xlink:to="loc_ari_ProceedsFromSaleOfLoansHeldForSaleReclassifiedIntoOtherAssets_701ea0ff-22cf-4779-a37d-c76d80baf6c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMiscellaneous_2651b9c5-3ede-49e2-b650-47a2680a15ce" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsMiscellaneous"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_b22dbd69-d532-4a88-ba9d-0d14d9e422f4" xlink:to="loc_us-gaap_OtherAssetsMiscellaneous_2651b9c5-3ede-49e2-b650-47a2680a15ce" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/SecuredDebtArrangementsNetRemainingMaturitiesofBorrowingsDetails" xlink:type="simple" xlink:href="ari-20220930.xsd#SecuredDebtArrangementsNetRemainingMaturitiesofBorrowingsDetails"/>
  <link:calculationLink xlink:role="http://www.apolloreit.com/role/SecuredDebtArrangementsNetRemainingMaturitiesofBorrowingsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_e4b15428-2795-49f6-9a79-b56c2ad4dd85" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_45453b4b-9c8d-4360-862d-37f57a877554" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_e4b15428-2795-49f6-9a79-b56c2ad4dd85" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_45453b4b-9c8d-4360-862d-37f57a877554" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturingInYearsTwoAndThree_ef4bd766-bd78-452b-ad5d-6496c4b270f8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtMaturingInYearsTwoAndThree"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_e4b15428-2795-49f6-9a79-b56c2ad4dd85" xlink:to="loc_us-gaap_LongTermDebtMaturingInYearsTwoAndThree_ef4bd766-bd78-452b-ad5d-6496c4b270f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturingInYearsFourAndFive_b1800132-4ad9-4096-8c73-a0768876f813" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtMaturingInYearsFourAndFive"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_e4b15428-2795-49f6-9a79-b56c2ad4dd85" xlink:to="loc_us-gaap_LongTermDebtMaturingInYearsFourAndFive_b1800132-4ad9-4096-8c73-a0768876f813" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_8baefa65-2a7b-4a1d-a034-8bc708fd2252" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_e4b15428-2795-49f6-9a79-b56c2ad4dd85" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_8baefa65-2a7b-4a1d-a034-8bc708fd2252" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/DerivativesSummaryofAmountsRecognizedonConsolidatedStatementsofOperationsRelatedtoCompanysDerivativesDetails" xlink:type="simple" xlink:href="ari-20220930.xsd#DerivativesSummaryofAmountsRecognizedonConsolidatedStatementsofOperationsRelatedtoCompanysDerivativesDetails"/>
  <link:calculationLink xlink:role="http://www.apolloreit.com/role/DerivativesSummaryofAmountsRecognizedonConsolidatedStatementsofOperationsRelatedtoCompanysDerivativesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfDerivatives_a020ef62-f02b-4250-bc1a-ea17f1a4151d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainLossOnSaleOfDerivatives"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_0e973fef-306f-4c07-beb5-44d42799b4c3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeGainLossOnDerivativeNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GainLossOnSaleOfDerivatives_a020ef62-f02b-4250-bc1a-ea17f1a4151d" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_0e973fef-306f-4c07-beb5-44d42799b4c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnDerivatives_515283c2-cc4f-44c6-b8a5-727ab9cf5864" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_UnrealizedGainLossOnDerivatives"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GainLossOnSaleOfDerivatives_a020ef62-f02b-4250-bc1a-ea17f1a4151d" xlink:to="loc_us-gaap_UnrealizedGainLossOnDerivatives_515283c2-cc4f-44c6-b8a5-727ab9cf5864" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/DerivativesSummarizesGrossAssetandLiabilityAmountsRelatedtoDerivativesDetails" xlink:type="simple" xlink:href="ari-20220930.xsd#DerivativesSummarizesGrossAssetandLiabilityAmountsRelatedtoDerivativesDetails"/>
  <link:calculationLink xlink:role="http://www.apolloreit.com/role/DerivativesSummarizesGrossAssetandLiabilityAmountsRelatedtoDerivativesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_8c6cbdfe-b916-4fed-bec3-e54a677665ff" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_0ae5c5e5-1995-41d2-bab0-cd95862a3e07" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_8c6cbdfe-b916-4fed-bec3-e54a677665ff" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_0ae5c5e5-1995-41d2-bab0-cd95862a3e07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_59aa5443-9c97-4d34-bf80-6d46f4fa068e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_8c6cbdfe-b916-4fed-bec3-e54a677665ff" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_59aa5443-9c97-4d34-bf80-6d46f4fa068e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/AccountsPayableAccruedExpensesandOtherLiabilitiesDetails" xlink:type="simple" xlink:href="ari-20220930.xsd#AccountsPayableAccruedExpensesandOtherLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.apolloreit.com/role/AccountsPayableAccruedExpensesandOtherLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ari_AccountsPayableAccruedLiabilitiesAndOtherLiabilities_7968e8f6-71f0-4d94-8be8-aa6db5dddfe6" xlink:href="ari-20220930.xsd#ari_AccountsPayableAccruedLiabilitiesAndOtherLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueOfCollateral_a29bd70d-53c8-41b7-992c-9e07430a10eb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeAssetFairValueOfCollateral"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_AccountsPayableAccruedLiabilitiesAndOtherLiabilities_7968e8f6-71f0-4d94-8be8-aa6db5dddfe6" xlink:to="loc_us-gaap_DerivativeAssetFairValueOfCollateral_a29bd70d-53c8-41b7-992c-9e07430a10eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DividendsPayableIncludingPreferredStockDividends_831049db-dca4-4dcb-8a50-67878d3ea6b6" xlink:href="ari-20220930.xsd#ari_DividendsPayableIncludingPreferredStockDividends"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_AccountsPayableAccruedLiabilitiesAndOtherLiabilities_7968e8f6-71f0-4d94-8be8-aa6db5dddfe6" xlink:to="loc_ari_DividendsPayableIncludingPreferredStockDividends_831049db-dca4-4dcb-8a50-67878d3ea6b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_3cb96efa-2aa9-4b4d-91b8-91080c434208" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestPayableCurrentAndNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_AccountsPayableAccruedLiabilitiesAndOtherLiabilities_7968e8f6-71f0-4d94-8be8-aa6db5dddfe6" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_3cb96efa-2aa9-4b4d-91b8-91080c434208" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_c8282b65-c7f4-4e67-ad38-ff3d2330b157" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsPayableAndOtherAccruedLiabilities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_AccountsPayableAccruedLiabilitiesAndOtherLiabilities_7968e8f6-71f0-4d94-8be8-aa6db5dddfe6" xlink:to="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_c8282b65-c7f4-4e67-ad38-ff3d2330b157" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffBalanceSheetCreditLossLiability_1e06d268-30dc-460b-83ac-0a54cd66ec70" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OffBalanceSheetCreditLossLiability"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_AccountsPayableAccruedLiabilitiesAndOtherLiabilities_7968e8f6-71f0-4d94-8be8-aa6db5dddfe6" xlink:to="loc_us-gaap_OffBalanceSheetCreditLossLiability_1e06d268-30dc-460b-83ac-0a54cd66ec70" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/NetIncomeperShareBasicandDilutedNetIncomeperShareofCommonStockUsingTwoClassMethodDetails" xlink:type="simple" xlink:href="ari-20220930.xsd#NetIncomeperShareBasicandDilutedNetIncomeperShareofCommonStockUsingTwoClassMethodDetails"/>
  <link:calculationLink xlink:role="http://www.apolloreit.com/role/NetIncomeperShareBasicandDilutedNetIncomeperShareofCommonStockUsingTwoClassMethodDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToParentDiluted_9764e5c3-15d9-446f-9638-18225c94fd81" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLossAttributableToParentDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_68b5b74e-4596-46d1-a9a5-22954f269bc8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAttributableToParentDiluted_9764e5c3-15d9-446f-9638-18225c94fd81" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_68b5b74e-4596-46d1-a9a5-22954f269bc8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_e3f4ae62-26c7-4378-9b44-d66be3c1dfd3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAttributableToParentDiluted_9764e5c3-15d9-446f-9638-18225c94fd81" xlink:to="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_e3f4ae62-26c7-4378-9b44-d66be3c1dfd3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestOnConvertibleDebtNetOfTax_39f70104-abdb-4bf6-a65c-55f80c37da91" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestOnConvertibleDebtNetOfTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAttributableToParentDiluted_9764e5c3-15d9-446f-9638-18225c94fd81" xlink:to="loc_us-gaap_InterestOnConvertibleDebtNetOfTax_39f70104-abdb-4bf6-a65c-55f80c37da91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_NetIncomeLossAttributabletoParentBasic_708f11f1-0103-4ad3-a35e-6c57411736d3" xlink:href="ari-20220930.xsd#ari_NetIncomeLossAttributabletoParentBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_a8e16fe6-d8b3-4fa2-bc78-d7b6003bf013" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_NetIncomeLossAttributabletoParentBasic_708f11f1-0103-4ad3-a35e-6c57411736d3" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_a8e16fe6-d8b3-4fa2-bc78-d7b6003bf013" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_23aab6a5-85f1-4a27-aa1e-1c6a96bbd7ef" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_NetIncomeLossAttributabletoParentBasic_708f11f1-0103-4ad3-a35e-6c57411736d3" xlink:to="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_23aab6a5-85f1-4a27-aa1e-1c6a96bbd7ef" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
