EX-23.1 6 uhs-ex23_1.htm EX-23.1

Exhibit 23.1

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

We hereby consent to the incorporation by reference in the Registration Statements on Form S-3 (No. 333-282135) and Form S-8 (Nos. 333-167356, 333-156425, 333-119143, 333-112332, 333-126025, 333-122188, 333-206298, 333-218359, 333-238880, 333-265495, 333-156424, 333-279787) of Universal Health Services, Inc. of our report dated February 26, 2025 relating to the financial statements, financial statement schedule and the effectiveness of internal control over financial reporting, which appears in this Form 10-K.

/s/ PricewaterhouseCoopers LLP

Philadelphia, Pennsylvania

February 26, 2025