<?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-20260706.xsd" xlink:type="simple"/>
    <context id="C_8d7c4ada-d85a-40b5-bdb1-76fbbbf1fe67">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330399</identifier>
        </entity>
        <period>
            <startDate>2026-07-06</startDate>
            <endDate>2026-07-06</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="C_8d7c4ada-d85a-40b5-bdb1-76fbbbf1fe67"
      id="F_8a036bae-1b58-4cf1-a3ad-1c27dcef3104">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="C_8d7c4ada-d85a-40b5-bdb1-76fbbbf1fe67"
      id="F_431eff5c-9db4-4887-bf4c-d60b22de2ac4">0001330399</dei:EntityCentralIndexKey>
    <dei:DocumentType
      contextRef="C_8d7c4ada-d85a-40b5-bdb1-76fbbbf1fe67"
      id="F_1e4471fb-c56a-4888-b404-8a46783845e2">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_8d7c4ada-d85a-40b5-bdb1-76fbbbf1fe67"
      id="F_dcacc7ae-4233-4b05-8960-2b56902a82d5">2026-07-06</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_8d7c4ada-d85a-40b5-bdb1-76fbbbf1fe67"
      id="F_e1b9e736-a85b-47cf-9f90-7c9f9d50507c">Federal Home Loan Bank of Pittsburgh</dei:EntityRegistrantName>
    <dei:EntityFileNumber
      contextRef="C_8d7c4ada-d85a-40b5-bdb1-76fbbbf1fe67"
      id="F_a908dc31-a76b-4bd3-a7d7-ae7597c58991">000-51395</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_8d7c4ada-d85a-40b5-bdb1-76fbbbf1fe67"
      id="F_9f4a3c72-d1fa-45eb-91c5-c33264635e1a">25-6001324</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_8d7c4ada-d85a-40b5-bdb1-76fbbbf1fe67"
      id="F_4783b18f-598f-4c92-9f7e-2a7ad6d7ae91">301 Grant Street, Suite 2000</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_8d7c4ada-d85a-40b5-bdb1-76fbbbf1fe67"
      id="F_efcb0819-99e1-4b89-983a-cd016c043943">Pittsburgh</dei:EntityAddressCityOrTown>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_8d7c4ada-d85a-40b5-bdb1-76fbbbf1fe67"
      id="F_053c4f7d-cc63-47b8-85ed-82111aa1e9f4">PA</dei:EntityIncorporationStateCountryCode>
    <dei:EntityAddressStateOrProvince
      contextRef="C_8d7c4ada-d85a-40b5-bdb1-76fbbbf1fe67"
      id="F_cd785363-f736-4639-a047-e6c2d4c354f0">PA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_8d7c4ada-d85a-40b5-bdb1-76fbbbf1fe67"
      id="F_c5a57e22-59f6-4ad5-9b76-efeee72ae126">15219</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_8d7c4ada-d85a-40b5-bdb1-76fbbbf1fe67"
      id="F_674c0e78-92ff-4920-955f-e585a9c3658b">412</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_8d7c4ada-d85a-40b5-bdb1-76fbbbf1fe67"
      id="F_1123996e-0c43-40fd-96f7-8820f3308392">288-3400</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="C_8d7c4ada-d85a-40b5-bdb1-76fbbbf1fe67"
      id="F_59858a54-8b18-4ee0-9b98-cc3c79d20280">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_8d7c4ada-d85a-40b5-bdb1-76fbbbf1fe67"
      id="F_e16c9d41-d9e1-4bd3-bbf2-9faf77bcd9de">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_8d7c4ada-d85a-40b5-bdb1-76fbbbf1fe67"
      id="F_d67571b5-c6bc-4db8-a564-b0b02b463786">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_8d7c4ada-d85a-40b5-bdb1-76fbbbf1fe67"
      id="F_d2abb8e2-b6f5-44b1-89a1-0ccb8149ab3b">false</dei:PreCommencementIssuerTenderOffer>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_8d7c4ada-d85a-40b5-bdb1-76fbbbf1fe67"
      id="F_0a4ddbfb-07da-41d5-b800-e50e2e4e5079">false</dei:EntityEmergingGrowthCompany>
</xbrl>
