<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.3</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>316</ContextCount>
  <ElementCount>190</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>47</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>8</UnitCount>
  <MyReports>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - COVER</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/COVER</Role>
      <ShortName>COVER</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF EARNINGS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFEARNINGS</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF EARNINGS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>0000003 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE EARNINGS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEEARNINGS</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE EARNINGS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>0000004 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE EARNINGS (PARENTHETICAL)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEEARNINGSPARENTHETICAL</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE EARNINGS (PARENTHETICAL)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>0000005 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS</Role>
      <ShortName>CONDENSED CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>0000006 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS (PARENTHETICAL)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSPARENTHETICAL</Role>
      <ShortName>CONDENSED CONSOLIDATED BALANCE SHEETS (PARENTHETICAL)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>0000007 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>0000008 - Statement - CONDENSED CONSOLIDATED STATEMENT OF SHAREDHOLDERS' EQUITY CONDENSED CONSOLIDATED STATEMENT OF SHAREDHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/CONDENSEDCONSOLIDATEDSTATEMENTOFSHAREDHOLDERSEQUITYCONDENSEDCONSOLIDATEDSTATEMENTOFSHAREDHOLDERSEQUITY</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENT OF SHAREDHOLDERS' EQUITY CONDENSED CONSOLIDATED STATEMENT OF SHAREDHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>0000009 - Statement - CONDENSED CONSOLIDATED STATEMENT OF SHAREDHOLDERS' EQUITY CONDENSED CONSOLIDATED STATEMENT OF SHAREDHOLDERS' EQUITY (PARENTHETICAL)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/CONDENSEDCONSOLIDATEDSTATEMENTOFSHAREDHOLDERSEQUITYCONDENSEDCONSOLIDATEDSTATEMENTOFSHAREDHOLDERSEQUITYPARENTHETICAL</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENT OF SHAREDHOLDERS' EQUITY CONDENSED CONSOLIDATED STATEMENT OF SHAREDHOLDERS' EQUITY (PARENTHETICAL)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>0000010 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>0000011 - Disclosure - REVENUE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/REVENUE</Role>
      <ShortName>REVENUE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>0000012 - Disclosure - PROPERTY, BUILDINGS AND EQUIPMENT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/PROPERTYBUILDINGSANDEQUIPMENT</Role>
      <ShortName>PROPERTY, BUILDINGS AND EQUIPMENT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>0000013 - Disclosure - GOODWILL AND OTHER INTANGIBLE ASSETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/GOODWILLANDOTHERINTANGIBLEASSETS</Role>
      <ShortName>GOODWILL AND OTHER INTANGIBLE ASSETS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>0000014 - Disclosure - DEBT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/DEBT</Role>
      <ShortName>DEBT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>0000015 - Disclosure - DERIVATIVE INSTRUMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/DERIVATIVEINSTRUMENTS</Role>
      <ShortName>DERIVATIVE INSTRUMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>0000016 - Disclosure - SEGMENT INFORMATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/SEGMENTINFORMATION</Role>
      <ShortName>SEGMENT INFORMATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>0000017 - Disclosure - CONTINGENCIES AND LEGAL MATTERS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/CONTINGENCIESANDLEGALMATTERS</Role>
      <ShortName>CONTINGENCIES AND LEGAL MATTERS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>0000018 - Disclosure - SUBSEQUENT EVENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/SUBSEQUENTEVENTS</Role>
      <ShortName>SUBSEQUENT EVENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9954471 - Disclosure - REVENUE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/REVENUETables</Role>
      <ShortName>REVENUE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.grainger.com/role/REVENUE</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9954472 - Disclosure - PROPERTY, BUILDINGS AND EQUIPMENT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/PROPERTYBUILDINGSANDEQUIPMENTTables</Role>
      <ShortName>PROPERTY, BUILDINGS AND EQUIPMENT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.grainger.com/role/PROPERTYBUILDINGSANDEQUIPMENT</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9954473 - Disclosure - GOODWILL AND OTHER INTANGIBLE ASSETS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/GOODWILLANDOTHERINTANGIBLEASSETSTables</Role>
      <ShortName>GOODWILL AND OTHER INTANGIBLE ASSETS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.grainger.com/role/GOODWILLANDOTHERINTANGIBLEASSETS</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9954474 - Disclosure - DEBT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/DEBTTables</Role>
      <ShortName>DEBT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.grainger.com/role/DEBT</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9954475 - Disclosure - DERIVATIVE INSTRUMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/DERIVATIVEINSTRUMENTSTables</Role>
      <ShortName>DERIVATIVE INSTRUMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.grainger.com/role/DERIVATIVEINSTRUMENTS</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9954476 - Disclosure - SEGMENT INFORMATION (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/SEGMENTINFORMATIONTables</Role>
      <ShortName>SEGMENT INFORMATION (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.grainger.com/role/SEGMENTINFORMATION</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9954477 - Disclosure - REVENUE - Disaggregation of Revenues (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/REVENUEDisaggregationofRevenuesDetails</Role>
      <ShortName>REVENUE - Disaggregation of Revenues (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9954478 - Disclosure - REVENUE - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/REVENUENarrativeDetails</Role>
      <ShortName>REVENUE - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9954479 - Disclosure - PROPERTY, BUILDINGS AND EQUIPMENT (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/PROPERTYBUILDINGSANDEQUIPMENTDetails</Role>
      <ShortName>PROPERTY, BUILDINGS AND EQUIPMENT (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.grainger.com/role/PROPERTYBUILDINGSANDEQUIPMENTTables</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9954480 - Disclosure - GOODWILL AND OTHER INTANGIBLE ASSETS - Balances and Changes in Carrying Amounts of Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/GOODWILLANDOTHERINTANGIBLEASSETSBalancesandChangesinCarryingAmountsofGoodwillDetails</Role>
      <ShortName>GOODWILL AND OTHER INTANGIBLE ASSETS - Balances and Changes in Carrying Amounts of Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9954481 - Disclosure - GOODWILL AND OTHER INTANGIBLE ASSETS - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/GOODWILLANDOTHERINTANGIBLEASSETSNarrativeDetails</Role>
      <ShortName>GOODWILL AND OTHER INTANGIBLE ASSETS - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9954482 - Disclosure - GOODWILL AND OTHER INTANGIBLE ASSETS - Balance in Intangible Assets, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/GOODWILLANDOTHERINTANGIBLEASSETSBalanceinIntangibleAssetsNetDetails</Role>
      <ShortName>GOODWILL AND OTHER INTANGIBLE ASSETS - Balance in Intangible Assets, Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9954483 - Disclosure - DEBT - Long-Term Debt Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/DEBTLongTermDebtInstrumentsDetails</Role>
      <ShortName>DEBT - Long-Term Debt Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9954484 - Disclosure - DEBT - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/DEBTNarrativeDetails</Role>
      <ShortName>DEBT - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9954485 - Disclosure - DERIVATIVE INSTRUMENTS - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/DERIVATIVEINSTRUMENTSNarrativeDetails</Role>
      <ShortName>DERIVATIVE INSTRUMENTS - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9954486 - Disclosure - DERIVATIVE INSTRUMENTS - Effect of Fair Value Hedges in Interest Expense, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/DERIVATIVEINSTRUMENTSEffectofFairValueHedgesinInterestExpenseNetDetails</Role>
      <ShortName>DERIVATIVE INSTRUMENTS - Effect of Fair Value Hedges in Interest Expense, Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9954487 - Disclosure - DERIVATIVE INSTRUMENTS - Fair Value and Carrying Amounts of Outstanding Derivative Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/DERIVATIVEINSTRUMENTSFairValueandCarryingAmountsofOutstandingDerivativeInstrumentsDetails</Role>
      <ShortName>DERIVATIVE INSTRUMENTS - Fair Value and Carrying Amounts of Outstanding Derivative Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9954488 - Disclosure - SEGMENT INFORMATION - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/SEGMENTINFORMATIONNarrativeDetails</Role>
      <ShortName>SEGMENT INFORMATION - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9954489 - Disclosure - SEGMENT INFORMATION - Summary of Segment Results (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/SEGMENTINFORMATIONSummaryofSegmentResultsDetails</Role>
      <ShortName>SEGMENT INFORMATION - Summary of Segment Results (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="gww-20230930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9954490 - Disclosure - SUBSEQUENT EVENTS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.grainger.com/role/SUBSEQUENTEVENTSDetails</Role>
      <ShortName>SUBSEQUENT EVENTS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.grainger.com/role/SUBSEQUENTEVENTS</ParentRole>
      <Position>40</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" isDefinitelyFs="true" isUsgaap="true" original="gww-20230930.htm">gww-20230930.htm</File>
    <File>gww-20230930.xsd</File>
    <File>gww-20230930_cal.xml</File>
    <File>gww-20230930_def.xml</File>
    <File>gww-20230930_lab.xml</File>
    <File>gww-20230930_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="579">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="31">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
    <BaseTaxonomy items="11">http://xbrl.sec.gov/ecd/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
