<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2024"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2024q2"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2024q2/ffd-2024q2.xsd"
      xlink:type="simple"/>
    <context id="rc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001042046</identifier>
        </entity>
        <period>
            <startDate>2024-08-02</startDate>
            <endDate>2024-08-02</endDate>
        </period>
    </context>
    <context id="offrl_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001042046</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2024-08-02</startDate>
            <endDate>2024-08-02</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <unit id="Shares">
        <measure>shares</measure>
    </unit>
    <ffd:FormTp contextRef="rc" id="ixv-116">S-8</ffd:FormTp>
    <ffd:SubmissnTp contextRef="rc" id="ixv-117">S-8</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="rc" id="ixv-118">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="rc" id="ixv-119">0001042046</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-120">AMERICAN FINANCIAL GROUP INC</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="offrl_1" id="ixv-121">false</ffd:PrevslyPdFlg>
    <ffd:FormTp contextRef="rc" id="ixv-146">S-8</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-147">AMERICAN FINANCIAL GROUP INC</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp contextRef="offrl_1" id="ixv-148">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_1" id="ixv-149">Common Stock</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="offrl_1" id="ixv-150">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="offrl_1"
      decimals="0"
      id="ixv-151"
      unitRef="Shares">495086</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="offrl_1"
      decimals="INF"
      id="ixv-152"
      unitRef="USD">129.35</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_1"
      decimals="INF"
      id="ixv-153"
      unitRef="USD">64039374.10</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_1"
      decimals="INF"
      id="ixv-154"
      unitRef="pure">0.0001476</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_1"
      decimals="INF"
      id="ixv-155"
      unitRef="USD">9452.21</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="rc" decimals="INF" id="ixv-156" unitRef="USD">64039374.10</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="rc" decimals="INF" id="ixv-157" unitRef="USD">9452.21</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt contextRef="rc" decimals="INF" id="ixv-158" unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="rc" decimals="INF" id="ixv-159" unitRef="USD">9452.21</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="offrl_1" id="ixv-160">1.	Pursuant to Rule 416 under the Securities Act of 1933, as amended (the "Securities Act"), this Registration Statement on Form S-8 covers any additional securities to be offered or issued from stock splits, stock dividends or similar transactions or pursuant to anti-dilution adjustments.
2.	Estimated pursuant to Rule 457(c) and (h) solely for purposes of calculating the registration fee. The price is calculated on the basis of the average of the high and low prices of the Registrant's shares of common stock on August 1, 2024, as reported on the New York Stock Exchange.
3.	Represents additional shares of the Registrant's common shares, no par value per share, issuable under the Amended and Restated 2015 Stock Incentive Plan.</ffd:OfferingNote>
</xbrl>
