<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0609</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2026-04-27</periodOfReport>

    <issuer>
        <issuerCik>0001067701</issuerCik>
        <issuerName>UNITED RENTALS, INC.</issuerName>
        <issuerTradingSymbol>URI</issuerTradingSymbol>
        <issuerForeignTradingSymbol></issuerForeignTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001875551</rptOwnerCik>
            <rptOwnerName>Gross Joli L.</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>false</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>C/O UNITED RENTALS, INC.</rptOwnerStreet1>
            <rptOwnerStreet2>100 FIRST STAMFORD PLACE, SUITE 700</rptOwnerStreet2>
            <rptOwnerCity>STAMFORD</rptOwnerCity>
            <rptOwnerState>CT</rptOwnerState>
            <rptOwnerZipCode>06902</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>false</isDirector>
            <isOfficer>true</isOfficer>
            <isTenPercentOwner>false</isTenPercentOwner>
            <isOther>false</isOther>
            <officerTitle>SVP, Chief LGL &amp; Sustain. Off.</officerTitle>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>false</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2026-04-27</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>S</transactionCode>
                <equitySwapInvolved>false</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>306</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>954.9887</value>
                    <footnoteId id="F1"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>5737.816</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">Represents average sale price for executed sale transactions on April 27, 2026. The range of prices for such transactions was from $954.45 to $955.10.  The reporting person hereby undertakes, upon request by the Commission staff, the issuer, or a security holder of the issuer, to provide full information regarding the number of shares sold at each separate price within the range.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ Alison M. Walsh, Attorney-in-fact</signatureName>
        <signatureDate>2026-04-27</signatureDate>
    </ownerSignature>
</ownershipDocument>