<?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_16_2024To09_16_2024">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000352915</identifier>
        </entity>
        <period>
            <startDate>2024-09-16</startDate>
            <endDate>2024-09-16</endDate>
        </period>
    </context>
    <context id="P09_16_2024To09_16_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-16</startDate>
            <endDate>2024-09-16</endDate>
        </period>
    </context>
    <context id="P09_16_2024To09_16_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-16</startDate>
            <endDate>2024-09-16</endDate>
        </period>
    </context>
    <context id="P09_16_2024To09_16_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-16</startDate>
            <endDate>2024-09-16</endDate>
        </period>
    </context>
    <unit id="Unit_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="P09_16_2024To09_16_2024" id="ixv-492">0000352915</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp contextRef="P09_16_2024To09_16_2024" id="hidden121409758">S-3ASR</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="P09_16_2024To09_16_2024" id="ixv-494">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FeeAmt
      contextRef="P09_16_2024To09_16_2024_2TypedMemberffdOfferingAxis"
      decimals="0"
      id="hidden121411075"
      unitRef="Unit_USD">0</ffd:FeeAmt>
    <ffd:FeeAmt
      contextRef="P09_16_2024To09_16_2024_3TypedMemberffdOfferingAxis"
      decimals="0"
      id="hidden121411076"
      unitRef="Unit_USD">0</ffd:FeeAmt>
    <ffd:FeeAmt
      contextRef="P09_16_2024To09_16_2024_1TypedMemberffdOfferingAxis"
      decimals="0"
      id="hidden121411074"
      unitRef="Unit_USD">0</ffd:FeeAmt>
    <ffd:FormTp contextRef="P09_16_2024To09_16_2024" id="ixv-19">S-3</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="P09_16_2024To09_16_2024" id="ixv-536">UNIVERSAL HEALTH SERVICES, INC.</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg
      contextRef="P09_16_2024To09_16_2024_1TypedMemberffdOfferingAxis"
      id="ixv-537">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp
      contextRef="P09_16_2024To09_16_2024_1TypedMemberffdOfferingAxis"
      id="ixv-538">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="P09_16_2024To09_16_2024_1TypedMemberffdOfferingAxis"
      id="ixv-539">Common Stock</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg
      contextRef="P09_16_2024To09_16_2024_1TypedMemberffdOfferingAxis"
      id="ixv-540">true</ffd:FeesOthrRuleFlg>
    <ffd:PrevslyPdFlg
      contextRef="P09_16_2024To09_16_2024_2TypedMemberffdOfferingAxis"
      id="ixv-541">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp
      contextRef="P09_16_2024To09_16_2024_2TypedMemberffdOfferingAxis"
      id="ixv-542">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="P09_16_2024To09_16_2024_2TypedMemberffdOfferingAxis"
      id="ixv-543">Debt Securities</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg
      contextRef="P09_16_2024To09_16_2024_2TypedMemberffdOfferingAxis"
      id="ixv-544">true</ffd:FeesOthrRuleFlg>
    <ffd:PrevslyPdFlg
      contextRef="P09_16_2024To09_16_2024_3TypedMemberffdOfferingAxis"
      id="ixv-545">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp
      contextRef="P09_16_2024To09_16_2024_3TypedMemberffdOfferingAxis"
      id="ixv-546">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="P09_16_2024To09_16_2024_3TypedMemberffdOfferingAxis"
      id="ixv-547">Guarantees of Debt Securities</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg
      contextRef="P09_16_2024To09_16_2024_3TypedMemberffdOfferingAxis"
      id="ixv-548">true</ffd:FeesOthrRuleFlg>
    <ffd:TtlOfferingAmt
      contextRef="P09_16_2024To09_16_2024"
      decimals="0"
      id="ixv-549"
      unitRef="Unit_USD">0</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="P09_16_2024To09_16_2024"
      decimals="0"
      id="ixv-550"
      unitRef="Unit_USD">0</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt
      contextRef="P09_16_2024To09_16_2024"
      decimals="0"
      id="ixv-551"
      unitRef="Unit_USD">0</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt
      contextRef="P09_16_2024To09_16_2024"
      decimals="0"
      id="ixv-552"
      unitRef="Unit_USD">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="P09_16_2024To09_16_2024"
      decimals="0"
      id="ixv-553"
      unitRef="Unit_USD">0</ffd:NetFeeAmt>
    <ffd:OfferingNote
      contextRef="P09_16_2024To09_16_2024_3TypedMemberffdOfferingAxis"
      id="ixv-481">&lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman;text-align:justify"&gt;(1) Universal Health Services, Inc. (the &#x201c;Registrant&#x201d;) is relying on Rule 456(b) and Rule 457(r) under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), to defer payment of all of the registration fee. In connection with the securities offered hereby, the Registrant will pay &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;&#x201c;pay-as-you-go&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; registration fees&#x201d; in accordance with Rule 456(b). &lt;/div&gt;&lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman;text-align:justify"&gt;(2) An indeterminate number of the securities of each identified class are being registered as may from time to time be offered at indeterminate prices, including an indeterminate number or amount of securities that may be issued upon settlement, exercise, conversion or exchange of securities offered hereunder, or pursuant to anti-dilution provisions. Separate consideration may or may not be received for securities that are issuable upon settlement, exercise, conversion or exchange of other securities or that are issued in units. &lt;/div&gt;&lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman;text-align:justify"&gt;(3) There are being registered under this registration statement guarantees of the debt securities of the Registrant by certain of the Registrant&#x2019;s subsidiaries listed in the &#x201c;Table of Additional Registrants&#x201d; in the Registration Statement. No separate consideration will be paid in respect of such guarantees. Pursuant to Rule 457(n) under the Securities Act, no separate registration fee is payable in respect of such guarantees. &lt;/div&gt;</ffd:OfferingNote>
    <ffd:OfferingNote
      contextRef="P09_16_2024To09_16_2024_2TypedMemberffdOfferingAxis"
      id="ixv-482">&lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman;text-align:justify"&gt;(1) Universal Health Services, Inc. (the &#x201c;Registrant&#x201d;) is relying on Rule 456(b) and Rule 457(r) under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), to defer payment of all of the registration fee. In connection with the securities offered hereby, the Registrant will pay &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;&#x201c;pay-as-you-go&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; registration fees&#x201d; in accordance with Rule 456(b). &lt;/div&gt;&lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman;text-align:justify"&gt;(2) An indeterminate number of the securities of each identified class are being registered as may from time to time be offered at indeterminate prices, including an indeterminate number or amount of securities that may be issued upon settlement, exercise, conversion or exchange of securities offered hereunder, or pursuant to anti-dilution provisions. Separate consideration may or may not be received for securities that are issuable upon settlement, exercise, conversion or exchange of other securities or that are issued in units. &lt;/div&gt;</ffd:OfferingNote>
    <ffd:OfferingNote
      contextRef="P09_16_2024To09_16_2024_1TypedMemberffdOfferingAxis"
      id="ixv-483">&lt;div style="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman;text-align:justify"&gt;(1) Universal Health Services, Inc. (the &#x201c;Registrant&#x201d;) is relying on Rule 456(b) and Rule 457(r) under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), to defer payment of all of the registration fee. In connection with the securities offered hereby, the Registrant will pay &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;&lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;&#x201c;pay-as-you-go&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; registration fees&#x201d; in accordance with Rule 456(b). &lt;/div&gt;&lt;div style="margin-top:6pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman;text-align:justify"&gt;(2) An indeterminate number of the securities of each identified class are being registered as may from time to time be offered at indeterminate prices, including an indeterminate number or amount of securities that may be issued upon settlement, exercise, conversion or exchange of securities offered hereunder, or pursuant to anti-dilution provisions. Separate consideration may or may not be received for securities that are issuable upon settlement, exercise, conversion or exchange of other securities or that are issued in units. &lt;/div&gt;</ffd:OfferingNote>
</xbrl>
