<?xml version="1.0" encoding="utf-8"?>
<xbrl
  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_92067f06-52c6-4b1e-89fa-3abffa106637">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000711377</identifier>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <context id="C_3ab21e56-9b2d-4e75-bf2e-ab362dd0029f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000711377</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <unit id="U_pure">
        <measure>pure</measure>
    </unit>
    <unit id="U_shares">
        <measure>shares</measure>
    </unit>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:PrevslyPdFlg
      contextRef="C_3ab21e56-9b2d-4e75-bf2e-ab362dd0029f"
      id="F_9daa5faa-7277-4c33-87f7-6551978efb42">false</ffd:PrevslyPdFlg>
    <ffd:OffsetTableNa
      contextRef="C_92067f06-52c6-4b1e-89fa-3abffa106637"
      id="F_997f0d1a-048d-4c47-80fc-c273987b6e31">N/A</ffd:OffsetTableNa>
    <ffd:Securities424iNa
      contextRef="C_92067f06-52c6-4b1e-89fa-3abffa106637"
      id="F_4b6306d8-25cf-49d3-ac21-028e0ea746af">N/A</ffd:Securities424iNa>
    <dei:EntityCentralIndexKey
      contextRef="C_92067f06-52c6-4b1e-89fa-3abffa106637"
      id="F_3ce6b3ea-7bce-4de5-a9be-5d4d687b77c9">0000711377</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_92067f06-52c6-4b1e-89fa-3abffa106637"
      id="F_f7d401fc-cdd9-49ea-84f2-b8d0eda3462a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_92067f06-52c6-4b1e-89fa-3abffa106637"
      id="F_05ecde1e-0857-470a-a428-30be45080ef7">S-8</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_92067f06-52c6-4b1e-89fa-3abffa106637"
      id="F_c43a8af6-0b52-40a6-a8eb-5251d13a970d">S-8</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_92067f06-52c6-4b1e-89fa-3abffa106637"
      id="F_8f594114-fed5-4b27-8596-e42e6b2efd02">Neogen Corporation</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp
      contextRef="C_3ab21e56-9b2d-4e75-bf2e-ab362dd0029f"
      id="F_e7b708b2-1c00-495c-9f45-ac686aee7d8c">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="C_3ab21e56-9b2d-4e75-bf2e-ab362dd0029f"
      id="F_eacf9caa-880c-40c1-84c2-1f6b3c57539a">Common Stock</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg
      contextRef="C_3ab21e56-9b2d-4e75-bf2e-ab362dd0029f"
      id="F_51b37f30-8f4b-4920-acf4-1f204bed56df">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="C_3ab21e56-9b2d-4e75-bf2e-ab362dd0029f"
      decimals="INF"
      id="F_30fd84aa-9e9f-479e-9de5-21476bd3b73c"
      unitRef="U_shares">11350000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="C_3ab21e56-9b2d-4e75-bf2e-ab362dd0029f"
      decimals="2"
      id="F_69d095bf-c0c8-4c4f-856f-2d1dce0f1b14"
      unitRef="U_USD">11.83</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="C_3ab21e56-9b2d-4e75-bf2e-ab362dd0029f"
      decimals="0"
      id="F_3ac3f3a4-033c-4925-a2e6-553dd1dfb29d"
      unitRef="U_USD">134270500</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="C_3ab21e56-9b2d-4e75-bf2e-ab362dd0029f"
      decimals="6"
      id="F_e01086fa-226b-4688-ae9b-daacae93d125"
      unitRef="U_pure">0.000087</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="C_3ab21e56-9b2d-4e75-bf2e-ab362dd0029f"
      decimals="2"
      id="F_11ffc442-f9cf-4622-a7f2-4a5f36fbe7e9"
      unitRef="U_USD">11681.54</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="C_92067f06-52c6-4b1e-89fa-3abffa106637"
      decimals="0"
      id="F_ead821c0-2c43-4d14-ae98-7b65762c3bbd"
      unitRef="U_USD">134270500</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="C_92067f06-52c6-4b1e-89fa-3abffa106637"
      decimals="2"
      id="F_52c5309b-5f86-4e36-b706-2917dd1b3080"
      unitRef="U_USD">11681.54</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt
      contextRef="C_92067f06-52c6-4b1e-89fa-3abffa106637"
      decimals="0"
      id="F_8b1dde70-d17a-49c5-89ab-7a81eefc4dca"
      unitRef="U_USD">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="C_92067f06-52c6-4b1e-89fa-3abffa106637"
      decimals="2"
      id="F_061b1362-8fcb-41b2-9ff2-def88748f6d5"
      unitRef="U_USD">11681.54</ffd:NetFeeAmt>
    <ffd:OfferingNote
      contextRef="C_3ab21e56-9b2d-4e75-bf2e-ab362dd0029f"
      id="F_08e258c6-3b5e-4a84-879b-a0d48cd006cb">&lt;div class="item-list-element-wrapper" style="margin-left:4.528%;tab-size:32px;display:flex;font-size:10pt;margin-top:6pt;justify-content:flex-start;font-family:Times New Roman;align-items:baseline;margin-bottom:0;min-width:4.537%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:4.7521786492374725%;word-break:keep-all;display:inline-flex;justify-content:flex-start;"&gt;(1)&lt;/span&gt;&lt;div style="display:inline;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;Represents &lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;11,350,000 shares of Common Stock authorized for issuance under the Neogen Corporation Amended and Restated Omnibus Incentive Plan (the &#x201c;Plan&#x201d;), representing the additional shares approved in connection with the amendment and restatement of the Plan (the 20,000,000 shares previously authorized under the Plan remain registered under a prior registration statement). In addition, pursuant to Rule 416(a) under the Securities Act of 1933, this Registration Statement also covers such indeterminate number of additional shares as may be authorized in the event of an adjustment as a result of an increase in the number of issued shares of Common Stock resulting from the payment of stock dividends or stock splits or certain other capital adjustments. &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="item-list-element-wrapper" style="margin-left:4.528%;tab-size:32px;display:flex;font-size:10pt;margin-top:6pt;justify-content:flex-start;font-family:Times New Roman;align-items:baseline;margin-bottom:0;min-width:4.537%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:4.7521786492374725%;word-break:keep-all;display:inline-flex;justify-content:flex-start;"&gt;(2)&lt;/span&gt;&lt;div style="display:inline;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;For the purpose of computing the registration fee only, the price shown is based upon the price of $11.83 per share, the average of the high and low prices for the Common Stock of the Registrant as reported in the Nasdaq Global Select Market on October 14, 2026, in accordance with Rule 457(c) and (h)(1).&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</ffd:OfferingNote>
</xbrl>
