<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2024"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2024q2"
  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">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2024q2/ffd-2024q2.xsd"
      xlink:type="simple"/>
    <context id="P09_18_2024To09_18_2024">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000352915</identifier>
        </entity>
        <period>
            <startDate>2024-09-18</startDate>
            <endDate>2024-09-18</endDate>
        </period>
    </context>
    <context id="P09_18_2024To09_18_2024_1TypedMemberffdOfferingAxis">
        <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>2024-09-18</startDate>
            <endDate>2024-09-18</endDate>
        </period>
    </context>
    <context id="P09_18_2024To09_18_2024_2TypedMemberffdOfferingAxis">
        <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>2024-09-18</startDate>
            <endDate>2024-09-18</endDate>
        </period>
    </context>
    <context id="P09_18_2024To09_18_2024_3TypedMemberffdOfferingAxis">
        <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>2024-09-18</startDate>
            <endDate>2024-09-18</endDate>
        </period>
    </context>
    <unit id="Unit_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Unit_pure">
        <measure>pure</measure>
    </unit>
    <unit id="Unit_shares">
        <measure>shares</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="P09_18_2024To09_18_2024" id="ixv-538">0000352915</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="P09_18_2024To09_18_2024" id="hidden121489332">UNIVERSAL HEALTH SERVICES INC</dei:EntityRegistrantName>
    <ffd:SubmissnTp contextRef="P09_18_2024To09_18_2024" id="hidden121489336">424B5</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="P09_18_2024To09_18_2024" id="ixv-541">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:PrevslyPdFlg
      contextRef="P09_18_2024To09_18_2024_3TypedMemberffdOfferingAxis"
      id="ixv-542">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTitl
      contextRef="P09_18_2024To09_18_2024_1TypedMemberffdOfferingAxis"
      id="hidden121489370">4.625% Senior Secured Notes due 2029</ffd:OfferingSctyTitl>
    <ffd:OfferingSctyTitl
      contextRef="P09_18_2024To09_18_2024_2TypedMemberffdOfferingAxis"
      id="hidden121489371">5.050% Senior Secured Notes due 2034</ffd:OfferingSctyTitl>
    <ffd:OfferingSctyTitl
      contextRef="P09_18_2024To09_18_2024_3TypedMemberffdOfferingAxis"
      id="hidden121489372">Guarantees of Subsidiary Guarantors</ffd:OfferingSctyTitl>
    <ffd:FeeRate
      contextRef="P09_18_2024To09_18_2024_3TypedMemberffdOfferingAxis"
      decimals="7"
      id="ixv-546"
      unitRef="Unit_pure">0.0001476</ffd:FeeRate>
    <ffd:PrevslyPdFlg
      contextRef="P09_18_2024To09_18_2024_1TypedMemberffdOfferingAxis"
      id="ixv-589">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp
      contextRef="P09_18_2024To09_18_2024_1TypedMemberffdOfferingAxis"
      id="ixv-590">Debt</ffd:OfferingSctyTp>
    <ffd:Rule457rFlg
      contextRef="P09_18_2024To09_18_2024_1TypedMemberffdOfferingAxis"
      id="ixv-591">true</ffd:Rule457rFlg>
    <ffd:AmtSctiesRegd
      contextRef="P09_18_2024To09_18_2024_1TypedMemberffdOfferingAxis"
      decimals="0"
      id="ixv-592"
      unitRef="Unit_shares">500000000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="P09_18_2024To09_18_2024_1TypedMemberffdOfferingAxis"
      decimals="5"
      id="ixv-593"
      unitRef="Unit_pure">0.99957</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="P09_18_2024To09_18_2024_1TypedMemberffdOfferingAxis"
      decimals="0"
      id="ixv-594"
      unitRef="Unit_USD">499785000</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="P09_18_2024To09_18_2024_1TypedMemberffdOfferingAxis"
      decimals="INF"
      id="ixv-595"
      unitRef="Unit_pure">0.0001476</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="P09_18_2024To09_18_2024_1TypedMemberffdOfferingAxis"
      decimals="2"
      id="ixv-596"
      unitRef="Unit_USD">73768.27</ffd:FeeAmt>
    <ffd:PrevslyPdFlg
      contextRef="P09_18_2024To09_18_2024_2TypedMemberffdOfferingAxis"
      id="ixv-597">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp
      contextRef="P09_18_2024To09_18_2024_2TypedMemberffdOfferingAxis"
      id="ixv-598">Debt</ffd:OfferingSctyTp>
    <ffd:Rule457rFlg
      contextRef="P09_18_2024To09_18_2024_2TypedMemberffdOfferingAxis"
      id="ixv-599">true</ffd:Rule457rFlg>
    <ffd:AmtSctiesRegd
      contextRef="P09_18_2024To09_18_2024_2TypedMemberffdOfferingAxis"
      decimals="0"
      id="ixv-600"
      unitRef="Unit_shares">500000000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="P09_18_2024To09_18_2024_2TypedMemberffdOfferingAxis"
      decimals="5"
      id="ixv-601"
      unitRef="Unit_pure">0.99685</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="P09_18_2024To09_18_2024_2TypedMemberffdOfferingAxis"
      decimals="0"
      id="ixv-602"
      unitRef="Unit_USD">498425000</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="P09_18_2024To09_18_2024_2TypedMemberffdOfferingAxis"
      decimals="INF"
      id="ixv-603"
      unitRef="Unit_pure">0.0001476</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="P09_18_2024To09_18_2024_2TypedMemberffdOfferingAxis"
      decimals="2"
      id="ixv-604"
      unitRef="Unit_USD">73567.53</ffd:FeeAmt>
    <ffd:OfferingSctyTp
      contextRef="P09_18_2024To09_18_2024_3TypedMemberffdOfferingAxis"
      id="ixv-605">Other</ffd:OfferingSctyTp>
    <ffd:FeesOthrRuleFlg
      contextRef="P09_18_2024To09_18_2024_3TypedMemberffdOfferingAxis"
      id="ixv-606">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="P09_18_2024To09_18_2024_3TypedMemberffdOfferingAxis"
      decimals="0"
      id="ixv-607"
      unitRef="Unit_shares">0</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="P09_18_2024To09_18_2024_3TypedMemberffdOfferingAxis"
      decimals="-2"
      id="ixv-608"
      unitRef="Unit_pure">0</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="P09_18_2024To09_18_2024_3TypedMemberffdOfferingAxis"
      decimals="0"
      id="ixv-609"
      unitRef="Unit_USD">0</ffd:MaxAggtOfferingPric>
    <ffd:FeeAmt
      contextRef="P09_18_2024To09_18_2024_3TypedMemberffdOfferingAxis"
      decimals="0"
      id="ixv-610"
      unitRef="Unit_USD">0</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="P09_18_2024To09_18_2024"
      decimals="0"
      id="ixv-611"
      unitRef="Unit_USD">998210000</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="P09_18_2024To09_18_2024"
      decimals="2"
      id="ixv-612"
      unitRef="Unit_USD">147335.8</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt
      contextRef="P09_18_2024To09_18_2024"
      decimals="0"
      id="ixv-613"
      unitRef="Unit_USD">0</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt
      contextRef="P09_18_2024To09_18_2024"
      decimals="0"
      id="ixv-614"
      unitRef="Unit_USD">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="P09_18_2024To09_18_2024"
      decimals="2"
      id="ixv-615"
      unitRef="Unit_USD">147335.8</ffd:NetFeeAmt>
    <ffd:OfferingNote
      contextRef="P09_18_2024To09_18_2024_2TypedMemberffdOfferingAxis"
      id="ixv-513">
&lt;table cellpadding="0" cellspacing="0" style="text-align:start; BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt;border:0;width:100%"&gt;
&lt;tr style="page-break-inside:avoid"&gt;
&lt;td style="width:4%;vertical-align:top;text-align:left;"&gt;(1)&lt;/td&gt;
&lt;td style="vertical-align:top;text-align:left;"&gt;&lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; text-align: left; line-height: normal;"&gt;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 &#x201c;Securities Act&#x201d;). In accordance with Rule 456(b) of the Securities Act, the registrant initially deferred payment of all of the registration fees for the registrant&#x2019;s registration statement on Form &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;S-3&lt;/div&gt; (File &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;No.&#160;333-282135)&lt;/div&gt; (the &#x201c;Form &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;S-3&#x201d;),&lt;/div&gt; filed with Securities and Exchange Commission on September&#160;16, 2024. The &#x201c;Calculation of Filing Fee Tables&#x201d; contain herein shall be deemed to update the &#x201c;Calculation of Filing Fee Tables&#x201d; in the Form &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;S-3,&lt;/div&gt; in accordance with Rules 456(b) and 457(r) under the Securities Act. &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt; </ffd:OfferingNote>
    <ffd:OfferingNote
      contextRef="P09_18_2024To09_18_2024_1TypedMemberffdOfferingAxis"
      id="ixv-514">
&lt;table cellpadding="0" cellspacing="0" style="text-align:start; BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt;border:0;width:100%"&gt;
&lt;tr style="page-break-inside:avoid"&gt;
&lt;td style="width:4%;vertical-align:top;text-align:left;"&gt;(1)&lt;/td&gt;
&lt;td style="vertical-align:top;text-align:left;"&gt;&lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; text-align: left; line-height: normal;"&gt;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 &#x201c;Securities Act&#x201d;). In accordance with Rule 456(b) of the Securities Act, the registrant initially deferred payment of all of the registration fees for the registrant&#x2019;s registration statement on Form &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;S-3&lt;/div&gt; (File &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;No.&#160;333-282135)&lt;/div&gt; (the &#x201c;Form &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;S-3&#x201d;),&lt;/div&gt; filed with Securities and Exchange Commission on September&#160;16, 2024. The &#x201c;Calculation of Filing Fee Tables&#x201d; contain herein shall be deemed to update the &#x201c;Calculation of Filing Fee Tables&#x201d; in the Form &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;S-3,&lt;/div&gt; in accordance with Rules 456(b) and 457(r) under the Securities Act. &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</ffd:OfferingNote>
    <ffd:RegnFileNb contextRef="P09_18_2024To09_18_2024" id="ixv-616">333-282135</ffd:RegnFileNb>
    <ffd:FormTp contextRef="P09_18_2024To09_18_2024" id="ixv-617">S-3</ffd:FormTp>
    <ffd:OfferingNote
      contextRef="P09_18_2024To09_18_2024_3TypedMemberffdOfferingAxis"
      id="ixv-524">
&lt;table cellpadding="0" cellspacing="0" style="text-align:start; BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt;border:0;width:100%"&gt;
&lt;tr style="page-break-inside:avoid"&gt;
&lt;td style="width:4%;vertical-align:top;text-align:left;"&gt;(2)&lt;/td&gt;
&lt;td style="vertical-align:top;text-align:left;"&gt;&lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; text-align: left; line-height: normal;"&gt;The notes issued by the registrant will be guaranteed on a senior secured basis by all of the registrant&#x2019;s existing and future direct and indirect subsidiaries that guarantee the registrant&#x2019;s senior secured credit facility or the registrant&#x2019;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. &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</ffd:OfferingNote>
</xbrl>
