<?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-20260624.xsd" xlink:type="simple"/>
    <context id="C_bc6602c3-13e2-4736-a62f-30399f5d9808">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330399</identifier>
        </entity>
        <period>
            <startDate>2026-06-24</startDate>
            <endDate>2026-06-24</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="C_bc6602c3-13e2-4736-a62f-30399f5d9808"
      id="F_0265c184-3c15-4606-972b-34eb6aaeec22">0001330399</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="C_bc6602c3-13e2-4736-a62f-30399f5d9808"
      id="F_4be4ba50-48b4-48ae-bc54-121d8f24a723">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="C_bc6602c3-13e2-4736-a62f-30399f5d9808"
      id="F_ca4e735d-211b-4d4b-a1ae-e7ca6afd52ca">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_bc6602c3-13e2-4736-a62f-30399f5d9808"
      id="F_95ba3eef-ce0a-412f-9131-a9f1bc186f6c">2026-06-24</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_bc6602c3-13e2-4736-a62f-30399f5d9808"
      id="F_594c41fc-8221-44de-a6cb-b337b555d2df">Federal Home Loan Bank of Pittsburgh</dei:EntityRegistrantName>
    <dei:EntityFileNumber
      contextRef="C_bc6602c3-13e2-4736-a62f-30399f5d9808"
      id="F_9f547c4a-0e28-43ef-85d5-4df80367c090">000-51395</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_bc6602c3-13e2-4736-a62f-30399f5d9808"
      id="F_9ca741db-1a4b-4f6c-8ebf-b24f0517d0c8">25-6001324</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_bc6602c3-13e2-4736-a62f-30399f5d9808"
      id="F_76977ec6-c323-495f-9c33-c2c7a291e2f5">301 Grant Street, Suite 2000</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_bc6602c3-13e2-4736-a62f-30399f5d9808"
      id="F_209f4345-e6f9-4902-b6e0-0dbb679ceb61">Pittsburgh</dei:EntityAddressCityOrTown>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_bc6602c3-13e2-4736-a62f-30399f5d9808"
      id="F_7dba4393-7f13-426a-92f6-724ccf9bebf3">PA</dei:EntityIncorporationStateCountryCode>
    <dei:EntityAddressStateOrProvince
      contextRef="C_bc6602c3-13e2-4736-a62f-30399f5d9808"
      id="F_d608056e-6a40-498c-926c-33abeeeb37b7">PA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_bc6602c3-13e2-4736-a62f-30399f5d9808"
      id="F_4835a2b3-ee6d-4a9f-9f77-5db2ab3e3cdc">15219</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_bc6602c3-13e2-4736-a62f-30399f5d9808"
      id="F_f23828d1-2337-40b2-ba64-242d1ea15926">412</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_bc6602c3-13e2-4736-a62f-30399f5d9808"
      id="F_7dc956fd-2308-4fd3-b068-26fb18e011a4">288-3400</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="C_bc6602c3-13e2-4736-a62f-30399f5d9808"
      id="F_60061f69-9f04-44e6-b99a-31a60740454d">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_bc6602c3-13e2-4736-a62f-30399f5d9808"
      id="F_7cf0ed40-4101-4371-b01d-ec5b04cdfe16">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_bc6602c3-13e2-4736-a62f-30399f5d9808"
      id="F_9e8e7ead-5e67-48e9-b850-d89da69f24ae">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_bc6602c3-13e2-4736-a62f-30399f5d9808"
      id="F_c846b7a9-a3ea-445c-912f-39b48d534f10">false</dei:PreCommencementIssuerTenderOffer>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_bc6602c3-13e2-4736-a62f-30399f5d9808"
      id="F_4e4c491f-dc7d-4b22-95f5-c53cf7b2561a">false</dei:EntityEmergingGrowthCompany>
</xbrl>
