<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.3</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>153</ContextCount>
  <ElementCount>243</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>40</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>7</UnitCount>
  <MyReports>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>995200090 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>995200100 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/StatementConsolidatedBalanceSheets</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>995200105 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/StatementConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>995200200 - Statement - CONSOLIDATED STATEMENTS OF INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/StatementConsolidatedStatementsOfIncome</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>995200300 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/StatementConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>995200400 - Statement - CONSOLIDATED STATEMENTS OF SHAREHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/StatementConsolidatedStatementsOfShareholdersEquity</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF SHAREHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>995200500 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/StatementConsolidatedStatementsOfCashFlows</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>995210101 - Disclosure - BASIS OF PRESENTATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureBasisOfPresentation</Role>
      <ShortName>BASIS OF PRESENTATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>995210201 - Disclosure - SEGMENT REPORTING</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureSegmentReporting</Role>
      <ShortName>SEGMENT REPORTING</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>995210301 - Disclosure - VARIABLE INTEREST ENTITIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureVariableInterestEntities</Role>
      <ShortName>VARIABLE INTEREST ENTITIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>995210401 - Disclosure - FAIR VALUE MEASUREMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureFairValueMeasurements</Role>
      <ShortName>FAIR VALUE MEASUREMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>995210501 - Disclosure - LEASES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureLeases</Role>
      <ShortName>LEASES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>995210601 - Disclosure - SUPPLIER FINANCE PROGRAMS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureSupplierFinancePrograms</Role>
      <ShortName>SUPPLIER FINANCE PROGRAMS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>995210701 - Disclosure - FINANCING</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureFinancing</Role>
      <ShortName>FINANCING</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>995210801 - Disclosure - WARRANTIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureWarranties</Role>
      <ShortName>WARRANTIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>995210901 - Disclosure - SHARE REPURCHASE PROGRAM</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureShareRepurchaseProgram</Role>
      <ShortName>SHARE REPURCHASE PROGRAM</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>995211001 - Disclosure - ACCUMULATED OTHER COMPREHENSIVE INCOME (LOSS)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureAccumulatedOtherComprehensiveIncomeLoss</Role>
      <ShortName>ACCUMULATED OTHER COMPREHENSIVE INCOME (LOSS)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>995211101 - Disclosure - REVENUE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureRevenue</Role>
      <ShortName>REVENUE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>995211201 - Disclosure - SHARE-BASED COMPENSATION AND BENEFIT PLANS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlans</Role>
      <ShortName>SHARE-BASED COMPENSATION AND BENEFIT PLANS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>995211301 - Disclosure - EARNINGS PER SHARE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureEarningsPerShare</Role>
      <ShortName>EARNINGS PER SHARE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>995211401 - Disclosure - LEGAL MATTERS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureLegalMatters</Role>
      <ShortName>LEGAL MATTERS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>995211501 - Disclosure - RECENT ACCOUNTING PRONOUNCEMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureRecentAccountingPronouncements</Role>
      <ShortName>RECENT ACCOUNTING PRONOUNCEMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.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>23</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.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>24</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>99920102 - Disclosure - BASIS OF PRESENTATION (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureBasisOfPresentationPolicies</Role>
      <ShortName>BASIS OF PRESENTATION (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>99920302 - Disclosure - VARIABLE INTEREST ENTITIES (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureVariableInterestEntitiesPolicies</Role>
      <ShortName>VARIABLE INTEREST ENTITIES (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>99920402 - Disclosure - FAIR VALUE MEASUREMENTS (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureFairValueMeasurementsPolicies</Role>
      <ShortName>FAIR VALUE MEASUREMENTS (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>99920802 - Disclosure - WARRANTIES (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureWarrantiesPolicies</Role>
      <ShortName>WARRANTIES (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>99930203 - Disclosure - SEGMENT REPORTING (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureSegmentReportingTables</Role>
      <ShortName>SEGMENT REPORTING (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureSegmentReporting</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>99930403 - Disclosure - FAIR VALUE MEASUREMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureFairValueMeasurementsTables</Role>
      <ShortName>FAIR VALUE MEASUREMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureFairValueMeasurements</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>99930503 - Disclosure - LEASES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureLeasesTables</Role>
      <ShortName>LEASES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureLeases</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>99930703 - Disclosure - FINANCING (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureFinancingTables</Role>
      <ShortName>FINANCING (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureFinancing</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>99930803 - Disclosure - WARRANTIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureWarrantiesTables</Role>
      <ShortName>WARRANTIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureWarranties</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>99930903 - Disclosure - SHARE REPURCHASE PROGRAM (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureShareRepurchaseProgramTables</Role>
      <ShortName>SHARE REPURCHASE PROGRAM (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureShareRepurchaseProgram</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>99931003 - Disclosure - ACCUMULATED OTHER COMPREHENSIVE INCOME (LOSS) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureAccumulatedOtherComprehensiveIncomeLossTables</Role>
      <ShortName>ACCUMULATED OTHER COMPREHENSIVE INCOME (LOSS) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureAccumulatedOtherComprehensiveIncomeLoss</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>99931103 - Disclosure - REVENUE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureRevenueTables</Role>
      <ShortName>REVENUE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureRevenue</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>99931203 - Disclosure - SHARE-BASED COMPENSATION AND BENEFIT PLANS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansTables</Role>
      <ShortName>SHARE-BASED COMPENSATION AND BENEFIT PLANS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlans</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>99931303 - Disclosure - EARNINGS PER SHARE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureEarningsPerShareTables</Role>
      <ShortName>EARNINGS PER SHARE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureEarningsPerShare</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>99940101 - Disclosure - BASIS OF PRESENTATION (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureBasisOfPresentationNarrativeDetails</Role>
      <ShortName>BASIS OF PRESENTATION (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureBasisOfPresentationPolicies</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>99940201 - Disclosure - SEGMENT REPORTING (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureSegmentReportingNarrativeDetails</Role>
      <ShortName>SEGMENT REPORTING (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureSegmentReportingTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>99940202 - Disclosure - SEGMENT REPORTING (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureSegmentReportingDetails</Role>
      <ShortName>SEGMENT REPORTING (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureSegmentReportingTables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>99940301 - Disclosure - VARIABLE INTEREST ENTITIES (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureVariableInterestEntitiesNarrativeDetails</Role>
      <ShortName>VARIABLE INTEREST ENTITIES (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureVariableInterestEntitiesPolicies</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>99940401 - Disclosure - FAIR VALUE MEASUREMENTS (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureFairValueMeasurementsNarrativeDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureFairValueMeasurementsTables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>99940402 - Disclosure - FAIR VALUE MEASUREMENTS (Fair Value of Marketable Securities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureFairValueMeasurementsFairValueOfMarketableSecuritiesDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS (Fair Value of Marketable Securities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureFairValueMeasurementsTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>99940403 - Disclosure - FAIR VALUE MEASUREMENTS (Fair Value of Senior Notes) (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureFairValueMeasurementsFairValueOfSeniorNotesDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS (Fair Value of Senior Notes) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureFairValueMeasurementsTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>99940502 - Disclosure - LEASES (Summary of Total Lease Cost) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureLeasesSummaryOfTotalLeaseCostDetails</Role>
      <ShortName>LEASES (Summary of Total Lease Cost) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureLeasesTables</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>99940503 - Disclosure - LEASES (Supplemental Cash Flow Information) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureLeasesSupplementalCashFlowInformationDetails</Role>
      <ShortName>LEASES (Supplemental Cash Flow Information) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureLeasesTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>99940601 - Disclosure - SUPPLIER FINANCE PROGRAMS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureSupplierFinanceProgramsDetails</Role>
      <ShortName>SUPPLIER FINANCE PROGRAMS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureSupplierFinancePrograms</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>99940701 - Disclosure - FINANCING (Unsecured Revolving Credit Facility) (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureFinancingUnsecuredRevolvingCreditFacilityNarrativeDetails</Role>
      <ShortName>FINANCING (Unsecured Revolving Credit Facility) (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureFinancingTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>99940702 - Disclosure - FINANCING (Commercial Paper Program) (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureFinancingCommercialPaperProgramNarrativeDetails</Role>
      <ShortName>FINANCING (Commercial Paper Program) (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureFinancingTables</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>99940703 - Disclosure - FINANCING (Senior Notes) (Narrative) (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureFinancingSeniorNotesNarrativeDetails</Role>
      <ShortName>FINANCING (Senior Notes) (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureFinancingTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>99940704 - Disclosure - FINANCING (Outstanding Financing Facilities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureFinancingOutstandingFinancingFacilitiesDetails</Role>
      <ShortName>FINANCING (Outstanding Financing Facilities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureFinancingTables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>99940801 - Disclosure - WARRANTIES (Product Warranty Liabilities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureWarrantiesProductWarrantyLiabilitiesDetails</Role>
      <ShortName>WARRANTIES (Product Warranty Liabilities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureWarrantiesTables</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>99940901 - Disclosure - SHARE REPURCHASE PROGRAM (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureShareRepurchaseProgramNarrativeDetails</Role>
      <ShortName>SHARE REPURCHASE PROGRAM (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureShareRepurchaseProgramTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>99940902 - Disclosure - SHARE REPURCHASE PROGRAM (Schedule of Shares Repurchased) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureShareRepurchaseProgramScheduleOfSharesRepurchasedDetails</Role>
      <ShortName>SHARE REPURCHASE PROGRAM (Schedule of Shares Repurchased) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureShareRepurchaseProgramTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>99941001 - Disclosure - ACCUMULATED OTHER COMPREHENSIVE INCOME (LOSS) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureAccumulatedOtherComprehensiveIncomeLossDetails</Role>
      <ShortName>ACCUMULATED OTHER COMPREHENSIVE INCOME (LOSS) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureAccumulatedOtherComprehensiveIncomeLossTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>99941102 - Disclosure - REVENUE (Disaggregation of Revenue) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureRevenueDisaggregationOfRevenueDetails</Role>
      <ShortName>REVENUE (Disaggregation of Revenue) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureRevenueTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>99941201 - Disclosure - SHARE-BASED COMPENSATION AND BENEFIT PLANS (Stock Option) (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansStockOptionNarrativeDetails</Role>
      <ShortName>SHARE-BASED COMPENSATION AND BENEFIT PLANS (Stock Option) (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansTables</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>99941202 - Disclosure - SHARE-BASED COMPENSATION AND BENEFIT PLANS (Other Share-Based Compensation Plans) (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansOtherShareBasedCompensationPlansNarrativeDetails</Role>
      <ShortName>SHARE-BASED COMPENSATION AND BENEFIT PLANS (Other Share-Based Compensation Plans) (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>99941205 - Disclosure - SHARE-BASED COMPENSATION AND BENEFIT PLANS (Benefit Plans) (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansBenefitPlansNarrativeDetails</Role>
      <ShortName>SHARE-BASED COMPENSATION AND BENEFIT PLANS (Benefit Plans) (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>99941208 - Disclosure - SHARE-BASED COMPENSATION AND BENEFIT PLANS (Summary of Stock Options) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansSummaryOfStockOptionsDetails</Role>
      <ShortName>SHARE-BASED COMPENSATION AND BENEFIT PLANS (Summary of Stock Options) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>99941209 - Disclosure - SHARE-BASED COMPENSATION AND BENEFIT PLANS (Black-Scholes Option Pricing Model) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansBlackScholesOptionPricingModelDetails</Role>
      <ShortName>SHARE-BASED COMPENSATION AND BENEFIT PLANS (Black-Scholes Option Pricing Model) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>99941210 - Disclosure - SHARE-BASED COMPENSATION AND BENEFIT PLANS (Stock Option Activity) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansStockOptionActivityDetails</Role>
      <ShortName>SHARE-BASED COMPENSATION AND BENEFIT PLANS (Stock Option Activity) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="orly-20250930x10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>99941301 - Disclosure - EARNINGS PER SHARE (Computation of Basic and Diluted Earnings Per Share) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureEarningsPerShareComputationOfBasicAndDilutedEarningsPerShareDetails</Role>
      <ShortName>EARNINGS PER SHARE (Computation of Basic and Diluted Earnings Per Share) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureEarningsPerShareTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>orly-20250930.xsd</File>
    <File>orly-20250930_cal.xml</File>
    <File>orly-20250930_def.xml</File>
    <File>orly-20250930_lab.xml</File>
    <File>orly-20250930_pre.xml</File>
    <File doctype="10-Q" isDefinitelyFs="true" isUsgaap="true" original="orly-20250930x10q.htm">orly-20250930x10q.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>orly-20250930x10q003.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1">http://fasb.org/srt/2025</BaseTaxonomy>
    <BaseTaxonomy items="682">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="29">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
