<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="ck0001330399-20261012.xsd" xlink:type="simple"/>
    <context id="C_545bcd3d-bc41-4535-b41c-e804a0f19e57">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330399</identifier>
        </entity>
        <period>
            <startDate>2026-10-12</startDate>
            <endDate>2026-10-12</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="C_545bcd3d-bc41-4535-b41c-e804a0f19e57"
      id="F_3b1c0aeb-0d9d-4285-904a-bc773b342cb9">0001330399</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="C_545bcd3d-bc41-4535-b41c-e804a0f19e57"
      id="F_259b10c0-a834-45ca-8cd3-0ce9aa558811">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="C_545bcd3d-bc41-4535-b41c-e804a0f19e57"
      id="F_6a87222e-88c7-4859-be15-be4dbe84e1d6">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_545bcd3d-bc41-4535-b41c-e804a0f19e57"
      id="F_21ea130a-6ab7-4c96-b612-6ad34c8fe630">2026-10-12</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_545bcd3d-bc41-4535-b41c-e804a0f19e57"
      id="F_12f7a41f-e54e-47c1-862a-0695e0ececb1">Federal Home Loan Bank of Pittsburgh</dei:EntityRegistrantName>
    <dei:EntityFileNumber
      contextRef="C_545bcd3d-bc41-4535-b41c-e804a0f19e57"
      id="F_bb6d761c-b313-4579-9a89-6acfb56d4373">000-51395</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_545bcd3d-bc41-4535-b41c-e804a0f19e57"
      id="F_379b9d18-19b2-4730-8a0c-0be89aa84ce1">25-6001324</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_545bcd3d-bc41-4535-b41c-e804a0f19e57"
      id="F_c0b85dff-d25e-422c-813e-1014f75f269f">301 Grant Street, Suite 2000</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_545bcd3d-bc41-4535-b41c-e804a0f19e57"
      id="F_9972940c-3b61-4edb-bd50-712dece240a0">Pittsburgh</dei:EntityAddressCityOrTown>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_545bcd3d-bc41-4535-b41c-e804a0f19e57"
      id="F_8e5c5322-6edd-43ee-aca2-3b0cfd1ce9c3">PA</dei:EntityIncorporationStateCountryCode>
    <dei:EntityAddressStateOrProvince
      contextRef="C_545bcd3d-bc41-4535-b41c-e804a0f19e57"
      id="F_fde83eeb-8502-41ad-a533-34b2bd9e0195">PA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_545bcd3d-bc41-4535-b41c-e804a0f19e57"
      id="F_854742d6-6f8b-4a49-badd-401d3aecd76e">15219</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_545bcd3d-bc41-4535-b41c-e804a0f19e57"
      id="F_90e85ad3-75ec-4fd3-80bf-532eab06bb88">412</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_545bcd3d-bc41-4535-b41c-e804a0f19e57"
      id="F_acb3b90a-8d33-4753-ab2a-3ab56a7f85ab">288-3400</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="C_545bcd3d-bc41-4535-b41c-e804a0f19e57"
      id="F_e031ee9b-685b-4aff-a7e8-5ed1b9651fcd">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_545bcd3d-bc41-4535-b41c-e804a0f19e57"
      id="F_8ae9af1a-c657-4307-a9cd-e869325a60f3">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_545bcd3d-bc41-4535-b41c-e804a0f19e57"
      id="F_0f2330b3-0938-4c94-98b3-9fef4cca9681">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_545bcd3d-bc41-4535-b41c-e804a0f19e57"
      id="F_44b72fe6-59ac-4845-b491-e894030827ee">false</dei:PreCommencementIssuerTenderOffer>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_545bcd3d-bc41-4535-b41c-e804a0f19e57"
      id="F_b3beec57-d740-4fcb-8985-246cd0d677e9">false</dei:EntityEmergingGrowthCompany>
</xbrl>
