<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.26.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>358</ContextCount>
  <ElementCount>404</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>102</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>9</UnitCount>
  <MyReports>
    <Report instance="afg-20260331.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-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>9952151 - Statement - Consolidated Balance Sheet (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ConsolidatedBalanceSheetUnaudited</Role>
      <ShortName>Consolidated Balance Sheet (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>9952152 - Statement - Consolidated Balance Sheet (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ConsolidatedBalanceSheetUnauditedParenthetical</Role>
      <ShortName>Consolidated Balance Sheet (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>9952153 - Statement - Consolidated Statement of Earnings (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ConsolidatedStatementofEarningsUnaudited</Role>
      <ShortName>Consolidated Statement of Earnings (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>9952154 - Statement - Consolidated Statement of Comprehensive Income (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ConsolidatedStatementofComprehensiveIncomeUnaudited</Role>
      <ShortName>Consolidated Statement of Comprehensive Income (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>9952155 - Statement - Consolidated Statement of Changes in Equity (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ConsolidatedStatementofChangesinEquityUnaudited</Role>
      <ShortName>Consolidated Statement of Changes in Equity (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>9952156 - Statement - Consolidated Statement of Changes in Equity (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ConsolidatedStatementofChangesinEquityUnauditedParenthetical</Role>
      <ShortName>Consolidated Statement of Changes in Equity (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>9952157 - Statement - Consolidated Statement of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ConsolidatedStatementofCashFlowsUnaudited</Role>
      <ShortName>Consolidated Statement of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.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>9</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>9952159 - 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>10</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>9952160 - 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>11</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>9952161 - Disclosure - Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/Investments</Role>
      <ShortName>Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>9952162 - Disclosure - Derivatives</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/Derivatives</Role>
      <ShortName>Derivatives</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>9952163 - 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>14</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>9952164 - 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>15</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>9952165 - 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>16</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>9952166 - Disclosure - Shareholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/ShareholdersEquity</Role>
      <ShortName>Shareholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>9952167 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>9952168 - Disclosure - Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/Contingencies</Role>
      <ShortName>Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9952169 - Disclosure - Insurance</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/Insurance</Role>
      <ShortName>Insurance</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9952170 - Disclosure - Subsequent Event</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/SubsequentEvent</Role>
      <ShortName>Subsequent Event</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.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>22</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.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>23</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9955512 - 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>24</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9955513 - 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>25</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9955514 - 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>26</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9955515 - 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>27</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9955516 - 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>28</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9955517 - 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>29</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9955518 - 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>30</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9955519 - 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>31</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9955520 - 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>32</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9955521 - 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>33</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9955522 - 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>34</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9955523 - 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>35</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9955524 - 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>36</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9955525 - 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>37</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9955526 - 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>38</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9955527 - 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>39</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9955528 - 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>40</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9955529 - 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>41</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9955530 - 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>42</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9955531 - 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>43</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9955532 - 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>44</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9955533 - 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>45</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9955534 - 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>46</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9955535 - 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>47</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9955536 - 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>48</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9955537 - 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>49</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9955538 - 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>50</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9955539 - 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>51</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9955540 - 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>52</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9955541 - 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>53</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9955542 - Disclosure - Investments - Gross realized gains and losses on available for sale fixed maturity investment transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/InvestmentsGrossrealizedgainsandlossesonavailableforsalefixedmaturityinvestmenttransactionsDetails</Role>
      <ShortName>Investments - Gross realized gains and losses on available for sale fixed maturity investment transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9955543 - 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>55</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9955544 - 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>56</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9955545 - 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>57</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9955546 - 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>58</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9955547 - 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>59</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9955548 - 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>60</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9955549 - 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>61</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9955550 - 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>62</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9955551 - 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>63</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9955552 - 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>64</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9955553 - 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>65</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9955554 - 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>66</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9955555 - 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>67</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9955556 - 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>68</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9955557 - 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>69</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9955558 - 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>70</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9955559 - 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>71</Position>
    </Report>
    <Report instance="afg-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>9955560 - Disclosure - Subsequent Event - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.afginc.com/role/SubsequentEventNarrativeDetails</Role>
      <ShortName>Subsequent Event - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</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-Q" isDefinitelyFs="true" isUsgaap="true" original="afg-20260331.htm">afg-20260331.htm</File>
    <File>afg-20260331.xsd</File>
    <File>afg-20260331_cal.xml</File>
    <File>afg-20260331_def.xml</File>
    <File>afg-20260331_lab.xml</File>
    <File>afg-20260331_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>afg-20260331_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1286">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="41">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
