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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2025 Workiva-->
<!--r:6d26c66c-2666-424f-a288-a4c7c70c179a,g:49c6498b-7444-4692-a4b9-d0873bb3ee4f-->
<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="gbdc-20241231.xsd#ConsolidatedStatementsofFinancialCondition"/>
  <link:calculationLink xlink:role="http://golubcapitalbdc.com/role/ConsolidatedStatementsofFinancialCondition" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_02bcabc7-28b5-4909-b3d8-f65eb6a3aafd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashHeldInForeignCurrency_f815185f-8602-42c4-b7a8-bda519f15e95" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashHeldInForeignCurrency"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_02bcabc7-28b5-4909-b3d8-f65eb6a3aafd" xlink:to="loc_us-gaap_CashHeldInForeignCurrency_f815185f-8602-42c4-b7a8-bda519f15e95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtFairValue_9b21d39e-0685-4f36-9602-1f37d2ccde19" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedAtFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_02bcabc7-28b5-4909-b3d8-f65eb6a3aafd" xlink:to="loc_us-gaap_InvestmentOwnedAtFairValue_9b21d39e-0685-4f36-9602-1f37d2ccde19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_72929615-0853-4e57-8467-3ecb69a94194" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_02bcabc7-28b5-4909-b3d8-f65eb6a3aafd" xlink:to="loc_us-gaap_OtherAssets_72929615-0853-4e57-8467-3ecb69a94194" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_RestrictedCashHeldInForeignCurrency_2013a53e-f3dc-45d7-bea3-292182d64192" xlink:href="gbdc-20241231.xsd#gbdc_RestrictedCashHeldInForeignCurrency"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_02bcabc7-28b5-4909-b3d8-f65eb6a3aafd" xlink:to="loc_gbdc_RestrictedCashHeldInForeignCurrency_2013a53e-f3dc-45d7-bea3-292182d64192" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_36cb6cb6-7fbf-4cd9-855e-968ef205b2c5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_02bcabc7-28b5-4909-b3d8-f65eb6a3aafd" xlink:to="loc_us-gaap_DerivativeAssets_36cb6cb6-7fbf-4cd9-855e-968ef205b2c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_1b522d86-4b72-4a33-938c-0d69c2411723" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestrictedCashAndCashEquivalents"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_02bcabc7-28b5-4909-b3d8-f65eb6a3aafd" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_1b522d86-4b72-4a33-938c-0d69c2411723" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_77e7a0c0-d07a-402c-a584-46170d658ee0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_02bcabc7-28b5-4909-b3d8-f65eb6a3aafd" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_77e7a0c0-d07a-402c-a584-46170d658ee0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestReceivable_5dee5915-1c31-4b8d-bea4-05bbe667e1f7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_02bcabc7-28b5-4909-b3d8-f65eb6a3aafd" xlink:to="loc_us-gaap_InterestReceivable_5dee5915-1c31-4b8d-bea4-05bbe667e1f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_6725ad06-df6b-4d5a-b6f8-9ffc1408f000" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_990b59d3-028c-402c-b42b-c06e135db08f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_6725ad06-df6b-4d5a-b6f8-9ffc1408f000" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_990b59d3-028c-402c-b42b-c06e135db08f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_7823e86b-5fea-410b-8996-25fb9cca280e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_6725ad06-df6b-4d5a-b6f8-9ffc1408f000" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_7823e86b-5fea-410b-8996-25fb9cca280e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_f006c30b-38af-405a-b8f6-105abd0d5374" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_a7ba98ad-4d23-4925-b07b-b373e427c180" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_f006c30b-38af-405a-b8f6-105abd0d5374" xlink:to="loc_us-gaap_StockholdersEquity_a7ba98ad-4d23-4925-b07b-b373e427c180" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_528cb467-d85a-4c76-9c38-c0ab0ee26847" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_f006c30b-38af-405a-b8f6-105abd0d5374" xlink:to="loc_us-gaap_CommitmentsAndContingencies_528cb467-d85a-4c76-9c38-c0ab0ee26847" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_d754be70-b695-4ce6-bd59-7ad096bf7087" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_f006c30b-38af-405a-b8f6-105abd0d5374" xlink:to="loc_us-gaap_Liabilities_d754be70-b695-4ce6-bd59-7ad096bf7087" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_1210a642-0f01-431a-b1f0-77def147e5c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_ManagementAndIncentiveFeePayable_fc1826d1-09a0-4afe-8b5e-bc140c4b8ecc" xlink:href="gbdc-20241231.xsd#gbdc_ManagementAndIncentiveFeePayable"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_1210a642-0f01-431a-b1f0-77def147e5c8" xlink:to="loc_gbdc_ManagementAndIncentiveFeePayable_fc1826d1-09a0-4afe-8b5e-bc140c4b8ecc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_d2122939-d408-46f7-a882-294512d46933" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableAndOtherAccruedLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_1210a642-0f01-431a-b1f0-77def147e5c8" xlink:to="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilities_d2122939-d408-46f7-a882-294512d46933" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_0b0bcbfb-6f44-4a6d-a4ec-9539a3cc5c80" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_1210a642-0f01-431a-b1f0-77def147e5c8" xlink:to="loc_us-gaap_DerivativeLiabilities_0b0bcbfb-6f44-4a6d-a4ec-9539a3cc5c80" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_553591f0-3d94-41fe-97f6-ed4739bbaa16" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_1210a642-0f01-431a-b1f0-77def147e5c8" xlink:to="loc_us-gaap_LongTermDebt_553591f0-3d94-41fe-97f6-ed4739bbaa16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_0df1c175-d543-4fdc-be2b-a50c48618248" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestPayableCurrentAndNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_1210a642-0f01-431a-b1f0-77def147e5c8" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_0df1c175-d543-4fdc-be2b-a50c48618248" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_AccruedTrusteeFees_c033b323-d5c2-4d4e-a307-199bbdab8a73" xlink:href="gbdc-20241231.xsd#gbdc_AccruedTrusteeFees"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_1210a642-0f01-431a-b1f0-77def147e5c8" xlink:to="loc_gbdc_AccruedTrusteeFees_c033b323-d5c2-4d4e-a307-199bbdab8a73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_d0d3f18c-94c9-47c8-b24b-40cb80292adf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_5546807c-b2db-449d-8cf6-826f6a4febbd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_d0d3f18c-94c9-47c8-b24b-40cb80292adf" xlink:to="loc_us-gaap_AdditionalPaidInCapital_5546807c-b2db-449d-8cf6-826f6a4febbd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_b2cdce12-c562-4454-9c36-71271088b9c2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_d0d3f18c-94c9-47c8-b24b-40cb80292adf" xlink:to="loc_us-gaap_CommonStockValue_b2cdce12-c562-4454-9c36-71271088b9c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_5162eed8-bf34-4fce-9668-d2b8d1d3a808" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_d0d3f18c-94c9-47c8-b24b-40cb80292adf" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_5162eed8-bf34-4fce-9668-d2b8d1d3a808" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_197f2c96-6ae4-42ab-8248-08243f4cf0a0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_d0d3f18c-94c9-47c8-b24b-40cb80292adf" xlink:to="loc_us-gaap_PreferredStockValue_197f2c96-6ae4-42ab-8248-08243f4cf0a0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://golubcapitalbdc.com/role/ConsolidatedStatementsofOperationsunaudited" xlink:type="simple" xlink:href="gbdc-20241231.xsd#ConsolidatedStatementsofOperationsunaudited"/>
  <link:calculationLink xlink:role="http://golubcapitalbdc.com/role/ConsolidatedStatementsofOperationsunaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_059a850f-4fb5-4f82-9403-06774adec28b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesRealizedGainLoss_bd42b36b-f20b-4d31-9ed4-b204e1c2a3cc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_059a850f-4fb5-4f82-9403-06774adec28b" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesRealizedGainLoss_bd42b36b-f20b-4d31-9ed4-b204e1c2a3cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossRealized_4657e3d4-1e76-4cf3-b5d6-a8f4e2e80182" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_059a850f-4fb5-4f82-9403-06774adec28b" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossRealized_4657e3d4-1e76-4cf3-b5d6-a8f4e2e80182" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfDerivatives_4a4216d5-9867-4722-b1b1-b4936ebaf232" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnSaleOfDerivatives"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_059a850f-4fb5-4f82-9403-06774adec28b" xlink:to="loc_us-gaap_GainLossOnSaleOfDerivatives_4a4216d5-9867-4722-b1b1-b4936ebaf232" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_8b266025-263b-4527-873b-13d1713a119a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedAndUnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_afee80e4-c62e-4c74-8ba0-b7278b8a10ae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_8b266025-263b-4527-873b-13d1713a119a" xlink:to="loc_us-gaap_RealizedAndUnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_afee80e4-c62e-4c74-8ba0-b7278b8a10ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax_6a20bf83-b3e7-466f-b99c-f0d60d34d33d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_8b266025-263b-4527-873b-13d1713a119a" xlink:to="loc_us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax_6a20bf83-b3e7-466f-b99c-f0d60d34d33d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_381322c8-889d-4199-b890-71cb1680cebd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_8b266025-263b-4527-873b-13d1713a119a" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_381322c8-889d-4199-b890-71cb1680cebd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefit_2a7ddb03-eb78-413a-84d7-52eb90b10beb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefit"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_8b266025-263b-4527-873b-13d1713a119a" xlink:to="loc_us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefit_2a7ddb03-eb78-413a-84d7-52eb90b10beb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_61a26c46-92c0-4137-a0d4-6a9b5dc10ca1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss_ad7b26e5-6965-4d25-8b38-320801b5914f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_61a26c46-92c0-4137-a0d4-6a9b5dc10ca1" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss_ad7b26e5-6965-4d25-8b38-320801b5914f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossUnrealized_99969678-732b-4854-8d62-0154d97865d5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeignCurrencyTransactionGainLossUnrealized"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_61a26c46-92c0-4137-a0d4-6a9b5dc10ca1" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossUnrealized_99969678-732b-4854-8d62-0154d97865d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnDerivatives_99f33416-2143-4255-b171-e8ede221267b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnrealizedGainLossOnDerivatives"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_61a26c46-92c0-4137-a0d4-6a9b5dc10ca1" xlink:to="loc_us-gaap_UnrealizedGainLossOnDerivatives_99f33416-2143-4255-b171-e8ede221267b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossInvestmentIncomeOperating_fa0dccaf-2912-4285-9538-4b8b1e46ada1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GrossInvestmentIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeOperatingPaidInCash_72e29266-a263-489b-a345-8c526e93c55d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_fa0dccaf-2912-4285-9538-4b8b1e46ada1" xlink:to="loc_us-gaap_InterestIncomeOperatingPaidInCash_72e29266-a263-489b-a345-8c526e93c55d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FeeIncome_5284bae5-c212-4053-aed7-3457ee723bb8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FeeIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossInvestmentIncomeOperating_fa0dccaf-2912-4285-9538-4b8b1e46ada1" xlink:to="loc_us-gaap_FeeIncome_5284bae5-c212-4053-aed7-3457ee723bb8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendIncomeOperating_084c9314-464e-425c-907d-3ded024ea3a1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DividendIncomeOperating"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossInvestmentIncomeOperating_fa0dccaf-2912-4285-9538-4b8b1e46ada1" xlink:to="loc_us-gaap_DividendIncomeOperating_084c9314-464e-425c-907d-3ded024ea3a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeOperatingPaidInKind_570f2df4-f825-424d-b737-afbef7b4c568" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestIncomeOperatingPaidInKind"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossInvestmentIncomeOperating_fa0dccaf-2912-4285-9538-4b8b1e46ada1" xlink:to="loc_us-gaap_InterestIncomeOperatingPaidInKind_570f2df4-f825-424d-b737-afbef7b4c568" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_GrossInvestmentIncomeOperatingNetOfAmortization_f471c607-f571-4a29-ba98-e8a5bfe3b65f" xlink:href="gbdc-20241231.xsd#gbdc_GrossInvestmentIncomeOperatingNetOfAmortization"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GrossInvestmentIncomeOperating_fa0dccaf-2912-4285-9538-4b8b1e46ada1" xlink:to="loc_gbdc_GrossInvestmentIncomeOperatingNetOfAmortization_f471c607-f571-4a29-ba98-e8a5bfe3b65f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax_413c17be-3ba1-4623-9f80-1aa0728d381e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeOperatingTaxExpenseBenefit_8a5fd6cf-8186-42fb-b1a9-2d784d4d502c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIncomeOperatingTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax_413c17be-3ba1-4623-9f80-1aa0728d381e" xlink:to="loc_us-gaap_InvestmentIncomeOperatingTaxExpenseBenefit_8a5fd6cf-8186-42fb-b1a9-2d784d4d502c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetInvestmentIncome_06a69147-0091-4ebd-b427-5bc2decb38be" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_InvestmentIncomeOperatingAfterExpenseAndTax_413c17be-3ba1-4623-9f80-1aa0728d381e" xlink:to="loc_us-gaap_NetInvestmentIncome_06a69147-0091-4ebd-b427-5bc2decb38be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedAndUnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_dc8cdc23-dcb2-4246-917a-669d7af3f15c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RealizedAndUnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_06b6c02c-317d-4f3b-b28a-4121d04ba916" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_dc8cdc23-dcb2-4246-917a-669d7af3f15c" xlink:to="loc_us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_06b6c02c-317d-4f3b-b28a-4121d04ba916" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_fd961e8e-7e15-4d91-97a8-c0b04fa0b7e7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_dc8cdc23-dcb2-4246-917a-669d7af3f15c" xlink:to="loc_us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_fd961e8e-7e15-4d91-97a8-c0b04fa0b7e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetInvestmentIncome_294d4faf-e943-43d4-b13a-b3b2d85c049b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetInvestmentIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossInvestmentIncomeOperating_a8080b0d-ceef-45d6-9e04-c1267df7c651" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GrossInvestmentIncomeOperating"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetInvestmentIncome_294d4faf-e943-43d4-b13a-b3b2d85c049b" xlink:to="loc_us-gaap_GrossInvestmentIncomeOperating_a8080b0d-ceef-45d6-9e04-c1267df7c651" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInvestmentExpense_df950d64-4658-453b-abb6-1f6b1b3537c6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIncomeInvestmentExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetInvestmentIncome_294d4faf-e943-43d4-b13a-b3b2d85c049b" xlink:to="loc_us-gaap_InvestmentIncomeInvestmentExpense_df950d64-4658-453b-abb6-1f6b1b3537c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInvestmentExpense_d723bae8-01db-4853-a64e-5e2e6b546e60" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIncomeInvestmentExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_IncentiveFeeExpenseNetOfAdjustments_98c7a716-20c5-44b6-901b-02e03e08978c" xlink:href="gbdc-20241231.xsd#gbdc_IncentiveFeeExpenseNetOfAdjustments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_d723bae8-01db-4853-a64e-5e2e6b546e60" xlink:to="loc_gbdc_IncentiveFeeExpenseNetOfAdjustments_98c7a716-20c5-44b6-901b-02e03e08978c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfessionalFees_d55cd49f-cd17-4f12-a885-ca0245ec92ad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfessionalFees"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_d723bae8-01db-4853-a64e-5e2e6b546e60" xlink:to="loc_us-gaap_ProfessionalFees_d55cd49f-cd17-4f12-a885-ca0245ec92ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdministrativeFeesExpense_0c37b6f5-ccf0-4224-8d00-42428a73fe5b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdministrativeFeesExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_d723bae8-01db-4853-a64e-5e2e6b546e60" xlink:to="loc_us-gaap_AdministrativeFeesExpense_0c37b6f5-ccf0-4224-8d00-42428a73fe5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_bba7cffe-1137-49fd-9e59-57bce29cf401" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_d723bae8-01db-4853-a64e-5e2e6b546e60" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_bba7cffe-1137-49fd-9e59-57bce29cf401" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ManagementFeeExpense_27e05619-baaf-42fc-a033-1ae0fd199e32" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ManagementFeeExpense"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_d723bae8-01db-4853-a64e-5e2e6b546e60" xlink:to="loc_us-gaap_ManagementFeeExpense_27e05619-baaf-42fc-a033-1ae0fd199e32" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_c8780398-119c-4d63-99f7-518cfc2123ed" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpenseOperating"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeInvestmentExpense_d723bae8-01db-4853-a64e-5e2e6b546e60" xlink:to="loc_us-gaap_InterestExpenseOperating_c8780398-119c-4d63-99f7-518cfc2123ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_GrossInvestmentIncomeOperatingNetOfAmortization_9042e688-2b24-4ebd-b40f-cf8e0fdd77c0" xlink:href="gbdc-20241231.xsd#gbdc_GrossInvestmentIncomeOperatingNetOfAmortization"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FeeIncome_765e3a9e-3d90-4f5c-b54b-741c9bb5fa73" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FeeIncome"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc_GrossInvestmentIncomeOperatingNetOfAmortization_9042e688-2b24-4ebd-b40f-cf8e0fdd77c0" xlink:to="loc_us-gaap_FeeIncome_765e3a9e-3d90-4f5c-b54b-741c9bb5fa73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_InterestIncomeOperatingPaidInCashNetOfAmortization_368806f7-524f-4495-afaf-6b32229e2b8a" xlink:href="gbdc-20241231.xsd#gbdc_InterestIncomeOperatingPaidInCashNetOfAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc_GrossInvestmentIncomeOperatingNetOfAmortization_9042e688-2b24-4ebd-b40f-cf8e0fdd77c0" xlink:to="loc_gbdc_InterestIncomeOperatingPaidInCashNetOfAmortization_368806f7-524f-4495-afaf-6b32229e2b8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeOperatingPaidInKind_61898609-371e-4b84-9fc8-10bb243e5d6e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestIncomeOperatingPaidInKind"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc_GrossInvestmentIncomeOperatingNetOfAmortization_9042e688-2b24-4ebd-b40f-cf8e0fdd77c0" xlink:to="loc_us-gaap_InterestIncomeOperatingPaidInKind_61898609-371e-4b84-9fc8-10bb243e5d6e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://golubcapitalbdc.com/role/ConsolidatedStatementsofChangesinNetAssetsunaudited" xlink:type="simple" xlink:href="gbdc-20241231.xsd#ConsolidatedStatementsofChangesinNetAssetsunaudited"/>
  <link:calculationLink xlink:role="http://golubcapitalbdc.com/role/ConsolidatedStatementsofChangesinNetAssetsunaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesPeriodIncreaseDecrease_92faf648-3c2b-40f4-a921-dcc80a23beec" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockIssuedDuringPeriodSharesPeriodIncreaseDecrease"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesDividendReinvestmentPlan_6d43d734-bc9b-4ee0-ae5f-0beb7daba0bc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_92faf648-3c2b-40f4-a921-dcc80a23beec" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesDividendReinvestmentPlan_6d43d734-bc9b-4ee0-ae5f-0beb7daba0bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityPeriodIncreaseDecrease_db5ca5a7-99ee-498a-b44c-ff90843b7407" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityPeriodIncreaseDecrease"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueDividendReinvestmentPlan_a09ee8eb-b10d-46c5-bf42-8b13b2cc8ded" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_db5ca5a7-99ee-498a-b44c-ff90843b7407" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueDividendReinvestmentPlan_a09ee8eb-b10d-46c5-bf42-8b13b2cc8ded" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyDividendDistribution_b68faa2f-ed7e-4c25-b738-b178f0782d32" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyDividendDistribution"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityPeriodIncreaseDecrease_db5ca5a7-99ee-498a-b44c-ff90843b7407" xlink:to="loc_us-gaap_InvestmentCompanyDividendDistribution_b68faa2f-ed7e-4c25-b738-b178f0782d32" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax_832558ed-7477-4245-8f77-484315b364ed" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityPeriodIncreaseDecrease_db5ca5a7-99ee-498a-b44c-ff90843b7407" xlink:to="loc_us-gaap_InvestmentIncomeOperatingAfterExpenseAndTax_832558ed-7477-4245-8f77-484315b364ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_929dcfb0-577a-4011-b7ff-3f4fcfbeb183" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityPeriodIncreaseDecrease_db5ca5a7-99ee-498a-b44c-ff90843b7407" xlink:to="loc_us-gaap_UnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_929dcfb0-577a-4011-b7ff-3f4fcfbeb183" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefit_51e588c1-5c33-48ad-9e1e-32ae9c89991a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefit"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityPeriodIncreaseDecrease_db5ca5a7-99ee-498a-b44c-ff90843b7407" xlink:to="loc_us-gaap_UnrealizedGainLossInvestmentAndDerivativeOperatingTaxExpenseBenefit_51e588c1-5c33-48ad-9e1e-32ae9c89991a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_73165b9e-79d6-4ce7-8e99-c393c55d3cc1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityPeriodIncreaseDecrease_db5ca5a7-99ee-498a-b44c-ff90843b7407" xlink:to="loc_us-gaap_RealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionPriceChangeOperatingBeforeTax_73165b9e-79d6-4ce7-8e99-c393c55d3cc1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_fbbdcc6c-3eb1-4cf9-8709-06a62c7fbc4d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_StockholdersEquityPeriodIncreaseDecrease_db5ca5a7-99ee-498a-b44c-ff90843b7407" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_fbbdcc6c-3eb1-4cf9-8709-06a62c7fbc4d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://golubcapitalbdc.com/role/ConsolidatedStatementsofCashFlowsunaudited" xlink:type="simple" xlink:href="gbdc-20241231.xsd#ConsolidatedStatementsofCashFlowsunaudited"/>
  <link:calculationLink xlink:role="http://golubcapitalbdc.com/role/ConsolidatedStatementsofCashFlowsunaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_08559ef3-b082-4ffe-9918-d0bb7f03cf2d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_15a9adeb-23c4-44af-ae77-a76602f8f444" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_08559ef3-b082-4ffe-9918-d0bb7f03cf2d" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_15a9adeb-23c4-44af-ae77-a76602f8f444" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e41fbebd-34b5-41ee-ae45-62b49df34d1e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_08559ef3-b082-4ffe-9918-d0bb7f03cf2d" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e41fbebd-34b5-41ee-ae45-62b49df34d1e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_ea7eb3dd-727e-43a5-98db-8e79058d5d62" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_4718b4b5-962c-489e-8722-839634f3229d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestrictedCashAndCashEquivalents"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_ea7eb3dd-727e-43a5-98db-8e79058d5d62" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_4718b4b5-962c-489e-8722-839634f3229d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashHeldInForeignCurrency_5d52bfc8-359c-4e96-81a1-2814504d6ccf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashHeldInForeignCurrency"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_ea7eb3dd-727e-43a5-98db-8e79058d5d62" xlink:to="loc_us-gaap_CashHeldInForeignCurrency_5d52bfc8-359c-4e96-81a1-2814504d6ccf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_RestrictedCashHeldInForeignCurrency_83075c01-bb57-41b3-9113-b8eabd0053f8" xlink:href="gbdc-20241231.xsd#gbdc_RestrictedCashHeldInForeignCurrency"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_ea7eb3dd-727e-43a5-98db-8e79058d5d62" xlink:to="loc_gbdc_RestrictedCashHeldInForeignCurrency_83075c01-bb57-41b3-9113-b8eabd0053f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_ce6131e0-c0d2-439f-95fa-f9efd7312663" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_ea7eb3dd-727e-43a5-98db-8e79058d5d62" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_ce6131e0-c0d2-439f-95fa-f9efd7312663" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a7acdea2-2709-4001-b14a-d5fc0c5b8029" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_ca2c52d9-b880-4220-902f-8ecf712bc7a5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RepaymentsOfLongTermDebt"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a7acdea2-2709-4001-b14a-d5fc0c5b8029" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_ca2c52d9-b880-4220-902f-8ecf712bc7a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_79696101-116f-48bf-82e1-526cfd30d738" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a7acdea2-2709-4001-b14a-d5fc0c5b8029" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_79696101-116f-48bf-82e1-526cfd30d738" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_823e810c-ce18-4729-b9a0-19da095652bd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfLongTermDebt"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a7acdea2-2709-4001-b14a-d5fc0c5b8029" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_823e810c-ce18-4729-b9a0-19da095652bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_0370fad4-23b2-4241-bcaf-45824bd9d073" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a7acdea2-2709-4001-b14a-d5fc0c5b8029" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_0370fad4-23b2-4241-bcaf-45824bd9d073" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_1a922975-d3a5-4c4f-82da-7fe1a6b8641f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_1a922975-d3a5-4c4f-82da-7fe1a6b8641f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossUnrealized_77f40752-075e-4edf-91c4-14739af6d6a6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeignCurrencyTransactionGainLossUnrealized"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossUnrealized_77f40752-075e-4edf-91c4-14739af6d6a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInManagementAndIncentiveFeesPayable_de4fc913-20d5-4688-ad1d-af2fbe891717" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInManagementAndIncentiveFeesPayable"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_us-gaap_IncreaseDecreaseInManagementAndIncentiveFeesPayable_de4fc913-20d5-4688-ad1d-af2fbe891717" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesRealizedGainLoss_18008412-db45-41ff-8dfb-744f285f9980" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtAndEquitySecuritiesRealizedGainLoss"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesRealizedGainLoss_18008412-db45-41ff-8dfb-744f285f9980" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_e2456956-cb7f-408c-9410-b02419144f91" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_e2456956-cb7f-408c-9410-b02419144f91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_79aeeec2-b6fa-49ac-8cab-754b2c2f452b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInInterestPayableNet"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_79aeeec2-b6fa-49ac-8cab-754b2c2f452b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity_100dd8f6-c08c-4366-a3bf-d9d15a2e24fb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity_100dd8f6-c08c-4366-a3bf-d9d15a2e24fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_171dbb2a-7177-4df6-9525-46bb952840ea" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_171dbb2a-7177-4df6-9525-46bb952840ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_ProceedsFromPurchasesForUndrawnPortionOfRevolvingLoansOperatingActivities_6fe9ac0f-b147-409a-8284-19122a5f0cd2" xlink:href="gbdc-20241231.xsd#gbdc_ProceedsFromPurchasesForUndrawnPortionOfRevolvingLoansOperatingActivities"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_gbdc_ProceedsFromPurchasesForUndrawnPortionOfRevolvingLoansOperatingActivities_6fe9ac0f-b147-409a-8284-19122a5f0cd2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_ProceedsFromDerivativeInstrumentOperatingActivities_0924c3da-b29b-46eb-80ee-63d0837887db" xlink:href="gbdc-20241231.xsd#gbdc_ProceedsFromDerivativeInstrumentOperatingActivities"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_gbdc_ProceedsFromDerivativeInstrumentOperatingActivities_0924c3da-b29b-46eb-80ee-63d0837887db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_NonCashDividendsCapitalized_1f3ad1b4-c440-4abe-baed-65c170491b3e" xlink:href="gbdc-20241231.xsd#gbdc_NonCashDividendsCapitalized"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_gbdc_NonCashDividendsCapitalized_1f3ad1b4-c440-4abe-baed-65c170491b3e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_999da987-ba7f-4ef9-8cfd-f3fd87b6dd1f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_999da987-ba7f-4ef9-8cfd-f3fd87b6dd1f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossRealized_33877364-d0e4-465c-b64a-6ed7b438d555" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeignCurrencyTransactionGainLossRealized"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossRealized_33877364-d0e4-465c-b64a-6ed7b438d555" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_c862785e-513b-4b3f-994d-dba5e6e61781" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_c862785e-513b-4b3f-994d-dba5e6e61781" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_AccretionAmortizationOfDiscountsAndPremiumsDebtSecurities_7d888444-ec32-49b1-a872-cc4f207e4fbd" xlink:href="gbdc-20241231.xsd#gbdc_AccretionAmortizationOfDiscountsAndPremiumsDebtSecurities"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_gbdc_AccretionAmortizationOfDiscountsAndPremiumsDebtSecurities_7d888444-ec32-49b1-a872-cc4f207e4fbd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_IncreaseDecreaseInAccruedTrusteeFees_7741d943-a370-484b-bab1-50bdfc835e2b" xlink:href="gbdc-20241231.xsd#gbdc_IncreaseDecreaseInAccruedTrusteeFees"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_gbdc_IncreaseDecreaseInAccruedTrusteeFees_7741d943-a370-484b-bab1-50bdfc835e2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss_543194fb-bdc2-4443-9e6d-1b3865c6b994" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss"/>
    <link:calculationArc order="17" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss_543194fb-bdc2-4443-9e6d-1b3865c6b994" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDispositionOfInvestmentOperatingActivity_b380f797-ed35-4247-8b2e-0e9f9a773691" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromDispositionOfInvestmentOperatingActivity"/>
    <link:calculationArc order="18" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_us-gaap_ProceedsFromDispositionOfInvestmentOperatingActivity_b380f797-ed35-4247-8b2e-0e9f9a773691" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_294b5f6c-98cd-4117-b67c-a4e94d65d5fe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="19" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_us-gaap_NetIncomeLoss_294b5f6c-98cd-4117-b67c-a4e94d65d5fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_InterestIncomeOperatingPaidInKindCapitalized_e615df2c-a925-440d-b3c6-b957599424f9" xlink:href="gbdc-20241231.xsd#gbdc_InterestIncomeOperatingPaidInKindCapitalized"/>
    <link:calculationArc order="20" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_gbdc_InterestIncomeOperatingPaidInKindCapitalized_e615df2c-a925-440d-b3c6-b957599424f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfDerivatives_607a2eea-4488-46fe-ba6a-c0c9b1226324" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnSaleOfDerivatives"/>
    <link:calculationArc order="21" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_us-gaap_GainLossOnSaleOfDerivatives_607a2eea-4488-46fe-ba6a-c0c9b1226324" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnDerivatives_37f7c180-2d84-45aa-b6e1-7b613a1aba69" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnrealizedGainLossOnDerivatives"/>
    <link:calculationArc order="22" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_us-gaap_UnrealizedGainLossOnDerivatives_37f7c180-2d84-45aa-b6e1-7b613a1aba69" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_1103fa2e-23a4-412d-aada-b320f3b0f418" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="23" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_1103fa2e-23a4-412d-aada-b320f3b0f418" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_ProceedsFromNonCashDividends_f89a7636-cb9b-4203-88da-479244f7e56a" xlink:href="gbdc-20241231.xsd#gbdc_ProceedsFromNonCashDividends"/>
    <link:calculationArc order="24" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ad5d25c3-1874-4b3a-9bb5-a3070062b448" xlink:to="loc_gbdc_ProceedsFromNonCashDividends_f89a7636-cb9b-4203-88da-479244f7e56a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://golubcapitalbdc.com/role/ConsolidatedScheduleofInvestments" xlink:type="simple" xlink:href="gbdc-20241231.xsd#ConsolidatedScheduleofInvestments"/>
  <link:calculationLink xlink:role="http://golubcapitalbdc.com/role/ConsolidatedScheduleofInvestments" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_InvestmentOwnedAtCostAndMoneyMarketFundsAtCarryingValue_1a931393-849a-4f56-86ad-c79b23e0274f" xlink:href="gbdc-20241231.xsd#gbdc_InvestmentOwnedAtCostAndMoneyMarketFundsAtCarryingValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtCost_5d4a47b3-6232-47ca-8e3f-ed7278078ead" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedAtCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc_InvestmentOwnedAtCostAndMoneyMarketFundsAtCarryingValue_1a931393-849a-4f56-86ad-c79b23e0274f" xlink:to="loc_us-gaap_InvestmentOwnedAtCost_5d4a47b3-6232-47ca-8e3f-ed7278078ead" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsAtCarryingValue_7b58836e-e6de-4a3e-bbd7-1c93b3bce5c0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MoneyMarketFundsAtCarryingValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc_InvestmentOwnedAtCostAndMoneyMarketFundsAtCarryingValue_1a931393-849a-4f56-86ad-c79b23e0274f" xlink:to="loc_us-gaap_MoneyMarketFundsAtCarryingValue_7b58836e-e6de-4a3e-bbd7-1c93b3bce5c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_InvestmentOwnedAndMoneyMarketFundsPercentOfNetAssets_735ad803-dc74-4e45-86f6-e331f9f052e7" xlink:href="gbdc-20241231.xsd#gbdc_InvestmentOwnedAndMoneyMarketFundsPercentOfNetAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_MoneyMarketFundsPercentOfNetAssets_69a6e321-0083-49f3-835e-cbb0369be321" xlink:href="gbdc-20241231.xsd#gbdc_MoneyMarketFundsPercentOfNetAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc_InvestmentOwnedAndMoneyMarketFundsPercentOfNetAssets_735ad803-dc74-4e45-86f6-e331f9f052e7" xlink:to="loc_gbdc_MoneyMarketFundsPercentOfNetAssets_69a6e321-0083-49f3-835e-cbb0369be321" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedPercentOfNetAssets_0dd1cd8c-7391-4b13-89a9-4f50bde9cb4b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedPercentOfNetAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc_InvestmentOwnedAndMoneyMarketFundsPercentOfNetAssets_735ad803-dc74-4e45-86f6-e331f9f052e7" xlink:to="loc_us-gaap_InvestmentOwnedPercentOfNetAssets_0dd1cd8c-7391-4b13-89a9-4f50bde9cb4b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_InvestmentOwnedAtFairValueAndMoneyMarketFundsAtCarryingValue_67f29c83-f3ff-4c3a-97d8-bfbf1a76ac9b" xlink:href="gbdc-20241231.xsd#gbdc_InvestmentOwnedAtFairValueAndMoneyMarketFundsAtCarryingValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsAtCarryingValue_b5d73c55-4f61-4999-95ca-6868f7c5aba5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MoneyMarketFundsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc_InvestmentOwnedAtFairValueAndMoneyMarketFundsAtCarryingValue_67f29c83-f3ff-4c3a-97d8-bfbf1a76ac9b" xlink:to="loc_us-gaap_MoneyMarketFundsAtCarryingValue_b5d73c55-4f61-4999-95ca-6868f7c5aba5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtFairValue_15ab5e8a-e65d-424c-be24-8627a1c9587f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedAtFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_gbdc_InvestmentOwnedAtFairValueAndMoneyMarketFundsAtCarryingValue_67f29c83-f3ff-4c3a-97d8-bfbf1a76ac9b" xlink:to="loc_us-gaap_InvestmentOwnedAtFairValue_15ab5e8a-e65d-424c-be24-8627a1c9587f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://golubcapitalbdc.com/role/DerivativesScheduleofDerivativesDesignatedinaQualifyingHedgeAccountingRelationshipDetails" xlink:type="simple" xlink:href="gbdc-20241231.xsd#DerivativesScheduleofDerivativesDesignatedinaQualifyingHedgeAccountingRelationshipDetails"/>
  <link:calculationLink xlink:role="http://golubcapitalbdc.com/role/DerivativesScheduleofDerivativesDesignatedinaQualifyingHedgeAccountingRelationshipDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings_3e07a54a-425f-48f7-b67c-b4a6f743f333" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1_585ed7ef-eef1-4bdb-a653-146e0fc9b86c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings_3e07a54a-425f-48f7-b67c-b4a6f743f333" xlink:to="loc_us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1_585ed7ef-eef1-4bdb-a653-146e0fc9b86c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1_42fa1cbf-d6b9-46bc-b801-5e77ce4aede8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings_3e07a54a-425f-48f7-b67c-b4a6f743f333" xlink:to="loc_us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1_42fa1cbf-d6b9-46bc-b801-5e77ce4aede8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://golubcapitalbdc.com/role/DerivativesScheduleofForwardCurrencyContractFairValueDetails" xlink:type="simple" xlink:href="gbdc-20241231.xsd#DerivativesScheduleofForwardCurrencyContractFairValueDetails"/>
  <link:calculationLink xlink:role="http://golubcapitalbdc.com/role/DerivativesScheduleofForwardCurrencyContractFairValueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_6b4646f0-2de8-46c0-a167-3df03532121a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_3d689995-c0f9-4779-97d1-db11e9966dfc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_6b4646f0-2de8-46c0-a167-3df03532121a" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_3d689995-c0f9-4779-97d1-db11e9966dfc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_72878eaa-6ead-452f-8045-2b7ab0ad70c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_6b4646f0-2de8-46c0-a167-3df03532121a" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_72878eaa-6ead-452f-8045-2b7ab0ad70c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_1c6f2d5f-4323-48c7-a671-2cab6a751e7c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_e898cbf3-090c-4f8c-a01f-8649e7fdc10f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_1c6f2d5f-4323-48c7-a671-2cab6a751e7c" xlink:to="loc_us-gaap_DerivativeAssets_e898cbf3-090c-4f8c-a01f-8649e7fdc10f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_269f4949-5615-4a4b-a277-0f418af5fc8f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeCollateralObligationToReturnSecurities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral_1c6f2d5f-4323-48c7-a671-2cab6a751e7c" xlink:to="loc_us-gaap_DerivativeCollateralObligationToReturnSecurities_269f4949-5615-4a4b-a277-0f418af5fc8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_be47037d-f287-4143-8e22-91892ff6e1b5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_0c5631a4-80c2-491b-be6b-75b837703b27" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeCollateralRightToReclaimSecurities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_be47037d-f287-4143-8e22-91892ff6e1b5" xlink:to="loc_us-gaap_DerivativeCollateralRightToReclaimSecurities_0c5631a4-80c2-491b-be6b-75b837703b27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_42f41a7e-82bf-4aa2-a44e-9970fa63f665" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountOffsetAgainstCollateral_be47037d-f287-4143-8e22-91892ff6e1b5" xlink:to="loc_us-gaap_DerivativeLiabilities_42f41a7e-82bf-4aa2-a44e-9970fa63f665" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://golubcapitalbdc.com/role/FairValueMeasurementsScheduleofFairValueAssetsandLiabilitiesMeasuredonRecurringBasisDetails" xlink:type="simple" xlink:href="gbdc-20241231.xsd#FairValueMeasurementsScheduleofFairValueAssetsandLiabilitiesMeasuredonRecurringBasisDetails"/>
  <link:calculationLink xlink:role="http://golubcapitalbdc.com/role/FairValueMeasurementsScheduleofFairValueAssetsandLiabilitiesMeasuredonRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_4fe3a007-ce07-4aa4-8a2f-fad11b1e2d02" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtFairValue_b2765e56-1419-4a35-ac05-c7186101c16b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_4fe3a007-ce07-4aa4-8a2f-fad11b1e2d02" xlink:to="loc_us-gaap_InvestmentOwnedAtFairValue_b2765e56-1419-4a35-ac05-c7186101c16b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_70f19785-4176-4a6b-97b8-1be82c949a6a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_4fe3a007-ce07-4aa4-8a2f-fad11b1e2d02" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_70f19785-4176-4a6b-97b8-1be82c949a6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyContractAssetFairValueDisclosure_b0f10a12-61d5-4582-93f5-fd9fecaaf9b3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_4fe3a007-ce07-4aa4-8a2f-fad11b1e2d02" xlink:to="loc_us-gaap_ForeignCurrencyContractAssetFairValueDisclosure_b0f10a12-61d5-4582-93f5-fd9fecaaf9b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateDerivativeAssetsAtFairValue_d5a9e7be-64e7-472b-a3d4-464b7225ca9d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestRateDerivativeAssetsAtFairValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_4fe3a007-ce07-4aa4-8a2f-fad11b1e2d02" xlink:to="loc_us-gaap_InterestRateDerivativeAssetsAtFairValue_d5a9e7be-64e7-472b-a3d4-464b7225ca9d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_30d011ef-43f4-4773-b5d4-6b79971da183" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateDerivativeLiabilitiesAtFairValue_06b182f5-40f9-47a1-9fad-171201445d9a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestRateDerivativeLiabilitiesAtFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_30d011ef-43f4-4773-b5d4-6b79971da183" xlink:to="loc_us-gaap_InterestRateDerivativeLiabilitiesAtFairValue_06b182f5-40f9-47a1-9fad-171201445d9a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyContractsLiabilityFairValueDisclosure_6adc878b-b92b-494e-be4f-13307ccd1c33" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeignCurrencyContractsLiabilityFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_30d011ef-43f4-4773-b5d4-6b79971da183" xlink:to="loc_us-gaap_ForeignCurrencyContractsLiabilityFairValueDisclosure_6adc878b-b92b-494e-be4f-13307ccd1c33" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://golubcapitalbdc.com/role/BorrowingsScheduleofDebtSecuritizationDetails" xlink:type="simple" xlink:href="gbdc-20241231.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_5376d4e1-fb57-4e90-a122-ba9d7bf66501" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpenseDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_326972f6-5c4e-46c4-9d81-6bfd3a76d621" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_5376d4e1-fb57-4e90-a122-ba9d7bf66501" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_326972f6-5c4e-46c4-9d81-6bfd3a76d621" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebtExcludingAmortization_ec125f3e-0848-4a52-a667-5df2ff667e73" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpenseDebtExcludingAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseDebt_5376d4e1-fb57-4e90-a122-ba9d7bf66501" xlink:to="loc_us-gaap_InterestExpenseDebtExcludingAmortization_ec125f3e-0848-4a52-a667-5df2ff667e73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_1ed9e0be-a108-4b3f-9d6c-2c4a9ef33d0a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseDebt_5376d4e1-fb57-4e90-a122-ba9d7bf66501" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_1ed9e0be-a108-4b3f-9d6c-2c4a9ef33d0a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_FacilityFees_024882b1-1e8e-4def-99ff-017dd1ea8bde" xlink:href="gbdc-20241231.xsd#gbdc_FacilityFees"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseDebt_5376d4e1-fb57-4e90-a122-ba9d7bf66501" xlink:to="loc_gbdc_FacilityFees_024882b1-1e8e-4def-99ff-017dd1ea8bde" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_f624e95d-ec08-4d98-b0c3-7235e7b32c24" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseDebt_5376d4e1-fb57-4e90-a122-ba9d7bf66501" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_f624e95d-ec08-4d98-b0c3-7235e7b32c24" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_InterestExpenseDerivativeExcludingAmortizationIncludingAdjustments_d0fdb393-6454-415a-a412-7400f348d0fc" xlink:href="gbdc-20241231.xsd#gbdc_InterestExpenseDerivativeExcludingAmortizationIncludingAdjustments"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseDebt_5376d4e1-fb57-4e90-a122-ba9d7bf66501" xlink:to="loc_gbdc_InterestExpenseDerivativeExcludingAmortizationIncludingAdjustments_d0fdb393-6454-415a-a412-7400f348d0fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings_b8b58f78-0f87-438d-92bd-3d2f501559e2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseDebt_5376d4e1-fb57-4e90-a122-ba9d7bf66501" xlink:to="loc_us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings_b8b58f78-0f87-438d-92bd-3d2f501559e2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://golubcapitalbdc.com/role/BorrowingsScheduleofMaturitiesofLongTermDebtDetails" xlink:type="simple" xlink:href="gbdc-20241231.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_f592c622-ffb4-4fb4-8394-c975898bcbfe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_LongTermDebtGrossMaturity3Through5Years_825755ff-f9b7-4575-af39-aaf7d4bf196f" xlink:href="gbdc-20241231.xsd#gbdc_LongTermDebtGrossMaturity3Through5Years"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_f592c622-ffb4-4fb4-8394-c975898bcbfe" xlink:to="loc_gbdc_LongTermDebtGrossMaturity3Through5Years_825755ff-f9b7-4575-af39-aaf7d4bf196f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_LongTermDebtGrossMaturityMoreThan5Years_747f4805-9b0b-4427-a953-575225140de3" xlink:href="gbdc-20241231.xsd#gbdc_LongTermDebtGrossMaturityMoreThan5Years"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_f592c622-ffb4-4fb4-8394-c975898bcbfe" xlink:to="loc_gbdc_LongTermDebtGrossMaturityMoreThan5Years_747f4805-9b0b-4427-a953-575225140de3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_LongTermDebtGrossMaturityLessThan1Year_897a53c2-8d0f-460c-9b45-046a17c137bb" xlink:href="gbdc-20241231.xsd#gbdc_LongTermDebtGrossMaturityLessThan1Year"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_f592c622-ffb4-4fb4-8394-c975898bcbfe" xlink:to="loc_gbdc_LongTermDebtGrossMaturityLessThan1Year_897a53c2-8d0f-460c-9b45-046a17c137bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_gbdc_LongTermDebtGrossMaturity1Through3Years_57bf9789-96d7-4679-be63-6a9a5fddf2cc" xlink:href="gbdc-20241231.xsd#gbdc_LongTermDebtGrossMaturity1Through3Years"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_f592c622-ffb4-4fb4-8394-c975898bcbfe" xlink:to="loc_gbdc_LongTermDebtGrossMaturity1Through3Years_57bf9789-96d7-4679-be63-6a9a5fddf2cc" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
