<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with WebFilings-->
<linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <roleRef roleURI="http://www.fhlbsf.com/role/AccumulatedOtherComprehensiveIncomeloss" xlink:href="fhlbsf-20120331.xsd#AccumulatedOtherComprehensiveIncomeloss" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/Advances" xlink:href="fhlbsf-20120331.xsd#Advances" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/AllowanceForCreditLosses" xlink:href="fhlbsf-20120331.xsd#AllowanceForCreditLosses" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/AvailableForSaleSecurities" xlink:href="fhlbsf-20120331.xsd#AvailableForSaleSecurities" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/Capital" xlink:href="fhlbsf-20120331.xsd#Capital" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/CommitmentsAndContingencies" xlink:href="fhlbsf-20120331.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/ConsolidatedObligations" xlink:href="fhlbsf-20120331.xsd#ConsolidatedObligations" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/Deposits" xlink:href="fhlbsf-20120331.xsd#Deposits" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/DerivativesAndHedgingActivities" xlink:href="fhlbsf-20120331.xsd#DerivativesAndHedgingActivities" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/DocumentAndEntityInformation" xlink:href="fhlbsf-20120331.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/FairValues" xlink:href="fhlbsf-20120331.xsd#FairValues" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/HeldToMaturitySecurities" xlink:href="fhlbsf-20120331.xsd#HeldToMaturitySecurities" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/MortgageLoansHeldForPortfolio" xlink:href="fhlbsf-20120331.xsd#MortgageLoansHeldForPortfolio" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/OtherThanTemporaryImpairmentAnalysis" xlink:href="fhlbsf-20120331.xsd#OtherThanTemporaryImpairmentAnalysis" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/RecentlyIssuedAndAdoptedAccountingGuidance" xlink:href="fhlbsf-20120331.xsd#RecentlyIssuedAndAdoptedAccountingGuidance" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/SegmentInformation" xlink:href="fhlbsf-20120331.xsd#SegmentInformation" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/StatementsOfCapitalAccounts" xlink:href="fhlbsf-20120331.xsd#StatementsOfCapitalAccounts" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/StatementsOfCapitalParentheticals" xlink:href="fhlbsf-20120331.xsd#StatementsOfCapitalParentheticals" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/StatementsOfCashFlows" xlink:href="fhlbsf-20120331.xsd#StatementsOfCashFlows" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/StatementsOfComprehensiveIncome" xlink:href="fhlbsf-20120331.xsd#StatementsOfComprehensiveIncome" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/StatementsOfCondition" xlink:href="fhlbsf-20120331.xsd#StatementsOfCondition" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/StatementsOfConditionParentheticals" xlink:href="fhlbsf-20120331.xsd#StatementsOfConditionParentheticals" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/StatementsOfIncome" xlink:href="fhlbsf-20120331.xsd#StatementsOfIncome" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/SubsequentEvents" xlink:href="fhlbsf-20120331.xsd#SubsequentEvents" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="fhlbsf-20120331.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/TradingSecurities" xlink:href="fhlbsf-20120331.xsd#TradingSecurities" xlink:type="simple" />
  <roleRef roleURI="http://www.fhlbsf.com/role/TransactionsWithCertainMembersCertainNonmembersAndOtherFhlbanks" xlink:href="fhlbsf-20120331.xsd#TransactionsWithCertainMembersCertainNonmembersAndOtherFhlbanks" xlink:type="simple" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/AccumulatedOtherComprehensiveIncomeloss" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/Advances" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/AllowanceForCreditLosses" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/AvailableForSaleSecurities" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/Capital" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/CommitmentsAndContingencies" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/ConsolidatedObligations" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/Deposits" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/DerivativesAndHedgingActivities" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/DocumentAndEntityInformation" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/FairValues" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/HeldToMaturitySecurities" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/MortgageLoansHeldForPortfolio" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/OtherThanTemporaryImpairmentAnalysis" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/RecentlyIssuedAndAdoptedAccountingGuidance" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/SegmentInformation" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/StatementsOfCapitalAccounts" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/StatementsOfCapitalParentheticals" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/StatementsOfCashFlows" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_fda198c2-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_ProceedsFromPaymentsForInInterestBearingDepositsInBanks" xlink:label="loc_us-gaap_ProceedsFromPaymentsForInInterestBearingDepositsInBanks_f0967ae4-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_fda198c2-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_ProceedsFromPaymentsForInInterestBearingDepositsInBanks_f0967ae4-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_ProceedsFromPaymentsForSecuritiesPurchasedUnderAgreementsToResell" xlink:label="loc_us-gaap_ProceedsFromPaymentsForSecuritiesPurchasedUnderAgreementsToResell_f0a89896-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_fda198c2-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_ProceedsFromPaymentsForSecuritiesPurchasedUnderAgreementsToResell_f0a89896-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_IncreaseDecreaseInFederalFundsSold" xlink:label="loc_us-gaap_IncreaseDecreaseInFederalFundsSold_f0924c4e-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_fda198c2-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_IncreaseDecreaseInFederalFundsSold_f0924c4e-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_PaymentsForProceedsFromProductiveAssets" xlink:label="loc_us-gaap_PaymentsForProceedsFromProductiveAssets_e50a25c2-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="4" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_fda198c2-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_PaymentsForProceedsFromProductiveAssets_e50a25c2-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_ProceedsFromSaleAndMaturityOfTradingSecuritiesHeldforinvestment" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfTradingSecuritiesHeldforinvestment_0cc70864-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_fda198c2-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfTradingSecuritiesHeldforinvestment_0cc70864-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_PaymentsToAcquireTradingSecuritiesHeldforinvestment" xlink:label="loc_us-gaap_PaymentsToAcquireTradingSecuritiesHeldforinvestment_0b21ad2a-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="6" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_fda198c2-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_PaymentsToAcquireTradingSecuritiesHeldforinvestment_0b21ad2a-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_f3b04ad4-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_fda198c2-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_f3b04ad4-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="fhlbsf-20120331.xsd#fhlbsf_PaymentsForProceedsFromShortTermHeldToMaturitySecurities" xlink:label="loc_fhlbsf_PaymentsForProceedsFromShortTermHeldToMaturitySecurities_94b557c6-c1fd-11e0-8c71-12313b06a4a2" xlink:type="locator" />
    <calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_fda198c2-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_fhlbsf_PaymentsForProceedsFromShortTermHeldToMaturitySecurities_94b557c6-c1fd-11e0-8c71-12313b06a4a2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_ProceedsFromSaleAndMaturityOfHeldToMaturitySecurities" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfHeldToMaturitySecurities_f3dcc9ec-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="9" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_fda198c2-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfHeldToMaturitySecurities_f3dcc9ec-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_PaymentsToAcquireHeldToMaturitySecurities" xlink:label="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_f4886a68-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="10" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_fda198c2-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_f4886a68-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_ProceedsFromFederalHomeLoanBankAdvances" xlink:label="loc_us-gaap_ProceedsFromFederalHomeLoanBankAdvances_092721ee-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="11" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_fda198c2-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_ProceedsFromFederalHomeLoanBankAdvances_092721ee-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_PaymentsForFederalHomeLoanBankAdvances" xlink:label="loc_us-gaap_PaymentsForFederalHomeLoanBankAdvances_09276c26-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="12" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_fda198c2-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_PaymentsForFederalHomeLoanBankAdvances_09276c26-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment" xlink:label="loc_us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment_f3ab7964-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="13" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations_fda198c2-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment_f3ab7964-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_f082c1f2-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_f0affe56-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_f082c1f2-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_f0affe56-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_06e2a552-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations_f082c1f2-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_06e2a552-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_ProvisionForLoanLossesExpensed" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_f442d340-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_06e2a552-2586-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_f442d340-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_DepreciationAmortizationAndAccretionNet" xlink:label="loc_us-gaap_DepreciationAmortizationAndAccretionNet_e83f8c82-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_06e2a552-2586-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_DepreciationAmortizationAndAccretionNet_e83f8c82-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_TradingSecuritiesUnrealizedHoldingGainLoss" xlink:label="loc_us-gaap_TradingSecuritiesUnrealizedHoldingGainLoss_f8db9978-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_06e2a552-2586-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_TradingSecuritiesUnrealizedHoldingGainLoss_f8db9978-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_IncreaseDecreaseInFairValueAdjustmentsOnAssetsAndLiabilitiesCarriedAtFairValueUnderFairValueOption" xlink:label="loc_us-gaap_IncreaseDecreaseInFairValueAdjustmentsOnAssetsAndLiabilitiesCarriedAtFairValueUnderFairValueOption_0dc25714-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="4" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_06e2a552-2586-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_IncreaseDecreaseInFairValueAdjustmentsOnAssetsAndLiabilitiesCarriedAtFairValueUnderFairValueOption_0dc25714-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_UnrealizedGainLossOnDerivatives" xlink:label="loc_us-gaap_UnrealizedGainLossOnDerivatives_e3900c48-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_06e2a552-2586-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_UnrealizedGainLossOnDerivatives_e3900c48-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNet" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNet_102e81d0-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_06e2a552-2586-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNet_102e81d0-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_e5ba114e-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="7" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_06e2a552-2586-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_e5ba114e-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_ed9e60f4-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="8" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_06e2a552-2586-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_ed9e60f4-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_IncreaseDecreaseInInterestPayableNet" xlink:label="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_e5b9a984-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="9" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_06e2a552-2586-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_e5b9a984-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_ff60b206-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="10" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_06e2a552-2586-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_ff60b206-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_ProvisionForLoanAndLeaseLosses" xlink:label="loc_us-gaap_ProvisionForLoanAndLeaseLosses_f4422fd0-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="11" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivities_06e2a552-2586-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_ProvisionForLoanAndLeaseLosses_f4422fd0-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.fhlbsf.com/role/StatementsOfComprehensiveIncome" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_e63cc850-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_f0affe56-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_e63cc850-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_f0affe56-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_081d6a92-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_e63cc850-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_081d6a92-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="fhlbsf-20120331.xsd#fhlbsf_OtherComprehensiveIncomeLossOtherThanTemporaryImpairmentLossesAvailableForSaleSecuritiesAdjustment" xlink:label="loc_fhlbsf_OtherComprehensiveIncomeLossOtherThanTemporaryImpairmentLossesAvailableForSaleSecuritiesAdjustment_58acf65a-9568-11e1-ba93-1231380dc193" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_081d6a92-2586-11e0-bc05-7b821c07cce9" xlink:to="loc_fhlbsf_OtherComprehensiveIncomeLossOtherThanTemporaryImpairmentLossesAvailableForSaleSecuritiesAdjustment_58acf65a-9568-11e1-ba93-1231380dc193" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_OtherComprehensiveIncomeReclassificationAdjustmentForHeldToMaturityTransferredToAvailableForSaleSecuritiesBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeReclassificationAdjustmentForHeldToMaturityTransferredToAvailableForSaleSecuritiesBeforeTax_0031b270-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fhlbsf_OtherComprehensiveIncomeLossOtherThanTemporaryImpairmentLossesAvailableForSaleSecuritiesAdjustment_58acf65a-9568-11e1-ba93-1231380dc193" xlink:to="loc_us-gaap_OtherComprehensiveIncomeReclassificationAdjustmentForHeldToMaturityTransferredToAvailableForSaleSecuritiesBeforeTax_0031b270-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="fhlbsf-20120331.xsd#fhlbsf_OtherComprehensiveIncomeNetChangeInFairValueOfOtherThanTemporaryImpairmentSecurities" xlink:label="loc_fhlbsf_OtherComprehensiveIncomeNetChangeInFairValueOfOtherThanTemporaryImpairmentSecurities_28eaea8c-096b-11e1-a46b-1231380b3199" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fhlbsf_OtherComprehensiveIncomeLossOtherThanTemporaryImpairmentLossesAvailableForSaleSecuritiesAdjustment_58acf65a-9568-11e1-ba93-1231380dc193" xlink:to="loc_fhlbsf_OtherComprehensiveIncomeNetChangeInFairValueOfOtherThanTemporaryImpairmentSecurities_28eaea8c-096b-11e1-a46b-1231380b3199" xlink:type="arc" />
    <loc xlink:href="fhlbsf-20120331.xsd#fhlbsf_ReclassificationAdjustmentOfNoncreditPortionOfImpairmentLossesIncludedInNetIncomeRelatingToAfsSecurities" xlink:label="loc_fhlbsf_ReclassificationAdjustmentOfNoncreditPortionOfImpairmentLossesIncludedInNetIncomeRelatingToAfsSecurities_1be983ae-a339-11e0-bba0-12313b06a4a2" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fhlbsf_OtherComprehensiveIncomeLossOtherThanTemporaryImpairmentLossesAvailableForSaleSecuritiesAdjustment_58acf65a-9568-11e1-ba93-1231380dc193" xlink:to="loc_fhlbsf_ReclassificationAdjustmentOfNoncreditPortionOfImpairmentLossesIncludedInNetIncomeRelatingToAfsSecurities_1be983ae-a339-11e0-bba0-12313b06a4a2" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_08108d86-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_081d6a92-2586-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_08108d86-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="fhlbsf-20120331.xsd#fhlbsf_OtherComprehensiveIncomeLossOtherThanTemporaryImpairmentLossesHtmSecuritiesAdjustment" xlink:label="loc_fhlbsf_OtherComprehensiveIncomeLossOtherThanTemporaryImpairmentLossesHtmSecuritiesAdjustment_1f8b3202-956c-11e1-ba93-1231380dc193" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_081d6a92-2586-11e0-bc05-7b821c07cce9" xlink:to="loc_fhlbsf_OtherComprehensiveIncomeLossOtherThanTemporaryImpairmentLossesHtmSecuritiesAdjustment_1f8b3202-956c-11e1-ba93-1231380dc193" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionInOtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParentHeldtomaturitySecurities" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionInOtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParentHeldtomaturitySecurities_110fac64-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fhlbsf_OtherComprehensiveIncomeLossOtherThanTemporaryImpairmentLossesHtmSecuritiesAdjustment_1f8b3202-956c-11e1-ba93-1231380dc193" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionInOtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParentHeldtomaturitySecurities_110fac64-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="fhlbsf-20120331.xsd#fhlbsf_ReclassificationAdjustmentOfNoncreditPortionOfImpairmentLossesIncludedInNetIncomeRelatingToHtmSecurities" xlink:label="loc_fhlbsf_ReclassificationAdjustmentOfNoncreditPortionOfImpairmentLossesIncludedInNetIncomeRelatingToHtmSecurities_e2390222-5ee5-055c-8737-89d9b90bfe83" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fhlbsf_OtherComprehensiveIncomeLossOtherThanTemporaryImpairmentLossesHtmSecuritiesAdjustment_1f8b3202-956c-11e1-ba93-1231380dc193" xlink:to="loc_fhlbsf_ReclassificationAdjustmentOfNoncreditPortionOfImpairmentLossesIncludedInNetIncomeRelatingToHtmSecurities_e2390222-5ee5-055c-8737-89d9b90bfe83" xlink:type="arc" />
    <loc xlink:href="fhlbsf-20120331.xsd#fhlbsf_AccretionOfNoncreditPortionOfImpairmentLossesOnHtmSecurities" xlink:label="loc_fhlbsf_AccretionOfNoncreditPortionOfImpairmentLossesOnHtmSecurities_d7ca45ba-fc0a-a898-7c00-89d9adf04381" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fhlbsf_OtherComprehensiveIncomeLossOtherThanTemporaryImpairmentLossesHtmSecuritiesAdjustment_1f8b3202-956c-11e1-ba93-1231380dc193" xlink:to="loc_fhlbsf_AccretionOfNoncreditPortionOfImpairmentLossesOnHtmSecurities_d7ca45ba-fc0a-a898-7c00-89d9adf04381" xlink:type="arc" />
    <loc xlink:href="fhlbsf-20120331.xsd#fhlbsf_ReclassificationOfNoncreditPortionOfOtherThanTemporaryImpairmentLossesFromHtmSecuritiesToAfsSecurities" xlink:label="loc_fhlbsf_ReclassificationOfNoncreditPortionOfOtherThanTemporaryImpairmentLossesFromHtmSecuritiesToAfsSecurities_7e45d316-9ebe-a05a-0d1a-89d9b4f40ab2" xlink:type="locator" />
    <calculationArc order="4" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_fhlbsf_OtherComprehensiveIncomeLossOtherThanTemporaryImpairmentLossesHtmSecuritiesAdjustment_1f8b3202-956c-11e1-ba93-1231380dc193" xlink:to="loc_fhlbsf_ReclassificationOfNoncreditPortionOfOtherThanTemporaryImpairmentLossesFromHtmSecuritiesToAfsSecurities_7e45d316-9ebe-a05a-0d1a-89d9b4f40ab2" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.fhlbsf.com/role/StatementsOfCondition" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_eed459d8-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_eec8615a-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_eed459d8-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_Liabilities_eec8615a-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_Deposits" xlink:label="loc_us-gaap_Deposits_e830a780-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_eec8615a-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_Deposits_e830a780-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_DebtAndCapitalLeaseObligations" xlink:label="loc_us-gaap_DebtAndCapitalLeaseObligations_e72a2a14-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_eec8615a-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_DebtAndCapitalLeaseObligations_e72a2a14-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_UnsecuredDebt" xlink:label="loc_us-gaap_UnsecuredDebt_f9492d8a-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_e72a2a14-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_UnsecuredDebt_f9492d8a-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_OtherShortTermBorrowings" xlink:label="loc_us-gaap_OtherShortTermBorrowings_f23d5dc2-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_e72a2a14-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_OtherShortTermBorrowings_f23d5dc2-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_SharesSubjectToMandatoryRedemptionSettlementTermsAmount" xlink:label="loc_us-gaap_SharesSubjectToMandatoryRedemptionSettlementTermsAmount_f7b5cf1e-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_eec8615a-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_SharesSubjectToMandatoryRedemptionSettlementTermsAmount_f7b5cf1e-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_InterestPayableCurrentAndNoncurrent" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_07bc5590-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_eec8615a-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_07bc5590-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_AffordableHousingProgramObligation" xlink:label="loc_us-gaap_AffordableHousingProgramObligation_09280460-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_eec8615a-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_AffordableHousingProgramObligation_09280460-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_01b7fbfe-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_eec8615a-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_DerivativeLiabilities_01b7fbfe-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_OtherLiabilities" xlink:label="loc_us-gaap_OtherLiabilities_f20d4092-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_eec8615a-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_OtherLiabilities_f20d4092-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_00bf81f4-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_eed459d8-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_StockholdersEquity_00bf81f4-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_CommonStockOtherValueOutstanding" xlink:label="loc_us-gaap_CommonStockOtherValueOutstanding_0b1322c8-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_00bf81f4-2586-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_CommonStockOtherValueOutstanding_0b1322c8-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_f62c5e7e-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_00bf81f4-2586-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_f62c5e7e-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_e2cdfc7a-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_00bf81f4-2586-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_e2cdfc7a-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossOtherThanTemporaryImpairmentNotCreditLossNetOfTaxAvailableforsaleDebtSecurities" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossOtherThanTemporaryImpairmentNotCreditLossNetOfTaxAvailableforsaleDebtSecurities_102da49a-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_e2cdfc7a-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossOtherThanTemporaryImpairmentNotCreditLossNetOfTaxAvailableforsaleDebtSecurities_102da49a-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossOtherThanTemporaryImpairmentNotCreditLossNetOfTaxHeldtomaturityDebtSecurities" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossOtherThanTemporaryImpairmentNotCreditLossNetOfTaxHeldtomaturityDebtSecurities_102dee82-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_e2cdfc7a-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossOtherThanTemporaryImpairmentNotCreditLossNetOfTaxHeldtomaturityDebtSecurities_102dee82-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_fe66f64e-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_e2cdfc7a-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_fe66f64e-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_fa7db8f6-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_CashAndDueFromBanks" xlink:label="loc_us-gaap_CashAndDueFromBanks_e538f0be-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_fa7db8f6-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_CashAndDueFromBanks_e538f0be-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResell" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResell_eb76ac96-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_fa7db8f6-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResell_eb76ac96-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_FederalFundsSold" xlink:label="loc_us-gaap_FederalFundsSold_eb760b06-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_fa7db8f6-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_FederalFundsSold_eb760b06-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_TradingSecurities" xlink:label="loc_us-gaap_TradingSecurities_fab2c1c2-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_fa7db8f6-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_TradingSecurities_fab2c1c2-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_AvailableForSaleSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecurities_f01b38fc-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_fa7db8f6-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_AvailableForSaleSecurities_f01b38fc-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_HeldToMaturitySecurities" xlink:label="loc_us-gaap_HeldToMaturitySecurities_f0226d70-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_fa7db8f6-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_HeldToMaturitySecurities_f0226d70-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_FederalHomeLoanBankAdvances" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvances_0925d9d8-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_fa7db8f6-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvances_0925d9d8-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_LoansAndLeasesReceivableNetReportedAmount" xlink:label="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_f0bc25b4-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_fa7db8f6-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_LoansAndLeasesReceivableNetReportedAmount_f0bc25b4-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_InterestReceivable" xlink:label="loc_us-gaap_InterestReceivable_ee6183fe-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="9" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_fa7db8f6-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_InterestReceivable_ee6183fe-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_f43e00ea-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="10" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_fa7db8f6-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_f43e00ea-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_e89a22dc-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="11" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_fa7db8f6-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_DerivativeAssets_e89a22dc-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_OtherAssets" xlink:label="loc_us-gaap_OtherAssets_0973d714-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="12" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_fa7db8f6-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_OtherAssets_0973d714-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.fhlbsf.com/role/StatementsOfConditionParentheticals" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/StatementsOfIncome" xlink:type="extended">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_ede3c4f0-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_InterestExpenseOtherLongTermDebt" xlink:label="loc_us-gaap_InterestExpenseOtherLongTermDebt_ee09df46-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_ede3c4f0-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_InterestExpenseOtherLongTermDebt_ee09df46-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_InterestExpenseOtherShortTermBorrowings" xlink:label="loc_us-gaap_InterestExpenseOtherShortTermBorrowings_ee0a5fde-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_ede3c4f0-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_InterestExpenseOtherShortTermBorrowings_ee0a5fde-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_InterestExpenseCapitalSecurities" xlink:label="loc_us-gaap_InterestExpenseCapitalSecurities_e5213596-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_ede3c4f0-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_InterestExpenseCapitalSecurities_e5213596-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_InterestAndDividendIncomeOperating" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_f18c1580-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_InterestIncomeFederalHomeLoanBankAdvances" xlink:label="loc_us-gaap_InterestIncomeFederalHomeLoanBankAdvances_09262ab4-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_f18c1580-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_InterestIncomeFederalHomeLoanBankAdvances_09262ab4-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_PrepaymentFeesOnAdvancesNet" xlink:label="loc_us-gaap_PrepaymentFeesOnAdvancesNet_09268176-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_f18c1580-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_PrepaymentFeesOnAdvancesNet_09268176-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_InterestIncomeFederalFundsSold" xlink:label="loc_us-gaap_InterestIncomeFederalFundsSold_ee14c76c-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_f18c1580-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_InterestIncomeFederalFundsSold_ee14c76c-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_InterestAndDividendIncomeSecuritiesTradingOrMeasuredAtFairValue" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecuritiesTradingOrMeasuredAtFairValue_ee47c0ae-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_f18c1580-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecuritiesTradingOrMeasuredAtFairValue_ee47c0ae-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_InterestAndDividendIncomeSecuritiesAvailableForSale" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecuritiesAvailableForSale_ee106550-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_f18c1580-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecuritiesAvailableForSale_ee106550-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_InterestAndDividendIncomeSecuritiesHeldToMaturity" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecuritiesHeldToMaturity_ee180ada-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_f18c1580-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecuritiesHeldToMaturity_ee180ada-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_InterestAndFeeIncomeLoansConsumerRealEstate" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansConsumerRealEstate_ee3878ba-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_f18c1580-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansConsumerRealEstate_ee3878ba-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_NoninterestIncome" xlink:label="loc_us-gaap_NoninterestIncome_f0e26ddc-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_NetRealizedOrUnrealizedGainLossOnTradingSecurities" xlink:label="loc_us-gaap_NetRealizedOrUnrealizedGainLossOnTradingSecurities_06d74202-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_f0e26ddc-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_NetRealizedOrUnrealizedGainLossOnTradingSecurities_06d74202-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNet" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNet_102e81d0-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_f0e26ddc-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNet_102e81d0-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_ImpairmentOfInvestments" xlink:label="loc_us-gaap_ImpairmentOfInvestments_ecc7ada2-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNet_102e81d0-2586-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_ImpairmentOfInvestments_ecc7ada2-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionInOtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionInOtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_110d87b8-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNet_102e81d0-2586-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionInOtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_110d87b8-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_FairValueOptionChangesInFairValueGainLoss" xlink:label="loc_us-gaap_FairValueOptionChangesInFairValueGainLoss_fd93c076-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_f0e26ddc-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_FairValueOptionChangesInFairValueGainLoss_fd93c076-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_GainLossOnDerivativeInstrumentsNetPretax" xlink:label="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_ec45196e-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_f0e26ddc-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_GainLossOnDerivativeInstrumentsNetPretax_ec45196e-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_f0e9e6de-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_f0e26ddc-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_f0e9e6de-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_FederalHomeLoanBankAssessments" xlink:label="loc_us-gaap_FederalHomeLoanBankAssessments_092c697e-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_CongressionallyMandatedFederalHomeLoanBankAssessments" xlink:label="loc_us-gaap_CongressionallyMandatedFederalHomeLoanBankAssessments_092cbcd0-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAssessments_092c697e-2586-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_CongressionallyMandatedFederalHomeLoanBankAssessments_092cbcd0-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_AffordableHousingProgramAssessments" xlink:label="loc_us-gaap_AffordableHousingProgramAssessments_0926d25c-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAssessments_092c697e-2586-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_AffordableHousingProgramAssessments_0926d25c-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_NoninterestExpense" xlink:label="loc_us-gaap_NoninterestExpense_f8d119f8-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_LaborAndRelatedExpense" xlink:label="loc_us-gaap_LaborAndRelatedExpense_eea8077a-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_f8d119f8-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_LaborAndRelatedExpense_eea8077a-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_OtherCostAndExpenseOperating" xlink:label="loc_us-gaap_OtherCostAndExpenseOperating_ff3945d6-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_f8d119f8-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_OtherCostAndExpenseOperating_ff3945d6-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_OfficeOfFinanceAssessmentsCostAssessedOnFederalHomeLoanBank" xlink:label="loc_us-gaap_OfficeOfFinanceAssessmentsCostAssessedOnFederalHomeLoanBank_092d0e1a-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_f8d119f8-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_OfficeOfFinanceAssessmentsCostAssessedOnFederalHomeLoanBank_092d0e1a-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_OtherNoninterestExpense" xlink:label="loc_us-gaap_OtherNoninterestExpense_f0e158d4-2585-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_f8d119f8-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_OtherNoninterestExpense_f0e158d4-2585-11e0-bc05-7b821c07cce9" xlink:type="arc" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2011/elts/us-gaap-2011-01-31.xsd#us-gaap_RegulatorExpensesCostAssessedOnFederalHomeLoanBank" xlink:label="loc_us-gaap_RegulatorExpensesCostAssessedOnFederalHomeLoanBank_092dba86-2586-11e0-bc05-7b821c07cce9" xlink:type="locator" />
    <calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_f8d119f8-2585-11e0-bc05-7b821c07cce9" xlink:to="loc_us-gaap_RegulatorExpensesCostAssessedOnFederalHomeLoanBank_092dba86-2586-11e0-bc05-7b821c07cce9" xlink:type="arc" />
  </calculationLink>
  <calculationLink xlink:role="http://www.fhlbsf.com/role/SubsequentEvents" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/SummaryOfSignificantAccountingPolicies" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/TradingSecurities" xlink:type="extended" />
  <calculationLink xlink:role="http://www.fhlbsf.com/role/TransactionsWithCertainMembersCertainNonmembersAndOtherFhlbanks" xlink:type="extended" />
</linkbase>
