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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019fd3bd-0592-7afe-bbed-5ca31a61595c,g:fa677c37-481e-40c0-b1f0-d020873e070c-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="https://xbrl.org/2023/arcrole/summation-item" xlink:type="simple" xlink:href="https://www.xbrl.org/2023/calculation-1.1.xsd#summation-item"/>
  <link:roleRef roleURI="http://www.fhlbsf.com/role/StatementsofCondition" xlink:type="simple" xlink:href="fhlbsf-20260930.xsd#StatementsofCondition"/>
  <link:calculationLink xlink:role="http://www.fhlbsf.com/role/StatementsofCondition" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockOtherValueOutstanding_019fd3bd-0850-7b0d-8b3f-bd702a9f99c1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockOtherValueOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_fhlbsf_ClassBCapitalStock_019fd3bd-0850-7280-8711-f51e39d6adba" xlink:href="fhlbsf-20260930.xsd#fhlbsf_ClassBCapitalStock"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CommonStockOtherValueOutstanding_019fd3bd-0850-7b0d-8b3f-bd702a9f99c1" xlink:to="loc_fhlbsf_ClassBCapitalStock_019fd3bd-0850-7280-8711-f51e39d6adba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fhlbsf_ClassB1CapitalStock_019fd3bd-0850-7b1d-abc7-8741c3c4e0ab" xlink:href="fhlbsf-20260930.xsd#fhlbsf_ClassB1CapitalStock"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CommonStockOtherValueOutstanding_019fd3bd-0850-7b0d-8b3f-bd702a9f99c1" xlink:to="loc_fhlbsf_ClassB1CapitalStock_019fd3bd-0850-7b1d-abc7-8741c3c4e0ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fhlbsf_ClassB2CapitalStock_019fd3bd-0850-7519-b94d-82fbe9e38ab9" xlink:href="fhlbsf-20260930.xsd#fhlbsf_ClassB2CapitalStock"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CommonStockOtherValueOutstanding_019fd3bd-0850-7b0d-8b3f-bd702a9f99c1" xlink:to="loc_fhlbsf_ClassB2CapitalStock_019fd3bd-0850-7519-b94d-82fbe9e38ab9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019fd3bd-0850-7d1b-8399-de7c6a00d9f9" 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_DepositsDomestic_019fd3bd-0850-7c26-a17f-5236cb6b2563" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepositsDomestic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019fd3bd-0850-7d1b-8399-de7c6a00d9f9" xlink:to="loc_us-gaap_DepositsDomestic_019fd3bd-0850-7c26-a17f-5236cb6b2563" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankConsolidatedObligations_019fd3bd-0850-7bd4-b568-aa79f4300b96" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankConsolidatedObligations"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019fd3bd-0850-7d1b-8399-de7c6a00d9f9" xlink:to="loc_us-gaap_FederalHomeLoanBankConsolidatedObligations_019fd3bd-0850-7bd4-b568-aa79f4300b96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesSubjectToMandatoryRedemptionSettlementTermsAmount_019fd3bd-0850-708f-99cf-6ae8bb0d430f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SharesSubjectToMandatoryRedemptionSettlementTermsAmount"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019fd3bd-0850-7d1b-8399-de7c6a00d9f9" xlink:to="loc_us-gaap_SharesSubjectToMandatoryRedemptionSettlementTermsAmount_019fd3bd-0850-708f-99cf-6ae8bb0d430f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_019fd3bd-0850-7de5-9fee-4ce46dc8456d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestPayableCurrentAndNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019fd3bd-0850-7d1b-8399-de7c6a00d9f9" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_019fd3bd-0850-7de5-9fee-4ce46dc8456d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AffordableHousingProgramObligation_019fd3bd-0850-7850-aa79-09a8bff2b7ec" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AffordableHousingProgramObligation"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019fd3bd-0850-7d1b-8399-de7c6a00d9f9" xlink:to="loc_us-gaap_AffordableHousingProgramObligation_019fd3bd-0850-7850-aa79-09a8bff2b7ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019fd3bd-0850-7588-b93e-852b05670bdd" 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="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019fd3bd-0850-7d1b-8399-de7c6a00d9f9" xlink:to="loc_us-gaap_DerivativeLiabilities_019fd3bd-0850-7588-b93e-852b05670bdd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_019fd3bd-0850-755f-8cff-1696f3d00c6e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019fd3bd-0850-7d1b-8399-de7c6a00d9f9" xlink:to="loc_us-gaap_OtherLiabilities_019fd3bd-0850-755f-8cff-1696f3d00c6e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019fd3bd-0850-7fd5-bd15-f3e56aa6a1ed" 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_InterestBearingDepositsInBanks_019fd3bd-0850-7f28-8b95-bede39631d66" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestBearingDepositsInBanks"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd3bd-0850-7fd5-bd15-f3e56aa6a1ed" xlink:to="loc_us-gaap_InterestBearingDepositsInBanks_019fd3bd-0850-7f28-8b95-bede39631d66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvances_019fd3bd-0850-73f9-87a2-a59938f98acd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvances"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd3bd-0850-7fd5-bd15-f3e56aa6a1ed" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvances_019fd3bd-0850-73f9-87a2-a59938f98acd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResell_019fd3bd-0850-7001-a741-d3ba98b7ae8e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResell"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd3bd-0850-7fd5-bd15-f3e56aa6a1ed" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResell_019fd3bd-0850-7001-a741-d3ba98b7ae8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019fd3bd-0850-7368-bec1-ce22a0c9d45b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd3bd-0850-7fd5-bd15-f3e56aa6a1ed" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019fd3bd-0850-7368-bec1-ce22a0c9d45b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndDueFromBanks_019fd3bd-0850-7aaa-8b12-5cc324c71e62" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndDueFromBanks"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd3bd-0850-7fd5-bd15-f3e56aa6a1ed" xlink:to="loc_us-gaap_CashAndDueFromBanks_019fd3bd-0850-7aaa-8b12-5cc324c71e62" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestReceivable_019fd3bd-0850-709b-b1ee-0600f936d9c2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestReceivable"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd3bd-0850-7fd5-bd15-f3e56aa6a1ed" xlink:to="loc_us-gaap_InterestReceivable_019fd3bd-0850-709b-b1ee-0600f936d9c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalFundsSold_019fd3bd-0850-7d97-a3a9-0bd20894f5ae" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalFundsSold"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd3bd-0850-7fd5-bd15-f3e56aa6a1ed" xlink:to="loc_us-gaap_FederalFundsSold_019fd3bd-0850-7d97-a3a9-0bd20894f5ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_019fd3bd-0850-71a8-9a4f-564f8348f2f8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd3bd-0850-7fd5-bd15-f3e56aa6a1ed" xlink:to="loc_us-gaap_OtherAssets_019fd3bd-0850-71a8-9a4f-564f8348f2f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019fd3bd-0850-7025-829b-c10d887df8a0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd3bd-0850-7fd5-bd15-f3e56aa6a1ed" xlink:to="loc_us-gaap_DerivativeAssets_019fd3bd-0850-7025-829b-c10d887df8a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019fd3bd-0850-777f-a71e-6b5932a50645" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd3bd-0850-7fd5-bd15-f3e56aa6a1ed" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019fd3bd-0850-777f-a71e-6b5932a50645" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019fd3bd-0850-7712-8403-45cd1932da0f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd3bd-0850-7fd5-bd15-f3e56aa6a1ed" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019fd3bd-0850-7712-8403-45cd1932da0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019fd3bd-0850-756a-af13-ef0af083125e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsUnappropriated_019fd3bd-0850-798e-87e0-096f8f63591c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsUnappropriated"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019fd3bd-0850-756a-af13-ef0af083125e" xlink:to="loc_us-gaap_RetainedEarningsUnappropriated_019fd3bd-0850-798e-87e0-096f8f63591c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAppropriated_019fd3bd-0850-7e77-a109-5e1b43031640" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsAppropriated"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019fd3bd-0850-756a-af13-ef0af083125e" xlink:to="loc_us-gaap_RetainedEarningsAppropriated_019fd3bd-0850-7e77-a109-5e1b43031640" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankConsolidatedObligations_019fd3bd-0850-745f-ab33-2f553d9c7393" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankConsolidatedObligations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankConsolidatedObligationsBonds_019fd3bd-0850-760b-ac5e-b0e147b930b8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankConsolidatedObligationsBonds"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankConsolidatedObligations_019fd3bd-0850-745f-ab33-2f553d9c7393" xlink:to="loc_us-gaap_FederalHomeLoanBankConsolidatedObligationsBonds_019fd3bd-0850-760b-ac5e-b0e147b930b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankConsolidatedObligationsDiscountNotes_019fd3bd-0850-7014-8e0f-957c4b4bc9d3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankConsolidatedObligationsDiscountNotes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankConsolidatedObligations_019fd3bd-0850-745f-ab33-2f553d9c7393" xlink:to="loc_us-gaap_FederalHomeLoanBankConsolidatedObligationsDiscountNotes_019fd3bd-0850-7014-8e0f-957c4b4bc9d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019fd3bd-0850-770e-aa4c-1bf0df20cce3" 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_AccumulatedOtherComprehensiveIncomeLossBeforeFederalHomeLoanBankAssessments_019fd3bd-0850-7030-abf4-aac557722281" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossBeforeFederalHomeLoanBankAssessments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019fd3bd-0850-770e-aa4c-1bf0df20cce3" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossBeforeFederalHomeLoanBankAssessments_019fd3bd-0850-7030-abf4-aac557722281" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockOtherValueOutstanding_019fd3bd-0850-76bb-be1d-d5dd3fced83c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockOtherValueOutstanding"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019fd3bd-0850-770e-aa4c-1bf0df20cce3" xlink:to="loc_us-gaap_CommonStockOtherValueOutstanding_019fd3bd-0850-76bb-be1d-d5dd3fced83c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019fd3bd-0850-7ec4-bdb9-30ecb620720f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019fd3bd-0850-770e-aa4c-1bf0df20cce3" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019fd3bd-0850-7ec4-bdb9-30ecb620720f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_019fd3bd-0850-78f3-89f9-48518be90480" 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_Liabilities_019fd3bd-0850-78fc-b347-398238899cca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019fd3bd-0850-78f3-89f9-48518be90480" xlink:to="loc_us-gaap_Liabilities_019fd3bd-0850-78fc-b347-398238899cca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019fd3bd-0850-704c-b2b5-8440da864288" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019fd3bd-0850-78f3-89f9-48518be90480" xlink:to="loc_us-gaap_StockholdersEquity_019fd3bd-0850-704c-b2b5-8440da864288" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fhlbsf.com/role/StatementsofIncome" xlink:type="simple" xlink:href="fhlbsf-20260930.xsd#StatementsofIncome"/>
  <link:calculationLink xlink:role="http://www.fhlbsf.com/role/StatementsofIncome" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_019fd3bd-0850-7d82-8f21-262a1d4c1c6b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecuritiesHeldToMaturity_019fd3bd-0850-7a64-9d15-95626fcdd8a9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestAndDividendIncomeSecuritiesHeldToMaturity"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019fd3bd-0850-7d82-8f21-262a1d4c1c6b" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecuritiesHeldToMaturity_019fd3bd-0850-7a64-9d15-95626fcdd8a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansConsumerRealEstate_019fd3bd-0850-7596-9ec8-8aba1b822e2f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestAndFeeIncomeLoansConsumerRealEstate"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019fd3bd-0850-7d82-8f21-262a1d4c1c6b" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansConsumerRealEstate_019fd3bd-0850-7596-9ec8-8aba1b822e2f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeSecuritiesPurchasedUnderAgreementsToResell_019fd3bd-0850-7ce3-9b19-066876b920cc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeSecuritiesPurchasedUnderAgreementsToResell"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019fd3bd-0850-7d82-8f21-262a1d4c1c6b" xlink:to="loc_us-gaap_InterestIncomeSecuritiesPurchasedUnderAgreementsToResell_019fd3bd-0850-7ce3-9b19-066876b920cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeFederalHomeLoanBankAdvances_019fd3bd-0850-7582-9613-1e45bbc6cfac" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeFederalHomeLoanBankAdvances"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019fd3bd-0850-7d82-8f21-262a1d4c1c6b" xlink:to="loc_us-gaap_InterestIncomeFederalHomeLoanBankAdvances_019fd3bd-0850-7582-9613-1e45bbc6cfac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeDebtSecuritiesAvailableForSaleOperating_019fd3bd-0850-7759-94f3-77db236dfda4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeDebtSecuritiesAvailableForSaleOperating"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019fd3bd-0850-7d82-8f21-262a1d4c1c6b" xlink:to="loc_us-gaap_InterestIncomeDebtSecuritiesAvailableForSaleOperating_019fd3bd-0850-7759-94f3-77db236dfda4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeDepositsWithFinancialInstitutions_019fd3bd-0850-7e7a-a00a-bde715f84829" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeDepositsWithFinancialInstitutions"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019fd3bd-0850-7d82-8f21-262a1d4c1c6b" xlink:to="loc_us-gaap_InterestIncomeDepositsWithFinancialInstitutions_019fd3bd-0850-7e7a-a00a-bde715f84829" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeFederalFundsSold_019fd3bd-0850-71ec-b2ed-14dd7909b56d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeFederalFundsSold"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019fd3bd-0850-7d82-8f21-262a1d4c1c6b" xlink:to="loc_us-gaap_InterestIncomeFederalFundsSold_019fd3bd-0850-71ec-b2ed-14dd7909b56d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToParentNetOfFederalHomeLoanBankAssessments_019fd3bd-0850-7460-91fd-8262e4d3b64a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLossAttributableToParentNetOfFederalHomeLoanBankAssessments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019fd3bd-0850-78d2-b394-4cd2740d9511" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAttributableToParentNetOfFederalHomeLoanBankAssessments_019fd3bd-0850-7460-91fd-8262e4d3b64a" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019fd3bd-0850-78d2-b394-4cd2740d9511" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AffordableHousingProgramAssessments_019fd3bd-0850-7ed9-911d-75ca39784424" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AffordableHousingProgramAssessments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAttributableToParentNetOfFederalHomeLoanBankAssessments_019fd3bd-0850-7460-91fd-8262e4d3b64a" xlink:to="loc_us-gaap_AffordableHousingProgramAssessments_019fd3bd-0850-7ed9-911d-75ca39784424" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_019fd3bd-0850-75d1-af61-a8d325ea04a5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NoninterestIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueOptionChangesInFairValueGainLoss1_019fd3bd-0850-7563-b353-1847bbe13a7c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueOptionChangesInFairValueGainLoss1"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019fd3bd-0850-75d1-af61-a8d325ea04a5" xlink:to="loc_us-gaap_FairValueOptionChangesInFairValueGainLoss1_019fd3bd-0850-7563-b353-1847bbe13a7c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_019fd3bd-0850-72e4-bc9d-1259aea73b05" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GainLossOnDerivativeInstrumentsNetPretax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019fd3bd-0850-75d1-af61-a8d325ea04a5" xlink:to="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_019fd3bd-0850-72e4-bc9d-1259aea73b05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fhlbsf_Fhlb_Standbylettersofcreditfees_019fd3bd-0850-78bf-92f0-4d32b88d8e08" xlink:href="fhlbsf-20260930.xsd#fhlbsf_Fhlb_Standbylettersofcreditfees"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019fd3bd-0850-75d1-af61-a8d325ea04a5" xlink:to="loc_fhlbsf_Fhlb_Standbylettersofcreditfees_019fd3bd-0850-78bf-92f0-4d32b88d8e08" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_019fd3bd-0850-7798-b71e-0bf0e9be438c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019fd3bd-0850-75d1-af61-a8d325ea04a5" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_019fd3bd-0850-7798-b71e-0bf0e9be438c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpense_019fd3bd-0850-77f5-ac69-d335f191f531" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NoninterestExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LaborAndRelatedExpense_019fd3bd-0850-77c0-ba9a-68a2b827dd93" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LaborAndRelatedExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019fd3bd-0850-77f5-ac69-d335f191f531" xlink:to="loc_us-gaap_LaborAndRelatedExpense_019fd3bd-0850-77c0-ba9a-68a2b827dd93" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCostAndExpenseOperating_019fd3bd-0850-747a-9a87-e1588ec50f98" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherCostAndExpenseOperating"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019fd3bd-0850-77f5-ac69-d335f191f531" xlink:to="loc_us-gaap_OtherCostAndExpenseOperating_019fd3bd-0850-747a-9a87-e1588ec50f98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OfficeOfFinanceAssessmentsCostAssessedOnFederalHomeLoanBank_019fd3bd-0850-737b-b953-5c44dbfb787f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OfficeOfFinanceAssessmentsCostAssessedOnFederalHomeLoanBank"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019fd3bd-0850-77f5-ac69-d335f191f531" xlink:to="loc_us-gaap_OfficeOfFinanceAssessmentsCostAssessedOnFederalHomeLoanBank_019fd3bd-0850-737b-b953-5c44dbfb787f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatorExpensesCostAssessedOnFederalHomeLoanBank_019fd3bd-0850-7ae8-8a4e-f09711b4aa18" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RegulatorExpensesCostAssessedOnFederalHomeLoanBank"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019fd3bd-0850-77f5-ac69-d335f191f531" xlink:to="loc_us-gaap_RegulatorExpensesCostAssessedOnFederalHomeLoanBank_019fd3bd-0850-7ae8-8a4e-f09711b4aa18" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fhlbsf_VoluntaryCharitableContribution_019fd3bd-0850-759e-a585-b5a5717b56a4" xlink:href="fhlbsf-20260930.xsd#fhlbsf_VoluntaryCharitableContribution"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019fd3bd-0850-77f5-ac69-d335f191f531" xlink:to="loc_fhlbsf_VoluntaryCharitableContribution_019fd3bd-0850-759e-a585-b5a5717b56a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fhlbsf_OtherNoninterestExpenseNet_01a178e8-ebb8-703b-a260-312990384a5e" xlink:href="fhlbsf-20260930.xsd#fhlbsf_OtherNoninterestExpenseNet"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019fd3bd-0850-77f5-ac69-d335f191f531" xlink:to="loc_fhlbsf_OtherNoninterestExpenseNet_01a178e8-ebb8-703b-a260-312990384a5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_019fd3bd-0850-7c78-a18f-225be5dbab2b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOtherLongTermDebt_019fd3bd-0850-7baa-8cf3-361187ff4d51" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseOtherLongTermDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseOperating_019fd3bd-0850-7c78-a18f-225be5dbab2b" xlink:to="loc_us-gaap_InterestExpenseOtherLongTermDebt_019fd3bd-0850-7baa-8cf3-361187ff4d51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOtherShortTermBorrowings_019fd3bd-0850-7814-8761-05b37b6a3adf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseOtherShortTermBorrowings"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseOperating_019fd3bd-0850-7c78-a18f-225be5dbab2b" xlink:to="loc_us-gaap_InterestExpenseOtherShortTermBorrowings_019fd3bd-0850-7814-8761-05b37b6a3adf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDeposits_019fd3bd-0850-723e-bde6-be83b45479cc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseDeposits"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseOperating_019fd3bd-0850-7c78-a18f-225be5dbab2b" xlink:to="loc_us-gaap_InterestExpenseDeposits_019fd3bd-0850-723e-bde6-be83b45479cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseCapitalSecurities_019fd3bd-0850-74f4-9a06-d79c7deed5a8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseCapitalSecurities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseOperating_019fd3bd-0850-7c78-a18f-225be5dbab2b" xlink:to="loc_us-gaap_InterestExpenseCapitalSecurities_019fd3bd-0850-74f4-9a06-d79c7deed5a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019fd3bd-0850-7b9d-b1ef-85a5e515bf77" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_019fd3bd-0850-7338-95da-331fbfb59b38" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019fd3bd-0850-7b9d-b1ef-85a5e515bf77" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_019fd3bd-0850-7338-95da-331fbfb59b38" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_019fd3bd-0850-7d54-abb5-1ce6733aa989" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProvisionForLoanLossesExpensed"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019fd3bd-0850-7b9d-b1ef-85a5e515bf77" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_019fd3bd-0850-7d54-abb5-1ce6733aa989" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_019fd3bd-0850-7ddb-a63e-a12f61846156" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_019fd3bd-0850-7bc7-81f2-c06e2df40498" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseOperating"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_019fd3bd-0850-7ddb-a63e-a12f61846156" xlink:to="loc_us-gaap_InterestExpenseOperating_019fd3bd-0850-7bc7-81f2-c06e2df40498" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_019fd3bd-0850-7c65-8399-38a461e03ded" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_019fd3bd-0850-7ddb-a63e-a12f61846156" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_019fd3bd-0850-7c65-8399-38a461e03ded" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fhlbsf.com/role/StatementsofComprehensiveIncome" xlink:type="simple" xlink:href="fhlbsf-20260930.xsd#StatementsofComprehensiveIncome"/>
  <link:calculationLink xlink:role="http://www.fhlbsf.com/role/StatementsofComprehensiveIncome" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019fd3bd-0850-7cb4-be0b-4dd9fbaf2999" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_01a178d4-a5f4-7535-8b9a-4b54fbd762c1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019fd3bd-0850-7cb4-be0b-4dd9fbaf2999" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_01a178d4-a5f4-7535-8b9a-4b54fbd762c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_019fd3bd-0850-7f85-ab0d-656166e8a9ee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019fd3bd-0850-7cb4-be0b-4dd9fbaf2999" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_019fd3bd-0850-7f85-ab0d-656166e8a9ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeLossNetOfFederalHomeLoanBankAssessmentsAttributableToParent_019fd3bd-0850-7a08-93a1-70f6e53e47d8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComprehensiveIncomeLossNetOfFederalHomeLoanBankAssessmentsAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019fd3bd-0850-7c17-a79c-8b0376ad8749" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeLossNetOfFederalHomeLoanBankAssessmentsAttributableToParent_019fd3bd-0850-7a08-93a1-70f6e53e47d8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019fd3bd-0850-7c17-a79c-8b0376ad8749" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToParentNetOfFederalHomeLoanBankAssessments_019fd3bd-0850-78a9-ad1b-c596f37a4d32" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLossAttributableToParentNetOfFederalHomeLoanBankAssessments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeLossNetOfFederalHomeLoanBankAssessmentsAttributableToParent_019fd3bd-0850-7a08-93a1-70f6e53e47d8" xlink:to="loc_us-gaap_NetIncomeLossAttributableToParentNetOfFederalHomeLoanBankAssessments_019fd3bd-0850-78a9-ad1b-c596f37a4d32" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fhlbsf.com/role/StatementsofCashFlows" xlink:type="simple" xlink:href="fhlbsf-20260930.xsd#StatementsofCashFlows"/>
  <link:calculationLink xlink:role="http://www.fhlbsf.com/role/StatementsofCashFlows" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019fd3bd-0904-7592-85ac-7e148ae5748c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAmortizationAndAccretionNet_019fd3bd-0904-7ecc-90e4-98e2b99c24a0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepreciationAmortizationAndAccretionNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019fd3bd-0904-7592-85ac-7e148ae5748c" xlink:to="loc_us-gaap_DepreciationAmortizationAndAccretionNet_019fd3bd-0904-7ecc-90e4-98e2b99c24a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_019fd3bd-0904-73bb-b6bf-9160ece98b79" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProvisionForLoanLossesExpensed"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019fd3bd-0904-7592-85ac-7e148ae5748c" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_019fd3bd-0904-73bb-b6bf-9160ece98b79" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInFairValueAdjustmentsOnAssetsAndLiabilitiesCarriedAtFairValueUnderFairValueOption_019fd3bd-0904-729d-bb7f-113985367059" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInFairValueAdjustmentsOnAssetsAndLiabilitiesCarriedAtFairValueUnderFairValueOption"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019fd3bd-0904-7592-85ac-7e148ae5748c" xlink:to="loc_us-gaap_IncreaseDecreaseInFairValueAdjustmentsOnAssetsAndLiabilitiesCarriedAtFairValueUnderFairValueOption_019fd3bd-0904-729d-bb7f-113985367059" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnDerivatives_019fd3bd-0904-792b-8b01-7d654a85482a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrealizedGainLossOnDerivatives"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019fd3bd-0904-7592-85ac-7e148ae5748c" xlink:to="loc_us-gaap_UnrealizedGainLossOnDerivatives_019fd3bd-0904-792b-8b01-7d654a85482a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_019fd3bd-0904-7242-bb43-844510bb64d2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019fd3bd-0904-7592-85ac-7e148ae5748c" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_019fd3bd-0904-7242-bb43-844510bb64d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_019fd3bd-0904-732a-9f48-df5ed9ea6744" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019fd3bd-0904-7592-85ac-7e148ae5748c" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_019fd3bd-0904-732a-9f48-df5ed9ea6744" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_019fd3bd-0904-732c-a251-54bfc2e4f3b2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019fd3bd-0904-7592-85ac-7e148ae5748c" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_019fd3bd-0904-732c-a251-54bfc2e4f3b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_019fd3bd-0904-797e-b863-b829a20d5fb9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInInterestPayableNet"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019fd3bd-0904-7592-85ac-7e148ae5748c" xlink:to="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_019fd3bd-0904-797e-b863-b829a20d5fb9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_01a178d3-9882-7d4e-bcdf-7a9b9e927ba2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019fd3bd-0904-7592-85ac-7e148ae5748c" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_01a178d3-9882-7d4e-bcdf-7a9b9e927ba2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd3bd-0904-719f-b022-52f4892e449f" 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_ProceedsFromIssuanceOfOtherLongTermDebt_019fd3bd-0904-715e-b4c7-05082bf00b43" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd3bd-0904-719f-b022-52f4892e449f" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt_019fd3bd-0904-715e-b4c7-05082bf00b43" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromOtherShortTermDebt_019fd3bd-0904-7c0a-bfb6-b170885b6056" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromOtherShortTermDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd3bd-0904-719f-b022-52f4892e449f" xlink:to="loc_us-gaap_ProceedsFromOtherShortTermDebt_019fd3bd-0904-7c0a-bfb6-b170885b6056" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfOtherLongTermDebt_019fd3bd-0904-7654-b935-498f2f9a9a7b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RepaymentsOfOtherLongTermDebt"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd3bd-0904-719f-b022-52f4892e449f" xlink:to="loc_us-gaap_RepaymentsOfOtherLongTermDebt_019fd3bd-0904-7654-b935-498f2f9a9a7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfOtherShortTermDebt_019fd3bd-0904-765a-a4ec-8e8d611f696d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RepaymentsOfOtherShortTermDebt"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd3bd-0904-719f-b022-52f4892e449f" xlink:to="loc_us-gaap_RepaymentsOfOtherShortTermDebt_019fd3bd-0904-765a-a4ec-8e8d611f696d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_019fd3bd-0904-7ba7-9b5d-15a1a5404980" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd3bd-0904-719f-b022-52f4892e449f" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_019fd3bd-0904-7ba7-9b5d-15a1a5404980" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfMandatoryRedeemableCapitalSecurities_019fd3bd-0904-7dad-aa6d-e32fbcd3d7d7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RepaymentsOfMandatoryRedeemableCapitalSecurities"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd3bd-0904-719f-b022-52f4892e449f" xlink:to="loc_us-gaap_RepaymentsOfMandatoryRedeemableCapitalSecurities_019fd3bd-0904-7dad-aa6d-e32fbcd3d7d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019fd3bd-0904-73e6-a129-abce279fe8ce" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd3bd-0904-719f-b022-52f4892e449f" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019fd3bd-0904-73e6-a129-abce279fe8ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_019fd3bd-0904-75c4-bd8a-f79d65e02a6f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromPaymentsForOtherFinancingActivities"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd3bd-0904-719f-b022-52f4892e449f" xlink:to="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_019fd3bd-0904-75c4-bd8a-f79d65e02a6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_019fd3bd-0904-7eb2-b7f4-9d134d5650f3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd3bd-0904-719f-b022-52f4892e449f" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_019fd3bd-0904-7eb2-b7f4-9d134d5650f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromHedgeFinancingActivities_019fd3bd-0904-7a95-9cb9-e55de88a62ca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForProceedsFromHedgeFinancingActivities"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd3bd-0904-719f-b022-52f4892e449f" xlink:to="loc_us-gaap_PaymentsForProceedsFromHedgeFinancingActivities_019fd3bd-0904-7a95-9cb9-e55de88a62ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInLoansFromOtherFederalHomeLoanBanks_01a178d4-0fe5-7043-baf7-13183ef5a2ac" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInLoansFromOtherFederalHomeLoanBanks"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd3bd-0904-719f-b022-52f4892e449f" xlink:to="loc_us-gaap_IncreaseDecreaseInLoansFromOtherFederalHomeLoanBanks_01a178d4-0fe5-7043-baf7-13183ef5a2ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_019fd3bd-0904-7202-bf83-a50052179101" 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_019fd3bd-0904-787b-be2f-51ca7ee3813f" 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="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_019fd3bd-0904-7202-bf83-a50052179101" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd3bd-0904-787b-be2f-51ca7ee3813f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd3bd-0904-76fc-9e4d-48794e526c44" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_019fd3bd-0904-7202-bf83-a50052179101" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd3bd-0904-76fc-9e4d-48794e526c44" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd3bd-0904-7285-96b5-3d8b438b17b0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_019fd3bd-0904-7202-bf83-a50052179101" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd3bd-0904-7285-96b5-3d8b438b17b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd3bd-0904-738a-82e1-3b785b92f4a0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_019fd3bd-0904-7bde-89db-a042c1a3afc3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd3bd-0904-738a-82e1-3b785b92f4a0" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_019fd3bd-0904-7bde-89db-a042c1a3afc3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_019fd3bd-0904-78e7-8f19-727bfe9803ee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd3bd-0904-738a-82e1-3b785b92f4a0" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_019fd3bd-0904-78e7-8f19-727bfe9803ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInFederalFundsSold_019fd3bd-0904-77b9-9d6f-5738cc7a0423" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInFederalFundsSold"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd3bd-0904-738a-82e1-3b785b92f4a0" xlink:to="loc_us-gaap_IncreaseDecreaseInFederalFundsSold_019fd3bd-0904-77b9-9d6f-5738cc7a0423" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPaymentsForInInterestBearingDepositsInBanks_019fd3bd-0904-7a56-a8dc-fbe9c24ee571" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromPaymentsForInInterestBearingDepositsInBanks"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd3bd-0904-738a-82e1-3b785b92f4a0" xlink:to="loc_us-gaap_ProceedsFromPaymentsForInInterestBearingDepositsInBanks_019fd3bd-0904-7a56-a8dc-fbe9c24ee571" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForFederalHomeLoanBankAdvances_019fd3bd-0904-7870-b5d5-902537d8b75d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForFederalHomeLoanBankAdvances"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd3bd-0904-738a-82e1-3b785b92f4a0" xlink:to="loc_us-gaap_PaymentsForFederalHomeLoanBankAdvances_019fd3bd-0904-7870-b5d5-902537d8b75d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment_019fd3bd-0904-70ab-b363-ab926b071e6a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd3bd-0904-738a-82e1-3b785b92f4a0" xlink:to="loc_us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment_019fd3bd-0904-70ab-b363-ab926b071e6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromFederalHomeLoanBankAdvances_019fd3bd-0904-705a-9cdb-d0f75183c8aa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromFederalHomeLoanBankAdvances"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd3bd-0904-738a-82e1-3b785b92f4a0" xlink:to="loc_us-gaap_ProceedsFromFederalHomeLoanBankAdvances_019fd3bd-0904-705a-9cdb-d0f75183c8aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfHeldToMaturitySecurities_019fd3bd-0904-74ef-a015-3f7454fcda67" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromSaleAndMaturityOfHeldToMaturitySecurities"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd3bd-0904-738a-82e1-3b785b92f4a0" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfHeldToMaturitySecurities_019fd3bd-0904-74ef-a015-3f7454fcda67" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPaymentsForSecuritiesPurchasedUnderAgreementsToResell_019fd3bd-0904-73a4-a2ac-0d137d9cdd9a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromPaymentsForSecuritiesPurchasedUnderAgreementsToResell"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd3bd-0904-738a-82e1-3b785b92f4a0" xlink:to="loc_us-gaap_ProceedsFromPaymentsForSecuritiesPurchasedUnderAgreementsToResell_019fd3bd-0904-73a4-a2ac-0d137d9cdd9a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities_019fd3bd-0904-7745-87b7-ec88645ea4b8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd3bd-0904-738a-82e1-3b785b92f4a0" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities_019fd3bd-0904-7745-87b7-ec88645ea4b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd3bd-0904-7497-b64d-34f761467f2b" 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_NetIncomeLossAttributableToParentNetOfFederalHomeLoanBankAssessments_019fd3bd-0904-77f6-96db-8678f4e9a176" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLossAttributableToParentNetOfFederalHomeLoanBankAssessments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd3bd-0904-7497-b64d-34f761467f2b" xlink:to="loc_us-gaap_NetIncomeLossAttributableToParentNetOfFederalHomeLoanBankAssessments_019fd3bd-0904-77f6-96db-8678f4e9a176" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019fd3bd-0904-74c0-a587-a49565fc6946" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd3bd-0904-7497-b64d-34f761467f2b" xlink:to="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_019fd3bd-0904-74c0-a587-a49565fc6946" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fhlbsf.com/role/AdvancesDetailsTableRedemptionTerms" xlink:type="simple" xlink:href="fhlbsf-20260930.xsd#AdvancesDetailsTableRedemptionTerms"/>
  <link:calculationLink xlink:role="http://www.fhlbsf.com/role/AdvancesDetailsTableRedemptionTerms" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvances_019fd3bd-0904-77fb-8bf7-aeb593e039ec" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvances"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019fd3bd-0904-7b04-840c-5066335e5736" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesParValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvances_019fd3bd-0904-77fb-8bf7-aeb593e039ec" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019fd3bd-0904-7b04-840c-5066335e5736" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesValuationAdjustmentsForHedgingActivities_019fd3bd-0904-7b39-8c0d-801c37144500" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesValuationAdjustmentsForHedgingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvances_019fd3bd-0904-77fb-8bf7-aeb593e039ec" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesValuationAdjustmentsForHedgingActivities_019fd3bd-0904-7b39-8c0d-801c37144500" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesValuationAdjustmentsUnderFairValueOption_019fd3bd-0904-7edf-87e3-dab05ae36f6c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesValuationAdjustmentsUnderFairValueOption"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvances_019fd3bd-0904-77fb-8bf7-aeb593e039ec" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesValuationAdjustmentsUnderFairValueOption_019fd3bd-0904-7edf-87e3-dab05ae36f6c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019fd3bd-0904-7a90-b775-7cfc5c7ab310" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesParValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInNextRollingTwelveMonths_019fd3bd-0904-7bdc-b4e3-3c4fc4d56a2f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInNextRollingTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019fd3bd-0904-7a90-b775-7cfc5c7ab310" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInNextRollingTwelveMonths_019fd3bd-0904-7bdc-b4e3-3c4fc4d56a2f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInRollingYearTwo_019fd3bd-0904-75a1-82ef-632930387f85" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInRollingYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019fd3bd-0904-7a90-b775-7cfc5c7ab310" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInRollingYearTwo_019fd3bd-0904-75a1-82ef-632930387f85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInRollingYearThree_019fd3bd-0904-730e-9620-0a5009cbe9d1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInRollingYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019fd3bd-0904-7a90-b775-7cfc5c7ab310" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInRollingYearThree_019fd3bd-0904-730e-9620-0a5009cbe9d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInRollingYearFour_019fd3bd-0904-7ebd-9b3b-c9c6dc924005" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInRollingYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019fd3bd-0904-7a90-b775-7cfc5c7ab310" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInRollingYearFour_019fd3bd-0904-7ebd-9b3b-c9c6dc924005" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInRollingYearFive_019fd3bd-0904-7a01-a0ed-feb36c7a03f7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInRollingYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019fd3bd-0904-7a90-b775-7cfc5c7ab310" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInRollingYearFive_019fd3bd-0904-7a01-a0ed-feb36c7a03f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryAfterRollingYearFive_019fd3bd-0904-7147-bd61-67f697f91807" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryAfterRollingYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019fd3bd-0904-7a90-b775-7cfc5c7ab310" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryAfterRollingYearFive_019fd3bd-0904-7147-bd61-67f697f91807" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fhlbsf.com/role/AdvancesDetailsTableRedemptionTermsIncludesCallPutDates" xlink:type="simple" xlink:href="fhlbsf-20260930.xsd#AdvancesDetailsTableRedemptionTermsIncludesCallPutDates"/>
  <link:calculationLink xlink:role="http://www.fhlbsf.com/role/AdvancesDetailsTableRedemptionTermsIncludesCallPutDates" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019fd3bd-0904-7f39-9b31-426c62fb57f2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesParValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInNextRollingTwelveMonths_019fd3bd-0904-7446-96de-ab2f404408d9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInNextRollingTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019fd3bd-0904-7f39-9b31-426c62fb57f2" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInNextRollingTwelveMonths_019fd3bd-0904-7446-96de-ab2f404408d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInRollingYearTwo_019fd3bd-0904-76b2-b2b1-f4652d91f8b0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInRollingYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019fd3bd-0904-7f39-9b31-426c62fb57f2" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInRollingYearTwo_019fd3bd-0904-76b2-b2b1-f4652d91f8b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInRollingYearThree_019fd3bd-0904-7e91-8232-fee6792de94d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInRollingYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019fd3bd-0904-7f39-9b31-426c62fb57f2" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInRollingYearThree_019fd3bd-0904-7e91-8232-fee6792de94d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInRollingYearFour_019fd3bd-0904-7532-8114-6937c8bc1607" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInRollingYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019fd3bd-0904-7f39-9b31-426c62fb57f2" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInRollingYearFour_019fd3bd-0904-7532-8114-6937c8bc1607" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInRollingYearFive_019fd3bd-0904-7363-bd00-30a049099d5f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInRollingYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019fd3bd-0904-7f39-9b31-426c62fb57f2" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInRollingYearFive_019fd3bd-0904-7363-bd00-30a049099d5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateAfterRollingYearFive_019fd3bd-0904-7dbd-972f-87df32806739" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateAfterRollingYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019fd3bd-0904-7f39-9b31-426c62fb57f2" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateAfterRollingYearFive_019fd3bd-0904-7dbd-972f-87df32806739" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fhlbsf.com/role/AdvancesDetailsTableInterestRateTerms" xlink:type="simple" xlink:href="fhlbsf-20260930.xsd#AdvancesDetailsTableInterestRateTerms"/>
  <link:calculationLink xlink:role="http://www.fhlbsf.com/role/AdvancesDetailsTableInterestRateTerms" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesFloatingRate_019fd3bd-0904-7e28-bda3-d4f399e680d1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesFloatingRate"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesFloatingRateUnderOneYear_019fd3bd-0904-7d99-b348-7e97ffd7c0c0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesFloatingRateUnderOneYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesFloatingRate_019fd3bd-0904-7e28-bda3-d4f399e680d1" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesFloatingRateUnderOneYear_019fd3bd-0904-7d99-b348-7e97ffd7c0c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesFloatingRateAfterOneYear_019fd3bd-0904-7656-a4d6-98f0c7507b6b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesFloatingRateAfterOneYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesFloatingRate_019fd3bd-0904-7e28-bda3-d4f399e680d1" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesFloatingRateAfterOneYear_019fd3bd-0904-7656-a4d6-98f0c7507b6b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019fd3bd-0904-783f-ab7d-b3353252e157" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesParValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesFixedRate_019fd3bd-0904-74ee-8e10-ffb1b6827574" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesFixedRate"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019fd3bd-0904-783f-ab7d-b3353252e157" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesFixedRate_019fd3bd-0904-74ee-8e10-ffb1b6827574" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesFloatingRate_019fd3bd-0904-728c-ab7b-6903642fb00c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesFloatingRate"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019fd3bd-0904-783f-ab7d-b3353252e157" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesFloatingRate_019fd3bd-0904-728c-ab7b-6903642fb00c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesFixedRate_019fd3bd-0904-71f3-8332-71b1f0f72ec2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesFixedRate"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesFixedRateAfterOneYear_019fd3bd-0904-77e8-96f9-9287d90a4003" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesFixedRateAfterOneYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesFixedRate_019fd3bd-0904-71f3-8332-71b1f0f72ec2" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesFixedRateAfterOneYear_019fd3bd-0904-77e8-96f9-9287d90a4003" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesFixedRateUnderOneYear_019fd3bd-0904-75d5-b253-3e8bd0b6eedb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FederalHomeLoanBankAdvancesFixedRateUnderOneYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesFixedRate_019fd3bd-0904-71f3-8332-71b1f0f72ec2" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesFixedRateUnderOneYear_019fd3bd-0904-75d5-b253-3e8bd0b6eedb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fhlbsf.com/role/MortgageLoansDetailsTableRedemptionTerms" xlink:type="simple" xlink:href="fhlbsf-20260930.xsd#MortgageLoansDetailsTableRedemptionTerms"/>
  <link:calculationLink xlink:role="http://www.fhlbsf.com/role/MortgageLoansDetailsTableRedemptionTerms" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019fd3bd-0904-78dc-bf34-c98d9bc49210" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_fhlbsf_LoansAndLeasesReceivableUnamortizedPremiums_019fd3bd-0904-79cd-82c2-8ec7d68529b1" xlink:href="fhlbsf-20260930.xsd#fhlbsf_LoansAndLeasesReceivableUnamortizedPremiums"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019fd3bd-0904-78dc-bf34-c98d9bc49210" xlink:to="loc_fhlbsf_LoansAndLeasesReceivableUnamortizedPremiums_019fd3bd-0904-79cd-82c2-8ec7d68529b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fhlbsf_LoansAndLeasesReceivableUnamortizedDiscounts_019fd3bd-0904-7d05-9be2-44882ced826c" xlink:href="fhlbsf-20260930.xsd#fhlbsf_LoansAndLeasesReceivableUnamortizedDiscounts"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019fd3bd-0904-78dc-bf34-c98d9bc49210" xlink:to="loc_fhlbsf_LoansAndLeasesReceivableUnamortizedDiscounts_019fd3bd-0904-7d05-9be2-44882ced826c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess_019fd3bd-0904-75e6-af9d-96e4966b7830" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019fd3bd-0904-78dc-bf34-c98d9bc49210" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess_019fd3bd-0904-75e6-af9d-96e4966b7830" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fhlbsf.com/role/DepositsDetails" xlink:type="simple" xlink:href="fhlbsf-20260930.xsd#DepositsDetails"/>
  <link:calculationLink xlink:role="http://www.fhlbsf.com/role/DepositsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsDomestic_019fd3bd-0904-7de4-afe5-6b34d006f12f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepositsDomestic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestBearingDepositLiabilitiesDomestic_019fd3bd-0904-7855-9a46-dac232399ce7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NoninterestBearingDepositLiabilitiesDomestic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DepositsDomestic_019fd3bd-0904-7de4-afe5-6b34d006f12f" xlink:to="loc_us-gaap_NoninterestBearingDepositLiabilitiesDomestic_019fd3bd-0904-7855-9a46-dac232399ce7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestBearingDepositLiabilitiesDomestic_019fd3bd-0904-71d2-9af5-892a3a18f9b5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestBearingDepositLiabilitiesDomestic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DepositsDomestic_019fd3bd-0904-7de4-afe5-6b34d006f12f" xlink:to="loc_us-gaap_InterestBearingDepositLiabilitiesDomestic_019fd3bd-0904-71d2-9af5-892a3a18f9b5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fhlbsf.com/role/ConsolidatedObligationsRedemptionTermsDetails" xlink:type="simple" xlink:href="fhlbsf-20260930.xsd#ConsolidatedObligationsRedemptionTermsDetails"/>
  <link:calculationLink xlink:role="http://www.fhlbsf.com/role/ConsolidatedObligationsRedemptionTermsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_fhlbsf_FederalHomeLoanBankConsolidatedObligationsBondsPar_019fd3bd-0904-773c-a8f0-998ca5d76d85" xlink:href="fhlbsf-20260930.xsd#fhlbsf_FederalHomeLoanBankConsolidatedObligationsBondsPar"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextRollingTwelveMonths_019fd3bd-0904-7d0d-a3ec-922d15afdc9b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextRollingTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_fhlbsf_FederalHomeLoanBankConsolidatedObligationsBondsPar_019fd3bd-0904-773c-a8f0-998ca5d76d85" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextRollingTwelveMonths_019fd3bd-0904-7d0d-a3ec-922d15afdc9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInRollingYearTwo_019fd3bd-0904-727a-b4c5-74661d04b24f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInRollingYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_fhlbsf_FederalHomeLoanBankConsolidatedObligationsBondsPar_019fd3bd-0904-773c-a8f0-998ca5d76d85" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInRollingYearTwo_019fd3bd-0904-727a-b4c5-74661d04b24f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInRollingYearThree_019fd3bd-0904-7ece-aa8f-3112056d19f4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInRollingYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_fhlbsf_FederalHomeLoanBankConsolidatedObligationsBondsPar_019fd3bd-0904-773c-a8f0-998ca5d76d85" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInRollingYearThree_019fd3bd-0904-7ece-aa8f-3112056d19f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInRollingYearFour_019fd3bd-0904-7d72-a281-f596929fed37" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInRollingYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_fhlbsf_FederalHomeLoanBankConsolidatedObligationsBondsPar_019fd3bd-0904-773c-a8f0-998ca5d76d85" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInRollingYearFour_019fd3bd-0904-7d72-a281-f596929fed37" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInRollingYearFive_019fd3bd-0904-7808-9c2c-f40402d739f1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInRollingYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_fhlbsf_FederalHomeLoanBankConsolidatedObligationsBondsPar_019fd3bd-0904-773c-a8f0-998ca5d76d85" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInRollingYearFive_019fd3bd-0904-7808-9c2c-f40402d739f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInRollingAfterYearFive_019fd3bd-0904-7482-9979-8b67abdfcab5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInRollingAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_fhlbsf_FederalHomeLoanBankConsolidatedObligationsBondsPar_019fd3bd-0904-773c-a8f0-998ca5d76d85" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInRollingAfterYearFive_019fd3bd-0904-7482-9979-8b67abdfcab5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fhlbsf.com/role/DerivativesandHedgingActivitiesOffsettingofDerivativeAssetsandDerivativeLiabilitiesDetails" xlink:type="simple" xlink:href="fhlbsf-20260930.xsd#DerivativesandHedgingActivitiesOffsettingofDerivativeAssetsandDerivativeLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.fhlbsf.com/role/DerivativesandHedgingActivitiesOffsettingofDerivativeAssetsandDerivativeLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019fd3bd-0904-703d-b427-85823bbfccdf" 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_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement_019fd3bd-0904-7b98-be28-68bca4975abf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilities_019fd3bd-0904-703d-b427-85823bbfccdf" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement_019fd3bd-0904-7b98-be28-68bca4975abf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAssetAndRightToReclaimCashOffset_019fd3bd-0904-77c3-bd59-0e93c693ce56" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilityFairValueGrossAssetAndRightToReclaimCashOffset"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilities_019fd3bd-0904-703d-b427-85823bbfccdf" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAssetAndRightToReclaimCashOffset_019fd3bd-0904-77c3-bd59-0e93c693ce56" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019fd3bd-0904-751a-a261-46adf7a543c6" 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_DerivativeFairValueOfDerivativeAsset_019fd3bd-0904-756c-88b8-a50992daf603" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_019fd3bd-0904-751a-a261-46adf7a543c6" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019fd3bd-0904-756c-88b8-a50992daf603" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fhlbsf_DerivativeAssetFairValueGrossLiabilityandRightToReclaimCashOffset_019fd3bd-0904-7d96-9359-b3d1085d266e" xlink:href="fhlbsf-20260930.xsd#fhlbsf_DerivativeAssetFairValueGrossLiabilityandRightToReclaimCashOffset"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_019fd3bd-0904-751a-a261-46adf7a543c6" xlink:to="loc_fhlbsf_DerivativeAssetFairValueGrossLiabilityandRightToReclaimCashOffset_019fd3bd-0904-7d96-9359-b3d1085d266e" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
