<?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_5eecbe4f-6845-4821-89b0-b96e0f6bddeb">
        <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>
    <context id="C_6756620e-ad63-47e7-a254-7a64e8a5f7f5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000711377</identifier>
        </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:Securities424iNa
      contextRef="C_6756620e-ad63-47e7-a254-7a64e8a5f7f5"
      id="F_b80a2df4-f747-48c6-8c07-c20221fa7988">N/A</ffd:Securities424iNa>
    <ffd:FeeExhibitTp
      contextRef="C_6756620e-ad63-47e7-a254-7a64e8a5f7f5"
      id="F_f8f7b5b8-d458-4ce0-80d1-53d1ba344198">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:PrevslyPdFlg
      contextRef="C_5eecbe4f-6845-4821-89b0-b96e0f6bddeb"
      id="F_c57426a3-96e0-4dee-9b13-df6eb27b6697">false</ffd:PrevslyPdFlg>
    <ffd:OffsetTableNa
      contextRef="C_6756620e-ad63-47e7-a254-7a64e8a5f7f5"
      id="F_0edb70ca-35bc-420e-b0a3-ce2a8e7a5884">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6756620e-ad63-47e7-a254-7a64e8a5f7f5"
      id="F_fbcc73f9-5ac1-4752-aa16-6994a24e7a75">0000711377</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_6756620e-ad63-47e7-a254-7a64e8a5f7f5"
      id="F_939d37ea-c9ef-400c-85e1-7dd65f3e459f">S-8</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_6756620e-ad63-47e7-a254-7a64e8a5f7f5"
      id="F_7a0cb5ef-3df3-4a9d-8691-038a8eed8dfc">S-8</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_6756620e-ad63-47e7-a254-7a64e8a5f7f5"
      id="F_fb3954c6-4219-4248-900a-012e679b6711">Neogen Corporation</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp
      contextRef="C_5eecbe4f-6845-4821-89b0-b96e0f6bddeb"
      id="F_96c7a94e-842f-4e63-98b1-9119d7ffbbbb">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="C_5eecbe4f-6845-4821-89b0-b96e0f6bddeb"
      id="F_95e32175-bad6-446f-a3be-ef7567d35f15">Common Stock</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg
      contextRef="C_5eecbe4f-6845-4821-89b0-b96e0f6bddeb"
      id="F_b385f6f2-10f6-4ec5-88cb-f372a2ded499">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="C_5eecbe4f-6845-4821-89b0-b96e0f6bddeb"
      decimals="INF"
      id="F_2703f774-8e6c-4a60-95ae-fa12cc3eea69"
      unitRef="U_shares">5000000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="C_5eecbe4f-6845-4821-89b0-b96e0f6bddeb"
      decimals="2"
      id="F_7be4e58f-5800-498a-afb6-5098c5f49b12"
      unitRef="U_USD">11.83</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="C_5eecbe4f-6845-4821-89b0-b96e0f6bddeb"
      decimals="-3"
      id="F_009f3f70-ffed-42e0-9f8f-daaf232f8f01"
      unitRef="U_USD">59150000</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="C_5eecbe4f-6845-4821-89b0-b96e0f6bddeb"
      decimals="6"
      id="F_5fe4ad0d-871a-412f-b888-42e193ce8c89"
      unitRef="U_pure">0.000087</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="C_5eecbe4f-6845-4821-89b0-b96e0f6bddeb"
      decimals="2"
      id="F_3664bfdd-3744-4e78-8f82-8b25282f42c3"
      unitRef="U_USD">5146.05</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="C_6756620e-ad63-47e7-a254-7a64e8a5f7f5"
      decimals="-3"
      id="F_9fe7c47e-e3ad-48f9-a84c-c1b2032ac99d"
      unitRef="U_USD">59150000</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="C_6756620e-ad63-47e7-a254-7a64e8a5f7f5"
      decimals="2"
      id="F_19d2de83-7ed2-4129-a84b-107314de8870"
      unitRef="U_USD">5146.05</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt
      contextRef="C_6756620e-ad63-47e7-a254-7a64e8a5f7f5"
      decimals="0"
      id="F_5841e09d-f339-4c86-bebf-028de369d509"
      unitRef="U_USD">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="C_6756620e-ad63-47e7-a254-7a64e8a5f7f5"
      decimals="2"
      id="F_9eb83c5c-4a0a-4ffd-8fa1-abb7a56a5d01"
      unitRef="U_USD">5146.05</ffd:NetFeeAmt>
    <ffd:OfferingNote
      contextRef="C_5eecbe4f-6845-4821-89b0-b96e0f6bddeb"
      id="F_2e5c65b7-3d7c-433b-97c7-22e46f300f6d">&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;5,000,000 shares of Common Stock authorized for issuance under the Neogen Corporation Employee Stock Purchase Plan (As Amended and Restated Effective June 1, 2026) (the &#x201c;Plan&#x201d;). 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 &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;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>
