<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xml:lang="en-US"
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:_2="http://www.w3.org/1999/xhtml"
  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">0000815556</identifier>
        </entity>
        <period>
            <startDate>2026-07-16</startDate>
            <endDate>2026-07-16</endDate>
        </period>
    </context>
    <context id="c-2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000815556</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-07-16</startDate>
            <endDate>2026-07-16</endDate>
        </period>
    </context>
    <context id="c-3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000815556</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-07-16</startDate>
            <endDate>2026-07-16</endDate>
        </period>
    </context>
    <unit id="shares">
        <measure>_2:shares</measure>
    </unit>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="number">
        <measure>pure</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="c-1" id="f-25">0000815556</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp contextRef="c-1" id="f-26">S-8</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="c-1" id="f-27">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:PrevslyPdFlg contextRef="c-2" id="f-28">false</ffd:PrevslyPdFlg>
    <ffd:PrevslyPdFlg contextRef="c-3" id="f-29">false</ffd:PrevslyPdFlg>
    <ffd:OffsetTableNa contextRef="c-1" id="f-30">N/A</ffd:OffsetTableNa>
    <ffd:FormTp contextRef="c-1" id="f-1">S-8</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="c-1" id="f-2">Fastenal Company</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp contextRef="c-2" id="f-3">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c-2" id="f-4">Common Stock, $0.01 par value per share (Employee RSU Plan)</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c-2" id="f-5">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd contextRef="c-2" decimals="0" id="f-6" unitRef="shares">7500000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty contextRef="c-2" decimals="2" id="f-7" unitRef="usd">46.58</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric contextRef="c-2" decimals="2" id="f-8" unitRef="usd">349350000</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate contextRef="c-2" decimals="INF" id="f-9" unitRef="number">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt contextRef="c-2" decimals="2" id="f-10" unitRef="usd">48245.24</ffd:FeeAmt>
    <ffd:OfferingSctyTp contextRef="c-3" id="f-11">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c-3" id="f-12">Common Stock, $0.01 par value per share (Director Plan)</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c-3" id="f-13">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd contextRef="c-3" decimals="0" id="f-14" unitRef="shares">1000000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty contextRef="c-3" decimals="2" id="f-15" unitRef="usd">46.58</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric contextRef="c-3" decimals="2" id="f-16" unitRef="usd">46580000</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate contextRef="c-3" decimals="INF" id="f-17" unitRef="number">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt contextRef="c-3" decimals="2" id="f-18" unitRef="usd">6432.7</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="c-1" decimals="2" id="f-19" unitRef="usd">395930000</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="c-1" decimals="2" id="f-20" unitRef="usd">54677.94</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt contextRef="c-1" decimals="2" id="f-21" unitRef="usd">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="c-1" decimals="2" id="f-22" unitRef="usd">54677.94</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c-2" id="f-24">&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:120%;padding-left:6.91pt"&gt;Pursuant to Rule 416(a) under the Securities Act, this Registration Statement shall also cover any additional shares of Common Stock that become issuable in respect of the securities identified in the above table under the Plans by reason of any stock dividend, stock split, recapitalization, or other similar event pursuant to the anti-dilution provisions of the Plans.&lt;/span&gt;&lt;div style="margin-bottom:6pt;margin-top:6pt;padding-left:36pt;text-align:justify;text-indent:-18pt"&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:120%"&gt;(b)&lt;/span&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:120%;padding-left:6.34pt"&gt;The Amount Registered represents 7,500,000 and 1,000,000 shares of Common Stock reserved for future issuance under the Employee RSU Plan and the Director Plan, respectively.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:6pt;margin-top:6pt;padding-left:36pt;text-align:justify;text-indent:-18pt"&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:120%"&gt;(c)&lt;/span&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:120%;padding-left:6.91pt"&gt;The fee rate of $138.10 per $1,000,000 (0.00013810) is the rate effective for the period from October 1, 2025 through September 30, 2026. Estimated solely for the purpose of calculating the registration fee in accordance with Rule 457(c) and Rule 457(h) under the Securities Act using the average of the high and low sale prices of the common stock on July 9, 2026, as reported on the Nasdaq Global Select Market, which is within five business days prior to filing this Registration Statement on Form S-8.&lt;/span&gt;&lt;/div&gt;</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="c-3" id="f-23">&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:120%;padding-left:6.91pt"&gt;Pursuant to Rule 416(a) under the Securities Act, this Registration Statement shall also cover any additional shares of Common Stock that become issuable in respect of the securities identified in the above table under the Plans by reason of any stock dividend, stock split, recapitalization, or other similar event pursuant to the anti-dilution provisions of the Plans.&lt;/span&gt;&lt;div style="margin-bottom:6pt;margin-top:6pt;padding-left:36pt;text-align:justify;text-indent:-18pt"&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:120%"&gt;(b)&lt;/span&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:120%;padding-left:6.34pt"&gt;The Amount Registered represents 7,500,000 and 1,000,000 shares of Common Stock reserved for future issuance under the Employee RSU Plan and the Director Plan, respectively.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:6pt;margin-top:6pt;padding-left:36pt;text-align:justify;text-indent:-18pt"&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:120%"&gt;(c)&lt;/span&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:120%;padding-left:6.91pt"&gt;The fee rate of $138.10 per $1,000,000 (0.00013810) is the rate effective for the period from October 1, 2025 through September 30, 2026. Estimated solely for the purpose of calculating the registration fee in accordance with Rule 457(c) and Rule 457(h) under the Securities Act using the average of the high and low sale prices of the common stock on July 9, 2026, as reported on the Nasdaq Global Select Market, which is within five business days prior to filing this Registration Statement on Form S-8.&lt;/span&gt;&lt;/div&gt;</ffd:OfferingNote>
</xbrl>
