<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xml:lang="en-US"
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="c-1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000917251</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-04-24</startDate>
            <endDate>2026-04-24</endDate>
        </period>
    </context>
    <context id="c-2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000917251</identifier>
        </entity>
        <period>
            <startDate>2026-04-24</startDate>
            <endDate>2026-04-24</endDate>
        </period>
    </context>
    <context id="c-3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000917251</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OffsetAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-04-24</startDate>
            <endDate>2026-04-24</endDate>
        </period>
    </context>
    <context id="c-4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000917251</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OffsetAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-04-24</startDate>
            <endDate>2026-04-24</endDate>
        </period>
    </context>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="c-2" id="f-33">0000917251</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="c-2" id="f-34">Agree Realty Corporation</dei:EntityRegistrantName>
    <ffd:RegnFileNb contextRef="c-2" id="f-35">333-295307</ffd:RegnFileNb>
    <ffd:FormTp contextRef="c-2" id="f-36">S-3</ffd:FormTp>
    <ffd:SubmissnTp contextRef="c-2" id="f-37">424B5</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="c-2" id="f-38">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa contextRef="c-2" id="f-39">N/A</ffd:CombinedProspectusTableNa>
    <ffd:PrevslyPdFlg contextRef="c-1" id="f-1">true</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="c-1" id="f-2">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c-1" id="f-3">Common Stock</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="c-1" id="f-4">true</ffd:Rule457oFlg>
    <ffd:MaxAggtOfferingPric contextRef="c-1" decimals="2" id="f-5" unitRef="usd">1750000000</ffd:MaxAggtOfferingPric>
    <ffd:FeeAmt contextRef="c-1" decimals="2" id="f-6" unitRef="usd">241675</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="c-2" decimals="2" id="f-7" unitRef="usd">1750000000</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="c-2" decimals="2" id="f-8" unitRef="usd">241675</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt contextRef="c-2" decimals="2" id="f-9" unitRef="usd">0.00</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt contextRef="c-2" decimals="2" id="f-10" unitRef="usd">33547.77</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="c-2" decimals="2" id="f-11" unitRef="usd">208127.23</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c-1" id="f-12">&lt;div&gt;&lt;span style="color:#000000;font-family:'Arial',sans-serif;font-size:12pt;font-weight:400;line-height:120%"&gt;The registration fee is calculated in accordance with Rule 457(o) under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), based on the proposed maximum aggregate offering price, and Rule 457(r) under the Securities Act. In accordance with Rules 456(b) and 457(r) under the Securities Act, the registrant initially deferred payment of all of the registration fees for the registration statement on Form S-3 (Registration No. 333-295307), filed on April 24, 2026.&lt;/span&gt;&lt;/div&gt;</ffd:OfferingNote>
    <ffd:OffsetClmdInd contextRef="c-3" id="f-13">true</ffd:OffsetClmdInd>
    <ffd:Rule457pOffsetFlg contextRef="c-3" id="f-14">true</ffd:Rule457pOffsetFlg>
    <ffd:OffsetPrrFilerNm contextRef="c-3" id="f-15">Agree Realty Corp</ffd:OffsetPrrFilerNm>
    <ffd:OffsetPrrFormTp contextRef="c-3" id="f-16">S-3</ffd:OffsetPrrFormTp>
    <ffd:OffsetPrrFileNb contextRef="c-3" id="f-17">333-271668</ffd:OffsetPrrFileNb>
    <ffd:OffsetClmInitlFilgDt contextRef="c-3" id="f-18">2024-10-25</ffd:OffsetClmInitlFilgDt>
    <ffd:OffsetClmdAmt contextRef="c-3" decimals="2" id="f-19" unitRef="usd">33547.77</ffd:OffsetClmdAmt>
    <ffd:OffsetPrrSctyTp contextRef="c-3" id="f-20">Equity</ffd:OffsetPrrSctyTp>
    <ffd:OffsetPrrSctyTitl contextRef="c-3" id="f-21">Common Stock</ffd:OffsetPrrSctyTitl>
    <ffd:OffsetPrrUnsoldOfferingAmt contextRef="c-3" decimals="2" id="f-22" unitRef="usd">219123275.66</ffd:OffsetPrrUnsoldOfferingAmt>
    <ffd:OffsetClmdInd contextRef="c-4" id="f-23">false</ffd:OffsetClmdInd>
    <ffd:Rule457pOffsetFlg contextRef="c-4" id="f-24">true</ffd:Rule457pOffsetFlg>
    <ffd:OffsetPrrFilerNm contextRef="c-4" id="f-25">Agree Realty Corp</ffd:OffsetPrrFilerNm>
    <ffd:OffsetPrrFormTp contextRef="c-4" id="f-26">S-3</ffd:OffsetPrrFormTp>
    <ffd:OffsetPrrFileNb contextRef="c-4" id="f-27">333-271668</ffd:OffsetPrrFileNb>
    <ffd:OffsetSrcFilgDt contextRef="c-4" id="f-28">2024-10-25</ffd:OffsetSrcFilgDt>
    <ffd:OffsetPrrFeeAmt contextRef="c-4" decimals="2" id="f-29" unitRef="usd">33547.77</ffd:OffsetPrrFeeAmt>
    <ffd:TermntnCmpltnWdrwl contextRef="c-3" id="f-31">&lt;div&gt;&lt;span style="color:#000000;font-family:'Arial',sans-serif;font-size:12pt;font-weight:400;line-height:100%"&gt;The registrant previously filed a prospectus supplement, dated October 25, 2024 (the &#x201c;Prior Prospectus Supplement&#x201d;) pursuant to the Registration Statement on Form S-3 (Registration No. 333-271668), filed with the Securities and Exchange Commission on May 5, 2023 (the &#x201c;Prior Registration Statement&#x201d;), relating to the offer and sale of shares of common stock having an aggregate offering price of up to $1,250,000,000 under its then current at-the-market program. In connection with the filing of the Prior Prospectus Supplement, the total registration fee of $191,375 was paid. As of the date of this registration statement, shares of common stock having an aggregate offering price of up to $219,123,275.66 were not sold under the Prior Prospectus Supplement. The offering that included the unsold securities under the Prior Prospectus Supplement was terminated. Pursuant to Rule 457(p) under the Securities Act, the registration fee of $33,547.77 that was previously paid and remains unused with respect to securities that were previously registered pursuant to the Prior Prospectus Supplement and were not sold thereunder may be applied to the filing fees payable pursuant to this prospectus supplement.&lt;/span&gt;&lt;/div&gt;</ffd:TermntnCmpltnWdrwl>
    <ffd:OffsetNote contextRef="c-3" id="f-30">&lt;div&gt;&lt;span style="color:#000000;font-family:'Arial',sans-serif;font-size:12pt;font-weight:400;line-height:100%"&gt;The registrant previously filed a prospectus supplement, dated October 25, 2024 (the &#x201c;Prior Prospectus Supplement&#x201d;) pursuant to the Registration Statement on Form S-3 (Registration No. 333-271668), filed with the Securities and Exchange Commission on May 5, 2023 (the &#x201c;Prior Registration Statement&#x201d;), relating to the offer and sale of shares of common stock having an aggregate offering price of up to $1,250,000,000 under its then current at-the-market program. In connection with the filing of the Prior Prospectus Supplement, the total registration fee of $191,375 was paid. As of the date of this registration statement, shares of common stock having an aggregate offering price of up to $219,123,275.66 were not sold under the Prior Prospectus Supplement. The offering that included the unsold securities under the Prior Prospectus Supplement was terminated. Pursuant to Rule 457(p) under the Securities Act, the registration fee of $33,547.77 that was previously paid and remains unused with respect to securities that were previously registered pursuant to the Prior Prospectus Supplement and were not sold thereunder may be applied to the filing fees payable pursuant to this prospectus supplement.&lt;/span&gt;&lt;/div&gt;</ffd:OffsetNote>
    <ffd:OffsetNote contextRef="c-4" id="f-32">&lt;span style="color:#000000;font-family:'Arial',sans-serif;font-size:12pt;font-weight:400;line-height:100%"&gt;See offering note 1.&lt;/span&gt;</ffd:OffsetNote>
</xbrl>