<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="rc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000352915</identifier>
        </entity>
        <period>
            <startDate>2026-08-13</startDate>
            <endDate>2026-08-13</endDate>
        </period>
    </context>
    <context id="offrl_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000352915</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-13</startDate>
            <endDate>2026-08-13</endDate>
        </period>
    </context>
    <context id="offrl_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000352915</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-13</startDate>
            <endDate>2026-08-13</endDate>
        </period>
    </context>
    <context id="offrl_3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000352915</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>3</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-13</startDate>
            <endDate>2026-08-13</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <unit id="Shares">
        <measure>shares</measure>
    </unit>
    <ffd:FormTp contextRef="rc" id="ixv-395">S-3</ffd:FormTp>
    <ffd:SubmissnTp contextRef="rc" id="ixv-396">424B5</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="rc" id="ixv-397">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb contextRef="rc" id="ixv-398">333-282135</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey contextRef="rc" id="ixv-399">0000352915</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-400">UNIVERSAL HEALTH SERVICES INC</dei:EntityRegistrantName>
    <ffd:OfferingTableNa contextRef="rc" id="hiddenrcOfferingTableNa" xsi:nil="true"/>
    <ffd:OffsetTableNa contextRef="rc" id="hiddenrcOffsetTableNa">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="rc" id="hiddenrcCombinedProspectusTableNa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp contextRef="rc" id="ixv-446">S-3</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-447">UNIVERSAL HEALTH SERVICES INC</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="offrl_1" id="ixv-448">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_1" id="ixv-449">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_1" id="ixv-450">5.500% Senior Secured Notes due 2031</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="offrl_1" id="ixv-451">true</ffd:Rule457rFlg>
    <ffd:AmtSctiesRegd
      contextRef="offrl_1"
      decimals="0"
      id="ixv-452"
      unitRef="Shares">600000000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="offrl_1"
      decimals="5"
      id="ixv-453"
      unitRef="USD">0.99937</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_1"
      decimals="2"
      id="ixv-454"
      unitRef="USD">599622000.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_1"
      decimals="7"
      id="ixv-455"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_1"
      decimals="2"
      id="ixv-456"
      unitRef="USD">82807.80</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="offrl_2" id="ixv-457">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_2" id="ixv-458">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_2" id="ixv-459">6.000% Senior Secured Notes due 2036</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="offrl_2" id="ixv-460">true</ffd:Rule457rFlg>
    <ffd:AmtSctiesRegd
      contextRef="offrl_2"
      decimals="0"
      id="ixv-461"
      unitRef="Shares">500000000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="offrl_2"
      decimals="5"
      id="ixv-462"
      unitRef="USD">0.99359</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_2"
      decimals="2"
      id="ixv-463"
      unitRef="USD">496795000.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_2"
      decimals="7"
      id="ixv-464"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_2"
      decimals="2"
      id="ixv-465"
      unitRef="USD">68607.39</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="offrl_3" id="ixv-466">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_3" id="ixv-467">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_3" id="ixv-468">Guarantees of Subsidiary Guarantors</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="offrl_3" id="ixv-469">true</ffd:FeesOthrRuleFlg>
    <ffd:FeeRate
      contextRef="offrl_3"
      decimals="7"
      id="ixv-470"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_3"
      decimals="2"
      id="ixv-471"
      unitRef="USD">0.00</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="rc" decimals="2" id="ixv-472" unitRef="USD">1096417000.00</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="rc" decimals="2" id="ixv-473" unitRef="USD">151415.19</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt contextRef="rc" decimals="2" id="ixv-474" unitRef="USD">0.00</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt contextRef="rc" decimals="2" id="ixv-475" unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="rc" decimals="2" id="ixv-476" unitRef="USD">151415.19</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="offrl_1" id="ixv-477">Calculated in accordance with Rule 457(o) based on the proposed maximum aggregate offering price and Rule 457(r) under the Securities Act of 1933, as amended (the "Securities Act"). In accordance with Rule 456(b) of the Securities Act, the registrant initially deferred payment of all of the registration fees for the registrant's registration statement on Form S-3 (File No. 333-282135) (as amended, the "Form S-3"), originally filed with Securities and Exchange Commission on September 16, 2024. The "Calculation of Filing Fee Tables" contain herein shall be deemed to update the "Calculation of Filing Fee Tables" in the Form S-3, in accordance with Rules 456(b) and 457(r) under the Securities Act.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_2" id="ixv-478">Calculated in accordance with Rule 457(o) based on the proposed maximum aggregate offering price and Rule 457(r) under the Securities Act of 1933, as amended (the "Securities Act"). In accordance with Rule 456(b) of the Securities Act, the registrant initially deferred payment of all of the registration fees for the registrant's registration statement on Form S-3 (File No. 333-282135) (as amended, the "Form S-3"), originally filed with Securities and Exchange Commission on September 16, 2024. The "Calculation of Filing Fee Tables" contain herein shall be deemed to update the "Calculation of Filing Fee Tables" in the Form S-3, in accordance with Rules 456(b) and 457(r) under the Securities Act.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_3" id="ixv-479">(2) The notes issued by the registrant will be guaranteed on a senior secured basis by all of the registrant's existing and future direct and indirect subsidiaries that guarantee the registrant's senior secured credit facility or the registrant's other first lien obligations or any junior lien obligations. Pursuant to Rule 457(n) under the Securities Act, no separate registration fee is payable in respect of such guarantees. (3) The registrant does not have any fee offsets.</ffd:OfferingNote>
    <ffd:NrrtvMaxAggtOfferingPric contextRef="rc" decimals="2" id="ixv-480" unitRef="USD">1096417000.00</ffd:NrrtvMaxAggtOfferingPric>
    <ffd:FnlPrspctsFlg contextRef="rc" id="ixv-481">true</ffd:FnlPrspctsFlg>
</xbrl>
