<?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-20260824.xsd" xlink:type="simple"/>
    <context id="C_8a5834e7-8e37-4ea8-bfdd-d83288baf0dd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330399</identifier>
        </entity>
        <period>
            <startDate>2026-08-24</startDate>
            <endDate>2026-08-24</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="C_8a5834e7-8e37-4ea8-bfdd-d83288baf0dd"
      id="F_2ee38f69-4fb0-45a3-b182-d4062c5b9612">0001330399</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="C_8a5834e7-8e37-4ea8-bfdd-d83288baf0dd"
      id="F_36235592-2583-43c4-8edd-64a2475d535c">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="C_8a5834e7-8e37-4ea8-bfdd-d83288baf0dd"
      id="F_5750b732-0194-4210-8bd9-c34f058aaa21">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_8a5834e7-8e37-4ea8-bfdd-d83288baf0dd"
      id="F_0622382a-f015-49b7-a73c-c2712062dcf1">2026-08-24</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_8a5834e7-8e37-4ea8-bfdd-d83288baf0dd"
      id="F_4bb3f0b0-7ce9-4f4f-a8af-8ec253599668">Federal Home Loan Bank of Pittsburgh</dei:EntityRegistrantName>
    <dei:EntityFileNumber
      contextRef="C_8a5834e7-8e37-4ea8-bfdd-d83288baf0dd"
      id="F_fc645f83-4984-484c-bb73-f74702c30698">000-51395</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_8a5834e7-8e37-4ea8-bfdd-d83288baf0dd"
      id="F_6514901c-8919-490f-85c6-f6a9d1075c50">25-6001324</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_8a5834e7-8e37-4ea8-bfdd-d83288baf0dd"
      id="F_f6ec3dbe-3d17-4507-8f67-d8cf0a560cc6">301 Grant Street, Suite 2000</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_8a5834e7-8e37-4ea8-bfdd-d83288baf0dd"
      id="F_edee38b3-4aa7-45ec-b17e-fbd01556a7ca">Pittsburgh</dei:EntityAddressCityOrTown>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_8a5834e7-8e37-4ea8-bfdd-d83288baf0dd"
      id="F_78f11df6-c939-4b9b-8af7-f91e28bc7d06">PA</dei:EntityIncorporationStateCountryCode>
    <dei:EntityAddressStateOrProvince
      contextRef="C_8a5834e7-8e37-4ea8-bfdd-d83288baf0dd"
      id="F_f67e0d27-c6ad-44fa-8715-f11df925c987">PA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_8a5834e7-8e37-4ea8-bfdd-d83288baf0dd"
      id="F_4791cd3f-50f6-4ddb-a8a6-ff30476e4d70">15219</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_8a5834e7-8e37-4ea8-bfdd-d83288baf0dd"
      id="F_a7b90141-3489-4411-8955-081ca4adcd14">412</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_8a5834e7-8e37-4ea8-bfdd-d83288baf0dd"
      id="F_98036dc7-3acb-4e66-bae6-bfbdd3592881">288-3400</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="C_8a5834e7-8e37-4ea8-bfdd-d83288baf0dd"
      id="F_a16271ec-7127-4c79-922f-47aa0ef83144">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_8a5834e7-8e37-4ea8-bfdd-d83288baf0dd"
      id="F_5e9fe213-12e0-4169-a6ea-e1e3dd780328">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_8a5834e7-8e37-4ea8-bfdd-d83288baf0dd"
      id="F_998dbe7b-8021-4b70-b6f1-b8fdff908cf9">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_8a5834e7-8e37-4ea8-bfdd-d83288baf0dd"
      id="F_76399aa4-793b-4fc5-9400-06dee08cdf94">false</dei:PreCommencementIssuerTenderOffer>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_8a5834e7-8e37-4ea8-bfdd-d83288baf0dd"
      id="F_34eadba8-236d-4791-b71e-c3563e4c7cf5">false</dei:EntityEmergingGrowthCompany>
</xbrl>
