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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019df85b-d11c-7d4c-9c4c-5210b8e9118d,g:4eab6956-1610-4749-9a9c-c8baf3f2dc0e-->
<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.fhlb-pgh.com/role/StatementsofIncome" xlink:type="simple" xlink:href="fhlbpgh-20260630.xsd#StatementsofIncome"/>
  <link:calculationLink xlink:role="http://www.fhlb-pgh.com/role/StatementsofIncome" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_019df85b-d380-7710-958e-1218cc70aade" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnInvestments_019df85b-d380-7ad0-a962-884da1f2525c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnInvestments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019df85b-d380-7710-958e-1218cc70aade" xlink:to="loc_us-gaap_GainLossOnInvestments_019df85b-d380-7ad0-a962-884da1f2525c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet_019df85b-d380-7e05-b93e-a023c7b776ec" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019df85b-d380-7710-958e-1218cc70aade" xlink:to="loc_us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet_019df85b-d380-7e05-b93e-a023c7b776ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fhlbpgh_Standbylettersofcreditfees_019df85b-d380-7352-8933-543675bea6e5" xlink:href="fhlbpgh-20260630.xsd#fhlbpgh_Standbylettersofcreditfees"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019df85b-d380-7710-958e-1218cc70aade" xlink:to="loc_fhlbpgh_Standbylettersofcreditfees_019df85b-d380-7352-8933-543675bea6e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_019df85b-d380-709b-900c-0e06f4c97f01" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d380-7710-958e-1218cc70aade" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_019df85b-d380-709b-900c-0e06f4c97f01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToParentNetOfFederalHomeLoanBankAssessments_019df85b-d380-72fd-a537-9ee43b034ade" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossAttributableToParentNetOfFederalHomeLoanBankAssessments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019df85b-d380-7798-a8a7-a72b9345ff22" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d380-72fd-a537-9ee43b034ade" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019df85b-d380-7798-a8a7-a72b9345ff22" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AffordableHousingProgramAssessments_019df85b-d380-7ced-b20a-6c18b4626070" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d380-72fd-a537-9ee43b034ade" xlink:to="loc_us-gaap_AffordableHousingProgramAssessments_019df85b-d380-7ced-b20a-6c18b4626070" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpense_019df85b-d380-7d80-b3f2-ea03ecfb651c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OfficeOfFinanceAssessmentsCostAssessedOnFederalHomeLoanBank_019df85b-d380-79aa-8c89-e9bfb50d627a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OfficeOfFinanceAssessmentsCostAssessedOnFederalHomeLoanBank"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019df85b-d380-7d80-b3f2-ea03ecfb651c" xlink:to="loc_us-gaap_OfficeOfFinanceAssessmentsCostAssessedOnFederalHomeLoanBank_019df85b-d380-79aa-8c89-e9bfb50d627a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fhlbpgh_VoluntaryContributionExpense_019df85b-d380-7164-bcf7-d37e25d1404e" xlink:href="fhlbpgh-20260630.xsd#fhlbpgh_VoluntaryContributionExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019df85b-d380-7d80-b3f2-ea03ecfb651c" xlink:to="loc_fhlbpgh_VoluntaryContributionExpense_019df85b-d380-7164-bcf7-d37e25d1404e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LaborAndRelatedExpense_019df85b-d380-7e51-af05-33841f089b3e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LaborAndRelatedExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019df85b-d380-7d80-b3f2-ea03ecfb651c" xlink:to="loc_us-gaap_LaborAndRelatedExpense_019df85b-d380-7e51-af05-33841f089b3e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCostAndExpenseOperating_019df85b-d380-75e4-9428-d401e70fa20c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherCostAndExpenseOperating"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019df85b-d380-7d80-b3f2-ea03ecfb651c" xlink:to="loc_us-gaap_OtherCostAndExpenseOperating_019df85b-d380-75e4-9428-d401e70fa20c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatorExpensesCostAssessedOnFederalHomeLoanBank_019df85b-d380-7f5b-8f3b-0143d8c71609" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RegulatorExpensesCostAssessedOnFederalHomeLoanBank"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019df85b-d380-7d80-b3f2-ea03ecfb651c" xlink:to="loc_us-gaap_RegulatorExpensesCostAssessedOnFederalHomeLoanBank_019df85b-d380-7f5b-8f3b-0143d8c71609" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_019df85b-d380-76f8-94a6-0b5243b15ff3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeFederalHomeLoanBankAdvances_019df85b-d380-7694-9f94-51c0510a1177" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeFederalHomeLoanBankAdvances"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019df85b-d380-76f8-94a6-0b5243b15ff3" xlink:to="loc_us-gaap_InterestIncomeFederalHomeLoanBankAdvances_019df85b-d380-7694-9f94-51c0510a1177" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeDepositsWithFinancialInstitutions_019df85b-d380-7b05-920b-fd333db27f17" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeDepositsWithFinancialInstitutions"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019df85b-d380-76f8-94a6-0b5243b15ff3" xlink:to="loc_us-gaap_InterestIncomeDepositsWithFinancialInstitutions_019df85b-d380-7b05-920b-fd333db27f17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeSecuritiesPurchasedUnderAgreementsToResell_019df85b-d380-72f1-ab70-a74edfdb60d7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d380-76f8-94a6-0b5243b15ff3" xlink:to="loc_us-gaap_InterestIncomeSecuritiesPurchasedUnderAgreementsToResell_019df85b-d380-72f1-ab70-a74edfdb60d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeFederalFundsSold_019df85b-d380-7dcf-a3db-112a101588c8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeFederalFundsSold"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019df85b-d380-76f8-94a6-0b5243b15ff3" xlink:to="loc_us-gaap_InterestIncomeFederalFundsSold_019df85b-d380-7dcf-a3db-112a101588c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeDebtSecuritiesTradingOperating_019df85b-d380-7661-9c0f-b35764e33add" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeDebtSecuritiesTradingOperating"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019df85b-d380-76f8-94a6-0b5243b15ff3" xlink:to="loc_us-gaap_InterestIncomeDebtSecuritiesTradingOperating_019df85b-d380-7661-9c0f-b35764e33add" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeDebtSecuritiesAvailableForSaleOperating_019df85b-d380-73e7-acd8-701b6e7fe2fc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeDebtSecuritiesAvailableForSaleOperating"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019df85b-d380-76f8-94a6-0b5243b15ff3" xlink:to="loc_us-gaap_InterestIncomeDebtSecuritiesAvailableForSaleOperating_019df85b-d380-73e7-acd8-701b6e7fe2fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeSecuritiesHeldToMaturity_019df85b-d380-79be-b55d-27b228230dbf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndDividendIncomeSecuritiesHeldToMaturity"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019df85b-d380-76f8-94a6-0b5243b15ff3" xlink:to="loc_us-gaap_InterestAndDividendIncomeSecuritiesHeldToMaturity_019df85b-d380-79be-b55d-27b228230dbf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansConsumerRealEstate_019df85b-d380-7c85-bcd0-8214dd6aa4e6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndFeeIncomeLoansConsumerRealEstate"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019df85b-d380-76f8-94a6-0b5243b15ff3" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansConsumerRealEstate_019df85b-d380-7c85-bcd0-8214dd6aa4e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_019df85b-d380-7c1d-bf33-65ab080afd39" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOtherShortTermBorrowings_019df85b-d380-7d86-8757-ca39f08b9b9e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseOtherShortTermBorrowings"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseOperating_019df85b-d380-7c1d-bf33-65ab080afd39" xlink:to="loc_us-gaap_InterestExpenseOtherShortTermBorrowings_019df85b-d380-7d86-8757-ca39f08b9b9e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOtherLongTermDebt_019df85b-d380-7fba-acc3-1c5be17173e1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseOtherLongTermDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseOperating_019df85b-d380-7c1d-bf33-65ab080afd39" xlink:to="loc_us-gaap_InterestExpenseOtherLongTermDebt_019df85b-d380-7fba-acc3-1c5be17173e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDomesticDeposits_019df85b-d380-7295-bc93-a84e833d325f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseDomesticDeposits"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseOperating_019df85b-d380-7c1d-bf33-65ab080afd39" xlink:to="loc_us-gaap_InterestExpenseDomesticDeposits_019df85b-d380-7295-bc93-a84e833d325f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOther_019df85b-d380-7b5c-855d-e4ac30375a67" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseOther"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseOperating_019df85b-d380-7c1d-bf33-65ab080afd39" xlink:to="loc_us-gaap_InterestExpenseOther_019df85b-d380-7b5c-855d-e4ac30375a67" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_019df85b-d380-7ad0-9421-a986353f28c7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_019df85b-d380-7b16-843d-3d4d5283f86b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_019df85b-d380-7ad0-9421-a986353f28c7" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_019df85b-d380-7b16-843d-3d4d5283f86b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_019df85b-d380-7602-964d-178e8ae73526" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseOperating"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_019df85b-d380-7ad0-9421-a986353f28c7" xlink:to="loc_us-gaap_InterestExpenseOperating_019df85b-d380-7602-964d-178e8ae73526" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019df85b-d380-7852-bcd5-302a47f1b765" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_019df85b-d380-7aee-b8c3-95e9cc4a2fc3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d380-7852-bcd5-302a47f1b765" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_019df85b-d380-7aee-b8c3-95e9cc4a2fc3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_019df85b-d380-7e71-ad44-135a2f26062c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProvisionForLoanLeaseAndOtherLosses"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019df85b-d380-7852-bcd5-302a47f1b765" xlink:to="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_019df85b-d380-7e71-ad44-135a2f26062c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fhlb-pgh.com/role/StatementsofComprehensiveIncome" xlink:type="simple" xlink:href="fhlbpgh-20260630.xsd#StatementsofComprehensiveIncome"/>
  <link:calculationLink xlink:role="http://www.fhlb-pgh.com/role/StatementsofComprehensiveIncome" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019df85b-d380-79e3-b583-b04cd8b7c8cd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_019df85b-d380-75f3-926d-1999c8c51f8e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019df85b-d380-79e3-b583-b04cd8b7c8cd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_019df85b-d380-75f3-926d-1999c8c51f8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_019df85b-d380-776a-8547-0a9a15f3440d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019df85b-d380-79e3-b583-b04cd8b7c8cd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_019df85b-d380-776a-8547-0a9a15f3440d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_019df85b-d380-7f26-892e-910eea23f6e7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019df85b-d380-79e3-b583-b04cd8b7c8cd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_019df85b-d380-7f26-892e-910eea23f6e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeLossNetOfFederalHomeLoanBankAssessmentsAttributableToParent_019df85b-d380-7673-a88c-bd3be5214ba4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ComprehensiveIncomeLossNetOfFederalHomeLoanBankAssessmentsAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToParentNetOfFederalHomeLoanBankAssessments_019df85b-d380-7e7d-8aab-400e79da0c27" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_ComprehensiveIncomeLossNetOfFederalHomeLoanBankAssessmentsAttributableToParent_019df85b-d380-7673-a88c-bd3be5214ba4" xlink:to="loc_us-gaap_NetIncomeLossAttributableToParentNetOfFederalHomeLoanBankAssessments_019df85b-d380-7e7d-8aab-400e79da0c27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019df85b-d380-71f1-a55e-0f0dc0b3c783" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeLossNetOfFederalHomeLoanBankAssessmentsAttributableToParent_019df85b-d380-7673-a88c-bd3be5214ba4" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019df85b-d380-71f1-a55e-0f0dc0b3c783" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fhlb-pgh.com/role/StatementsofCondition" xlink:type="simple" xlink:href="fhlbpgh-20260630.xsd#StatementsofCondition"/>
  <link:calculationLink xlink:role="http://www.fhlb-pgh.com/role/StatementsofCondition" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019df85b-d443-7310-ab24-f811485eee64" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockOtherValueOutstanding_019df85b-d443-730e-adf2-cf30175f0d3a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockOtherValueOutstanding"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019df85b-d443-7310-ab24-f811485eee64" xlink:to="loc_us-gaap_CommonStockOtherValueOutstanding_019df85b-d443-730e-adf2-cf30175f0d3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019df85b-d443-7bab-8eb2-572784a3ddcd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019df85b-d443-7310-ab24-f811485eee64" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019df85b-d443-7bab-8eb2-572784a3ddcd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossBeforeFederalHomeLoanBankAssessments_019df85b-d443-7328-bc42-a67de89b7d24" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossBeforeFederalHomeLoanBankAssessments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019df85b-d443-7310-ab24-f811485eee64" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossBeforeFederalHomeLoanBankAssessments_019df85b-d443-7328-bc42-a67de89b7d24" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019df85b-d443-739a-877d-9a78cd6c4b21" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesSubjectToMandatoryRedemptionSettlementTermsAmount_019df85b-d443-720e-babd-94ef4b87d8b7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SharesSubjectToMandatoryRedemptionSettlementTermsAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019df85b-d443-739a-877d-9a78cd6c4b21" xlink:to="loc_us-gaap_SharesSubjectToMandatoryRedemptionSettlementTermsAmount_019df85b-d443-720e-babd-94ef4b87d8b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_019df85b-d443-7409-85ce-84311a9b271f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestPayableCurrentAndNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019df85b-d443-739a-877d-9a78cd6c4b21" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_019df85b-d443-7409-85ce-84311a9b271f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AffordableHousingProgramObligation_019df85b-d443-7e9a-9e50-3c132ea08e54" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AffordableHousingProgramObligation"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019df85b-d443-739a-877d-9a78cd6c4b21" xlink:to="loc_us-gaap_AffordableHousingProgramObligation_019df85b-d443-7e9a-9e50-3c132ea08e54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019df85b-d443-79e0-8d6a-3463503a2758" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019df85b-d443-739a-877d-9a78cd6c4b21" xlink:to="loc_us-gaap_DerivativeLiabilities_019df85b-d443-79e0-8d6a-3463503a2758" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_019df85b-d443-7608-9d41-dc9cced4a6d3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019df85b-d443-739a-877d-9a78cd6c4b21" xlink:to="loc_us-gaap_OtherLiabilities_019df85b-d443-7608-9d41-dc9cced4a6d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsDomestic_019df85b-d443-7989-85b0-84524861c036" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DepositsDomestic"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019df85b-d443-739a-877d-9a78cd6c4b21" xlink:to="loc_us-gaap_DepositsDomestic_019df85b-d443-7989-85b0-84524861c036" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankConsolidatedObligations_019df85b-d443-79af-98d8-169756b936b1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankConsolidatedObligations"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019df85b-d443-739a-877d-9a78cd6c4b21" xlink:to="loc_us-gaap_FederalHomeLoanBankConsolidatedObligations_019df85b-d443-79af-98d8-169756b936b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MarketableSecurities_019df85b-d443-73ba-b6e6-c4183987820d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MarketableSecurities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019df85b-d443-760c-818e-f1fef97ed398" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_MarketableSecurities_019df85b-d443-73ba-b6e6-c4183987820d" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019df85b-d443-760c-818e-f1fef97ed398" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TradingSecuritiesDebt_019df85b-d443-7b2f-9944-5d73a9da0b5e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TradingSecuritiesDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_MarketableSecurities_019df85b-d443-73ba-b6e6-c4183987820d" xlink:to="loc_us-gaap_TradingSecuritiesDebt_019df85b-d443-7b2f-9944-5d73a9da0b5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019df85b-d443-7297-a88f-ca287606bc97" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_MarketableSecurities_019df85b-d443-73ba-b6e6-c4183987820d" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019df85b-d443-7297-a88f-ca287606bc97" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_019df85b-d443-7853-b338-6e1afe9b78de" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019df85b-d443-7c70-a15e-a9d3f16fd1ca" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d443-7853-b338-6e1afe9b78de" xlink:to="loc_us-gaap_Liabilities_019df85b-d443-7c70-a15e-a9d3f16fd1ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_019df85b-d443-7d39-a8f9-5e967a6f7bf9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019df85b-d443-7853-b338-6e1afe9b78de" xlink:to="loc_us-gaap_CommitmentsAndContingencies_019df85b-d443-7d39-a8f9-5e967a6f7bf9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019df85b-d443-75ab-a950-deab8929a230" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019df85b-d443-7853-b338-6e1afe9b78de" xlink:to="loc_us-gaap_StockholdersEquity_019df85b-d443-75ab-a950-deab8929a230" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019df85b-d381-71a4-9db3-98b3ed3f6628" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MarketableSecurities_019df85b-d381-7d0e-a0da-5c72f7c84a21" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MarketableSecurities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019df85b-d381-71a4-9db3-98b3ed3f6628" xlink:to="loc_us-gaap_MarketableSecurities_019df85b-d381-7d0e-a0da-5c72f7c84a21" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResell_019df85b-d381-7b21-af66-1a22e7f81130" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SecuritiesPurchasedUnderAgreementsToResell"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019df85b-d381-71a4-9db3-98b3ed3f6628" xlink:to="loc_us-gaap_SecuritiesPurchasedUnderAgreementsToResell_019df85b-d381-7b21-af66-1a22e7f81130" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAccruedInterestAfterAllowanceForCreditLoss_019df85b-d381-724d-9753-06884b0a12be" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019df85b-d381-71a4-9db3-98b3ed3f6628" xlink:to="loc_us-gaap_FinancingReceivableAccruedInterestAfterAllowanceForCreditLoss_019df85b-d381-724d-9753-06884b0a12be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndDueFromBanks_019df85b-d381-783a-812f-08a358d4ac3d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndDueFromBanks"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019df85b-d381-71a4-9db3-98b3ed3f6628" xlink:to="loc_us-gaap_CashAndDueFromBanks_019df85b-d381-783a-812f-08a358d4ac3d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestReceivable_019df85b-d381-787c-b7a2-f65b9f980346" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestReceivable"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019df85b-d381-71a4-9db3-98b3ed3f6628" xlink:to="loc_us-gaap_InterestReceivable_019df85b-d381-787c-b7a2-f65b9f980346" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvances_019df85b-d381-7947-bfa4-1206895f5d07" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankAdvances"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019df85b-d381-71a4-9db3-98b3ed3f6628" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvances_019df85b-d381-7947-bfa4-1206895f5d07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalFundsSold_019df85b-d381-7c44-abc0-c55827430b4d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d381-71a4-9db3-98b3ed3f6628" xlink:to="loc_us-gaap_FederalFundsSold_019df85b-d381-7c44-abc0-c55827430b4d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestBearingDepositsInBanks_019df85b-d381-772d-9e4b-41f8aef22d8c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestBearingDepositsInBanks"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019df85b-d381-71a4-9db3-98b3ed3f6628" xlink:to="loc_us-gaap_InterestBearingDepositsInBanks_019df85b-d381-772d-9e4b-41f8aef22d8c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_019df85b-d381-7bff-9c0d-98482474d775" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019df85b-d381-71a4-9db3-98b3ed3f6628" xlink:to="loc_us-gaap_OtherAssets_019df85b-d381-7bff-9c0d-98482474d775" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019df85b-d443-7b57-82c1-11c9ddc052c8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019df85b-d381-71a4-9db3-98b3ed3f6628" xlink:to="loc_us-gaap_DerivativeAssets_019df85b-d443-7b57-82c1-11c9ddc052c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019df85b-d443-7a9a-b38b-10a683796496" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsUnappropriated_019df85b-d443-72ab-9aad-c42ea43821a4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d443-7a9a-b38b-10a683796496" xlink:to="loc_us-gaap_RetainedEarningsUnappropriated_019df85b-d443-72ab-9aad-c42ea43821a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAppropriated_019df85b-d443-7582-870b-07316c2672d2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d443-7a9a-b38b-10a683796496" xlink:to="loc_us-gaap_RetainedEarningsAppropriated_019df85b-d443-7582-870b-07316c2672d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankConsolidatedObligations_019df85b-d443-7996-87b5-df86a1332396" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankConsolidatedObligations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankConsolidatedObligationsDiscountNotes_019df85b-d443-7c78-891d-30db6f059f22" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankConsolidatedObligationsDiscountNotes"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankConsolidatedObligations_019df85b-d443-7996-87b5-df86a1332396" xlink:to="loc_us-gaap_FederalHomeLoanBankConsolidatedObligationsDiscountNotes_019df85b-d443-7c78-891d-30db6f059f22" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankConsolidatedObligationsBonds_019df85b-d443-7d68-b165-b120a0d4e6a0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankConsolidatedObligationsBonds"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankConsolidatedObligations_019df85b-d443-7996-87b5-df86a1332396" xlink:to="loc_us-gaap_FederalHomeLoanBankConsolidatedObligationsBonds_019df85b-d443-7d68-b165-b120a0d4e6a0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fhlb-pgh.com/role/StatementsofCashFlows" xlink:type="simple" xlink:href="fhlbpgh-20260630.xsd#StatementsofCashFlows"/>
  <link:calculationLink xlink:role="http://www.fhlb-pgh.com/role/StatementsofCashFlows" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019df85b-d443-743b-9b76-706726b9a161" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_019df85b-d443-70dc-844d-862b87f65e52" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019df85b-d443-743b-9b76-706726b9a161" xlink:to="loc_us-gaap_ProfitLoss_019df85b-d443-70dc-844d-862b87f65e52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAmortizationAndAccretionNet_019df85b-d443-748b-a87c-8f3870d83f50" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DepreciationAmortizationAndAccretionNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019df85b-d443-743b-9b76-706726b9a161" xlink:to="loc_us-gaap_DepreciationAmortizationAndAccretionNet_019df85b-d443-748b-a87c-8f3870d83f50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnDerivatives_019df85b-d443-71af-b7d9-2e3e3d3d8186" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_UnrealizedGainLossOnDerivatives"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019df85b-d443-743b-9b76-706726b9a161" xlink:to="loc_us-gaap_UnrealizedGainLossOnDerivatives_019df85b-d443-71af-b7d9-2e3e3d3d8186" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss_019df85b-d443-7ce4-bbc6-19c45d71941d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019df85b-d443-743b-9b76-706726b9a161" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss_019df85b-d443-7ce4-bbc6-19c45d71941d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesTradingGainLoss_019df85b-d443-7106-879b-7465a437f1f6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesTradingGainLoss"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019df85b-d443-743b-9b76-706726b9a161" xlink:to="loc_us-gaap_DebtSecuritiesTradingGainLoss_019df85b-d443-7106-879b-7465a437f1f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_019df85b-d443-7c81-a0ba-777c0370130e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019df85b-d443-743b-9b76-706726b9a161" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_019df85b-d443-7c81-a0ba-777c0370130e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_019df85b-d443-7b55-be46-e6da599e2465" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_NetCashProvidedByUsedInOperatingActivities_019df85b-d443-743b-9b76-706726b9a161" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_019df85b-d443-7b55-be46-e6da599e2465" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_019df85b-d443-7ddf-9f5a-6ea5a3c53e21" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019df85b-d443-743b-9b76-706726b9a161" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_019df85b-d443-7ddf-9f5a-6ea5a3c53e21" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_019df85b-d443-7b9b-9e39-95fc3fc97cfc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInInterestPayableNet"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019df85b-d443-743b-9b76-706726b9a161" xlink:to="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_019df85b-d443-7b9b-9e39-95fc3fc97cfc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_019df85b-d443-7f91-a953-d31e26e708c5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019df85b-d443-743b-9b76-706726b9a161" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_019df85b-d443-7f91-a953-d31e26e708c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019df85b-d443-771d-9406-f8cf12da0492" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromOtherShortTermDebt_019df85b-d443-759c-9296-36dd40a38d00" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromOtherShortTermDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019df85b-d443-771d-9406-f8cf12da0492" xlink:to="loc_us-gaap_ProceedsFromOtherShortTermDebt_019df85b-d443-759c-9296-36dd40a38d00" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt_019df85b-d443-762b-b7f5-8d2ea53719d3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019df85b-d443-771d-9406-f8cf12da0492" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt_019df85b-d443-762b-b7f5-8d2ea53719d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfOtherShortTermDebt_019df85b-d443-7ca9-9d16-7ebcd40a319a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RepaymentsOfOtherShortTermDebt"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019df85b-d443-771d-9406-f8cf12da0492" xlink:to="loc_us-gaap_RepaymentsOfOtherShortTermDebt_019df85b-d443-7ca9-9d16-7ebcd40a319a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfOtherLongTermDebt_019df85b-d443-79b0-81a4-0a5be968f9c6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RepaymentsOfOtherLongTermDebt"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019df85b-d443-771d-9406-f8cf12da0492" xlink:to="loc_us-gaap_RepaymentsOfOtherLongTermDebt_019df85b-d443-79b0-81a4-0a5be968f9c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_019df85b-d443-726a-83f6-32aad642e2a7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d443-771d-9406-f8cf12da0492" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_019df85b-d443-726a-83f6-32aad642e2a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfMandatoryRedeemableCapitalSecurities_019df85b-d443-74c8-9f80-ea27577943e0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d443-771d-9406-f8cf12da0492" xlink:to="loc_us-gaap_RepaymentsOfMandatoryRedeemableCapitalSecurities_019df85b-d443-74c8-9f80-ea27577943e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019df85b-d443-7efa-9eab-d9461ef7913f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d443-771d-9406-f8cf12da0492" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019df85b-d443-7efa-9eab-d9461ef7913f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_019df85b-d443-7f5e-9dfd-908b5e24ecfe" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019df85b-d443-771d-9406-f8cf12da0492" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_019df85b-d443-7f5e-9dfd-908b5e24ecfe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInDeposits_019df85b-d443-7465-a613-3ecdf522f818" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInDeposits"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019df85b-d443-771d-9406-f8cf12da0492" xlink:to="loc_us-gaap_IncreaseDecreaseInDeposits_019df85b-d443-7465-a613-3ecdf522f818" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019df85b-d443-7fb9-94ed-1a205c19a233" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPaymentsForInInterestBearingDepositsInBanks_019df85b-d443-705b-85b1-053dc5f58cb7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromPaymentsForInInterestBearingDepositsInBanks"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019df85b-d443-7fb9-94ed-1a205c19a233" xlink:to="loc_us-gaap_ProceedsFromPaymentsForInInterestBearingDepositsInBanks_019df85b-d443-705b-85b1-053dc5f58cb7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPaymentsForSecuritiesPurchasedUnderAgreementsToResell_019df85b-d443-76a7-b487-2a79e45bf4fb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromPaymentsForSecuritiesPurchasedUnderAgreementsToResell"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019df85b-d443-7fb9-94ed-1a205c19a233" xlink:to="loc_us-gaap_ProceedsFromPaymentsForSecuritiesPurchasedUnderAgreementsToResell_019df85b-d443-76a7-b487-2a79e45bf4fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInFederalFundsSold_019df85b-d443-7c78-a095-c7425b371021" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d443-7fb9-94ed-1a205c19a233" xlink:to="loc_us-gaap_IncreaseDecreaseInFederalFundsSold_019df85b-d443-7c78-a095-c7425b371021" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_019df85b-d443-7870-862b-ab188df8f7c7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019df85b-d443-7fb9-94ed-1a205c19a233" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_019df85b-d443-7870-862b-ab188df8f7c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_019df85b-d443-7f66-a8ba-1d304fcf487d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019df85b-d443-7fb9-94ed-1a205c19a233" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_019df85b-d443-7f66-a8ba-1d304fcf487d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfHeldToMaturitySecurities_019df85b-d443-77dd-be9e-c26967422df4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleAndMaturityOfHeldToMaturitySecurities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019df85b-d443-7fb9-94ed-1a205c19a233" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfHeldToMaturitySecurities_019df85b-d443-77dd-be9e-c26967422df4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_019df85b-d443-75d7-9a92-082dceeb5b38" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquireHeldToMaturitySecurities"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019df85b-d443-7fb9-94ed-1a205c19a233" xlink:to="loc_us-gaap_PaymentsToAcquireHeldToMaturitySecurities_019df85b-d443-75d7-9a92-082dceeb5b38" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromFederalHomeLoanBankAdvances_019df85b-d443-7b0d-b335-65501a14c994" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromFederalHomeLoanBankAdvances"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019df85b-d443-7fb9-94ed-1a205c19a233" xlink:to="loc_us-gaap_ProceedsFromFederalHomeLoanBankAdvances_019df85b-d443-7b0d-b335-65501a14c994" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForFederalHomeLoanBankAdvances_019df85b-d443-7721-95a6-3f9a19ed1a02" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsForFederalHomeLoanBankAdvances"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019df85b-d443-7fb9-94ed-1a205c19a233" xlink:to="loc_us-gaap_PaymentsForFederalHomeLoanBankAdvances_019df85b-d443-7721-95a6-3f9a19ed1a02" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment_019df85b-d443-7122-8165-74bd146552ef" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019df85b-d443-7fb9-94ed-1a205c19a233" xlink:to="loc_us-gaap_ProceedsFromPrincipalRepaymentsOnLoansAndLeasesHeldForInvestment_019df85b-d443-7122-8165-74bd146552ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireLoansHeldForInvestment_019df85b-d443-787b-bbe2-16ee134c8016" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquireLoansHeldForInvestment"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019df85b-d443-7fb9-94ed-1a205c19a233" xlink:to="loc_us-gaap_PaymentsToAcquireLoansHeldForInvestment_019df85b-d443-787b-bbe2-16ee134c8016" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_019df85b-d443-7e66-b967-e8cbc178e4e2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019df85b-d443-7fb9-94ed-1a205c19a233" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_019df85b-d443-7e66-b967-e8cbc178e4e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfTradingSecuritiesHeldforinvestment_019df85b-d443-7546-a7c2-cf4ce763f7d5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleAndMaturityOfTradingSecuritiesHeldforinvestment"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019df85b-d443-7fb9-94ed-1a205c19a233" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfTradingSecuritiesHeldforinvestment_019df85b-d443-7546-a7c2-cf4ce763f7d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019df85b-d443-7761-bfe4-fc01ede87dd3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019df85b-d443-72ba-a057-fec14f87b7ca" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019df85b-d443-7761-bfe4-fc01ede87dd3" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019df85b-d443-72ba-a057-fec14f87b7ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019df85b-d443-7066-ac83-ff4b3194ab00" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019df85b-d443-7761-bfe4-fc01ede87dd3" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019df85b-d443-7066-ac83-ff4b3194ab00" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019df85b-d443-7d09-9057-631948fd78ef" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019df85b-d443-7761-bfe4-fc01ede87dd3" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019df85b-d443-7d09-9057-631948fd78ef" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fhlb-pgh.com/role/AdvancesPortfoliobyYearofContractualMaturityDetails" xlink:type="simple" xlink:href="fhlbpgh-20260630.xsd#AdvancesPortfoliobyYearofContractualMaturityDetails"/>
  <link:calculationLink xlink:role="http://www.fhlb-pgh.com/role/AdvancesPortfoliobyYearofContractualMaturityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019df85b-d444-7a35-8432-48dd9923dcf7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankAdvancesParValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInNextRollingTwelveMonths_019df85b-d444-7f8a-aea1-8cd30d703a35" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d444-7a35-8432-48dd9923dcf7" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInNextRollingTwelveMonths_019df85b-d444-7f8a-aea1-8cd30d703a35" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInRollingYearTwo_019df85b-d444-78b9-a031-773640fd3563" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d444-7a35-8432-48dd9923dcf7" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInRollingYearTwo_019df85b-d444-78b9-a031-773640fd3563" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInRollingYearThree_019df85b-d444-70e8-92c6-135eac4f9c92" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d444-7a35-8432-48dd9923dcf7" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInRollingYearThree_019df85b-d444-70e8-92c6-135eac4f9c92" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInRollingYearFour_019df85b-d444-7486-8a8b-147e22d3a978" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d444-7a35-8432-48dd9923dcf7" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInRollingYearFour_019df85b-d444-7486-8a8b-147e22d3a978" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInRollingYearFive_019df85b-d444-7f49-bb5a-31e5d342da51" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d444-7a35-8432-48dd9923dcf7" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryInRollingYearFive_019df85b-d444-7f49-bb5a-31e5d342da51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryAfterRollingYearFive_019df85b-d444-7af2-8953-63ba073f6cf4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d444-7a35-8432-48dd9923dcf7" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesMaturitiesSummaryAfterRollingYearFive_019df85b-d444-7af2-8953-63ba073f6cf4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvances_019df85b-d444-7527-93cc-b27ad8fb046d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankAdvances"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019df85b-d444-70b7-b8aa-c773fde8bac8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d444-7527-93cc-b27ad8fb046d" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019df85b-d444-70b7-b8aa-c773fde8bac8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesDiscount_019df85b-d444-79bd-8d04-a2b9ee36c25e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankAdvancesDiscount"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvances_019df85b-d444-7527-93cc-b27ad8fb046d" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesDiscount_019df85b-d444-79bd-8d04-a2b9ee36c25e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesValuationAdjustmentsForHedgingActivities_019df85b-d444-7976-9b1b-5e5e5b544301" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankAdvancesValuationAdjustmentsForHedgingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvances_019df85b-d444-7527-93cc-b27ad8fb046d" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesValuationAdjustmentsForHedgingActivities_019df85b-d444-7976-9b1b-5e5e5b544301" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fhlb-pgh.com/role/AdvancesAdvancesbyYearofContractualMaturityorNextCallDateorNextConvertibleDateDetails" xlink:type="simple" xlink:href="fhlbpgh-20260630.xsd#AdvancesAdvancesbyYearofContractualMaturityorNextCallDateorNextConvertibleDateDetails"/>
  <link:calculationLink xlink:role="http://www.fhlb-pgh.com/role/AdvancesAdvancesbyYearofContractualMaturityorNextCallDateorNextConvertibleDateDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019df85b-d444-7089-97fa-a522e5cae08d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankAdvancesParValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInNextRollingTwelveMonths_019df85b-d444-702b-9e57-e661ab9e87bf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d444-7089-97fa-a522e5cae08d" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInNextRollingTwelveMonths_019df85b-d444-702b-9e57-e661ab9e87bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInRollingYearTwo_019df85b-d444-7b5a-b1d1-630b9d7e7e12" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d444-7089-97fa-a522e5cae08d" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInRollingYearTwo_019df85b-d444-7b5a-b1d1-630b9d7e7e12" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInRollingYearThree_019df85b-d444-765b-85c3-04fb90754ec5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d444-7089-97fa-a522e5cae08d" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInRollingYearThree_019df85b-d444-765b-85c3-04fb90754ec5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInRollingYearFour_019df85b-d444-7a2a-850e-608e8c9f0c60" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d444-7089-97fa-a522e5cae08d" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInRollingYearFour_019df85b-d444-7a2a-850e-608e8c9f0c60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInRollingYearFive_019df85b-d444-7e80-8f4d-87c7d418934b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d444-7089-97fa-a522e5cae08d" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateInRollingYearFive_019df85b-d444-7e80-8f4d-87c7d418934b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateAfterRollingYearFive_019df85b-d444-765a-aa49-84ca0e99e7e5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d444-7089-97fa-a522e5cae08d" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesEarlierOfContractualMaturityOrNextCallDateAfterRollingYearFive_019df85b-d444-765a-aa49-84ca0e99e7e5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fhlb-pgh.com/role/AdvancesInterestRatePaymentTermsDetails" xlink:type="simple" xlink:href="fhlbpgh-20260630.xsd#AdvancesInterestRatePaymentTermsDetails"/>
  <link:calculationLink xlink:role="http://www.fhlb-pgh.com/role/AdvancesInterestRatePaymentTermsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesFloatingRate_019df85b-d444-7126-81a8-74f03053091f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankAdvancesFloatingRate"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesFloatingRateUnderOneYear_019df85b-d444-7368-ab66-a83a66a10fe8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d444-7126-81a8-74f03053091f" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesFloatingRateUnderOneYear_019df85b-d444-7368-ab66-a83a66a10fe8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesFloatingRateAfterOneYear_019df85b-d444-7936-9ecc-8c16df879316" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d444-7126-81a8-74f03053091f" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesFloatingRateAfterOneYear_019df85b-d444-7936-9ecc-8c16df879316" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesParValue_019df85b-d444-7d6a-b012-5f47e3bbef2a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankAdvancesParValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesFixedRate_019df85b-d444-7acb-be59-7f74fa4a8443" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d444-7d6a-b012-5f47e3bbef2a" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesFixedRate_019df85b-d444-7acb-be59-7f74fa4a8443" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesFloatingRate_019df85b-d444-7e8f-be9b-f7a6ccc44ee6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d444-7d6a-b012-5f47e3bbef2a" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesFloatingRate_019df85b-d444-7e8f-be9b-f7a6ccc44ee6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesFixedRate_019df85b-d444-7e2f-8506-3e73810b76b9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankAdvancesFixedRate"/>
    <link:loc xlink:type="locator" xlink:label="loc_fhlbpgh_FederalHomeLoanBankAdvancesFixedRateOvernight_019df85b-d444-7719-b486-289d44783493" xlink:href="fhlbpgh-20260630.xsd#fhlbpgh_FederalHomeLoanBankAdvancesFixedRateOvernight"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesFixedRate_019df85b-d444-7e2f-8506-3e73810b76b9" xlink:to="loc_fhlbpgh_FederalHomeLoanBankAdvancesFixedRateOvernight_019df85b-d444-7719-b486-289d44783493" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesFixedRateUnderOneYear_019df85b-d444-728b-9447-403ae17a0250" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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_019df85b-d444-7e2f-8506-3e73810b76b9" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesFixedRateUnderOneYear_019df85b-d444-728b-9447-403ae17a0250" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesFixedRateAfterOneYear_019df85b-d444-78b2-9a22-14c41baea62a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankAdvancesFixedRateAfterOneYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankAdvancesFixedRate_019df85b-d444-7e2f-8506-3e73810b76b9" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesFixedRateAfterOneYear_019df85b-d444-78b2-9a22-14c41baea62a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fhlb-pgh.com/role/DerivativesandHedgingActivitiesOffsettingAssetsDetails" xlink:type="simple" xlink:href="fhlbpgh-20260630.xsd#DerivativesandHedgingActivitiesOffsettingAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.fhlb-pgh.com/role/DerivativesandHedgingActivitiesOffsettingAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_fhlbpgh_DerivativeAssetNetFairValueAmountAfterOffsettingAdjustment_019df85b-d444-74cb-aeb4-b9d4e2c2d5f3" xlink:href="fhlbpgh-20260630.xsd#fhlbpgh_DerivativeAssetNetFairValueAmountAfterOffsettingAdjustment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019df85b-d444-7355-8351-ed8336098bca" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_fhlbpgh_DerivativeAssetNetFairValueAmountAfterOffsettingAdjustment_019df85b-d444-74cb-aeb4-b9d4e2c2d5f3" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019df85b-d444-7355-8351-ed8336098bca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiabilityAndObligationToReturnCashOffset_019df85b-d444-725d-856c-1fadeeac2438" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeAssetFairValueGrossLiabilityAndObligationToReturnCashOffset"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_fhlbpgh_DerivativeAssetNetFairValueAmountAfterOffsettingAdjustment_019df85b-d444-74cb-aeb4-b9d4e2c2d5f3" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiabilityAndObligationToReturnCashOffset_019df85b-d444-725d-856c-1fadeeac2438" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019df85b-d444-7474-925a-628383945cb8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_fhlbpgh_DerivativeAssetNetFairValueAmountAfterOffsettingAdjustment_019df85b-d444-7a22-b4bd-80b09255d4bd" xlink:href="fhlbpgh-20260630.xsd#fhlbpgh_DerivativeAssetNetFairValueAmountAfterOffsettingAdjustment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_019df85b-d444-7474-925a-628383945cb8" xlink:to="loc_fhlbpgh_DerivativeAssetNetFairValueAmountAfterOffsettingAdjustment_019df85b-d444-7a22-b4bd-80b09255d4bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetNotSubjectToMasterNettingArrangement_019df85b-d444-7ddf-b87f-ac3ea33dfa4e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeAssetNotSubjectToMasterNettingArrangement"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_019df85b-d444-7474-925a-628383945cb8" xlink:to="loc_us-gaap_DerivativeAssetNotSubjectToMasterNettingArrangement_019df85b-d444-7ddf-b87f-ac3ea33dfa4e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fhlb-pgh.com/role/DerivativesandHedgingActivitiesOffsettingLiabilitiesDetails" xlink:type="simple" xlink:href="fhlbpgh-20260630.xsd#DerivativesandHedgingActivitiesOffsettingLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.fhlb-pgh.com/role/DerivativesandHedgingActivitiesOffsettingLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_fhlbpgh_DerivativeLaibilityNetFairValueAmountAfterOffsettingAdjustment_019df85b-d444-7fda-964d-add198d754e4" xlink:href="fhlbpgh-20260630.xsd#fhlbpgh_DerivativeLaibilityNetFairValueAmountAfterOffsettingAdjustment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019df85b-d444-707b-ab16-d64b75762802" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_fhlbpgh_DerivativeLaibilityNetFairValueAmountAfterOffsettingAdjustment_019df85b-d444-7fda-964d-add198d754e4" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019df85b-d444-707b-ab16-d64b75762802" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAssetAndRightToReclaimCashOffset_019df85b-d444-7ce7-b139-3d3c646633d7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DerivativeLiabilityFairValueGrossAssetAndRightToReclaimCashOffset"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_fhlbpgh_DerivativeLaibilityNetFairValueAmountAfterOffsettingAdjustment_019df85b-d444-7fda-964d-add198d754e4" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAssetAndRightToReclaimCashOffset_019df85b-d444-7ce7-b139-3d3c646633d7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fhlb-pgh.com/role/ScheduleofLongtermDebtbyCallFeatureDetails" xlink:type="simple" xlink:href="fhlbpgh-20260630.xsd#ScheduleofLongtermDebtbyCallFeatureDetails"/>
  <link:calculationLink xlink:role="http://www.fhlb-pgh.com/role/ScheduleofLongtermDebtbyCallFeatureDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankConsolidatedObligationsBonds_019df85b-d444-794a-ba2f-dcb91419260b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalHomeLoanBankConsolidatedObligationsBonds"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_019df85b-d444-78e4-89e6-0a19802fbdae" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankConsolidatedObligationsBonds_019df85b-d444-794a-ba2f-dcb91419260b" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_019df85b-d444-78e4-89e6-0a19802fbdae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedPremium_019df85b-d444-79b0-9bb8-92916c3eaa76" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentUnamortizedPremium"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankConsolidatedObligationsBonds_019df85b-d444-794a-ba2f-dcb91419260b" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedPremium_019df85b-d444-79b0-9bb8-92916c3eaa76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_019df85b-d444-7a85-bd80-af7ffce20dce" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentUnamortizedDiscount"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankConsolidatedObligationsBonds_019df85b-d444-794a-ba2f-dcb91419260b" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_019df85b-d444-7a85-bd80-af7ffce20dce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnamortizedDebtIssuanceExpense_019df85b-d444-76b8-9aa0-1e1f073a47ae" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_UnamortizedDebtIssuanceExpense"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankConsolidatedObligationsBonds_019df85b-d444-794a-ba2f-dcb91419260b" xlink:to="loc_us-gaap_UnamortizedDebtIssuanceExpense_019df85b-d444-76b8-9aa0-1e1f073a47ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fhlbpgh_FederalHomeLoanBankConsolidatedObligationsBondsAdjustmentforHedgingActivities_019df85b-d444-7055-83ab-56fe7caad665" xlink:href="fhlbpgh-20260630.xsd#fhlbpgh_FederalHomeLoanBankConsolidatedObligationsBondsAdjustmentforHedgingActivities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FederalHomeLoanBankConsolidatedObligationsBonds_019df85b-d444-794a-ba2f-dcb91419260b" xlink:to="loc_fhlbpgh_FederalHomeLoanBankConsolidatedObligationsBondsAdjustmentforHedgingActivities_019df85b-d444-7055-83ab-56fe7caad665" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fhlb-pgh.com/role/CapitalMandatorilyRedeemableCapitalStockbyContractualYearofRedemptionDetails" xlink:type="simple" xlink:href="fhlbpgh-20260630.xsd#CapitalMandatorilyRedeemableCapitalStockbyContractualYearofRedemptionDetails"/>
  <link:calculationLink xlink:role="http://www.fhlb-pgh.com/role/CapitalMandatorilyRedeemableCapitalStockbyContractualYearofRedemptionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesSubjectToMandatoryRedemptionSettlementTermsAmount_019df85b-d444-7672-9584-c8e1ae15a150" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SharesSubjectToMandatoryRedemptionSettlementTermsAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentsSubjectToMandatoryRedemptionRedeemableWithinOneYear_019df85b-d444-7d73-a8a8-df703f8ddccc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancialInstrumentsSubjectToMandatoryRedemptionRedeemableWithinOneYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_SharesSubjectToMandatoryRedemptionSettlementTermsAmount_019df85b-d444-7672-9584-c8e1ae15a150" xlink:to="loc_us-gaap_FinancialInstrumentsSubjectToMandatoryRedemptionRedeemableWithinOneYear_019df85b-d444-7d73-a8a8-df703f8ddccc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentsSubjectToMandatoryRedemptionRedeemableInYearTwo_019df85b-d444-719e-9a72-adeda4e56788" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancialInstrumentsSubjectToMandatoryRedemptionRedeemableInYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_SharesSubjectToMandatoryRedemptionSettlementTermsAmount_019df85b-d444-7672-9584-c8e1ae15a150" xlink:to="loc_us-gaap_FinancialInstrumentsSubjectToMandatoryRedemptionRedeemableInYearTwo_019df85b-d444-719e-9a72-adeda4e56788" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentsSubjectToMandatoryRedemptionRedeemableInYearThree_019df85b-d444-7a29-8587-37393719e028" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancialInstrumentsSubjectToMandatoryRedemptionRedeemableInYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_SharesSubjectToMandatoryRedemptionSettlementTermsAmount_019df85b-d444-7672-9584-c8e1ae15a150" xlink:to="loc_us-gaap_FinancialInstrumentsSubjectToMandatoryRedemptionRedeemableInYearThree_019df85b-d444-7a29-8587-37393719e028" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentsSubjectToMandatoryRedemptionRedeemableInYearFour_019df85b-d444-70d5-b4a8-ae9459fb4d1b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancialInstrumentsSubjectToMandatoryRedemptionRedeemableInYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_SharesSubjectToMandatoryRedemptionSettlementTermsAmount_019df85b-d444-7672-9584-c8e1ae15a150" xlink:to="loc_us-gaap_FinancialInstrumentsSubjectToMandatoryRedemptionRedeemableInYearFour_019df85b-d444-70d5-b4a8-ae9459fb4d1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentsSubjectToMandatoryRedemptionRedeemableInYearFive_019df85b-d444-7a8f-acbe-20d8fae4d52e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancialInstrumentsSubjectToMandatoryRedemptionRedeemableInYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_SharesSubjectToMandatoryRedemptionSettlementTermsAmount_019df85b-d444-7672-9584-c8e1ae15a150" xlink:to="loc_us-gaap_FinancialInstrumentsSubjectToMandatoryRedemptionRedeemableInYearFive_019df85b-d444-7a8f-acbe-20d8fae4d52e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentsSubjectToMandatoryRedemptionPastContractualRedemptionDateDueToOutstandingActivity_019df85b-d444-7b00-851e-5310278318c9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancialInstrumentsSubjectToMandatoryRedemptionPastContractualRedemptionDateDueToOutstandingActivity"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_SharesSubjectToMandatoryRedemptionSettlementTermsAmount_019df85b-d444-7672-9584-c8e1ae15a150" xlink:to="loc_us-gaap_FinancialInstrumentsSubjectToMandatoryRedemptionPastContractualRedemptionDateDueToOutstandingActivity_019df85b-d444-7b00-851e-5310278318c9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.fhlb-pgh.com/role/CommitmentsandContingenciesDetails" xlink:type="simple" xlink:href="fhlbpgh-20260630.xsd#CommitmentsandContingenciesDetails"/>
  <link:calculationLink xlink:role="http://www.fhlb-pgh.com/role/CommitmentsandContingenciesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureOffbalanceSheetRisksFaceAmountLiability_019df85b-d50f-77cc-95d4-fd89fc93b810" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueDisclosureOffbalanceSheetRisksFaceAmountLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_fhlbpgh_FairValueDisclosureOffBalanceSheetRisksFaceAmountExpiringWithinOneYear_019df85b-d50f-7ac5-a807-f90d2377e25f" xlink:href="fhlbpgh-20260630.xsd#fhlbpgh_FairValueDisclosureOffBalanceSheetRisksFaceAmountExpiringWithinOneYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FairValueDisclosureOffbalanceSheetRisksFaceAmountLiability_019df85b-d50f-77cc-95d4-fd89fc93b810" xlink:to="loc_fhlbpgh_FairValueDisclosureOffBalanceSheetRisksFaceAmountExpiringWithinOneYear_019df85b-d50f-7ac5-a807-f90d2377e25f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_fhlbpgh_FairValueDisclosureOffBalanceSheetRisksFaceAmountExpiringAfterOneYear_019df85b-d50f-718b-953a-e0bfaf201a9e" xlink:href="fhlbpgh-20260630.xsd#fhlbpgh_FairValueDisclosureOffBalanceSheetRisksFaceAmountExpiringAfterOneYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FairValueDisclosureOffbalanceSheetRisksFaceAmountLiability_019df85b-d50f-77cc-95d4-fd89fc93b810" xlink:to="loc_fhlbpgh_FairValueDisclosureOffBalanceSheetRisksFaceAmountExpiringAfterOneYear_019df85b-d50f-718b-953a-e0bfaf201a9e" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
