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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2023 Workiva-->
<!--r:2eaa9b89-33a5-4d9e-afee-2380f1edf3b9,g:58b2e239-10cd-4d7e-8433-977026b84aad-->
<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-20230331.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_b737f0e4-e378-4ebb-8940-48a8a1bf1d2e" 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_f9136872-0008-46e4-b676-a6607559611f" 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_b737f0e4-e378-4ebb-8940-48a8a1bf1d2e" xlink:to="loc_us-gaap_SecuredDebt_f9136872-0008-46e4-b676-a6607559611f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotes_b5d6ba04-0446-46a7-b414-3d994bcc16cb" 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_b737f0e4-e378-4ebb-8940-48a8a1bf1d2e" xlink:to="loc_us-gaap_SeniorNotes_b5d6ba04-0446-46a7-b414-3d994bcc16cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AccountsPayableAccruedLiabilitiesAndOtherLiabilities_bb7953a7-316f-4e5c-a3dc-47250ee08ac4" xlink:href="ari-20230331.xsd#ari_AccountsPayableAccruedLiabilitiesAndOtherLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_b737f0e4-e378-4ebb-8940-48a8a1bf1d2e" xlink:to="loc_ari_AccountsPayableAccruedLiabilitiesAndOtherLiabilities_bb7953a7-316f-4e5c-a3dc-47250ee08ac4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebt_28bc2a25-2db9-4e99-8b8b-b337f950fd11" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConvertibleDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_b737f0e4-e378-4ebb-8940-48a8a1bf1d2e" xlink:to="loc_us-gaap_ConvertibleDebt_28bc2a25-2db9-4e99-8b8b-b337f950fd11" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DebtRelatedToRealEstateOwnedHeldForInvestment_709fcd60-ed98-4149-88a1-cc9c5aa3f5a0" xlink:href="ari-20230331.xsd#ari_DebtRelatedToRealEstateOwnedHeldForInvestment"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_b737f0e4-e378-4ebb-8940-48a8a1bf1d2e" xlink:to="loc_ari_DebtRelatedToRealEstateOwnedHeldForInvestment_709fcd60-ed98-4149-88a1-cc9c5aa3f5a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingMortgageLoansParticipationLiabilitiesAmount_8c525838-42fb-49f8-a831-1fa31d46bbc8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ParticipatingMortgageLoansParticipationLiabilitiesAmount"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_b737f0e4-e378-4ebb-8940-48a8a1bf1d2e" xlink:to="loc_us-gaap_ParticipatingMortgageLoansParticipationLiabilitiesAmount_8c525838-42fb-49f8-a831-1fa31d46bbc8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DueToRelatedPartiesCurrentAndNoncurrent_93f6c0c3-8334-4f3f-ad3d-b15a1d4d31a5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DueToRelatedPartiesCurrentAndNoncurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_b737f0e4-e378-4ebb-8940-48a8a1bf1d2e" xlink:to="loc_us-gaap_DueToRelatedPartiesCurrentAndNoncurrent_93f6c0c3-8334-4f3f-ad3d-b15a1d4d31a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_4f19f929-537a-4070-be8c-2b98d79fb761" 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_5ce1b531-98a7-4589-9e5e-1ea458953a96" 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_4f19f929-537a-4070-be8c-2b98d79fb761" xlink:to="loc_us-gaap_PreferredStockValue_5ce1b531-98a7-4589-9e5e-1ea458953a96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_0f09968e-aa0f-4346-bcac-34a16333ebeb" 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_4f19f929-537a-4070-be8c-2b98d79fb761" xlink:to="loc_us-gaap_CommonStockValue_0f09968e-aa0f-4346-bcac-34a16333ebeb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_8046bcec-a7fe-4181-a348-619d48a9b1ac" 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_4f19f929-537a-4070-be8c-2b98d79fb761" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_8046bcec-a7fe-4181-a348-619d48a9b1ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_fa469124-9983-40f7-8cdb-46215827412c" 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_4f19f929-537a-4070-be8c-2b98d79fb761" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_fa469124-9983-40f7-8cdb-46215827412c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_b9508b4b-c75d-458f-881c-5c32cffc7823" 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_CashAndCashEquivalentsAtCarryingValue_1caccda2-ac9b-44aa-8468-a909406cedac" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_b9508b4b-c75d-458f-881c-5c32cffc7823" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1caccda2-ac9b-44aa-8468-a909406cedac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_b32b6b37-f405-4a17-a5f5-13334a7ba26f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_b9508b4b-c75d-458f-881c-5c32cffc7823" xlink:to="loc_us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet_b32b6b37-f405-4a17-a5f5-13334a7ba26f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeclosedAssets_839bd9c1-5872-411e-a3e6-dccc1731af41" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeclosedAssets"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_b9508b4b-c75d-458f-881c-5c32cffc7823" xlink:to="loc_us-gaap_ForeclosedAssets_839bd9c1-5872-411e-a3e6-dccc1731af41" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_RealEstateOwnedHeldForSaleNetOfImpairment_18a59e04-2d39-4061-bf1d-913093cadc87" xlink:href="ari-20230331.xsd#ari_RealEstateOwnedHeldForSaleNetOfImpairment"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_b9508b4b-c75d-458f-881c-5c32cffc7823" xlink:to="loc_ari_RealEstateOwnedHeldForSaleNetOfImpairment_18a59e04-2d39-4061-bf1d-913093cadc87" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_5fa4d8ee-2d14-4a15-90dd-96f4c5bbae9b" 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_b9508b4b-c75d-458f-881c-5c32cffc7823" xlink:to="loc_us-gaap_DerivativeAssets_5fa4d8ee-2d14-4a15-90dd-96f4c5bbae9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_4d681ed1-45bf-4a79-b9e5-7317e1dc96ad" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_b9508b4b-c75d-458f-881c-5c32cffc7823" xlink:to="loc_us-gaap_OtherAssets_4d681ed1-45bf-4a79-b9e5-7317e1dc96ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_985e608e-9266-47ad-9ff0-d17fae79cfc1" 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_e051f37d-077d-4040-8f55-7ffb0c1fa139" 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_985e608e-9266-47ad-9ff0-d17fae79cfc1" xlink:to="loc_us-gaap_Liabilities_e051f37d-077d-4040-8f55-7ffb0c1fa139" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_dbede5e9-f801-4252-8b49-9651c9aae954" 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_985e608e-9266-47ad-9ff0-d17fae79cfc1" xlink:to="loc_us-gaap_CommitmentsAndContingencies_dbede5e9-f801-4252-8b49-9651c9aae954" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_72fdd22d-b6dc-45d6-bb44-76be918901e2" 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_985e608e-9266-47ad-9ff0-d17fae79cfc1" xlink:to="loc_us-gaap_StockholdersEquity_72fdd22d-b6dc-45d6-bb44-76be918901e2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CondensedConsolidatedStatementofOperationsUnaudited" xlink:type="simple" xlink:href="ari-20230331.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_NetIncomeLoss_be0892f1-b9bc-4cf8-944b-57617c84f3e0" 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_eec3c48c-f2fa-495e-a4b2-6bf868b0fdea" 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_be0892f1-b9bc-4cf8-944b-57617c84f3e0" xlink:to="loc_us-gaap_Revenues_eec3c48c-f2fa-495e-a4b2-6bf868b0fdea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_3d94d030-0247-48dc-a914-d6b423b0c1d6" 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_be0892f1-b9bc-4cf8-944b-57617c84f3e0" xlink:to="loc_us-gaap_OperatingExpenses_3d94d030-0247-48dc-a914-d6b423b0c1d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncome_9b31a12c-b101-4703-a10c-fb3f5304a444" 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_be0892f1-b9bc-4cf8-944b-57617c84f3e0" xlink:to="loc_us-gaap_OtherNonoperatingIncome_9b31a12c-b101-4703-a10c-fb3f5304a444" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_2789f6eb-0d6b-4760-8bd1-91a7096a44a7" 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_be0892f1-b9bc-4cf8-944b-57617c84f3e0" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_2789f6eb-0d6b-4760-8bd1-91a7096a44a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_faa4c2d6-e43f-4968-9a95-6599dd3dbb67" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeignCurrencyTransactionGainLossBeforeTax"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_be0892f1-b9bc-4cf8-944b-57617c84f3e0" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_faa4c2d6-e43f-4968-9a95-6599dd3dbb67" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfDerivatives_9f451d80-8839-48a2-8851-91762adcb6be" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainLossOnSaleOfDerivatives"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_be0892f1-b9bc-4cf8-944b-57617c84f3e0" xlink:to="loc_us-gaap_GainLossOnSaleOfDerivatives_9f451d80-8839-48a2-8851-91762adcb6be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_8f906c01-cddc-4364-a092-2f159facb958" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_be0892f1-b9bc-4cf8-944b-57617c84f3e0" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_8f906c01-cddc-4364-a092-2f159facb958" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansAndLeasesReceivableNetRealizedLossOnInvestment_83b7240e-f045-402b-8b9d-6edc20029c09" xlink:href="ari-20230331.xsd#ari_LoansAndLeasesReceivableNetRealizedLossOnInvestment"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_be0892f1-b9bc-4cf8-944b-57617c84f3e0" xlink:to="loc_ari_LoansAndLeasesReceivableNetRealizedLossOnInvestment_83b7240e-f045-402b-8b9d-6edc20029c09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_d63e1ab7-40db-437b-9f79-45879c0f56b0" 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_1c241da0-c32b-46b9-84fd-16894eb4d3fd" 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_d63e1ab7-40db-437b-9f79-45879c0f56b0" xlink:to="loc_us-gaap_NetIncomeLoss_1c241da0-c32b-46b9-84fd-16894eb4d3fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_5aab92ce-6301-43c0-8b38-152552bd3440" 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_d63e1ab7-40db-437b-9f79-45879c0f56b0" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_5aab92ce-6301-43c0-8b38-152552bd3440" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_3969fde0-374f-4931-ac57-d757b0914355" 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_cde09b57-fe3a-49a2-98f4-71c9fc316b05" 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_3969fde0-374f-4931-ac57-d757b0914355" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansCommercial_cde09b57-fe3a-49a2-98f4-71c9fc316b05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_InterestandFeeIncomeLoansSubordinateCommercialRealEstate_7c135903-9a15-4980-be13-eaf87c3008c7" xlink:href="ari-20230331.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_3969fde0-374f-4931-ac57-d757b0914355" xlink:to="loc_ari_InterestandFeeIncomeLoansSubordinateCommercialRealEstate_7c135903-9a15-4980-be13-eaf87c3008c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_e33bd4d8-d8f5-4d6f-b3c8-b48031ca7b56" 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_3969fde0-374f-4931-ac57-d757b0914355" xlink:to="loc_us-gaap_InterestExpense_e33bd4d8-d8f5-4d6f-b3c8-b48031ca7b56" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_88d8c98f-30b0-4ab4-b69b-6a1eb2bdc23a" 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_1920196b-1ec5-475c-a825-ad5f5bad9c83" 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_88d8c98f-30b0-4ab4-b69b-6a1eb2bdc23a" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_1920196b-1ec5-475c-a825-ad5f5bad9c83" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty_94d4441c-9def-4352-aae0-cbc4fd89a720" 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_88d8c98f-30b0-4ab4-b69b-6a1eb2bdc23a" xlink:to="loc_us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty_94d4441c-9def-4352-aae0-cbc4fd89a720" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_RealEstateOwnedOperatingCostsAndExpenses_2ebfa324-07a7-4c85-9e65-901e0e69f984" xlink:href="ari-20230331.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_88d8c98f-30b0-4ab4-b69b-6a1eb2bdc23a" xlink:to="loc_ari_RealEstateOwnedOperatingCostsAndExpenses_2ebfa324-07a7-4c85-9e65-901e0e69f984" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_7ef91543-96b3-4304-8e9e-6138b91da4fd" 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_88d8c98f-30b0-4ab4-b69b-6a1eb2bdc23a" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_7ef91543-96b3-4304-8e9e-6138b91da4fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_5732131f-fdc5-498e-860a-b5b314a5336b" 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_1c9313d9-265d-4a78-81b5-1722a90f16eb" 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_5732131f-fdc5-498e-860a-b5b314a5336b" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_1c9313d9-265d-4a78-81b5-1722a90f16eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueNotFromContractWithCustomerExcludingInterestIncome_ebef683a-4cdf-43e7-ab21-68e88a5d48db" 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_5732131f-fdc5-498e-860a-b5b314a5336b" xlink:to="loc_us-gaap_RevenueNotFromContractWithCustomerExcludingInterestIncome_ebef683a-4cdf-43e7-ab21-68e88a5d48db" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CondensedConsolidatedStatementofCashFlowsUnaudited" xlink:type="simple" xlink:href="ari-20230331.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_NetCashProvidedByUsedInInvestingActivities_203a02aa-1f9c-4853-8dc9-fe5ecf21c998" 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_e79a3855-2d24-4b68-917b-c2dc183527a0" xlink:href="ari-20230331.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_203a02aa-1f9c-4853-8dc9-fe5ecf21c998" xlink:to="loc_ari_PaymentstoPurchaseCommercialRealEstateLoansHeldforsale_e79a3855-2d24-4b68-917b-c2dc183527a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_PaymentstoPurchaseCommercialRealEstateLoansHeldforsaleAddonFunding_224d00d2-954d-435d-9c65-da53acc7be19" xlink:href="ari-20230331.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_203a02aa-1f9c-4853-8dc9-fe5ecf21c998" xlink:to="loc_ari_PaymentstoPurchaseCommercialRealEstateLoansHeldforsaleAddonFunding_224d00d2-954d-435d-9c65-da53acc7be19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_PaymentstoPurchaseSubordinateCommercialRealEstateLoansHeldforsaleAddonFunding_de243320-54af-4442-a60c-cd3dc6230fde" xlink:href="ari-20230331.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_203a02aa-1f9c-4853-8dc9-fe5ecf21c998" xlink:to="loc_ari_PaymentstoPurchaseSubordinateCommercialRealEstateLoansHeldforsaleAddonFunding_de243320-54af-4442-a60c-cd3dc6230fde" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_ProceedsfromCollectionofCommercialRealEstateLoansHeldforsale_41a713ee-fc78-494e-be14-e39d4c2f0060" xlink:href="ari-20230331.xsd#ari_ProceedsfromCollectionofCommercialRealEstateLoansHeldforsale"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_203a02aa-1f9c-4853-8dc9-fe5ecf21c998" xlink:to="loc_ari_ProceedsfromCollectionofCommercialRealEstateLoansHeldforsale_41a713ee-fc78-494e-be14-e39d4c2f0060" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLoanOriginations1_27c8c05c-17fb-4ddd-9f66-d2c85d98a2d7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromLoanOriginations1"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_203a02aa-1f9c-4853-8dc9-fe5ecf21c998" xlink:to="loc_us-gaap_ProceedsFromLoanOriginations1_27c8c05c-17fb-4ddd-9f66-d2c85d98a2d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToDevelopRealEstateAssets_b969a2ba-7d81-456e-8727-e3ed6310e111" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToDevelopRealEstateAssets"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_203a02aa-1f9c-4853-8dc9-fe5ecf21c998" xlink:to="loc_us-gaap_PaymentsToDevelopRealEstateAssets_b969a2ba-7d81-456e-8727-e3ed6310e111" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_GainLossInCollateralHeldInvestingActivities_df5955dd-b4dd-4df4-ba68-da7826809a17" xlink:href="ari-20230331.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_203a02aa-1f9c-4853-8dc9-fe5ecf21c998" xlink:to="loc_ari_GainLossInCollateralHeldInvestingActivities_df5955dd-b4dd-4df4-ba68-da7826809a17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndCollectionOfMortgageNotesReceivable_5701db1e-46f7-4349-aa79-5bf1e55c35a3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleAndCollectionOfMortgageNotesReceivable"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_203a02aa-1f9c-4853-8dc9-fe5ecf21c998" xlink:to="loc_us-gaap_ProceedsFromSaleAndCollectionOfMortgageNotesReceivable_5701db1e-46f7-4349-aa79-5bf1e55c35a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_IncreaseDecreaseInRealEstateHeldForInvestment_25eeaa81-9c4e-4403-81fd-97784eeaa5b8" xlink:href="ari-20230331.xsd#ari_IncreaseDecreaseInRealEstateHeldForInvestment"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_203a02aa-1f9c-4853-8dc9-fe5ecf21c998" xlink:to="loc_ari_IncreaseDecreaseInRealEstateHeldForInvestment_25eeaa81-9c4e-4403-81fd-97784eeaa5b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9702483e-5585-4700-a578-fe88211f292d" 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_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingCashClassifiedWithinRealEstateOwnedHeldForSaleIncludingExchangeRateEffect_4794dd67-36d6-47a7-aa16-5db2e8b50a50" xlink:href="ari-20230331.xsd#ari_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingCashClassifiedWithinRealEstateOwnedHeldForSaleIncludingExchangeRateEffect"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9702483e-5585-4700-a578-fe88211f292d" xlink:to="loc_ari_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingCashClassifiedWithinRealEstateOwnedHeldForSaleIncludingExchangeRateEffect_4794dd67-36d6-47a7-aa16-5db2e8b50a50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_IncreaseInCashClassifiedWithinRealEstateOwnedHeldForSale_629c25fc-b5e4-4f19-a4e1-77bc7190be12" xlink:href="ari-20230331.xsd#ari_IncreaseInCashClassifiedWithinRealEstateOwnedHeldForSale"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9702483e-5585-4700-a578-fe88211f292d" xlink:to="loc_ari_IncreaseInCashClassifiedWithinRealEstateOwnedHeldForSale_629c25fc-b5e4-4f19-a4e1-77bc7190be12" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ea12090c-4936-4b2e-af69-b60a22b1b7e0" 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_ari_ProceedsFromSecuritiesSoldUnderAgreementsToRepurchase_3e1143cf-e532-4eb4-befc-f8b0621fe008" xlink:href="ari-20230331.xsd#ari_ProceedsFromSecuritiesSoldUnderAgreementsToRepurchase"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ea12090c-4936-4b2e-af69-b60a22b1b7e0" xlink:to="loc_ari_ProceedsFromSecuritiesSoldUnderAgreementsToRepurchase_3e1143cf-e532-4eb4-befc-f8b0621fe008" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_PaymentsForSecuritiesSoldUnderAgreementsToRepurchase_cf2db105-b0d1-413b-8525-5a763cf210a8" xlink:href="ari-20230331.xsd#ari_PaymentsForSecuritiesSoldUnderAgreementsToRepurchase"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ea12090c-4936-4b2e-af69-b60a22b1b7e0" xlink:to="loc_ari_PaymentsForSecuritiesSoldUnderAgreementsToRepurchase_cf2db105-b0d1-413b-8525-5a763cf210a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfSecuredDebt_30ae0059-bd5a-4932-bdfe-50e3419e2acb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfSecuredDebt"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ea12090c-4936-4b2e-af69-b60a22b1b7e0" xlink:to="loc_us-gaap_RepaymentsOfSecuredDebt_30ae0059-bd5a-4932-bdfe-50e3419e2acb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfFinancingCosts_8f635e3a-8799-4ade-a5e9-2cc956672d81" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfFinancingCosts"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ea12090c-4936-4b2e-af69-b60a22b1b7e0" xlink:to="loc_us-gaap_PaymentsOfFinancingCosts_8f635e3a-8799-4ade-a5e9-2cc956672d81" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_d9bf8c05-bf1f-4929-ac6e-819b65807402" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ea12090c-4936-4b2e-af69-b60a22b1b7e0" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_d9bf8c05-bf1f-4929-ac6e-819b65807402" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_c0602466-51c3-4b09-ade6-4d978317aba1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ea12090c-4936-4b2e-af69-b60a22b1b7e0" xlink:to="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_c0602466-51c3-4b09-ade6-4d978317aba1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfConvertibleDebt_e085d160-5a4d-485b-ab32-0fa336c62ea0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfConvertibleDebt"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ea12090c-4936-4b2e-af69-b60a22b1b7e0" xlink:to="loc_us-gaap_RepaymentsOfConvertibleDebt_e085d160-5a4d-485b-ab32-0fa336c62ea0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_e44258f1-1cf4-4e55-b91e-eec84a7ab555" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ea12090c-4936-4b2e-af69-b60a22b1b7e0" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_e44258f1-1cf4-4e55-b91e-eec84a7ab555" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c6f639d0-97a1-4f93-a018-00d702cf0e5a" 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_ProvisionForLoanLossesExpensed_a1378669-8b0d-43f4-ad82-db954d1f12d8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProvisionForLoanLossesExpensed"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c6f639d0-97a1-4f93-a018-00d702cf0e5a" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_a1378669-8b0d-43f4-ad82-db954d1f12d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfDebtDiscountPremium_40368bd5-b4fb-4cf5-8d92-71706f18e378" 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_c6f639d0-97a1-4f93-a018-00d702cf0e5a" xlink:to="loc_us-gaap_AmortizationOfDebtDiscountPremium_40368bd5-b4fb-4cf5-8d92-71706f18e378" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_71c37233-4532-40bf-9117-f7da179ba6e6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c6f639d0-97a1-4f93-a018-00d702cf0e5a" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_71c37233-4532-40bf-9117-f7da179ba6e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnDerivatives_6451331e-2436-4f47-ba1e-625e8e41afd7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_UnrealizedGainLossOnDerivatives"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c6f639d0-97a1-4f93-a018-00d702cf0e5a" xlink:to="loc_us-gaap_UnrealizedGainLossOnDerivatives_6451331e-2436-4f47-ba1e-625e8e41afd7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_6cfaefe4-dd9c-4669-87e4-daa2d0f6b985" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c6f639d0-97a1-4f93-a018-00d702cf0e5a" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_6cfaefe4-dd9c-4669-87e4-daa2d0f6b985" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_IncreaseDecreaseinAccountsPayableAccruedLiabilitiesandOtherLiabilities_bed458b6-3f08-4588-bf4c-90133ac9be2f" xlink:href="ari-20230331.xsd#ari_IncreaseDecreaseinAccountsPayableAccruedLiabilitiesandOtherLiabilities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c6f639d0-97a1-4f93-a018-00d702cf0e5a" xlink:to="loc_ari_IncreaseDecreaseinAccountsPayableAccruedLiabilitiesandOtherLiabilities_bed458b6-3f08-4588-bf4c-90133ac9be2f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_LoansAndLeasesReceivableNetRealizedLossOnInvestment_0f412895-86bf-46d3-a82d-4cf49bed6d39" xlink:href="ari-20230331.xsd#ari_LoansAndLeasesReceivableNetRealizedLossOnInvestment"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c6f639d0-97a1-4f93-a018-00d702cf0e5a" xlink:to="loc_ari_LoansAndLeasesReceivableNetRealizedLossOnInvestment_0f412895-86bf-46d3-a82d-4cf49bed6d39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_6ea49414-1777-4093-bd25-440df86307b8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c6f639d0-97a1-4f93-a018-00d702cf0e5a" xlink:to="loc_us-gaap_ShareBasedCompensation_6ea49414-1777-4093-bd25-440df86307b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_1afa826e-10a8-4b7b-b20f-28e6675f6a82" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c6f639d0-97a1-4f93-a018-00d702cf0e5a" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_1afa826e-10a8-4b7b-b20f-28e6675f6a82" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossRealized_2345a92b-69bc-46b2-8914-a30cf443f4ca" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeignCurrencyTransactionGainLossRealized"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c6f639d0-97a1-4f93-a018-00d702cf0e5a" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossRealized_2345a92b-69bc-46b2-8914-a30cf443f4ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_bb103c33-991b-44c3-97d1-fb26c70c5384" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c6f639d0-97a1-4f93-a018-00d702cf0e5a" xlink:to="loc_us-gaap_NetIncomeLoss_bb103c33-991b-44c3-97d1-fb26c70c5384" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_83ed1949-bf46-4d8e-aee7-87c39d6b54fe" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c6f639d0-97a1-4f93-a018-00d702cf0e5a" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableRelatedParties_83ed1949-bf46-4d8e-aee7-87c39d6b54fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_IncreaseDecreaseFromPaidInKind_16c78282-7a4b-4d56-aa81-f7585fb40109" xlink:href="ari-20230331.xsd#ari_IncreaseDecreaseFromPaidInKind"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c6f639d0-97a1-4f93-a018-00d702cf0e5a" xlink:to="loc_ari_IncreaseDecreaseFromPaidInKind_16c78282-7a4b-4d56-aa81-f7585fb40109" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_35b4e5cc-09e8-465d-86ca-2ca662c056c4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c6f639d0-97a1-4f93-a018-00d702cf0e5a" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_35b4e5cc-09e8-465d-86ca-2ca662c056c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingCashClassifiedWithinRealEstateOwnedHeldForSaleIncludingExchangeRateEffect_1309fce2-19bb-4602-9976-c6dffb55b04e" xlink:href="ari-20230331.xsd#ari_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingCashClassifiedWithinRealEstateOwnedHeldForSaleIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f78043c9-b363-4686-850e-88b3bc9945c3" 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_1309fce2-19bb-4602-9976-c6dffb55b04e" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f78043c9-b363-4686-850e-88b3bc9945c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_2b1d53d8-66c4-463a-8bc4-c9b2e861ebb6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingCashClassifiedWithinRealEstateOwnedHeldForSaleIncludingExchangeRateEffect_1309fce2-19bb-4602-9976-c6dffb55b04e" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_2b1d53d8-66c4-463a-8bc4-c9b2e861ebb6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_26257a8f-9f5f-4ae7-9dbe-cc1fdcd9bf5e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingCashClassifiedWithinRealEstateOwnedHeldForSaleIncludingExchangeRateEffect_1309fce2-19bb-4602-9976-c6dffb55b04e" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_26257a8f-9f5f-4ae7-9dbe-cc1fdcd9bf5e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetScheduleofMortgageLoansbyPropertyTypeandGeographicDistributionDetails" xlink:type="simple" xlink:href="ari-20230331.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_489bab97-fbca-494c-a88b-99eb54eec699" 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_178a6180-8efc-4007-826f-fe39bdbe0ee6" 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_489bab97-fbca-494c-a88b-99eb54eec699" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_178a6180-8efc-4007-826f-fe39bdbe0ee6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_2945ccf8-1ce4-4a45-adf8-ff3232b17c42" 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_489bab97-fbca-494c-a88b-99eb54eec699" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_2945ccf8-1ce4-4a45-adf8-ff3232b17c42" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetAllocationofCarryingValueofLoanPortfolioBasedonInternalRiskRatingsDetails" xlink:type="simple" xlink:href="ari-20230331.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_166ca965-dd2d-4c68-950c-9fd3e9f37798" 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_b1f9691d-d447-47ff-b3c2-c260a3eba63f" 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_166ca965-dd2d-4c68-950c-9fd3e9f37798" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_b1f9691d-d447-47ff-b3c2-c260a3eba63f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_22484deb-1e75-467b-aa2a-7d26472970d2" 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_166ca965-dd2d-4c68-950c-9fd3e9f37798" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_22484deb-1e75-467b-aa2a-7d26472970d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_c3d80a7f-e2c9-4ded-89b6-f6c4b04ed4ac" 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_166ca965-dd2d-4c68-950c-9fd3e9f37798" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_c3d80a7f-e2c9-4ded-89b6-f6c4b04ed4ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_600d05a7-f8cb-4bc1-97d4-a4a35ac8d1a1" 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_166ca965-dd2d-4c68-950c-9fd3e9f37798" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_600d05a7-f8cb-4bc1-97d4-a4a35ac8d1a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_9d16f9e6-66df-4576-bd84-404c7454d5fa" 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_166ca965-dd2d-4c68-950c-9fd3e9f37798" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_9d16f9e6-66df-4576-bd84-404c7454d5fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_d9362087-b3c1-4938-851e-88960de28d50" 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_166ca965-dd2d-4c68-950c-9fd3e9f37798" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_d9362087-b3c1-4938-851e-88960de28d50" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetCECLAllowanceasPercentageofAmortizedCostandTotalCommitmentDetails" xlink:type="simple" xlink:href="ari-20230331.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_9c7fd701-6e75-43d4-bfcb-e67d0e453e73" xlink:href="ari-20230331.xsd#ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossExpenseReversal"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableFundedCreditLossExpenseReversal_52062033-ca25-4f3c-8dbc-41e5ba42c0ed" xlink:href="ari-20230331.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_9c7fd701-6e75-43d4-bfcb-e67d0e453e73" xlink:to="loc_ari_FinancingReceivableFundedCreditLossExpenseReversal_52062033-ca25-4f3c-8dbc-41e5ba42c0ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal_91d9367f-1f1c-454a-be5d-3dc003cc2552" 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_9c7fd701-6e75-43d4-bfcb-e67d0e453e73" xlink:to="loc_us-gaap_OffBalanceSheetCreditLossLiabilityCreditLossExpenseReversal_91d9367f-1f1c-454a-be5d-3dc003cc2552" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiability_8f77f612-3134-47a3-8945-92b26bbbf212" xlink:href="ari-20230331.xsd#ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_FinancingReceivableFundedAllowanceforCreditLoss_5f01b497-dc14-4ef7-a002-a027cb12a83a" xlink:href="ari-20230331.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_8f77f612-3134-47a3-8945-92b26bbbf212" xlink:to="loc_ari_FinancingReceivableFundedAllowanceforCreditLoss_5f01b497-dc14-4ef7-a002-a027cb12a83a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffBalanceSheetCreditLossLiability_45df962b-f8dd-4bfd-89c7-8bfe85fd5afc" 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_8f77f612-3134-47a3-8945-92b26bbbf212" xlink:to="loc_us-gaap_OffBalanceSheetCreditLossLiability_45df962b-f8dd-4bfd-89c7-8bfe85fd5afc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/CommercialMortgageLoansSubordinateLoansandOtherLendingAssetsNetCurrentExpectedCreditLossesDetails" xlink:type="simple" xlink:href="ari-20230331.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_617f72d6-ff48-441a-8272-9f72d5152f6d" xlink:href="ari-20230331.xsd#ari_AllowanceForLoanAndLeaseLossesRealEstateAndOffBalanceSheetCreditLossLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffBalanceSheetCreditLossLiability_379c00ad-51d5-47ff-970c-d950c328a5f4" 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_617f72d6-ff48-441a-8272-9f72d5152f6d" xlink:to="loc_us-gaap_OffBalanceSheetCreditLossLiability_379c00ad-51d5-47ff-970c-d950c328a5f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_56a49638-f83a-48d5-90b8-d69e43284706" 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_617f72d6-ff48-441a-8272-9f72d5152f6d" xlink:to="loc_us-gaap_AllowanceForLoanAndLeaseLossesRealEstate_56a49638-f83a-48d5-90b8-d69e43284706" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/RealEstateOwnedScheduleofRealEstateOwnedFixedAssetsDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#RealEstateOwnedScheduleofRealEstateOwnedFixedAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.apolloreit.com/role/RealEstateOwnedScheduleofRealEstateOwnedFixedAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ari_AssetAcquisitionAssetsAcquiredAndLiabilitiesAssumedNet_f97b55ab-d4cc-4874-a5e0-82237380870d" xlink:href="ari-20230331.xsd#ari_AssetAcquisitionAssetsAcquiredAndLiabilitiesAssumedNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AssetAcquisitionAssets_adddd6b5-7914-4656-a43d-4cdd752888fe" xlink:href="ari-20230331.xsd#ari_AssetAcquisitionAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_AssetAcquisitionAssetsAcquiredAndLiabilitiesAssumedNet_f97b55ab-d4cc-4874-a5e0-82237380870d" xlink:to="loc_ari_AssetAcquisitionAssets_adddd6b5-7914-4656-a43d-4cdd752888fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AssetAcquisitionLiabilities_c26b12eb-30c5-4075-b208-945c38e48660" xlink:href="ari-20230331.xsd#ari_AssetAcquisitionLiabilities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_AssetAcquisitionAssetsAcquiredAndLiabilitiesAssumedNet_f97b55ab-d4cc-4874-a5e0-82237380870d" xlink:to="loc_ari_AssetAcquisitionLiabilities_c26b12eb-30c5-4075-b208-945c38e48660" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AssetAcquisitionAssets_6931e5e3-7011-4ae6-944f-6a97017106d9" xlink:href="ari-20230331.xsd#ari_AssetAcquisitionAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AssetAcquisitionCashAndEquivalents_c5e34e68-5c1c-4b7c-a580-69fed4a0e65d" xlink:href="ari-20230331.xsd#ari_AssetAcquisitionCashAndEquivalents"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_AssetAcquisitionAssets_6931e5e3-7011-4ae6-944f-6a97017106d9" xlink:to="loc_ari_AssetAcquisitionCashAndEquivalents_c5e34e68-5c1c-4b7c-a580-69fed4a0e65d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AssetAcquisitionLand_d9e4e31c-3928-493b-932e-0ca492e5feed" xlink:href="ari-20230331.xsd#ari_AssetAcquisitionLand"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_AssetAcquisitionAssets_6931e5e3-7011-4ae6-944f-6a97017106d9" xlink:to="loc_ari_AssetAcquisitionLand_d9e4e31c-3928-493b-932e-0ca492e5feed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_Buildings_f6bde883-45ff-4ac7-8c72-51e484283bf2" xlink:href="ari-20230331.xsd#ari_Buildings"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_AssetAcquisitionAssets_6931e5e3-7011-4ae6-944f-6a97017106d9" xlink:to="loc_ari_Buildings_f6bde883-45ff-4ac7-8c72-51e484283bf2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AssetAcquisitionFurnitureFixturesAndEquipment_23ac872d-31e5-43ab-a5fa-0c6921df7a60" xlink:href="ari-20230331.xsd#ari_AssetAcquisitionFurnitureFixturesAndEquipment"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_AssetAcquisitionAssets_6931e5e3-7011-4ae6-944f-6a97017106d9" xlink:to="loc_ari_AssetAcquisitionFurnitureFixturesAndEquipment_23ac872d-31e5-43ab-a5fa-0c6921df7a60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_AssetAcquisitionOtherAssets_7ea610dd-d0a5-4907-984f-1e804cbed22f" xlink:href="ari-20230331.xsd#ari_AssetAcquisitionOtherAssets"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ari_AssetAcquisitionAssets_6931e5e3-7011-4ae6-944f-6a97017106d9" xlink:to="loc_ari_AssetAcquisitionOtherAssets_7ea610dd-d0a5-4907-984f-1e804cbed22f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/OtherAssetsDetails" xlink:type="simple" xlink:href="ari-20230331.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_d3af3b3f-2b7c-48c7-98a8-6d5da898f247" 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_9b39d2c4-d4ed-47a3-92e3-7000a6d3d00c" 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_d3af3b3f-2b7c-48c7-98a8-6d5da898f247" xlink:to="loc_us-gaap_InterestReceivable_9b39d2c4-d4ed-47a3-92e3-7000a6d3d00c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_ProceedsFromSaleOfLoansHeldForSaleReclassifiedIntoOtherAssets_7025f906-7755-4aba-942c-0eb66988b1b3" xlink:href="ari-20230331.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_d3af3b3f-2b7c-48c7-98a8-6d5da898f247" xlink:to="loc_ari_ProceedsFromSaleOfLoansHeldForSaleReclassifiedIntoOtherAssets_7025f906-7755-4aba-942c-0eb66988b1b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMiscellaneous_caa3f936-5dff-41b0-89af-43f3412dffdf" 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_d3af3b3f-2b7c-48c7-98a8-6d5da898f247" xlink:to="loc_us-gaap_OtherAssetsMiscellaneous_caa3f936-5dff-41b0-89af-43f3412dffdf" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/SecuredDebtArrangementsNetRemainingMaturitiesofBorrowingsDetails" xlink:type="simple" xlink:href="ari-20230331.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_f51197c0-b955-430e-a60b-41cc9defffda" 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_02a560fc-86ed-4ee2-a62d-19ef783a6a10" 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_f51197c0-b955-430e-a60b-41cc9defffda" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_02a560fc-86ed-4ee2-a62d-19ef783a6a10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturingInYearsTwoAndThree_b0aa567e-2bc9-4d11-8432-ee42e25e3588" 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_f51197c0-b955-430e-a60b-41cc9defffda" xlink:to="loc_us-gaap_LongTermDebtMaturingInYearsTwoAndThree_b0aa567e-2bc9-4d11-8432-ee42e25e3588" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturingInYearsFourAndFive_1709673b-2163-4103-a35b-16f57618661c" 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_f51197c0-b955-430e-a60b-41cc9defffda" xlink:to="loc_us-gaap_LongTermDebtMaturingInYearsFourAndFive_1709673b-2163-4103-a35b-16f57618661c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_af41ed89-a286-4a3e-be87-ffc80d1ec66a" 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_f51197c0-b955-430e-a60b-41cc9defffda" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_af41ed89-a286-4a3e-be87-ffc80d1ec66a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/DerivativesSummaryofAmountsRecognizedonConsolidatedStatementsofOperationsRelatedtoCompanysDerivativesDetails" xlink:type="simple" xlink:href="ari-20230331.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_c517d53e-2160-4124-b211-c12e7d800ff4" 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_8bd77baa-d55f-4a0e-896d-936e1b192617" 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_c517d53e-2160-4124-b211-c12e7d800ff4" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_8bd77baa-d55f-4a0e-896d-936e1b192617" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnDerivatives_867b1cb0-d234-4360-aba4-5d753f325ea1" 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_c517d53e-2160-4124-b211-c12e7d800ff4" xlink:to="loc_us-gaap_UnrealizedGainLossOnDerivatives_867b1cb0-d234-4360-aba4-5d753f325ea1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/DerivativesSummarizesGrossAssetandLiabilityAmountsRelatedtoDerivativesDetails" xlink:type="simple" xlink:href="ari-20230331.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_40e58378-c595-4302-a0b1-eba8eed23eeb" 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_6c408d23-a0d1-4e7c-9ec3-f09e6a4632d0" 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_40e58378-c595-4302-a0b1-eba8eed23eeb" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_6c408d23-a0d1-4e7c-9ec3-f09e6a4632d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_5b535bf4-6eed-4ea2-b51e-fd6c0871e03c" 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_40e58378-c595-4302-a0b1-eba8eed23eeb" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_5b535bf4-6eed-4ea2-b51e-fd6c0871e03c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/AccountsPayableAccruedExpensesandOtherLiabilitiesDetails" xlink:type="simple" xlink:href="ari-20230331.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_817b0b7c-77ac-4c14-87af-03a6bf24b38c" xlink:href="ari-20230331.xsd#ari_AccountsPayableAccruedLiabilitiesAndOtherLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueOfCollateral_681a167c-0f73-40a5-91f9-99fa03ba4cff" 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_817b0b7c-77ac-4c14-87af-03a6bf24b38c" xlink:to="loc_us-gaap_DerivativeAssetFairValueOfCollateral_681a167c-0f73-40a5-91f9-99fa03ba4cff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ari_DividendsPayableIncludingPreferredStockDividends_5c1d6229-e829-47b2-af36-58797a08358c" xlink:href="ari-20230331.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_817b0b7c-77ac-4c14-87af-03a6bf24b38c" xlink:to="loc_ari_DividendsPayableIncludingPreferredStockDividends_5c1d6229-e829-47b2-af36-58797a08358c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_f8640e2e-7c1b-4a62-9cb4-c316184f1c2f" 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_817b0b7c-77ac-4c14-87af-03a6bf24b38c" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_f8640e2e-7c1b-4a62-9cb4-c316184f1c2f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_a460c06c-1e58-40c1-86a6-55fe276ebf9c" 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_817b0b7c-77ac-4c14-87af-03a6bf24b38c" xlink:to="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_a460c06c-1e58-40c1-86a6-55fe276ebf9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OffBalanceSheetCreditLossLiability_00b74f19-478f-4df4-912d-d78e382d29e8" 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_817b0b7c-77ac-4c14-87af-03a6bf24b38c" xlink:to="loc_us-gaap_OffBalanceSheetCreditLossLiability_00b74f19-478f-4df4-912d-d78e382d29e8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.apolloreit.com/role/NetIncomeperShareBasicandDilutedNetIncomeperShareofCommonStockUsingTwoClassMethodDetails" xlink:type="simple" xlink:href="ari-20230331.xsd#NetIncomeperShareBasicandDilutedNetIncomeperShareofCommonStockUsingTwoClassMethodDetails"/>
  <link:calculationLink xlink:role="http://www.apolloreit.com/role/NetIncomeperShareBasicandDilutedNetIncomeperShareofCommonStockUsingTwoClassMethodDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ari_NetIncomeLossAttributabletoParentBasic_e95533b7-b40a-4738-9ad3-d62b46d72dba" xlink:href="ari-20230331.xsd#ari_NetIncomeLossAttributabletoParentBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_dd2816ba-15e4-4fe1-b733-edf8a4775dc4" 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_e95533b7-b40a-4738-9ad3-d62b46d72dba" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_dd2816ba-15e4-4fe1-b733-edf8a4775dc4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_369b1118-7cfc-4502-9b7e-16c884477d7e" 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_e95533b7-b40a-4738-9ad3-d62b46d72dba" xlink:to="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_369b1118-7cfc-4502-9b7e-16c884477d7e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToParentDiluted_4dfa1ca1-17e4-4573-b75e-356285f859a5" 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_c4762187-d1ff-4bbf-9fb5-9b2c035054bb" 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_4dfa1ca1-17e4-4573-b75e-356285f859a5" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_c4762187-d1ff-4bbf-9fb5-9b2c035054bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_c1c9cfba-1e3c-4707-bddf-1674578efa44" 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_4dfa1ca1-17e4-4573-b75e-356285f859a5" xlink:to="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_c1c9cfba-1e3c-4707-bddf-1674578efa44" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestOnConvertibleDebtNetOfTax_5f91c8dc-0290-4d4c-9fbe-ffb79d441fd2" 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_4dfa1ca1-17e4-4573-b75e-356285f859a5" xlink:to="loc_us-gaap_InterestOnConvertibleDebtNetOfTax_5f91c8dc-0290-4d4c-9fbe-ffb79d441fd2" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
