<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>768</ContextCount>
  <ElementCount>632</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>135</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>12</UnitCount>
  <MyReports>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Document - Audit Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/AuditInformation</Role>
      <ShortName>Audit Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>9952151 - Statement - Consolidated Balance Sheet</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ConsolidatedBalanceSheet</Role>
      <ShortName>Consolidated Balance Sheet</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>9952152 - Statement - Consolidated Balance Sheet (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ConsolidatedBalanceSheetParenthetical</Role>
      <ShortName>Consolidated Balance Sheet (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>9952153 - Statement - Consolidated Statement of Earnings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ConsolidatedStatementofEarnings</Role>
      <ShortName>Consolidated Statement of Earnings</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>9952154 - Statement - Consolidated Statement of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ConsolidatedStatementofComprehensiveIncome</Role>
      <ShortName>Consolidated Statement of Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>9952155 - Statement - Consolidated Statement of Changes in Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ConsolidatedStatementofChangesinEquity</Role>
      <ShortName>Consolidated Statement of Changes in Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>9952156 - Statement - Consolidated Statement of Changes in Equity (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ConsolidatedStatementofChangesinEquityParenthetical</Role>
      <ShortName>Consolidated Statement of Changes in Equity (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>9952157 - Statement - Consolidated Statement of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ConsolidatedStatementofCashFlows</Role>
      <ShortName>Consolidated Statement of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>9952158 - Disclosure - Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/AccountingPolicies</Role>
      <ShortName>Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>9952159 - Disclosure - Acquisitions of Businesses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/AcquisitionsofBusinesses</Role>
      <ShortName>Acquisitions of Businesses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>9952160 - Disclosure - Segments of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/SegmentsofOperations</Role>
      <ShortName>Segments of Operations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>9952161 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/FairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>9952162 - Disclosure - Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/Investments</Role>
      <ShortName>Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>9952163 - Disclosure - Derivatives</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/Derivatives</Role>
      <ShortName>Derivatives</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>9952164 - Disclosure - Managed Investment Entities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ManagedInvestmentEntities</Role>
      <ShortName>Managed Investment Entities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>9952165 - Disclosure - Goodwill and Other Intangibles</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/GoodwillandOtherIntangibles</Role>
      <ShortName>Goodwill and Other Intangibles</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>9952166 - Disclosure - Long-Term Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/LongTermDebt</Role>
      <ShortName>Long-Term Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>9952167 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/Leases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9952168 - Disclosure - Shareholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ShareholdersEquity</Role>
      <ShortName>Shareholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9952169 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9952170 - Disclosure - Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/Contingencies</Role>
      <ShortName>Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9952171 - Disclosure - Insurance</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/Insurance</Role>
      <ShortName>Insurance</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9952172 - Disclosure - Additional Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/AdditionalInformation</Role>
      <ShortName>Additional Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9952173 - Disclosure - Condensed Financial Information of Parent Company</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/CondensedFinancialInformationofParentCompany</Role>
      <ShortName>Condensed Financial Information of Parent Company</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9952174 - Disclosure - Supplementary Insurance Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/SupplementaryInsuranceInformation</Role>
      <ShortName>Supplementary Insurance Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.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>27</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.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>29</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>995550 - Disclosure - Cybersecurity Risk Management and Strategy Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure</Role>
      <ShortName>Cybersecurity Risk Management and Strategy Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9955511 - Disclosure - Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/AccountingPoliciesPolicies</Role>
      <ShortName>Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.afginc.com/role/AccountingPolicies</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9955512 - Disclosure - Acquisitions of Businesses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/AcquisitionsofBusinessesTables</Role>
      <ShortName>Acquisitions of Businesses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.afginc.com/role/AcquisitionsofBusinesses</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9955513 - Disclosure - Segments of Operations (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/SegmentsofOperationsTables</Role>
      <ShortName>Segments of Operations (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.afginc.com/role/SegmentsofOperations</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9955514 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/FairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.afginc.com/role/FairValueMeasurements</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9955515 - Disclosure - Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InvestmentsTables</Role>
      <ShortName>Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.afginc.com/role/Investments</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9955516 - Disclosure - Derivatives (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/DerivativesTables</Role>
      <ShortName>Derivatives (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.afginc.com/role/Derivatives</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9955517 - Disclosure - Managed Investment Entities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ManagedInvestmentEntitiesTables</Role>
      <ShortName>Managed Investment Entities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.afginc.com/role/ManagedInvestmentEntities</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9955518 - Disclosure - Goodwill and Other Intangibles (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/GoodwillandOtherIntangiblesTables</Role>
      <ShortName>Goodwill and Other Intangibles (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.afginc.com/role/GoodwillandOtherIntangibles</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9955519 - Disclosure - Long-Term Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/LongTermDebtTables</Role>
      <ShortName>Long-Term Debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.afginc.com/role/LongTermDebt</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9955520 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/LeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.afginc.com/role/Leases</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9955521 - Disclosure - Shareholders' Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ShareholdersEquityTables</Role>
      <ShortName>Shareholders' Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.afginc.com/role/ShareholdersEquity</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9955522 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.afginc.com/role/IncomeTaxes</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9955523 - Disclosure - Insurance (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InsuranceTables</Role>
      <ShortName>Insurance (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.afginc.com/role/Insurance</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9955524 - Disclosure - Accounting Policies - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/AccountingPoliciesNarrativeDetails</Role>
      <ShortName>Accounting Policies - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9955525 - Disclosure - Acquisitions of Businesses - Narrative on acquisitions of subsidiaries (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/AcquisitionsofBusinessesNarrativeonacquisitionsofsubsidiariesDetails</Role>
      <ShortName>Acquisitions of Businesses - Narrative on acquisitions of subsidiaries (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9955526 - Disclosure - Acquisitions of Businesses - Allocation of the purchase price of subsidiary (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/AcquisitionsofBusinessesAllocationofthepurchasepriceofsubsidiaryDetails</Role>
      <ShortName>Acquisitions of Businesses - Allocation of the purchase price of subsidiary (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9955527 - Disclosure - Segments of Operations - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/SegmentsofOperationsNarrativeDetails</Role>
      <ShortName>Segments of Operations - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9955528 - Disclosure - Segments of Operations - Assets by segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/SegmentsofOperationsAssetsbysegmentDetails</Role>
      <ShortName>Segments of Operations - Assets by segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9955529 - Disclosure - Segments of Operations - Revenues by segment and sub-segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/SegmentsofOperationsRevenuesbysegmentandsubsegmentDetails</Role>
      <ShortName>Segments of Operations - Revenues by segment and sub-segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9955530 - Disclosure - Segments of Operations - Earnings before income taxes by segment and sub-segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/SegmentsofOperationsEarningsbeforeincometaxesbysegmentandsubsegmentDetails</Role>
      <ShortName>Segments of Operations - Earnings before income taxes by segment and sub-segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9955531 - Disclosure - Segments of Operations - Components of underwriting profit, including significant segment expenses by segment and sub-segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/SegmentsofOperationsComponentsofunderwritingprofitincludingsignificantsegmentexpensesbysegmentandsubsegmentDetails</Role>
      <ShortName>Segments of Operations - Components of underwriting profit, including significant segment expenses by segment and sub-segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9955532 - Disclosure - Fair Value Measurements - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/FairValueMeasurementsNarrativeDetails</Role>
      <ShortName>Fair Value Measurements - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9955533 - Disclosure - Fair Value Measurements - Assets and liabilities measured and carried at fair value in the financial statements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/FairValueMeasurementsAssetsandliabilitiesmeasuredandcarriedatfairvalueinthefinancialstatementsDetails</Role>
      <ShortName>Fair Value Measurements - Assets and liabilities measured and carried at fair value in the financial statements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9955534 - Disclosure - Fair Value Measurements - Changes in balances of Level??3 financial assets carried at fair value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/FairValueMeasurementsChangesinbalancesofLevel3financialassetscarriedatfairvalueDetails</Role>
      <ShortName>Fair Value Measurements - Changes in balances of Level??3 financial assets carried at fair value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9955535 - Disclosure - Fair Value Measurements - Changes in balances of Level??3 financial liabilities carried at fair value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/FairValueMeasurementsChangesinbalancesofLevel3financialliabilitiescarriedatfairvalueDetails</Role>
      <ShortName>Fair Value Measurements - Changes in balances of Level??3 financial liabilities carried at fair value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9955536 - Disclosure - Fair Value Measurements - The carrying value and fair value of financial instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/FairValueMeasurementsThecarryingvalueandfairvalueoffinancialinstrumentsDetails</Role>
      <ShortName>Fair Value Measurements - The carrying value and fair value of financial instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9955537 - Disclosure - Investments - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InvestmentsNarrativeDetails</Role>
      <ShortName>Investments - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9955538 - Disclosure - Investments - Available for sale fixed maturities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InvestmentsAvailableforsalefixedmaturitiesDetails</Role>
      <ShortName>Investments - Available for sale fixed maturities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9955539 - Disclosure - Investments - Equity securities reported at fair value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InvestmentsEquitysecuritiesreportedatfairvalueDetails</Role>
      <ShortName>Investments - Equity securities reported at fair value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9955540 - Disclosure - Investments - Detail of equity method investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InvestmentsDetailofequitymethodinvestmentsDetails</Role>
      <ShortName>Investments - Detail of equity method investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9955541 - Disclosure - Investments - Gross unrealized losses on securities by investment category and length of time that have been in a continuous unrealized loss position (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InvestmentsGrossunrealizedlossesonsecuritiesbyinvestmentcategoryandlengthoftimethathavebeeninacontinuousunrealizedlosspositionDetails</Role>
      <ShortName>Investments - Gross unrealized losses on securities by investment category and length of time that have been in a continuous unrealized loss position (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9955542 - Disclosure - Investments - Allowance for credit losses on fixed maturities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InvestmentsAllowanceforcreditlossesonfixedmaturitiesDetails</Role>
      <ShortName>Investments - Allowance for credit losses on fixed maturities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9955543 - Disclosure - Investments - Scheduled maturities of available for sale fixed maturities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InvestmentsScheduledmaturitiesofavailableforsalefixedmaturitiesDetails</Role>
      <ShortName>Investments - Scheduled maturities of available for sale fixed maturities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9955544 - Disclosure - Investments - Schedule of sources of net investment income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InvestmentsScheduleofsourcesofnetinvestmentincomeDetails</Role>
      <ShortName>Investments - Schedule of sources of net investment income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9955545 - Disclosure - Investments - Realized gains (losses) and changes in unrealized appreciation (depreciation) related to fixed maturity and equity security investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InvestmentsRealizedgainslossesandchangesinunrealizedappreciationdepreciationrelatedtofixedmaturityandequitysecurityinvestmentsDetails</Role>
      <ShortName>Investments - Realized gains (losses) and changes in unrealized appreciation (depreciation) related to fixed maturity and equity security investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9955546 - Disclosure - Investments - Holding gains (losses) on equity securities still held (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InvestmentsHoldinggainslossesonequitysecuritiesstillheldDetails</Role>
      <ShortName>Investments - Holding gains (losses) on equity securities still held (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9955547 - Disclosure - Investments - Gross realized gains and losses on available for sale fixed maturity security investment transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InvestmentsGrossrealizedgainsandlossesonavailableforsalefixedmaturitysecurityinvestmenttransactionsDetails</Role>
      <ShortName>Investments - Gross realized gains and losses on available for sale fixed maturity security investment transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9955548 - Disclosure - Derivatives - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/DerivativesNarrativeDetails</Role>
      <ShortName>Derivatives - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9955549 - Disclosure - Derivatives - Derivatives included in the Balance Sheet at fair value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/DerivativesDerivativesincludedintheBalanceSheetatfairvalueDetails</Role>
      <ShortName>Derivatives - Derivatives included in the Balance Sheet at fair value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9955550 - Disclosure - Derivatives - Gains (losses) included in the Statement of Earnings for changes in the fair value of derivatives (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/DerivativesGainslossesincludedintheStatementofEarningsforchangesinthefairvalueofderivativesDetails</Role>
      <ShortName>Derivatives - Gains (losses) included in the Statement of Earnings for changes in the fair value of derivatives (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9955551 - Disclosure - Managed Investment Entities - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ManagedInvestmentEntitiesNarrativeDetails</Role>
      <ShortName>Managed Investment Entities - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>9955552 - Disclosure - Managed Investment Entities - Progression of investment in CLO tranches (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ManagedInvestmentEntitiesProgressionofinvestmentinCLOtranchesDetails</Role>
      <ShortName>Managed Investment Entities - Progression of investment in CLO tranches (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>9955553 - Disclosure - Managed Investment Entities - Selected financial information related to CLOs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ManagedInvestmentEntitiesSelectedfinancialinformationrelatedtoCLOsDetails</Role>
      <ShortName>Managed Investment Entities - Selected financial information related to CLOs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>9955554 - Disclosure - Goodwill and Other Intangibles - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/GoodwillandOtherIntangiblesNarrativeDetails</Role>
      <ShortName>Goodwill and Other Intangibles - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>9955555 - Disclosure - Goodwill and Other Intangibles - Changes in the carrying value of goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/GoodwillandOtherIntangiblesChangesinthecarryingvalueofgoodwillDetails</Role>
      <ShortName>Goodwill and Other Intangibles - Changes in the carrying value of goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>9955556 - Disclosure - Long-Term Debt - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/LongTermDebtNarrativeDetails</Role>
      <ShortName>Long-Term Debt - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>9955557 - Disclosure - Long-Term Debt - Schedule of long-term debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/LongTermDebtScheduleoflongtermdebtDetails</Role>
      <ShortName>Long-Term Debt - Schedule of long-term debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>9955558 - Disclosure - Leases - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/LeasesNarrativeDetails</Role>
      <ShortName>Leases - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>9955559 - Disclosure - Leases - Right-of-use asset and lease liability (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/LeasesRightofuseassetandleaseliabilityDetails</Role>
      <ShortName>Leases - Right-of-use asset and lease liability (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>9955560 - Disclosure - Leases - Lease activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/LeasesLeaseactivityDetails</Role>
      <ShortName>Leases - Lease activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>9955561 - Disclosure - Leases - Other operating lease liability information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/LeasesOtheroperatingleaseliabilityinformationDetails</Role>
      <ShortName>Leases - Other operating lease liability information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>9955562 - Disclosure - Leases - Undiscounted contractual maturities of operating lease liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/LeasesUndiscountedcontractualmaturitiesofoperatingleaseliabilitiesDetails</Role>
      <ShortName>Leases - Undiscounted contractual maturities of operating lease liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>9955563 - Disclosure - Leases - Schedule of weighted-average remaing lease term and weighted-average discount rate (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/LeasesScheduleofweightedaverageremaingleasetermandweightedaveragediscountrateDetails</Role>
      <ShortName>Leases - Schedule of weighted-average remaing lease term and weighted-average discount rate (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>9955564 - Disclosure - Shareholders' Equity - Preferred stock authorized for issuance (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ShareholdersEquityPreferredstockauthorizedforissuanceDetails</Role>
      <ShortName>Shareholders' Equity - Preferred stock authorized for issuance (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>9955565 - Disclosure - Shareholders' Equity - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ShareholdersEquityNarrativeDetails</Role>
      <ShortName>Shareholders' Equity - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>9955566 - Disclosure - Shareholders' Equity - Data relating to grants of restricted stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ShareholdersEquityDatarelatingtograntsofrestrictedstockDetails</Role>
      <ShortName>Shareholders' Equity - Data relating to grants of restricted stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>9955567 - Disclosure - Shareholders' Equity - Progression of the components of accumulated other comprehensive income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ShareholdersEquityProgressionofthecomponentsofaccumulatedothercomprehensiveincomeDetails</Role>
      <ShortName>Shareholders' Equity - Progression of the components of accumulated other comprehensive income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>9955568 - Disclosure - Income Taxes - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/IncomeTaxesNarrativeDetails</Role>
      <ShortName>Income Taxes - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>9955569 - Disclosure - Income Taxes - Reconciliation of income taxes at the statutory rate to the provision for income taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/IncomeTaxesReconciliationofincometaxesatthestatutoryratetotheprovisionforincometaxesDetails</Role>
      <ShortName>Income Taxes - Reconciliation of income taxes at the statutory rate to the provision for income taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>9955570 - Disclosure - Income Taxes - Total income tax provision (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/IncomeTaxesTotalincometaxprovisionDetails</Role>
      <ShortName>Income Taxes - Total income tax provision (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>9955571 - Disclosure - Income Taxes - Operating and capital loss carryforwards available (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/IncomeTaxesOperatingandcapitallosscarryforwardsavailableDetails</Role>
      <ShortName>Income Taxes - Operating and capital loss carryforwards available (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>9955572 - Disclosure - Income Taxes - Significant components of deferred tax assets and liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/IncomeTaxesSignificantcomponentsofdeferredtaxassetsandliabilitiesDetails</Role>
      <ShortName>Income Taxes - Significant components of deferred tax assets and liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>9955573 - Disclosure - Contingencies - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ContingenciesNarrativeDetails</Role>
      <ShortName>Contingencies - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>9955574 - Disclosure - Insurance - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InsuranceNarrativeDetails</Role>
      <ShortName>Insurance - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>9955575 - Disclosure - Insurance - Analysis of changes in the liability for losses and loss adjustment expenses, net of reinsurance (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InsuranceAnalysisofchangesintheliabilityforlossesandlossadjustmentexpensesnetofreinsuranceDetails</Role>
      <ShortName>Insurance - Analysis of changes in the liability for losses and loss adjustment expenses, net of reinsurance (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>95</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>9955576 - Disclosure - Insurance - Reconciliation of incurred and paid claims development information to the aggregate carrying amount of the liability for unpaid losses and LAE (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InsuranceReconciliationofincurredandpaidclaimsdevelopmentinformationtotheaggregatecarryingamountoftheliabilityforunpaidlossesandLAEDetails</Role>
      <ShortName>Insurance - Reconciliation of incurred and paid claims development information to the aggregate carrying amount of the liability for unpaid losses and LAE (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>96</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>9955577 - Disclosure - Insurance - Short-duration insurance contracts, claims development (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InsuranceShortdurationinsurancecontractsclaimsdevelopmentDetails</Role>
      <ShortName>Insurance - Short-duration insurance contracts, claims development (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>97</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>9955578 - Disclosure - Insurance - Short-duration insurance contracts, historical claims duration (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InsuranceShortdurationinsurancecontractshistoricalclaimsdurationDetails</Role>
      <ShortName>Insurance - Short-duration insurance contracts, historical claims duration (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>98</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>9955579 - Disclosure - Insurance - Net earnings and capital and surplus on a statutory basis for the insurance subsidiaries (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InsuranceNetearningsandcapitalandsurplusonastatutorybasisfortheinsurancesubsidiariesDetails</Role>
      <ShortName>Insurance - Net earnings and capital and surplus on a statutory basis for the insurance subsidiaries (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>99</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>9955580 - Disclosure - Insurance - Reinsurance information table including assumed, ceded, and recoveries (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InsuranceReinsuranceinformationtableincludingassumedcededandrecoveriesDetails</Role>
      <ShortName>Insurance - Reinsurance information table including assumed, ceded, and recoveries (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>100</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>9955581 - Disclosure - Insurance - Recoverables from reinsurance, progression of allowance for expected credit losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InsuranceRecoverablesfromreinsuranceprogressionofallowanceforexpectedcreditlossesDetails</Role>
      <ShortName>Insurance - Recoverables from reinsurance, progression of allowance for expected credit losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>101</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>9955582 - Disclosure - Insurance - Premiums receivable, progression of allowance for expected credit losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InsurancePremiumsreceivableprogressionofallowanceforexpectedcreditlossesDetails</Role>
      <ShortName>Insurance - Premiums receivable, progression of allowance for expected credit losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>102</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>9955583 - Disclosure - Additional Information - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/AdditionalInformationNarrativeDetails</Role>
      <ShortName>Additional Information - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>103</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>9955584 - Disclosure - Condensed Financial Information of Parent Company - Condensed Balance Sheet (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/CondensedFinancialInformationofParentCompanyCondensedBalanceSheetDetails</Role>
      <ShortName>Condensed Financial Information of Parent Company - Condensed Balance Sheet (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>104</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>9955585 - Disclosure - Condensed Financial Information of Parent Company - Condensed Statement of Earnings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/CondensedFinancialInformationofParentCompanyCondensedStatementofEarningsDetails</Role>
      <ShortName>Condensed Financial Information of Parent Company - Condensed Statement of Earnings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>105</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>9955586 - Disclosure - Condensed Financial Information of Parent Company - Condensed Statement of Comprehensive Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/CondensedFinancialInformationofParentCompanyCondensedStatementofComprehensiveIncomeDetails</Role>
      <ShortName>Condensed Financial Information of Parent Company - Condensed Statement of Comprehensive Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>106</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R107.htm</HtmlFileName>
      <LongName>9955587 - Disclosure - Condensed Financial Information of Parent Company - Condensed Statement of Cash Flows (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/CondensedFinancialInformationofParentCompanyCondensedStatementofCashFlowsDetails</Role>
      <ShortName>Condensed Financial Information of Parent Company - Condensed Statement of Cash Flows (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>107</Position>
    </Report>
    <Report instance="afg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R108.htm</HtmlFileName>
      <LongName>9955588 - Disclosure - Supplementary Insurance Information - Table (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/SupplementaryInsuranceInformationTableDetails</Role>
      <ShortName>Supplementary Insurance Information - Table (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.afginc.com/role/SupplementaryInsuranceInformation</ParentRole>
      <Position>108</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-K" isDefinitelyFs="true" isUsgaap="true" original="afg-20241231.htm">afg-20241231.htm</File>
    <File>afg-20241231.xsd</File>
    <File>afg-20241231_cal.xml</File>
    <File>afg-20241231_def.xml</File>
    <File>afg-20241231_lab.xml</File>
    <File>afg-20241231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>afg-20241231_g1.jpg</File>
    <File>afg-20241231_g10.jpg</File>
    <File>afg-20241231_g2.jpg</File>
    <File>afg-20241231_g3.jpg</File>
    <File>afg-20241231_g4.jpg</File>
    <File>afg-20241231_g5.jpg</File>
    <File>afg-20241231_g6.jpg</File>
    <File>afg-20241231_g7.jpg</File>
    <File>afg-20241231_g8.jpg</File>
    <File>afg-20241231_g9.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1">http://fasb.org/srt/2024</BaseTaxonomy>
    <BaseTaxonomy items="2887">http://fasb.org/us-gaap/2024</BaseTaxonomy>
    <BaseTaxonomy items="18">http://xbrl.sec.gov/cyd/2024</BaseTaxonomy>
    <BaseTaxonomy items="49">http://xbrl.sec.gov/dei/2024</BaseTaxonomy>
    <BaseTaxonomy items="5">http://xbrl.sec.gov/ecd/2024</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
