<?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-20261005.xsd" xlink:type="simple"/>
    <context id="C_c6c00e02-82db-410d-a6dd-6a9243172f2a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001330399</identifier>
        </entity>
        <period>
            <startDate>2026-10-05</startDate>
            <endDate>2026-10-05</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="C_c6c00e02-82db-410d-a6dd-6a9243172f2a"
      id="F_ef03e048-284d-4f95-ba10-1bef1fa30c81">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="C_c6c00e02-82db-410d-a6dd-6a9243172f2a"
      id="F_56b0298b-6c1e-4e36-9b5e-5bc88a46f596">0001330399</dei:EntityCentralIndexKey>
    <dei:DocumentType
      contextRef="C_c6c00e02-82db-410d-a6dd-6a9243172f2a"
      id="F_5e8f2df5-63a6-46cd-884a-e71876dce4c8">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_c6c00e02-82db-410d-a6dd-6a9243172f2a"
      id="F_33ba6e5c-e4ef-4ed1-90d2-1cf334398a34">2026-10-05</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_c6c00e02-82db-410d-a6dd-6a9243172f2a"
      id="F_16f9ec49-3733-4589-bfa3-5d41ce39ad05">Federal Home Loan Bank of Pittsburgh</dei:EntityRegistrantName>
    <dei:EntityFileNumber
      contextRef="C_c6c00e02-82db-410d-a6dd-6a9243172f2a"
      id="F_0e4f1047-1bfc-4d88-aa12-edb04d11eab7">000-51395</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_c6c00e02-82db-410d-a6dd-6a9243172f2a"
      id="F_e0b0ba45-1a73-4f6d-aee4-ae09a525be93">25-6001324</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_c6c00e02-82db-410d-a6dd-6a9243172f2a"
      id="F_6556d3be-ba57-4dad-9743-5b851eabb04c">301 Grant Street, Suite 2000</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_c6c00e02-82db-410d-a6dd-6a9243172f2a"
      id="F_69aace31-6c0f-4d26-9ef5-f9bf7ca12cc6">Pittsburgh</dei:EntityAddressCityOrTown>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_c6c00e02-82db-410d-a6dd-6a9243172f2a"
      id="F_0555a2a5-90f7-441c-8c96-e9d96f9105b6">PA</dei:EntityIncorporationStateCountryCode>
    <dei:EntityAddressStateOrProvince
      contextRef="C_c6c00e02-82db-410d-a6dd-6a9243172f2a"
      id="F_63d000ac-a7a1-4efa-9213-96703092d273">PA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_c6c00e02-82db-410d-a6dd-6a9243172f2a"
      id="F_a875b48b-31d3-40e2-9e5a-2f26f6b0d2df">15219</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_c6c00e02-82db-410d-a6dd-6a9243172f2a"
      id="F_63f9b3cc-e54f-458d-bfc8-bdaef7529132">412</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_c6c00e02-82db-410d-a6dd-6a9243172f2a"
      id="F_5bfef848-dbb3-4154-b6b7-46af961ce481">288-3400</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="C_c6c00e02-82db-410d-a6dd-6a9243172f2a"
      id="F_b009df7b-d70e-4879-960f-491e9fe43f8d">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_c6c00e02-82db-410d-a6dd-6a9243172f2a"
      id="F_d0851b23-0e1f-49a9-808a-4a5d7e7c2f03">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_c6c00e02-82db-410d-a6dd-6a9243172f2a"
      id="F_b2de5760-832a-4269-b3c8-6fb4f3eb427e">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_c6c00e02-82db-410d-a6dd-6a9243172f2a"
      id="F_088df4da-adce-40a0-8778-bf064ef7ea40">false</dei:PreCommencementIssuerTenderOffer>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_c6c00e02-82db-410d-a6dd-6a9243172f2a"
      id="F_e7576ff6-ab02-4a2e-a8b8-674ac0046f56">false</dei:EntityEmergingGrowthCompany>
</xbrl>
