<?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>0001315989</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>AJITA RAJENDRA</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
            <relationshipsToIssuer>
                <relationshipToIssuer>Director</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>38th Floor</ns2:street2>
                    <ns2:city>New York</ns2:city>
                    <ns2:stateOrCountry>NY</ns2:stateOrCountry>
                    <ns2:zipCode>10004</ns2:zipCode>
                </address>
            </brokerOrMarketmakerDetails>
            <noOfUnitsSold>53125</noOfUnitsSold>
            <aggregateMarketValue>3845766.56</aggregateMarketValue>
            <noOfUnitsOutstanding>122827676</noOfUnitsOutstanding>
            <approxSaleDate>11/10/2023</approxSaleDate>
            <securitiesExchangeName>NYSE</securitiesExchangeName>
        </securitiesInformation>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>11/10/2023</acquiredDate>
            <natureOfAcquisitionTransaction>Exercise of options under a registered plan</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>53125</amountOfSecuritiesAcquired>
            <paymentDate>11/10/2023</paymentDate>
            <natureOfPayment>Cash</natureOfPayment>
        </securitiesToBeSold>
        <nothingToReportFlagOnSecuritiesSoldInPast3Months>N</nothingToReportFlagOnSecuritiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>AJITA RAJENDRA</name>
                <address>
                    <ns2:street1>11270 West Park Place</ns2:street1>
                    <ns2:city>Milwaukee</ns2:city>
                    <ns2:stateOrCountry>WI</ns2:stateOrCountry>
                    <ns2:zipCode>53224</ns2:zipCode>
                </address>
            </sellerDetails>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <saleDate>11/06/2023</saleDate>
            <amountOfSecuritiesSold>3978</amountOfSecuritiesSold>
            <grossProceeds>287335.32</grossProceeds>
        </securitiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>AJITA RAJENDRA</name>
                <address>
                    <ns2:street1>11270 West Park Place</ns2:street1>
                    <ns2:city>Milwaukee</ns2:city>
                    <ns2:stateOrCountry>WI</ns2:stateOrCountry>
                    <ns2:zipCode>53224</ns2:zipCode>
                </address>
            </sellerDetails>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <saleDate>11/03/2023</saleDate>
            <amountOfSecuritiesSold>56686</amountOfSecuritiesSold>
            <grossProceeds>4095058.99</grossProceeds>
        </securitiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>AJITA RAJENDRA</name>
                <address>
                    <ns2:street1>11270 West Park Place</ns2:street1>
                    <ns2:city>Milwaukee</ns2:city>
                    <ns2:stateOrCountry>WI</ns2:stateOrCountry>
                    <ns2:zipCode>53224</ns2:zipCode>
                </address>
            </sellerDetails>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <saleDate>11/02/2023</saleDate>
            <amountOfSecuritiesSold>1651</amountOfSecuritiesSold>
            <grossProceeds>118884.05</grossProceeds>
        </securitiesSoldInPast3Months>
        <remarks>Sales that were executed on November 10, 2023 are being reported on this Form 144 filed on November 13, 2023 given the EDGAR system was not accepting filings on November 10, 2023 in observance of the federal holiday.</remarks>
        <noticeSignature>
            <noticeDate>11/10/2023</noticeDate>
            <planAdoptionDates/>
            <signature>/s/ Ajita Ganesh Rajendra</signature>
        </noticeSignature>
    </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 5574}]
144
0001315989
XXXXXXXX
LIVE
0000091142
A.O. SMITH CORPORATION
001-00475
11270 West Park Place
Milwaukee
WI
53224
(414) 359-4000
AJITA RAJENDRA
Director
Common
Morgan Stanley Smith Barney LLC Executive Financial Services
1 New York Plaza
38th Floor
New York
NY
10004
53125
3845766.56
122827676
11/10/2023
NYSE
Common
11/10/2023
Exercise of options under a registered plan
Issuer
N
53125
11/10/2023
Cash
N
AJITA RAJENDRA
11270 West Park Place
Milwaukee
WI
53224
Common
11/06/2023
3978
287335.32
AJITA RAJENDRA
11270 West Park Place
Milwaukee
WI
53224
Common
11/03/2023
56686
4095058.99
AJITA RAJENDRA
11270 West Park Place
Milwaukee
WI
53224
Common
11/02/2023
1651
118884.05
Sales that were executed on November 10, 2023 are being reported on this Form 144 filed on November 13, 2023 given the EDGAR system was not accepting filings on November 10, 2023 in observance of the federal holiday.
11/10/2023
/s/ Ajita Ganesh Rajendra