| **CONDENSED CONSOLIDATED BALANCE SHEETS (Parenthetical) - shares** | Mar. 31, 2024 | Dec. 31, 2023 |
|--------------------------------------------------------------------|---------------|---------------|
| Class A Common Stock                                               |          |          |
| Common Stock, shares issued (in shares)                            | 26,017,732    | 26,023,132    |
| Common Stock                                                       |          |          |
| Common Stock, shares issued (in shares)                            | 164,689,862   | 164,684,460   |

| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Total number of common shares of an entity that have been sold or granted to shareholders (includes common shares that were issued, repurchased and remain in the treasury). These shares represent capital invested by the firm's shareholders and owners, and may be all or only a portion of the number of shares authorized. Shares issued include shares outstanding and shares held in the treasury.
+ References
Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1
+ Details**Name:**us-gaap_CommonStockSharesIssued**Namespace Prefix:**us-gaap_**Data Type:**xbrli:sharesItemType**Balance Type:**na**Period Type:**instant |
| X                                                                                                                                                    |
|------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Details**Name:**us-gaap_StatementClassOfStockAxis=us-gaap_CommonClassAMember**Namespace Prefix:****Data Type:**na**Balance Type:****Period Type:** |
| X                                                                                                                                                             |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Details**Name:**us-gaap_StatementClassOfStockAxis=aos_CommonStockClassUndefinedMember**Namespace Prefix:****Data Type:**na**Balance Type:****Period Type:** |