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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019e3baa-e7fc-7891-bc89-09ba2354b2d1,g:43db9235-3319-4021-975c-e3fd0c35b11a-->
<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://golubcapitalbdc.com/role/ConsolidatedStatementsofFinancialCondition" xlink:type="simple" xlink:href="gbdc4-20260630.xsd#ConsolidatedStatementsofFinancialCondition"/>
  <link:calculationLink xlink:role="http://golubcapitalbdc.com/role/ConsolidatedStatementsofFinancialCondition" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e3baa-ff8d-7c05-a4cb-f98ce418fb5d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_019e3baa-ff8d-7c6f-bda9-88104c345d47" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e3baa-ff8d-7c05-a4cb-f98ce418fb5d" xlink:to="loc_us-gaap_AdditionalPaidInCapital_019e3baa-ff8d-7c6f-bda9-88104c345d47" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_019e3baa-ff8d-7b17-b651-3933c91cb818" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e3baa-ff8d-7c05-a4cb-f98ce418fb5d" xlink:to="loc_us-gaap_PreferredStockValue_019e3baa-ff8d-7b17-b651-3933c91cb818" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_019e3baa-ff8d-7ada-9d87-db3496b871ad" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e3baa-ff8d-7c05-a4cb-f98ce418fb5d" xlink:to="loc_us-gaap_CommonStockValue_019e3baa-ff8d-7ada-9d87-db3496b871ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019e3baa-ff8d-7a33-a8d0-5d718bc155db" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e3baa-ff8d-7c05-a4cb-f98ce418fb5d" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019e3baa-ff8d-7a33-a8d0-5d718bc155db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e3baa-ff8d-7053-8f54-e1a8123cceb2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_019e3baa-ff8d-79a7-843f-5d59f4e3453d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e3baa-ff8d-7053-8f54-e1a8123cceb2" xlink:to="loc_us-gaap_CommitmentsAndContingencies_019e3baa-ff8d-79a7-843f-5d59f4e3453d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019e3baa-ff8d-7469-b3ea-34c9a6b13472" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e3baa-ff8d-7053-8f54-e1a8123cceb2" xlink:to="loc_us-gaap_Liabilities_019e3baa-ff8d-7469-b3ea-34c9a6b13472" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e3baa-ff8d-7c50-8a8a-c45b632ebd37" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e3baa-ff8d-7053-8f54-e1a8123cceb2" xlink:to="loc_us-gaap_StockholdersEquity_019e3baa-ff8d-7c50-8a8a-c45b632ebd37" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019e3baa-ff8d-74fa-9c4c-12085e1cea72" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_019e3baa-ff8d-7e20-b226-32e4de31f354" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019e3baa-ff8d-74fa-9c4c-12085e1cea72" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_019e3baa-ff8d-7e20-b226-32e4de31f354" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_019e3baa-ff8d-7b32-91df-685ad41bd039" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019e3baa-ff8d-74fa-9c4c-12085e1cea72" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_019e3baa-ff8d-7b32-91df-685ad41bd039" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019e3baa-ff8d-7660-9a1f-edb8122bc6b9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtFairValue_019e3baa-ff8d-7518-b353-3e0f2de96380" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentOwnedAtFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e3baa-ff8d-7660-9a1f-edb8122bc6b9" xlink:to="loc_us-gaap_InvestmentOwnedAtFairValue_019e3baa-ff8d-7518-b353-3e0f2de96380" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashNotHeldInForeignCurrency_019e3baa-ff8d-7cc5-8c4c-9406579ebfc9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashNotHeldInForeignCurrency"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e3baa-ff8d-7660-9a1f-edb8122bc6b9" xlink:to="loc_us-gaap_CashNotHeldInForeignCurrency_019e3baa-ff8d-7cc5-8c4c-9406579ebfc9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashEquivalentsAtCarryingValue_019e3baa-ff8d-7f6f-8ed9-f3161437f84c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e3baa-ff8d-7660-9a1f-edb8122bc6b9" xlink:to="loc_us-gaap_CashEquivalentsAtCarryingValue_019e3baa-ff8d-7f6f-8ed9-f3161437f84c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashHeldInForeignCurrency_019e3baa-ff8d-779a-991b-f8a1b0e245c6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashHeldInForeignCurrency"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e3baa-ff8d-7660-9a1f-edb8122bc6b9" xlink:to="loc_us-gaap_CashHeldInForeignCurrency_019e3baa-ff8d-779a-991b-f8a1b0e245c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCash_019e3baa-ff8d-7a38-b6b3-0996ccdb3887" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCash"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e3baa-ff8d-7660-9a1f-edb8122bc6b9" xlink:to="loc_us-gaap_RestrictedCash_019e3baa-ff8d-7a38-b6b3-0996ccdb3887" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashEquivalents_019e3baa-ff8d-7c43-be7e-4d13ef60924c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCashEquivalents"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e3baa-ff8d-7660-9a1f-edb8122bc6b9" xlink:to="loc_us-gaap_RestrictedCashEquivalents_019e3baa-ff8d-7c43-be7e-4d13ef60924c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_RestrictedCashHeldInForeignCurrency_019e3baa-ff8d-7972-bb98-11a8fc885ef6" xlink:href="gbdc4-20260630.xsd#gbdc4_RestrictedCashHeldInForeignCurrency"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e3baa-ff8d-7660-9a1f-edb8122bc6b9" xlink:to="loc_gbdc4_RestrictedCashHeldInForeignCurrency_019e3baa-ff8d-7972-bb98-11a8fc885ef6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestReceivable_019e3baa-ff8d-71bf-8855-d70c70ae43df" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestReceivable"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e3baa-ff8d-7660-9a1f-edb8122bc6b9" xlink:to="loc_us-gaap_InterestReceivable_019e3baa-ff8d-71bf-8855-d70c70ae43df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReceivableInvestmentSale_019e3baa-ff8d-7403-84ad-5a904ea3f84b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReceivableInvestmentSale"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e3baa-ff8d-7660-9a1f-edb8122bc6b9" xlink:to="loc_us-gaap_ReceivableInvestmentSale_019e3baa-ff8d-7403-84ad-5a904ea3f84b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_CapitalCallReceivable_019e3baa-ff8d-7178-8d49-0dc65aaddb02" xlink:href="gbdc4-20260630.xsd#gbdc4_CapitalCallReceivable"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e3baa-ff8d-7660-9a1f-edb8122bc6b9" xlink:to="loc_gbdc4_CapitalCallReceivable_019e3baa-ff8d-7178-8d49-0dc65aaddb02" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019e3baa-ff8d-76d7-8c0b-71fc1b9128ef" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e3baa-ff8d-7660-9a1f-edb8122bc6b9" xlink:to="loc_us-gaap_DerivativeAssets_019e3baa-ff8d-76d7-8c0b-71fc1b9128ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_019e3baa-ff8d-7b8f-966f-af2fab0a829a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e3baa-ff8d-7660-9a1f-edb8122bc6b9" xlink:to="loc_us-gaap_OtherAssets_019e3baa-ff8d-7b8f-966f-af2fab0a829a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019e3baa-ff8d-72b4-af78-6877f448f8e7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019e3baa-ff8d-709c-994e-12eaa0f4b4b6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e3baa-ff8d-72b4-af78-6877f448f8e7" xlink:to="loc_us-gaap_LongTermDebt_019e3baa-ff8d-709c-994e-12eaa0f4b4b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_019e3baa-ff8d-777b-97d5-736aa58fed67" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestPayableCurrentAndNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e3baa-ff8d-72b4-af78-6877f448f8e7" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_019e3baa-ff8d-777b-97d5-736aa58fed67" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DistributionPayable_019e3baa-ff8d-7a67-834d-11f4b4c02140" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DistributionPayable"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e3baa-ff8d-72b4-af78-6877f448f8e7" xlink:to="loc_us-gaap_DistributionPayable_019e3baa-ff8d-7a67-834d-11f4b4c02140" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ManagementAndIncentiveFeesPayable_019e3baa-ff8d-7ca6-ba13-4fdfe523aab5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ManagementAndIncentiveFeesPayable"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e3baa-ff8d-72b4-af78-6877f448f8e7" xlink:to="loc_us-gaap_ManagementAndIncentiveFeesPayable_019e3baa-ff8d-7ca6-ba13-4fdfe523aab5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PayableInvestmentPurchase_019e3baa-ff8d-77b7-8a72-cf53c607fb0a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PayableInvestmentPurchase"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e3baa-ff8d-72b4-af78-6877f448f8e7" xlink:to="loc_us-gaap_PayableInvestmentPurchase_019e3baa-ff8d-77b7-8a72-cf53c607fb0a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019e3baa-ff8d-7139-b02b-09a3a63f3c68" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e3baa-ff8d-72b4-af78-6877f448f8e7" xlink:to="loc_us-gaap_DerivativeLiabilities_019e3baa-ff8d-7139-b02b-09a3a63f3c68" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_AccruedTrusteeFees_019e3baa-ff8d-72f6-8e90-9f6f3ebe490b" xlink:href="gbdc4-20260630.xsd#gbdc4_AccruedTrusteeFees"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e3baa-ff8d-72b4-af78-6877f448f8e7" xlink:to="loc_gbdc4_AccruedTrusteeFees_019e3baa-ff8d-72f6-8e90-9f6f3ebe490b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_019e3baa-ff8d-7abc-9da5-d52d34241917" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsPayableAndOtherAccruedLiabilities"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e3baa-ff8d-72b4-af78-6877f448f8e7" xlink:to="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_019e3baa-ff8d-7abc-9da5-d52d34241917" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://golubcapitalbdc.com/role/ConsolidatedStatementsofOperationsunaudited" xlink:type="simple" xlink:href="gbdc4-20260630.xsd#ConsolidatedStatementsofOperationsunaudited"/>
  <link:calculationLink xlink:role="http://golubcapitalbdc.com/role/ConsolidatedStatementsofOperationsunaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedAndUnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_019e3baa-ff8d-72b6-ba79-48f9b020c4b9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RealizedAndUnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_019e3baa-ff8d-7e36-9396-73ccde396934" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RealizedAndUnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_019e3baa-ff8d-72b6-ba79-48f9b020c4b9" xlink:to="loc_us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_019e3baa-ff8d-7e36-9396-73ccde396934" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_019e3baa-ff8d-7f2e-843a-b43979ddd8da" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RealizedAndUnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_019e3baa-ff8d-72b6-ba79-48f9b020c4b9" xlink:to="loc_us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_019e3baa-ff8d-7f2e-843a-b43979ddd8da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossInvestmentIncomeOperating_019e3baa-ff8d-7a10-9e41-7aab0ee1bfb7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GrossInvestmentIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeOperatingPaidInCash_019e3baa-ff8d-7736-be28-953f1f9c44ee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeOperatingPaidInCash"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossInvestmentIncomeOperating_019e3baa-ff8d-7a10-9e41-7aab0ee1bfb7" xlink:to="loc_us-gaap_InterestIncomeOperatingPaidInCash_019e3baa-ff8d-7736-be28-953f1f9c44ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendIncomeOperating_019e3baa-ff8d-73ea-b64c-c8ec37363e8f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DividendIncomeOperating"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossInvestmentIncomeOperating_019e3baa-ff8d-7a10-9e41-7aab0ee1bfb7" xlink:to="loc_us-gaap_DividendIncomeOperating_019e3baa-ff8d-73ea-b64c-c8ec37363e8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeOperatingPaidInKind_019e3baa-ff8d-759e-a4c3-137b716da9c5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeOperatingPaidInKind"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossInvestmentIncomeOperating_019e3baa-ff8d-7a10-9e41-7aab0ee1bfb7" xlink:to="loc_us-gaap_InterestIncomeOperatingPaidInKind_019e3baa-ff8d-759e-a4c3-137b716da9c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FeeIncome_019e3baa-ff8d-71b6-9ba2-79c8d2c5121c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FeeIncome"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossInvestmentIncomeOperating_019e3baa-ff8d-7a10-9e41-7aab0ee1bfb7" xlink:to="loc_us-gaap_FeeIncome_019e3baa-ff8d-71b6-9ba2-79c8d2c5121c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019e3baa-ff8d-79f4-9378-799764b4cd3d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedAndUnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_019e3baa-ff8d-7c04-a292-6e9e1476c9d2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RealizedAndUnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019e3baa-ff8d-79f4-9378-799764b4cd3d" xlink:to="loc_us-gaap_RealizedAndUnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_019e3baa-ff8d-7c04-a292-6e9e1476c9d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetInvestmentIncome_019e3baa-ff8d-7b49-9802-59465df8137c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetInvestmentIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019e3baa-ff8d-79f4-9378-799764b4cd3d" xlink:to="loc_us-gaap_NetInvestmentIncome_019e3baa-ff8d-7b49-9802-59465df8137c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_019e3baa-ff8d-77ea-a506-81ae7c998a85" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossUnrealized_019e3baa-ff8d-714a-8715-ba958fc1f45b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ForeignCurrencyTransactionGainLossUnrealized"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_019e3baa-ff8d-77ea-a506-81ae7c998a85" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossUnrealized_019e3baa-ff8d-714a-8715-ba958fc1f45b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnDerivatives_019e3baa-ff8d-70d9-b332-6a588986be87" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.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_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_019e3baa-ff8d-77ea-a506-81ae7c998a85" xlink:to="loc_us-gaap_UnrealizedGainLossOnDerivatives_019e3baa-ff8d-70d9-b332-6a588986be87" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss_019e3baa-ff8d-74d5-9dd1-ffb320450788" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_019e3baa-ff8d-77ea-a506-81ae7c998a85" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss_019e3baa-ff8d-74d5-9dd1-ffb320450788" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_019e3baa-ff8d-78b7-b797-e3e354c66757" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesRealizedGainLoss_019f191b-6327-7ca1-94db-c8a544ac3354" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtAndEquitySecuritiesRealizedGainLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_019e3baa-ff8d-78b7-b797-e3e354c66757" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesRealizedGainLoss_019f191b-6327-7ca1-94db-c8a544ac3354" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossRealized_019e3baa-ff8d-759c-ac3a-ccf7c4107921" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ForeignCurrencyTransactionGainLossRealized"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_019e3baa-ff8d-78b7-b797-e3e354c66757" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossRealized_019e3baa-ff8d-759c-ac3a-ccf7c4107921" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetInvestmentIncome_019e3baa-ff8d-7e99-950b-ce209786611f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetInvestmentIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement_019e3baa-ff8d-7f57-9387-a25b4bab8c5e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetInvestmentIncome_019e3baa-ff8d-7e99-950b-ce209786611f" xlink:to="loc_us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement_019e3baa-ff8d-7f57-9387-a25b4bab8c5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossInvestmentIncomeOperating_019e3baa-ff8d-72d8-8996-15845c36e67e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GrossInvestmentIncomeOperating"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetInvestmentIncome_019e3baa-ff8d-7e99-950b-ce209786611f" xlink:to="loc_us-gaap_GrossInvestmentIncomeOperating_019e3baa-ff8d-72d8-8996-15845c36e67e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInvestmentExpense_019e3baa-ff8d-7b36-919d-3eaad5cb453f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentIncomeInvestmentExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdministrativeFeesExpense_019e3baa-ff8d-70a7-97cf-71fc4a1922fa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdministrativeFeesExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_019e3baa-ff8d-7b36-919d-3eaad5cb453f" xlink:to="loc_us-gaap_AdministrativeFeesExpense_019e3baa-ff8d-70a7-97cf-71fc4a1922fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_019e3baa-ff8d-7928-b6ae-bd915570b3c1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseOperating"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_019e3baa-ff8d-7b36-919d-3eaad5cb453f" xlink:to="loc_us-gaap_InterestExpenseOperating_019e3baa-ff8d-7928-b6ae-bd915570b3c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncentiveFeeExpense_019e3baa-ff8d-7b0c-8d39-17b89ac406ba" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncentiveFeeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_019e3baa-ff8d-7b36-919d-3eaad5cb453f" xlink:to="loc_us-gaap_IncentiveFeeExpense_019e3baa-ff8d-7b0c-8d39-17b89ac406ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_019e3baa-ff8d-70c4-afac-785211644de8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_019e3baa-ff8d-7b36-919d-3eaad5cb453f" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_019e3baa-ff8d-70c4-afac-785211644de8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfessionalFees_019e3baa-ff8d-7915-93cb-d69a01f55513" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProfessionalFees"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_019e3baa-ff8d-7b36-919d-3eaad5cb453f" xlink:to="loc_us-gaap_ProfessionalFees_019e3baa-ff8d-7915-93cb-d69a01f55513" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ManagementFeeExpense_019e3baa-ff8d-79e6-bedd-d89f86d3821b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ManagementFeeExpense"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_019e3baa-ff8d-7b36-919d-3eaad5cb453f" xlink:to="loc_us-gaap_ManagementFeeExpense_019e3baa-ff8d-79e6-bedd-d89f86d3821b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement_019e3baa-ff8d-78d2-8aec-306afa082fdb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInvestmentExpense_019e3baa-ff8d-727e-92d6-03b30e677718" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentIncomeInvestmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement_019e3baa-ff8d-78d2-8aec-306afa082fdb" xlink:to="loc_us-gaap_InvestmentIncomeInvestmentExpense_019e3baa-ff8d-727e-92d6-03b30e677718" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyManagementFeeContractualFeeWaived_019e3baa-ff8d-7eb6-9814-85c5c781afad" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentCompanyManagementFeeContractualFeeWaived"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement_019e3baa-ff8d-78d2-8aec-306afa082fdb" xlink:to="loc_us-gaap_InvestmentCompanyManagementFeeContractualFeeWaived_019e3baa-ff8d-7eb6-9814-85c5c781afad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyIncentiveFeeWaived_019e3baa-ff8d-7505-b7cc-60909d9ccbea" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentCompanyIncentiveFeeWaived"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement_019e3baa-ff8d-78d2-8aec-306afa082fdb" xlink:to="loc_us-gaap_InvestmentCompanyIncentiveFeeWaived_019e3baa-ff8d-7505-b7cc-60909d9ccbea" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://golubcapitalbdc.com/role/ConsolidatedStatementsofChangesinNetAssetsunaudited" xlink:type="simple" xlink:href="gbdc4-20260630.xsd#ConsolidatedStatementsofChangesinNetAssetsunaudited"/>
  <link:calculationLink xlink:role="http://golubcapitalbdc.com/role/ConsolidatedStatementsofChangesinNetAssetsunaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityPeriodIncreaseDecrease_019e3baa-ff8d-7987-9c51-4c288f496d6b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquityPeriodIncreaseDecrease"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueDividendReinvestmentPlan_019e3baa-ff8d-705e-99a3-ff89abdb5b78" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodValueDividendReinvestmentPlan"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityPeriodIncreaseDecrease_019e3baa-ff8d-7987-9c51-4c288f496d6b" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueDividendReinvestmentPlan_019e3baa-ff8d-705e-99a3-ff89abdb5b78" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_InvestmentCompanyDividendDistributionFromDistributableEarningsLosses_019e3baa-ff8d-7c8a-9d60-8878c5cb9e8a" xlink:href="gbdc4-20260630.xsd#gbdc4_InvestmentCompanyDividendDistributionFromDistributableEarningsLosses"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityPeriodIncreaseDecrease_019e3baa-ff8d-7987-9c51-4c288f496d6b" xlink:to="loc_gbdc4_InvestmentCompanyDividendDistributionFromDistributableEarningsLosses_019e3baa-ff8d-7c8a-9d60-8878c5cb9e8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_InvestmentCompanyDistributionDeclaredAndPayable_019e3baa-ff8d-7f6a-b994-03811c371150" xlink:href="gbdc4-20260630.xsd#gbdc4_InvestmentCompanyDistributionDeclaredAndPayable"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityPeriodIncreaseDecrease_019e3baa-ff8d-7987-9c51-4c288f496d6b" xlink:to="loc_gbdc4_InvestmentCompanyDistributionDeclaredAndPayable_019e3baa-ff8d-7f6a-b994-03811c371150" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_019e3baa-ff8d-786a-aa5f-9c4e3d3ae3a5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityPeriodIncreaseDecrease_019e3baa-ff8d-7987-9c51-4c288f496d6b" xlink:to="loc_us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_019e3baa-ff8d-786a-aa5f-9c4e3d3ae3a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_019e3baa-ff8d-7cff-b5ee-234ccbdbd38d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityPeriodIncreaseDecrease_019e3baa-ff8d-7987-9c51-4c288f496d6b" xlink:to="loc_us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_019e3baa-ff8d-7cff-b5ee-234ccbdbd38d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax_019e3baa-ff8d-718f-a466-0a06389619ac" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityPeriodIncreaseDecrease_019e3baa-ff8d-7987-9c51-4c288f496d6b" xlink:to="loc_us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax_019e3baa-ff8d-718f-a466-0a06389619ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_019e3baa-ff8d-7c57-98b6-0ebad1d758cb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodValueNewIssues"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityPeriodIncreaseDecrease_019e3baa-ff8d-7987-9c51-4c288f496d6b" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_019e3baa-ff8d-7c57-98b6-0ebad1d758cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesPeriodIncreaseDecrease_019e3baa-ff8d-794a-be40-d34ab63562da" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesPeriodIncreaseDecrease"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesDividendReinvestmentPlan_019e3baa-ff8d-7130-90ee-6b2ba9d05ae9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesDividendReinvestmentPlan"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockIssuedDuringPeriodSharesPeriodIncreaseDecrease_019e3baa-ff8d-794a-be40-d34ab63562da" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesDividendReinvestmentPlan_019e3baa-ff8d-7130-90ee-6b2ba9d05ae9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_019e3baa-ff8d-7ff4-bcc6-066e32b7bd98" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockIssuedDuringPeriodSharesPeriodIncreaseDecrease_019e3baa-ff8d-794a-be40-d34ab63562da" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_019e3baa-ff8d-7ff4-bcc6-066e32b7bd98" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://golubcapitalbdc.com/role/ConsolidatedStatementsofCashFlowsunaudited" xlink:type="simple" xlink:href="gbdc4-20260630.xsd#ConsolidatedStatementsofCashFlowsunaudited"/>
  <link:calculationLink xlink:role="http://golubcapitalbdc.com/role/ConsolidatedStatementsofCashFlowsunaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019e3bab-0078-7b07-9f36-f880e4a220f1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_us-gaap_NetIncomeLoss_019e3bab-0078-7b07-9f36-f880e4a220f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_019e3bab-0078-7ec5-8fcf-dbb0b7e5fd94" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_019e3bab-0078-7ec5-8fcf-dbb0b7e5fd94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_AmortizationOfDeferredOfferingCosts_019e3bab-0078-79ac-bb05-f0988cefd5ae" xlink:href="gbdc4-20260630.xsd#gbdc4_AmortizationOfDeferredOfferingCosts"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_gbdc4_AmortizationOfDeferredOfferingCosts_019e3bab-0078-79ac-bb05-f0988cefd5ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_019e3bab-0078-7ed6-8753-d342aac54f65" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_019e3bab-0078-7ed6-8753-d342aac54f65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossRealized_019e3bab-0078-72fb-93a8-f0b32733cc50" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ForeignCurrencyTransactionGainLossRealized"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossRealized_019e3bab-0078-72fb-93a8-f0b32733cc50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss_019e3bab-0078-79f4-990f-f7d6c237acc2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss_019e3bab-0078-79f4-990f-f7d6c237acc2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnDerivatives_019e3bab-0078-7f6e-9172-6a55946e3caf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrealizedGainLossOnDerivatives"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_us-gaap_UnrealizedGainLossOnDerivatives_019e3bab-0078-7f6e-9172-6a55946e3caf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossUnrealized_019e3bab-0078-7679-aa5e-bae3cdab9b72" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ForeignCurrencyTransactionGainLossUnrealized"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossUnrealized_019e3bab-0078-7679-aa5e-bae3cdab9b72" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_ProceedsFromPurchasesForUndrawnPortionOfRevolvingLoansOperatingActivities_019e3bab-0078-7dd9-9be1-6ebc054c867d" xlink:href="gbdc4-20260630.xsd#gbdc4_ProceedsFromPurchasesForUndrawnPortionOfRevolvingLoansOperatingActivities"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_gbdc4_ProceedsFromPurchasesForUndrawnPortionOfRevolvingLoansOperatingActivities_019e3bab-0078-7dd9-9be1-6ebc054c867d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity_019e3bab-0078-7d80-a77c-45d1665276e5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity_019e3bab-0078-7d80-a77c-45d1665276e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDispositionOfInvestmentOperatingActivity_019e3bab-0078-7f12-a5ae-d30ca15cdacb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromDispositionOfInvestmentOperatingActivity"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_us-gaap_ProceedsFromDispositionOfInvestmentOperatingActivity_019e3bab-0078-7f12-a5ae-d30ca15cdacb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_InterestIncomeOperatingPaidInKindCapitalized_019e3bab-0078-72be-8936-b5a0df5371ad" xlink:href="gbdc4-20260630.xsd#gbdc4_InterestIncomeOperatingPaidInKindCapitalized"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_gbdc4_InterestIncomeOperatingPaidInKindCapitalized_019e3bab-0078-72be-8936-b5a0df5371ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_NonCashDividendsCapitalized_019e3bab-0078-7296-9ab6-1164a6f6e60e" xlink:href="gbdc4-20260630.xsd#gbdc4_NonCashDividendsCapitalized"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_gbdc4_NonCashDividendsCapitalized_019e3bab-0078-7296-9ab6-1164a6f6e60e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_ProceedsFromNonCashDividends_019e3bab-0078-768d-8e2c-51ff82af9454" xlink:href="gbdc4-20260630.xsd#gbdc4_ProceedsFromNonCashDividends"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_gbdc4_ProceedsFromNonCashDividends_019e3bab-0078-768d-8e2c-51ff82af9454" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_019e3bab-0078-74ec-a178-fa3adce9d93d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_019e3bab-0078-74ec-a178-fa3adce9d93d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInReceivableForInvestmentSold_019e3bab-0078-75e6-b53b-9be24841d696" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInReceivableForInvestmentSold"/>
    <link:calculationArc order="16" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_us-gaap_IncreaseDecreaseInReceivableForInvestmentSold_019e3bab-0078-75e6-b53b-9be24841d696" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_019e3bab-0078-7384-9ce5-ea82e1b7e5e8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="17" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_019e3bab-0078-7384-9ce5-ea82e1b7e5e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_019e3bab-0078-7151-af8d-77c8ce3bcaac" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInInterestPayableNet"/>
    <link:calculationArc order="18" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_019e3bab-0078-7151-af8d-77c8ce3bcaac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInManagementAndIncentiveFeesPayable_019e3bab-0078-716f-a379-63b8c4531d94" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInManagementAndIncentiveFeesPayable"/>
    <link:calculationArc order="19" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_us-gaap_IncreaseDecreaseInManagementAndIncentiveFeesPayable_019e3bab-0078-716f-a379-63b8c4531d94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPayableForInvestmentPurchased_019e3bab-0078-7224-8f88-8bd1dda13beb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInPayableForInvestmentPurchased"/>
    <link:calculationArc order="20" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_us-gaap_IncreaseDecreaseInPayableForInvestmentPurchased_019e3bab-0078-7224-8f88-8bd1dda13beb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_IncreaseDecreaseInAccruedTrusteeFees_019e3bab-0078-7d05-a0aa-ec2e399ae3fe" xlink:href="gbdc4-20260630.xsd#gbdc4_IncreaseDecreaseInAccruedTrusteeFees"/>
    <link:calculationArc order="21" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_gbdc4_IncreaseDecreaseInAccruedTrusteeFees_019e3bab-0078-7d05-a0aa-ec2e399ae3fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_019e3bab-0078-7171-8620-1c6a7ac1c0e7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities"/>
    <link:calculationArc order="22" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_019e3bab-0078-7171-8620-1c6a7ac1c0e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesRealizedGainLoss_019f191d-eef1-7fea-ba16-200becf74b13" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtAndEquitySecuritiesRealizedGainLoss"/>
    <link:calculationArc order="23" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-773d-a233-045c7057fc99" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesRealizedGainLoss_019f191d-eef1-7fea-ba16-200becf74b13" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_019e3bab-0078-7a81-b980-2f3ff744e4ea" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-796d-8b88-e428eb1b560b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_019e3bab-0078-7a81-b980-2f3ff744e4ea" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e3bab-0078-796d-8b88-e428eb1b560b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e3bab-0078-7765-baba-6eec13d9990b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_019e3bab-0078-7a81-b980-2f3ff744e4ea" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e3bab-0078-7765-baba-6eec13d9990b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e3bab-0078-73ab-b458-7fe032bd922a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_019e3bab-0078-797e-a6a5-3bc402c9efaa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromIssuanceOfLongTermDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e3bab-0078-73ab-b458-7fe032bd922a" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_019e3bab-0078-797e-a6a5-3bc402c9efaa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_019e3bab-0078-7413-bf30-54cc7f7cbeed" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RepaymentsOfLongTermDebt"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e3bab-0078-73ab-b458-7fe032bd922a" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_019e3bab-0078-7413-bf30-54cc7f7cbeed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_019e3bab-0078-7032-82a6-9f187dea91c3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e3bab-0078-73ab-b458-7fe032bd922a" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_019e3bab-0078-7032-82a6-9f187dea91c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_019e3bab-0078-784a-90c8-9a64b1fd13f9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e3bab-0078-73ab-b458-7fe032bd922a" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_019e3bab-0078-784a-90c8-9a64b1fd13f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_019e3bab-0078-72ec-af51-72d9263c66bd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.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_019e3bab-0078-73ab-b458-7fe032bd922a" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_019e3bab-0078-72ec-af51-72d9263c66bd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://golubcapitalbdc.com/role/ConsolidatedStatementsofCashFlowsunauditedParenthetical" xlink:type="simple" xlink:href="gbdc4-20260630.xsd#ConsolidatedStatementsofCashFlowsunauditedParenthetical"/>
  <link:calculationLink xlink:role="http://golubcapitalbdc.com/role/ConsolidatedStatementsofCashFlowsunauditedParenthetical" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019e3bab-0078-71aa-97e4-9562806a78d6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashNotHeldInForeignCurrency_019e3bab-0078-7ec4-bb52-68f99665f73e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashNotHeldInForeignCurrency"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019e3bab-0078-71aa-97e4-9562806a78d6" xlink:to="loc_us-gaap_CashNotHeldInForeignCurrency_019e3bab-0078-7ec4-bb52-68f99665f73e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashEquivalentsAtCarryingValue_019e3bab-0078-7b6a-840d-b620dba083fc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019e3bab-0078-71aa-97e4-9562806a78d6" xlink:to="loc_us-gaap_CashEquivalentsAtCarryingValue_019e3bab-0078-7b6a-840d-b620dba083fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashHeldInForeignCurrency_019e3bab-0078-7acd-8bd7-5797036584c3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashHeldInForeignCurrency"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019e3bab-0078-71aa-97e4-9562806a78d6" xlink:to="loc_us-gaap_CashHeldInForeignCurrency_019e3bab-0078-7acd-8bd7-5797036584c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCash_019e3bab-0078-7b32-bc5d-8a835f734697" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCash"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019e3bab-0078-71aa-97e4-9562806a78d6" xlink:to="loc_us-gaap_RestrictedCash_019e3bab-0078-7b32-bc5d-8a835f734697" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashEquivalents_019e3bab-0078-7397-975e-009d14367a19" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCashEquivalents"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019e3bab-0078-71aa-97e4-9562806a78d6" xlink:to="loc_us-gaap_RestrictedCashEquivalents_019e3bab-0078-7397-975e-009d14367a19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_RestrictedCashHeldInForeignCurrency_019e3bab-0078-727b-a777-65b45077f58b" xlink:href="gbdc4-20260630.xsd#gbdc4_RestrictedCashHeldInForeignCurrency"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019e3bab-0078-71aa-97e4-9562806a78d6" xlink:to="loc_gbdc4_RestrictedCashHeldInForeignCurrency_019e3bab-0078-727b-a777-65b45077f58b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://golubcapitalbdc.com/role/ConsolidatedScheduleofInvestments" xlink:type="simple" xlink:href="gbdc4-20260630.xsd#ConsolidatedScheduleofInvestments"/>
  <link:calculationLink xlink:role="http://golubcapitalbdc.com/role/ConsolidatedScheduleofInvestments" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_InvestmentOwnedAndMoneyMarketFundsPercentOfNetAssets_019e3bab-0078-77ba-84b8-923719b33393" xlink:href="gbdc4-20260630.xsd#gbdc4_InvestmentOwnedAndMoneyMarketFundsPercentOfNetAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedPercentOfNetAssets_019e3bab-0078-7e6b-bc1b-6dd79533b63d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentOwnedPercentOfNetAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc4_InvestmentOwnedAndMoneyMarketFundsPercentOfNetAssets_019e3bab-0078-77ba-84b8-923719b33393" xlink:to="loc_us-gaap_InvestmentOwnedPercentOfNetAssets_019e3bab-0078-7e6b-bc1b-6dd79533b63d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_MoneyMarketFundsPercentOfNetAssets_019e3bab-0078-79e5-b5d6-32fac5482657" xlink:href="gbdc4-20260630.xsd#gbdc4_MoneyMarketFundsPercentOfNetAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc4_InvestmentOwnedAndMoneyMarketFundsPercentOfNetAssets_019e3bab-0078-77ba-84b8-923719b33393" xlink:to="loc_gbdc4_MoneyMarketFundsPercentOfNetAssets_019e3bab-0078-79e5-b5d6-32fac5482657" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_InvestmentOwnedAtFairValueAndMoneyMarketFundsAtCarryingValue_019e3bab-0078-75d0-879c-d91921a8fe10" xlink:href="gbdc4-20260630.xsd#gbdc4_InvestmentOwnedAtFairValueAndMoneyMarketFundsAtCarryingValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtFairValue_019e3bab-0078-72c1-b27a-e75daf399e35" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentOwnedAtFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc4_InvestmentOwnedAtFairValueAndMoneyMarketFundsAtCarryingValue_019e3bab-0078-75d0-879c-d91921a8fe10" xlink:to="loc_us-gaap_InvestmentOwnedAtFairValue_019e3bab-0078-72c1-b27a-e75daf399e35" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_MoneyMarketFundsFairValueDisclosure_019e3bab-0078-7232-8b15-1ddb1f025cca" xlink:href="gbdc4-20260630.xsd#gbdc4_MoneyMarketFundsFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc4_InvestmentOwnedAtFairValueAndMoneyMarketFundsAtCarryingValue_019e3bab-0078-75d0-879c-d91921a8fe10" xlink:to="loc_gbdc4_MoneyMarketFundsFairValueDisclosure_019e3bab-0078-7232-8b15-1ddb1f025cca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_InvestmentOwnedAtCostAndMoneyMarketFundsAtCarryingValue_019e3bab-0078-7347-b4f5-962da48ea683" xlink:href="gbdc4-20260630.xsd#gbdc4_InvestmentOwnedAtCostAndMoneyMarketFundsAtCarryingValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtCost_019e3bab-0078-7c99-82fa-ba71c8150025" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentOwnedAtCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc4_InvestmentOwnedAtCostAndMoneyMarketFundsAtCarryingValue_019e3bab-0078-7347-b4f5-962da48ea683" xlink:to="loc_us-gaap_InvestmentOwnedAtCost_019e3bab-0078-7c99-82fa-ba71c8150025" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsAtCarryingValue_019e3bab-0078-7878-9905-b3f8532d20b1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MoneyMarketFundsAtCarryingValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc4_InvestmentOwnedAtCostAndMoneyMarketFundsAtCarryingValue_019e3bab-0078-7347-b4f5-962da48ea683" xlink:to="loc_us-gaap_MoneyMarketFundsAtCarryingValue_019e3bab-0078-7878-9905-b3f8532d20b1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://golubcapitalbdc.com/role/DerivativesScheduleofForwardCurrencyContractFairValueDetails" xlink:type="simple" xlink:href="gbdc4-20260630.xsd#DerivativesScheduleofForwardCurrencyContractFairValueDetails"/>
  <link:calculationLink xlink:role="http://golubcapitalbdc.com/role/DerivativesScheduleofForwardCurrencyContractFairValueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_DerivativeAssetLiabilitySubjectToMasterNettingArrangementAfterOffsetAndDeduction_019e3bab-0078-75fe-8ba6-57a2adc38eba" xlink:href="gbdc4-20260630.xsd#gbdc4_DerivativeAssetLiabilitySubjectToMasterNettingArrangementAfterOffsetAndDeduction"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueAfterOffsetAndDeductionSubjectToMasterNettingArrangement_019e3bab-0078-741a-b3e7-3ceb7bee0138" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilityFairValueAfterOffsetAndDeductionSubjectToMasterNettingArrangement"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc4_DerivativeAssetLiabilitySubjectToMasterNettingArrangementAfterOffsetAndDeduction_019e3bab-0078-75fe-8ba6-57a2adc38eba" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueAfterOffsetAndDeductionSubjectToMasterNettingArrangement_019e3bab-0078-741a-b3e7-3ceb7bee0138" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueAfterOffsetAndDeductionSubjectToMasterNettingArrangement_019e3bab-0078-77ee-9924-28beb3706024" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssetFairValueAfterOffsetAndDeductionSubjectToMasterNettingArrangement"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc4_DerivativeAssetLiabilitySubjectToMasterNettingArrangementAfterOffsetAndDeduction_019e3bab-0078-75fe-8ba6-57a2adc38eba" xlink:to="loc_us-gaap_DerivativeAssetFairValueAfterOffsetAndDeductionSubjectToMasterNettingArrangement_019e3bab-0078-77ee-9924-28beb3706024" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueAfterOffsetAndDeductionSubjectToMasterNettingArrangement_019e3bab-0078-7113-81d6-0a3596abd593" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssetFairValueAfterOffsetAndDeductionSubjectToMasterNettingArrangement"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019e3bab-0078-7327-a3be-bc77a5966e94" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetFairValueAfterOffsetAndDeductionSubjectToMasterNettingArrangement_019e3bab-0078-7113-81d6-0a3596abd593" xlink:to="loc_us-gaap_DerivativeAssets_019e3bab-0078-7327-a3be-bc77a5966e94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnCash_019e3bab-0078-7b28-8aed-d3a1069286b0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeCollateralObligationToReturnCash"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetFairValueAfterOffsetAndDeductionSubjectToMasterNettingArrangement_019e3bab-0078-7113-81d6-0a3596abd593" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnCash_019e3bab-0078-7b28-8aed-d3a1069286b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_DerivativeAssetLiabilitySubjectToMasterNettingArrangementIncludingOffset_019e3bab-0078-7564-bc7f-c38f4eaee976" xlink:href="gbdc4-20260630.xsd#gbdc4_DerivativeAssetLiabilitySubjectToMasterNettingArrangementIncludingOffset"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_019e3bab-0078-70e0-9b4e-2921494a9bea" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc4_DerivativeAssetLiabilitySubjectToMasterNettingArrangementIncludingOffset_019e3bab-0078-7564-bc7f-c38f4eaee976" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_019e3bab-0078-70e0-9b4e-2921494a9bea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019e3bab-0078-7e73-b141-6628788ee3cc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc4_DerivativeAssetLiabilitySubjectToMasterNettingArrangementIncludingOffset_019e3bab-0078-7564-bc7f-c38f4eaee976" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019e3bab-0078-7e73-b141-6628788ee3cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019e3bab-0078-72e1-a0d8-bbef73de7cd6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_019e3bab-0078-79f4-9558-061d1344cf33" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssetFairValueGrossLiability"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_019e3bab-0078-72e1-a0d8-bbef73de7cd6" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_019e3bab-0078-79f4-9558-061d1344cf33" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019e3bab-0078-71a7-ba91-b525ff9b0f75" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_019e3bab-0078-72e1-a0d8-bbef73de7cd6" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019e3bab-0078-71a7-ba91-b525ff9b0f75" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_DerivativeLiabilityAssetSubjectToMasterNettingArrangementIncludingOffset_019e3bab-0078-78b7-a86e-5ec2e3059091" xlink:href="gbdc4-20260630.xsd#gbdc4_DerivativeLiabilityAssetSubjectToMasterNettingArrangementIncludingOffset"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019e3bab-0078-7d39-82a5-ec2e2e021132" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc4_DerivativeLiabilityAssetSubjectToMasterNettingArrangementIncludingOffset_019e3bab-0078-78b7-a86e-5ec2e3059091" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019e3bab-0078-7d39-82a5-ec2e2e021132" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_019e3bab-0078-71e7-b5a0-f622b4a237d3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssetFairValueGrossLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc4_DerivativeLiabilityAssetSubjectToMasterNettingArrangementIncludingOffset_019e3bab-0078-78b7-a86e-5ec2e3059091" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_019e3bab-0078-71e7-b5a0-f622b4a237d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueAfterOffsetAndDeductionSubjectToMasterNettingArrangement_019e3bab-0078-7fb5-9f79-93f5f36da3d7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilityFairValueAfterOffsetAndDeductionSubjectToMasterNettingArrangement"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019e3bab-0078-7ef9-981c-7597873839c0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilityFairValueAfterOffsetAndDeductionSubjectToMasterNettingArrangement_019e3bab-0078-7fb5-9f79-93f5f36da3d7" xlink:to="loc_us-gaap_DerivativeLiabilities_019e3bab-0078-7ef9-981c-7597873839c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimCash_019e3bab-0078-7e15-b7e0-88f6d473d7ae" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeCollateralRightToReclaimCash"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilityFairValueAfterOffsetAndDeductionSubjectToMasterNettingArrangement_019e3bab-0078-7fb5-9f79-93f5f36da3d7" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimCash_019e3bab-0078-7e15-b7e0-88f6d473d7ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_DerivativeLiabilitySubjectToMasterNettingArrangementCollateralRightToReclaimObligationToReturnCashNotOffset_019e3bab-0078-778b-a612-176ef04c3793" xlink:href="gbdc4-20260630.xsd#gbdc4_DerivativeLiabilitySubjectToMasterNettingArrangementCollateralRightToReclaimObligationToReturnCashNotOffset"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimCash_019e3bab-0078-78c1-9e6f-9a77b7e97266" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeCollateralRightToReclaimCash"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc4_DerivativeLiabilitySubjectToMasterNettingArrangementCollateralRightToReclaimObligationToReturnCashNotOffset_019e3bab-0078-778b-a612-176ef04c3793" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimCash_019e3bab-0078-78c1-9e6f-9a77b7e97266" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnCash_019e3bab-0078-771a-99f4-3e2745cdea2d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeCollateralObligationToReturnCash"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc4_DerivativeLiabilitySubjectToMasterNettingArrangementCollateralRightToReclaimObligationToReturnCashNotOffset_019e3bab-0078-778b-a612-176ef04c3793" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnCash_019e3bab-0078-771a-99f4-3e2745cdea2d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_019e3bab-0078-7ee8-8b28-127684aace26" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019e3bab-0078-7cf6-8e7f-daf4890c8503" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_019e3bab-0078-7ee8-8b28-127684aace26" xlink:to="loc_us-gaap_DerivativeLiabilities_019e3bab-0078-7cf6-8e7f-daf4890c8503" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019e3bab-0078-7178-94ab-183eb9797bf8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_019e3bab-0078-7ee8-8b28-127684aace26" xlink:to="loc_us-gaap_DerivativeAssets_019e3bab-0078-7178-94ab-183eb9797bf8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019e3bab-0078-73e4-9d22-ffae8a6f7050" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019e3bab-0078-7274-a15a-bcfc4ff9a73b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.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_DerivativeLiabilities_019e3bab-0078-73e4-9d22-ffae8a6f7050" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019e3bab-0078-7274-a15a-bcfc4ff9a73b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_019e3bab-0078-7b24-92e3-305b807e001a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.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_DerivativeLiabilities_019e3bab-0078-73e4-9d22-ffae8a6f7050" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_019e3bab-0078-7b24-92e3-305b807e001a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://golubcapitalbdc.com/role/FairValueMeasurementsScheduleofFairValueAssetsMeasuredonRecurringBasisDetails" xlink:type="simple" xlink:href="gbdc4-20260630.xsd#FairValueMeasurementsScheduleofFairValueAssetsMeasuredonRecurringBasisDetails"/>
  <link:calculationLink xlink:role="http://golubcapitalbdc.com/role/FairValueMeasurementsScheduleofFairValueAssetsMeasuredonRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_019e3bab-0078-7153-b6e8-953e1031d0b7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtFairValue_019e3bab-0078-7c6b-a973-03f8fd988a49" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentOwnedAtFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019e3bab-0078-7153-b6e8-953e1031d0b7" xlink:to="loc_us-gaap_InvestmentOwnedAtFairValue_019e3bab-0078-7c6b-a973-03f8fd988a49" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019e3bab-0078-7744-bc6a-9d3b99810a5c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019e3bab-0078-7153-b6e8-953e1031d0b7" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019e3bab-0078-7744-bc6a-9d3b99810a5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyContractAssetFairValueDisclosure_019e3bab-0078-75b4-817d-dd8eceb2658c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ForeignCurrencyContractAssetFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019e3bab-0078-7153-b6e8-953e1031d0b7" xlink:to="loc_us-gaap_ForeignCurrencyContractAssetFairValueDisclosure_019e3bab-0078-75b4-817d-dd8eceb2658c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_019e3bab-0078-7d51-a8f7-38ec0782cfc9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyContractsLiabilityFairValueDisclosure_019e3bab-0078-7ec9-9607-ba8bc5a84e02" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ForeignCurrencyContractsLiabilityFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_019e3bab-0078-7d51-a8f7-38ec0782cfc9" xlink:to="loc_us-gaap_ForeignCurrencyContractsLiabilityFairValueDisclosure_019e3bab-0078-7ec9-9607-ba8bc5a84e02" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://golubcapitalbdc.com/role/BorrowingsScheduleofDebtSecuritizationDetails" xlink:type="simple" xlink:href="gbdc4-20260630.xsd#BorrowingsScheduleofDebtSecuritizationDetails"/>
  <link:calculationLink xlink:role="http://golubcapitalbdc.com/role/BorrowingsScheduleofDebtSecuritizationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_019e3bab-0078-7813-abd4-29a13a2d648d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_019e3bab-0078-7f43-a909-478650a726a9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseDebt_019e3bab-0078-7813-abd4-29a13a2d648d" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_019e3bab-0078-7f43-a909-478650a726a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_FacilityFees_019e3bab-0078-796e-b578-112ef7fcb5a1" xlink:href="gbdc4-20260630.xsd#gbdc4_FacilityFees"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseDebt_019e3bab-0078-7813-abd4-29a13a2d648d" xlink:to="loc_gbdc4_FacilityFees_019e3bab-0078-796e-b578-112ef7fcb5a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebtExcludingAmortization_019e3bab-0078-7caa-9233-6d1089df4ae5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseDebtExcludingAmortization"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseDebt_019e3bab-0078-7813-abd4-29a13a2d648d" xlink:to="loc_us-gaap_InterestExpenseDebtExcludingAmortization_019e3bab-0078-7caa-9233-6d1089df4ae5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://golubcapitalbdc.com/role/BorrowingsScheduleofMaturitiesofLongTermDebtDetails" xlink:type="simple" xlink:href="gbdc4-20260630.xsd#BorrowingsScheduleofMaturitiesofLongTermDebtDetails"/>
  <link:calculationLink xlink:role="http://golubcapitalbdc.com/role/BorrowingsScheduleofMaturitiesofLongTermDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_019e3bab-0078-77d9-bbc0-b5d1b83063f1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_LongTermDebtGrossMaturityMoreThan5Years_019e3bab-0078-74c3-8e30-547823145312" xlink:href="gbdc4-20260630.xsd#gbdc4_LongTermDebtGrossMaturityMoreThan5Years"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_019e3bab-0078-77d9-bbc0-b5d1b83063f1" xlink:to="loc_gbdc4_LongTermDebtGrossMaturityMoreThan5Years_019e3bab-0078-74c3-8e30-547823145312" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_LongTermDebtGrossMaturityLessThan1Year_019e3bab-0078-7ee8-8e1f-5a9822997e65" xlink:href="gbdc4-20260630.xsd#gbdc4_LongTermDebtGrossMaturityLessThan1Year"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_019e3bab-0078-77d9-bbc0-b5d1b83063f1" xlink:to="loc_gbdc4_LongTermDebtGrossMaturityLessThan1Year_019e3bab-0078-7ee8-8e1f-5a9822997e65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_LongTermDebtGrossMaturity3Through5Years_019e3bab-0078-75f1-a627-03fb71f831f2" xlink:href="gbdc4-20260630.xsd#gbdc4_LongTermDebtGrossMaturity3Through5Years"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_019e3bab-0078-77d9-bbc0-b5d1b83063f1" xlink:to="loc_gbdc4_LongTermDebtGrossMaturity3Through5Years_019e3bab-0078-75f1-a627-03fb71f831f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc4_LongTermDebtGrossMaturity1Through3Years_019e3bab-0078-7b74-8211-6fc8bf7ae03d" xlink:href="gbdc4-20260630.xsd#gbdc4_LongTermDebtGrossMaturity1Through3Years"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_019e3bab-0078-77d9-bbc0-b5d1b83063f1" xlink:to="loc_gbdc4_LongTermDebtGrossMaturity1Through3Years_019e3bab-0078-7b74-8211-6fc8bf7ae03d" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
