<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.26.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>393</ContextCount>
  <ElementCount>371</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>85</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>6</UnitCount>
  <MyReports>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>9952151 - Statement - Statements of Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/StatementsofIncome</Role>
      <ShortName>Statements of Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>9952152 - Statement - Statements of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/StatementsofComprehensiveIncome</Role>
      <ShortName>Statements of Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>9952153 - Statement - Statements of Condition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/StatementsofCondition</Role>
      <ShortName>Statements of Condition</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>9952154 - Statement - Statement of Condition (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/StatementofConditionParenthetical</Role>
      <ShortName>Statement of Condition (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>9952155 - Statement - Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/StatementsofCashFlows</Role>
      <ShortName>Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>9952156 - Statement - Statements of Cash Flows (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/StatementsofCashFlowsParenthetical</Role>
      <ShortName>Statements of Cash Flows (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>9952157 - Statement - Statements of Changes in Capital</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/StatementsofChangesinCapital</Role>
      <ShortName>Statements of Changes in Capital</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>9952158 - Disclosure - Background Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/BackgroundInformation</Role>
      <ShortName>Background Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>9952159 - Disclosure - Accounting Adjustments, Changes in Accounting Principle and Recently Issued Accounting Standards and Interpretations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/AccountingAdjustmentsChangesinAccountingPrincipleandRecentlyIssuedAccountingStandardsandInterpretations</Role>
      <ShortName>Accounting Adjustments, Changes in Accounting Principle and Recently Issued Accounting Standards and Interpretations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>9952161 - Disclosure - Advances</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/Advances</Role>
      <ShortName>Advances</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>9952162 - Disclosure - Mortgage Loans Held for Portfolio</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/MortgageLoansHeldforPortfolio</Role>
      <ShortName>Mortgage Loans Held for Portfolio</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>9952164 - Disclosure - Consolidated Obligations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/ConsolidatedObligations</Role>
      <ShortName>Consolidated Obligations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>9952165 - Disclosure - Capital</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/Capital</Role>
      <ShortName>Capital</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>9952167 - Disclosure - Estimated Fair Values</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/EstimatedFairValues</Role>
      <ShortName>Estimated Fair Values</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>9952168 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>9955512 - Disclosure - Fair Value Measures and Disclosures (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/FairValueMeasuresandDisclosuresPolicies</Role>
      <ShortName>Fair Value Measures and Disclosures (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/AccountingAdjustmentsChangesinAccountingPrincipleandRecentlyIssuedAccountingStandardsandInterpretations</ParentRole>
      <Position>17</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>9955513 - Disclosure - Commitment and Contingencies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/CommitmentandContingenciesPolicies</Role>
      <ShortName>Commitment and Contingencies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/AccountingAdjustmentsChangesinAccountingPrincipleandRecentlyIssuedAccountingStandardsandInterpretations</ParentRole>
      <Position>18</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>9955514 - Disclosure - Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/InvestmentsTables</Role>
      <ShortName>Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9955515 - Disclosure - Advances (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/AdvancesTables</Role>
      <ShortName>Advances (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/Advances</ParentRole>
      <Position>20</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9955516 - Disclosure - Mortgage Loans Held for Portfolio (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/MortgageLoansHeldforPortfolioTables</Role>
      <ShortName>Mortgage Loans Held for Portfolio (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/MortgageLoansHeldforPortfolio</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9955517 - Disclosure - Derivatives and Hedging Activities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/DerivativesandHedgingActivitiesTables</Role>
      <ShortName>Derivatives and Hedging Activities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9955518 - Disclosure - Consolidated Obligations (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/ConsolidatedObligationsTables</Role>
      <ShortName>Consolidated Obligations (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/ConsolidatedObligations</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9955519 - Disclosure - Capital (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/CapitalTables</Role>
      <ShortName>Capital (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/Capital</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9955520 - Disclosure - Transactions with Related Parties (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/TransactionswithRelatedPartiesTables</Role>
      <ShortName>Transactions with Related Parties (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9955521 - Disclosure - Estimated Fair Values (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/EstimatedFairValuesTables</Role>
      <ShortName>Estimated Fair Values (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/EstimatedFairValues</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9955522 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/CommitmentsandContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/CommitmentsandContingencies</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9955523 - Disclosure - Background Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/BackgroundInformationDetails</Role>
      <ShortName>Background Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/BackgroundInformation</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9955524 - Disclosure - Investments Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/InvestmentsNarrativeDetails</Role>
      <ShortName>Investments Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9955525 - Disclosure - Trading Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/TradingSecuritiesDetails</Role>
      <ShortName>Trading Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9955526 - Disclosure - Trading Securities (Net Gains (Losses) on Trading Securities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/TradingSecuritiesNetGainsLossesonTradingSecuritiesDetails</Role>
      <ShortName>Trading Securities (Net Gains (Losses) on Trading Securities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9955527 - Disclosure - Investments AFS - Schedule of Reconciliation Table (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/InvestmentsAFSScheduleofReconciliationTableDetails</Role>
      <ShortName>Investments AFS - Schedule of Reconciliation Table (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9955528 - Disclosure - Investments AFS - Unrealized Loss Position Table (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/InvestmentsAFSUnrealizedLossPositionTableDetails</Role>
      <ShortName>Investments AFS - Unrealized Loss Position Table (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9955529 - Disclosure - Investments AFS - Contractual Maturities Table (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/InvestmentsAFSContractualMaturitiesTableDetails</Role>
      <ShortName>Investments AFS - Contractual Maturities Table (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9955530 - Disclosure - Investments AFS - Interest Rate Payment Terms Table (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/InvestmentsAFSInterestRatePaymentTermsTableDetails</Role>
      <ShortName>Investments AFS - Interest Rate Payment Terms Table (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9955531 - Disclosure - Investments, Gain Loss on Sales of AFS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/InvestmentsGainLossonSalesofAFSDetails</Role>
      <ShortName>Investments, Gain Loss on Sales of AFS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9955532 - Disclosure - Investments HTM - Securities by Major Security Type Table (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/InvestmentsHTMSecuritiesbyMajorSecurityTypeTableDetails</Role>
      <ShortName>Investments HTM - Securities by Major Security Type Table (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9955533 - Disclosure - Investments HTM - Contractual Maturity Table (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/InvestmentsHTMContractualMaturityTableDetails</Role>
      <ShortName>Investments HTM - Contractual Maturity Table (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9955534 - Disclosure - Investments HTM - Interest Rate Payment Terms (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/InvestmentsHTMInterestRatePaymentTermsDetails</Role>
      <ShortName>Investments HTM - Interest Rate Payment Terms (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9955535 - Disclosure - Investments AFS - Allowance Rollforward Table (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/InvestmentsAFSAllowanceRollforwardTableDetails</Role>
      <ShortName>Investments AFS - Allowance Rollforward Table (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9955536 - Disclosure - Advances (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/AdvancesDetails</Role>
      <ShortName>Advances (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/AdvancesTables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9955537 - Disclosure - Advances (Portfolio by Year of Contractual Maturity) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/AdvancesPortfoliobyYearofContractualMaturityDetails</Role>
      <ShortName>Advances (Portfolio by Year of Contractual Maturity) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/AdvancesTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9955538 - Disclosure - Advances (Advances by Year of Contractual Maturity or Next Call Date or Next Convertible Date) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/AdvancesAdvancesbyYearofContractualMaturityorNextCallDateorNextConvertibleDateDetails</Role>
      <ShortName>Advances (Advances by Year of Contractual Maturity or Next Call Date or Next Convertible Date) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/AdvancesTables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9955539 - Disclosure - Advances (Interest Rate Payment Terms) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/AdvancesInterestRatePaymentTermsDetails</Role>
      <ShortName>Advances (Interest Rate Payment Terms) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/AdvancesTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9955540 - Disclosure - Mortgage Loans Held for Portfolio (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/MortgageLoansHeldforPortfolioDetails</Role>
      <ShortName>Mortgage Loans Held for Portfolio (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/MortgageLoansHeldforPortfolioTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9955541 - Disclosure - Mortgage Loans Held for Portfolio Credit Quality Indicators (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/MortgageLoansHeldforPortfolioCreditQualityIndicatorsDetails</Role>
      <ShortName>Mortgage Loans Held for Portfolio Credit Quality Indicators (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9955542 - Disclosure - Mortgage Loans Held for Portfolio MPF -Allowance Roll Forward Table (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/MortgageLoansHeldforPortfolioMPFAllowanceRollForwardTableDetails</Role>
      <ShortName>Mortgage Loans Held for Portfolio MPF -Allowance Roll Forward Table (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9955543 - Disclosure - Mortgage Loans Held for Portfolio Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/MortgageLoansHeldforPortfolioNarrativeDetails</Role>
      <ShortName>Mortgage Loans Held for Portfolio Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9955544 - Disclosure - Derivatives and Hedging Activities (Derivatives in Statement of Condition) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/DerivativesandHedgingActivitiesDerivativesinStatementofConditionDetails</Role>
      <ShortName>Derivatives and Hedging Activities (Derivatives in Statement of Condition) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/DerivativesandHedgingActivitiesTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9955545 - Disclosure - Derivatives and Hedging Activities (Derivatives in Statement of Income and Impact on Interest) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/DerivativesandHedgingActivitiesDerivativesinStatementofIncomeandImpactonInterestDetails</Role>
      <ShortName>Derivatives and Hedging Activities (Derivatives in Statement of Income and Impact on Interest) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/DerivativesandHedgingActivitiesTables</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9955546 - Disclosure - Fair Value Measures and Disclosures (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/FairValueMeasuresandDisclosuresDetails</Role>
      <ShortName>Fair Value Measures and Disclosures (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/FairValueMeasuresandDisclosuresPolicies</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9955547 - Disclosure - Derivatives and Hedging Activities (Derivatives in Statement of Income) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/DerivativesandHedgingActivitiesDerivativesinStatementofIncomeDetails</Role>
      <ShortName>Derivatives and Hedging Activities (Derivatives in Statement of Income) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/DerivativesandHedgingActivitiesTables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9955549 - Disclosure - Derivatives and Hedging Activities (Offsetting Assets) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/DerivativesandHedgingActivitiesOffsettingAssetsDetails</Role>
      <ShortName>Derivatives and Hedging Activities (Offsetting Assets) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/DerivativesandHedgingActivitiesTables</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9955550 - Disclosure - Derivatives and Hedging Activities (Offsetting Liabilities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/DerivativesandHedgingActivitiesOffsettingLiabilitiesDetails</Role>
      <ShortName>Derivatives and Hedging Activities (Offsetting Liabilities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/DerivativesandHedgingActivitiesTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9955551 - Disclosure - Schedule of Long-term Debt by Call Feature (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/ScheduleofLongtermDebtbyCallFeatureDetails</Role>
      <ShortName>Schedule of Long-term Debt by Call Feature (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9955552 - Disclosure - Consolidated Obligations (Contractual Maturity Terms) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/ConsolidatedObligationsContractualMaturityTermsDetails</Role>
      <ShortName>Consolidated Obligations (Contractual Maturity Terms) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/ConsolidatedObligationsTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9955553 - Disclosure - Consolidated Obligations (Consolidated Obligation Bonds Noncallable and Callable) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/ConsolidatedObligationsConsolidatedObligationBondsNoncallableandCallableDetails</Role>
      <ShortName>Consolidated Obligations (Consolidated Obligation Bonds Noncallable and Callable) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/ConsolidatedObligationsTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9955554 - Disclosure - Consolidated Obligations (Consolidated Obligation Bonds by Earlier of Contractual Maturity or Next Call Date) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/ConsolidatedObligationsConsolidatedObligationBondsbyEarlierofContractualMaturityorNextCallDateDetails</Role>
      <ShortName>Consolidated Obligations (Consolidated Obligation Bonds by Earlier of Contractual Maturity or Next Call Date) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/ConsolidatedObligationsTables</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9955555 - Disclosure - Consolidated Obligations (Consolidated Obligation Discount Notes) (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.fhlb-pgh.com/role/ConsolidatedObligationsConsolidatedObligationDiscountNotesDetails</Role>
      <ShortName>Consolidated Obligations (Consolidated Obligation Discount Notes) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/ConsolidatedObligationsTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9955556 - Disclosure - Capital (Capital Requirements) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/CapitalCapitalRequirementsDetails</Role>
      <ShortName>Capital (Capital Requirements) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/CapitalTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9955557 - Disclosure - Capital (Mandatorily Redeemable Capital Stock) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/CapitalMandatorilyRedeemableCapitalStockDetails</Role>
      <ShortName>Capital (Mandatorily Redeemable Capital Stock) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/CapitalTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9955558 - Disclosure - Capital (Mandatorily Redeemable Capital Stock by Contractual Year of Redemption) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/CapitalMandatorilyRedeemableCapitalStockbyContractualYearofRedemptionDetails</Role>
      <ShortName>Capital (Mandatorily Redeemable Capital Stock by Contractual Year of Redemption) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/CapitalTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9955559 - Disclosure - Capital (Dividends and Retained Earnings) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/CapitalDividendsandRetainedEarningsDetails</Role>
      <ShortName>Capital (Dividends and Retained Earnings) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/CapitalTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9955560 - Disclosure - Capital (Accumulated Other Comprehensive Income (Loss)) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/CapitalAccumulatedOtherComprehensiveIncomeLossDetails</Role>
      <ShortName>Capital (Accumulated Other Comprehensive Income (Loss)) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/CapitalTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9955561 - Disclosure - Transactions with Related Parties (By Balance Sheet Grouping) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/TransactionswithRelatedPartiesByBalanceSheetGroupingDetails</Role>
      <ShortName>Transactions with Related Parties (By Balance Sheet Grouping) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/TransactionswithRelatedPartiesTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9955562 - Disclosure - Transactions with Related Parties (Statement of Income Effects) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/TransactionswithRelatedPartiesStatementofIncomeEffectsDetails</Role>
      <ShortName>Transactions with Related Parties (Statement of Income Effects) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/TransactionswithRelatedPartiesTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9955563 - Disclosure - Transactions with Related Parties (Transactions with Other FHLBanks) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/TransactionswithRelatedPartiesTransactionswithOtherFHLBanksDetails</Role>
      <ShortName>Transactions with Related Parties (Transactions with Other FHLBanks) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/TransactionswithRelatedPartiesTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9955564 - Disclosure - Estimated Fair Values (Carrying Value and Fair Value of Financial Instruments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/EstimatedFairValuesCarryingValueandFairValueofFinancialInstrumentsDetails</Role>
      <ShortName>Estimated Fair Values (Carrying Value and Fair Value of Financial Instruments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/EstimatedFairValuesTables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9955565 - Disclosure - Estimated Fair Values (Fair Value Measured on Recurring and Nonrecurring Basis) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/EstimatedFairValuesFairValueMeasuredonRecurringandNonrecurringBasisDetails</Role>
      <ShortName>Estimated Fair Values (Fair Value Measured on Recurring and Nonrecurring Basis) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/EstimatedFairValuesTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9955566 - Disclosure - Estimated Fair Values (Level 3 Reconciliation) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/EstimatedFairValuesLevel3ReconciliationDetails</Role>
      <ShortName>Estimated Fair Values (Level 3 Reconciliation) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/EstimatedFairValuesTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="fhlbpgh-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9955567 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fhlb-pgh.com/role/CommitmentsandContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fhlb-pgh.com/role/CommitmentsandContingenciesTables</ParentRole>
      <Position>71</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" isDefinitelyFs="true" isUsgaap="true" original="fhlbpgh-20260630.htm">fhlbpgh-20260630.htm</File>
    <File>fhlbpgh-20260630.xsd</File>
    <File>fhlbpgh-20260630_cal.xml</File>
    <File>fhlbpgh-20260630_def.xml</File>
    <File>fhlbpgh-20260630_lab.xml</File>
    <File>fhlbpgh-20260630_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="1605">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="26">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
