<?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-20260810.xsd" xlink:type="simple"/>
    <context id="C_debc3646-d372-4f54-8e66-239169dcd471">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330399</identifier>
        </entity>
        <period>
            <startDate>2026-08-10</startDate>
            <endDate>2026-08-10</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="C_debc3646-d372-4f54-8e66-239169dcd471"
      id="F_41d2476c-3fc9-4a71-a5bd-75de01de035e">0001330399</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="C_debc3646-d372-4f54-8e66-239169dcd471"
      id="F_79e4e652-7f5f-45e7-aa20-afb4f1d3a372">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="C_debc3646-d372-4f54-8e66-239169dcd471"
      id="F_243f0c2d-fe60-4b56-82eb-7c47ba410901">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_debc3646-d372-4f54-8e66-239169dcd471"
      id="F_528f5a7d-3890-4605-b9a0-ccd3a12cd5f3">2026-08-10</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_debc3646-d372-4f54-8e66-239169dcd471"
      id="F_5dc25080-6999-4553-a897-f3b10bd88f96">Federal Home Loan Bank of Pittsburgh</dei:EntityRegistrantName>
    <dei:EntityFileNumber
      contextRef="C_debc3646-d372-4f54-8e66-239169dcd471"
      id="F_ba20f1db-e352-44a2-9812-b8a4574dd095">000-51395</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_debc3646-d372-4f54-8e66-239169dcd471"
      id="F_59c15124-f4d5-4edc-ae3e-424681d65733">25-6001324</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_debc3646-d372-4f54-8e66-239169dcd471"
      id="F_bebd4d0f-9ea0-420a-8312-0a5fa182af21">301 Grant Street, Suite 2000</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_debc3646-d372-4f54-8e66-239169dcd471"
      id="F_40e3a788-f9cc-4172-8dd1-8ca730470eb6">Pittsburgh</dei:EntityAddressCityOrTown>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_debc3646-d372-4f54-8e66-239169dcd471"
      id="F_3d44fa46-4b0a-485d-8dbf-53af9c5d9cd2">PA</dei:EntityIncorporationStateCountryCode>
    <dei:EntityAddressStateOrProvince
      contextRef="C_debc3646-d372-4f54-8e66-239169dcd471"
      id="F_63574509-62e4-4668-ad92-d6b8a1836f35">PA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_debc3646-d372-4f54-8e66-239169dcd471"
      id="F_eb3a112f-e11b-4705-8d13-3c0bad0c3036">15219</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_debc3646-d372-4f54-8e66-239169dcd471"
      id="F_2dd434da-f3f9-4ec9-b549-38349713c89c">412</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_debc3646-d372-4f54-8e66-239169dcd471"
      id="F_9d77dd37-0d93-401d-bf1d-8aa90eb697ee">288-3400</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="C_debc3646-d372-4f54-8e66-239169dcd471"
      id="F_6efce0f6-6f36-44fe-bc7f-9f6d07bcb0cb">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_debc3646-d372-4f54-8e66-239169dcd471"
      id="F_6c95c298-56e2-4471-810b-5a44c567d0c8">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_debc3646-d372-4f54-8e66-239169dcd471"
      id="F_50c51078-191d-46f5-b51a-c8fcf9974947">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_debc3646-d372-4f54-8e66-239169dcd471"
      id="F_763fe4f7-2c25-4d6b-a376-a5d442250a18">false</dei:PreCommencementIssuerTenderOffer>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_debc3646-d372-4f54-8e66-239169dcd471"
      id="F_fb65dd7e-7b71-4eab-92a7-6d5212821c51">false</dei:EntityEmergingGrowthCompany>
</xbrl>
