<?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/ownership" xmlns:ns2="http://www.sec.gov/edgar/common">
    <headerData>
        <submissionType>144</submissionType>
        <filerInfo>
            <filer>
                <filerCredentials>
                    <cik>0001710905</cik>
                    <ccc>XXXXXXXX</ccc>
                </filerCredentials>
            </filer>
            <liveTestFlag>LIVE</liveTestFlag>



        </filerInfo>
    </headerData>
    <formData>
        <issuerInfo>
            <issuerCik>0000091142</issuerCik>
            <issuerName>A.O. SMITH CORPORATION</issuerName>
            <secFileNumber>001-00475</secFileNumber>
            <issuerAddress>
                <ns2:street1>11270 West Park Place</ns2:street1>
                <ns2:city>Milwaukee</ns2:city>
                <ns2:stateOrCountry>WI</ns2:stateOrCountry>
                <ns2:zipCode>53224</ns2:zipCode>
            </issuerAddress>
            <issuerContactPhone>(414) 359-4000</issuerContactPhone>
            <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>DAVID WARREN &amp;TAMARA WARREN JT TEN</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
            <relationshipsToIssuer>
                <relationshipToIssuer>Former Officer</relationshipToIssuer>
            </relationshipsToIssuer>
        </issuerInfo>
        <securitiesInformation>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <brokerOrMarketmakerDetails>
                <name>Morgan Stanley Smith Barney LLC Executive Financial Services</name>
                <address>
                    <ns2:street1>1 New York Plaza</ns2:street1>
                    <ns2:street2>8th Floor</ns2:street2>
                    <ns2:city>New York</ns2:city>
                    <ns2:stateOrCountry>NY</ns2:stateOrCountry>
                    <ns2:zipCode>10004</ns2:zipCode>
                </address>
            </brokerOrMarketmakerDetails>
            <noOfUnitsSold>19951</noOfUnitsSold>
            <aggregateMarketValue>1753786.67</aggregateMarketValue>
            <noOfUnitsOutstanding>120783753</noOfUnitsOutstanding>
            <approxSaleDate>07/12/2024</approxSaleDate>
            <securitiesExchangeName>NYSE</securitiesExchangeName>
        </securitiesInformation>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>07/12/2024</acquiredDate>
            <natureOfAcquisitionTransaction>Exercise of options under a registered plan</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>19951</amountOfSecuritiesAcquired>
            <paymentDate>07/12/2024</paymentDate>
            <natureOfPayment>Cash</natureOfPayment>
        </securitiesToBeSold>
        <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
        <noticeSignature>
            <noticeDate>07/12/2024</noticeDate>
            <planAdoptionDates/>
            <signature>/s/ David Rudolph Warren</signature>
        </noticeSignature>
    </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 3271}]
144
0001710905
XXXXXXXX
LIVE
0000091142
A.O. SMITH CORPORATION
001-00475
11270 West Park Place
Milwaukee
WI
53224
(414) 359-4000
DAVID WARREN &TAMARA WARREN JT TEN
Former Officer
Common
Morgan Stanley Smith Barney LLC Executive Financial Services
1 New York Plaza
8th Floor
New York
NY
10004
19951
1753786.67
120783753
07/12/2024
NYSE
Common
07/12/2024
Exercise of options under a registered plan
Issuer
N
19951
07/12/2024
Cash
Y
07/12/2024
/s/ David Rudolph Warren