<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.4</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>39</ContextCount>
  <ElementCount>30</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>12</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>2</UnitCount>
  <MyReports>
    <Report instance="d79196ddef14a.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>995100 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/dei/role/document/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="d79196ddef14a.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="d79196ddef14a.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>995443 - Disclosure - Award Timing Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure</Role>
      <ShortName>Award Timing Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="d79196ddef14a.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>995447 - Disclosure - Insider Trading Policies and Procedures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc</Role>
      <ShortName>Insider Trading Policies and Procedures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>aos-20251231.xsd</File>
    <File doctype="DEF 14A" isProxy="true" isUsgaap="true" original="d79196ddef14a.htm">d79196ddef14a.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>g79196dsp094.jpg</File>
    <File>g79196dsp144a.jpg</File>
    <File>g79196dsp144b.jpg</File>
    <File>g79196dsp144c.jpg</File>
    <File>g79196g00g72.jpg</File>
    <File>g79196g00g73.jpg</File>
    <File>g79196g00g75.jpg</File>
    <File>g79196g00o50.jpg</File>
    <File>g79196g01g74.jpg</File>
    <File>g79196g01k01.jpg</File>
    <File>g79196g01n16.jpg</File>
    <File>g79196g01p01.jpg</File>
    <File>g79196g02g74.jpg</File>
    <File>g79196g12u03.jpg</File>
    <File>g79196g14k93.jpg</File>
    <File>g79196g17w34.jpg</File>
    <File>g79196g21r63.jpg</File>
    <File>g79196g30e94.jpg</File>
    <File>g79196g33q60.jpg</File>
    <File>g79196g36u78.jpg</File>
    <File>g79196g38h93.jpg</File>
    <File>g79196g56h16.jpg</File>
    <File>g79196g62d98.jpg</File>
    <File>g79196g62h35.jpg</File>
    <File>g79196g62p97.jpg</File>
    <File>g79196g64e62.jpg</File>
    <File>g79196g65h93.jpg</File>
    <File>g79196g66f76.jpg</File>
    <File>g79196g66m37.jpg</File>
    <File>g79196g69a71.jpg</File>
    <File>g79196g69c64.jpg</File>
    <File>g79196g70v36.jpg</File>
    <File>g79196g73a74.jpg</File>
    <File>g79196g73e59.jpg</File>
    <File>g79196g79r28.jpg</File>
    <File>g79196g80a01.jpg</File>
    <File>g79196g80a02.jpg</File>
    <File>g79196g80a03.jpg</File>
    <File>g79196g80d80.jpg</File>
    <File>g79196g86h97.jpg</File>
    <File>g79196g94m30.jpg</File>
    <File>g79196g94v23.jpg</File>
    <File>g79196g98t09.jpg</File>
    <File>g79196pc1_pg2b.jpg</File>
    <File>g79196pc1_pg2c.jpg</File>
    <File>g79196pc2_pg1b.jpg</File>
    <File>g79196pc3_pg1d.jpg</File>
    <File>g79196time.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="5">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="82">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>false</HasPresentationLinkbase>
  <HasCalculationLinkbase>false</HasCalculationLinkbase>
</FilingSummary>
