<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.4</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>212</ContextCount>
  <ElementCount>499</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>71</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>10</UnitCount>
  <MyReports>
    <Report instance="orly-20251231x10k.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-20251231x10k.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-20251231x10k.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-20251231x10k.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-20251231x10k.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-20251231x10k.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-20251231x10k.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-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>995210101 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="orly-20251231x10k.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-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>995210301 - 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>10</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>995210401 - Disclosure - ALLOWANCE FOR DOUBTFUL ACCOUNTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureAllowanceForDoubtfulAccounts</Role>
      <ShortName>ALLOWANCE FOR DOUBTFUL ACCOUNTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>995210501 - Disclosure - PROPERTY AND EQUIPMENT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosurePropertyAndEquipment</Role>
      <ShortName>PROPERTY AND EQUIPMENT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>995210601 - Disclosure - LEASES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureLeases</Role>
      <ShortName>LEASES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>995210701 - Disclosure - GOODWILL AND OTHER INTANGIBLES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureGoodwillAndOtherIntangibles</Role>
      <ShortName>GOODWILL AND OTHER INTANGIBLES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>995210801 - 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>15</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>995210901 - Disclosure - FINANCING</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureFinancing</Role>
      <ShortName>FINANCING</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>995211001 - Disclosure - WARRANTIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureWarranties</Role>
      <ShortName>WARRANTIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>995211101 - 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>18</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>995211201 - 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>19</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>995211301 - Disclosure - REVENUE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureRevenue</Role>
      <ShortName>REVENUE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>995211401 - 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>21</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>995211501 - Disclosure - COMMITMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureCommitments</Role>
      <ShortName>COMMITMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>995211601 - Disclosure - RELATED PARTIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureRelatedParties</Role>
      <ShortName>RELATED PARTIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>995211701 - Disclosure - INCOME TAXES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureIncomeTaxes</Role>
      <ShortName>INCOME TAXES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>995211801 - 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>25</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.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>26</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.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>27</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>995447 - Disclosure - Insider Trading Policies and Procedures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc</Role>
      <ShortName>Insider Trading Policies and Procedures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>995550 - Disclosure - Cybersecurity Risk Management and Strategy Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure</Role>
      <ShortName>Cybersecurity Risk Management and Strategy Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>99920102 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>99930103 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureSummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.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>32</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>99930303 - 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>33</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>99930403 - Disclosure - ALLOWANCE FOR DOUBTFUL ACCOUNTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureAllowanceForDoubtfulAccountsTables</Role>
      <ShortName>ALLOWANCE FOR DOUBTFUL ACCOUNTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureAllowanceForDoubtfulAccounts</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>99930503 - Disclosure - PROPERTY AND EQUIPMENT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosurePropertyAndEquipmentTables</Role>
      <ShortName>PROPERTY AND EQUIPMENT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosurePropertyAndEquipment</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>99930603 - 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>36</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>99930703 - Disclosure - GOODWILL AND OTHER INTANGIBLES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureGoodwillAndOtherIntangiblesTables</Role>
      <ShortName>GOODWILL AND OTHER INTANGIBLES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureGoodwillAndOtherIntangibles</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>99930803 - Disclosure - SUPPLIER FINANCE PROGRAMS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureSupplierFinanceProgramsTables</Role>
      <ShortName>SUPPLIER FINANCE PROGRAMS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureSupplierFinancePrograms</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>99930903 - 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>39</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>99931003 - 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>40</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>99931103 - 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>41</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>99931203 - 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>42</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>99931303 - 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>43</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>99931403 - 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>44</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>99931703 - Disclosure - INCOME TAXES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureIncomeTaxesTables</Role>
      <ShortName>INCOME TAXES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureIncomeTaxes</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>99931803 - 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>46</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>99940101 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureSummaryOfSignificantAccountingPoliciesNarrativeDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureSummaryOfSignificantAccountingPoliciesTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>99940102 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Components of Self-Insurance Reserves) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureSummaryOfSignificantAccountingPoliciesComponentsOfSelfInsuranceReservesDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Components of Self-Insurance Reserves) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureSummaryOfSignificantAccountingPoliciesTables</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.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>49</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.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>50</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>99940301 - 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>51</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>99940302 - 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>52</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>99940303 - 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>53</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>99940401 - Disclosure - ALLOWANCE FOR DOUBTFUL ACCOUNTS (Changes in Allowance for Doubtful Accounts) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureAllowanceForDoubtfulAccountsChangesInAllowanceForDoubtfulAccountsDetails</Role>
      <ShortName>ALLOWANCE FOR DOUBTFUL ACCOUNTS (Changes in Allowance for Doubtful Accounts) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureAllowanceForDoubtfulAccountsTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>99940501 - Disclosure - PROPERTY AND EQUIPMENT (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosurePropertyAndEquipmentNarrativeDetails</Role>
      <ShortName>PROPERTY AND EQUIPMENT (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosurePropertyAndEquipmentTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>99940502 - Disclosure - PROPERTY AND EQUIPMENT (Property and Equipment, Including Original Useful Lives) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosurePropertyAndEquipmentPropertyAndEquipmentIncludingOriginalUsefulLivesDetails</Role>
      <ShortName>PROPERTY AND EQUIPMENT (Property and Equipment, Including Original Useful Lives) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosurePropertyAndEquipmentTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>99940601 - Disclosure - LEASES (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureLeasesNarrativeDetails</Role>
      <ShortName>LEASES (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureLeasesTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>99940602 - 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>58</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>99940603 - 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>59</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>99940604 - Disclosure - LEASES (Future Minimum Lease Payments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureLeasesFutureMinimumLeasePaymentsDetails</Role>
      <ShortName>LEASES (Future Minimum Lease Payments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureLeasesTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>99940701 - Disclosure - GOODWILL AND OTHER INTANGIBLES (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureGoodwillAndOtherIntangiblesNarrativeDetails</Role>
      <ShortName>GOODWILL AND OTHER INTANGIBLES (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureGoodwillAndOtherIntangiblesTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>99940702 - Disclosure - GOODWILL AND OTHER INTANGIBLES (Changes in Net Goodwill) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureGoodwillAndOtherIntangiblesChangesInNetGoodwillDetails</Role>
      <ShortName>GOODWILL AND OTHER INTANGIBLES (Changes in Net Goodwill) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureGoodwillAndOtherIntangiblesTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>99940703 - Disclosure - GOODWILL AND OTHER INTANGIBLES (Intangibles Other Than Goodwill) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureGoodwillAndOtherIntangiblesIntangiblesOtherThanGoodwillDetails</Role>
      <ShortName>GOODWILL AND OTHER INTANGIBLES (Intangibles Other Than Goodwill) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureGoodwillAndOtherIntangiblesTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>99940704 - Disclosure - GOODWILL AND OTHER INTANGIBLES (Estimated Amortization of Intangibles) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureGoodwillAndOtherIntangiblesEstimatedAmortizationOfIntangiblesDetails</Role>
      <ShortName>GOODWILL AND OTHER INTANGIBLES (Estimated Amortization of Intangibles) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureGoodwillAndOtherIntangiblesTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>99940801 - 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/DisclosureSupplierFinanceProgramsTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>99940802 - Disclosure - SUPPLIER FINANCE PROGRAMS (Outstanding Obligations) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureSupplierFinanceProgramsOutstandingObligationsDetails</Role>
      <ShortName>SUPPLIER FINANCE PROGRAMS (Outstanding Obligations) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureSupplierFinanceProgramsTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>99940901 - 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>67</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>99940902 - 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>68</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>99940903 - 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>69</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>99940904 - 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>70</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>99940905 - Disclosure - FINANCING (Principal Maturities of Financing Facilities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureFinancingPrincipalMaturitiesOfFinancingFacilitiesDetails</Role>
      <ShortName>FINANCING (Principal Maturities of Financing Facilities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureFinancingTables</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>99941001 - 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>72</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>99941101 - 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>73</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>99941102 - 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>74</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>99941201 - 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>75</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>99941301 - Disclosure - REVENUE (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureRevenueNarrativeDetails</Role>
      <ShortName>REVENUE (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureRevenueTables</ParentRole>
      <Position>76</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>99941302 - 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>77</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>99941401 - 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>78</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>99941402 - Disclosure - SHARE-BASED COMPENSATION AND BENEFIT PLANS (Restricted Stock) (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansRestrictedStockNarrativeDetails</Role>
      <ShortName>SHARE-BASED COMPENSATION AND BENEFIT PLANS (Restricted Stock) (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansTables</ParentRole>
      <Position>79</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>99941403 - Disclosure - SHARE-BASED COMPENSATION AND BENEFIT PLANS (Employee Stock Purchase Plan) (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansEmployeeStockPurchasePlanNarrativeDetails</Role>
      <ShortName>SHARE-BASED COMPENSATION AND BENEFIT PLANS (Employee Stock Purchase Plan) (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansTables</ParentRole>
      <Position>80</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>99941404 - Disclosure - SHARE-BASED COMPENSATION AND BENEFIT PLANS (Stock Appreciation Rights) (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansStockAppreciationRightsNarrativeDetails</Role>
      <ShortName>SHARE-BASED COMPENSATION AND BENEFIT PLANS (Stock Appreciation Rights) (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansTables</ParentRole>
      <Position>81</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>99941405 - 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>82</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>99941407 - Disclosure - SHARE-BASED COMPENSATION AND BENEFIT PLANS (Summary of Shares Authorized and Available for Future Issuance Under Benefit and Compensation Plans) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansSummaryOfSharesAuthorizedAndAvailableForFutureIssuanceUnderBenefitAndCompensationPlansDetails</Role>
      <ShortName>SHARE-BASED COMPENSATION AND BENEFIT PLANS (Summary of Shares Authorized and Available for Future Issuance Under Benefit and Compensation Plans) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansTables</ParentRole>
      <Position>83</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>99941408 - 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>84</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>99941409 - 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>85</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>99941410 - 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>86</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>99941411 - Disclosure - SHARE-BASED COMPENSATION AND BENEFIT PLANS (Summary of Restricted Stock) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansSummaryOfRestrictedStockDetails</Role>
      <ShortName>SHARE-BASED COMPENSATION AND BENEFIT PLANS (Summary of Restricted Stock) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansTables</ParentRole>
      <Position>87</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>99941412 - Disclosure - SHARE-BASED COMPENSATION AND BENEFIT PLANS (Restricted Stock Activity) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansRestrictedStockActivityDetails</Role>
      <ShortName>SHARE-BASED COMPENSATION AND BENEFIT PLANS (Restricted Stock Activity) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansTables</ParentRole>
      <Position>88</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>99941413 - Disclosure - SHARE-BASED COMPENSATION AND BENEFIT PLANS (Employee Stock Purchase Plan Activity) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansEmployeeStockPurchasePlanActivityDetails</Role>
      <ShortName>SHARE-BASED COMPENSATION AND BENEFIT PLANS (Employee Stock Purchase Plan Activity) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansTables</ParentRole>
      <Position>89</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>99941501 - Disclosure - COMMITMENTS (Commitments) (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureCommitmentsCommitmentsNarrativeDetails</Role>
      <ShortName>COMMITMENTS (Commitments) (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureCommitments</ParentRole>
      <Position>90</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>99941601 - Disclosure - RELATED PARTIES (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureRelatedPartiesNarrativeDetails</Role>
      <ShortName>RELATED PARTIES (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureRelatedParties</ParentRole>
      <Position>91</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>99941701 - Disclosure - INCOME TAXES (Provision for Income Taxes) (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureIncomeTaxesProvisionForIncomeTaxesNarrativeDetails</Role>
      <ShortName>INCOME TAXES (Provision for Income Taxes) (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureIncomeTaxesTables</ParentRole>
      <Position>92</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>99941702 - Disclosure - INCOME TAXES (Unrecognized Tax Benefits) (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureIncomeTaxesUnrecognizedTaxBenefitsNarrativeDetails</Role>
      <ShortName>INCOME TAXES (Unrecognized Tax Benefits) (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureIncomeTaxesTables</ParentRole>
      <Position>93</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>99941703 - Disclosure - INCOME TAXES (Components of Income from Continuing Operations) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureIncomeTaxesComponentsOfIncomeFromContinuingOperationsDetails</Role>
      <ShortName>INCOME TAXES (Components of Income from Continuing Operations) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureIncomeTaxesTables</ParentRole>
      <Position>94</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>99941704 - Disclosure - INCOME TAXES (Schedule of Components of the Provision for Income Taxes) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureIncomeTaxesScheduleOfComponentsOfProvisionForIncomeTaxesDetails</Role>
      <ShortName>INCOME TAXES (Schedule of Components of the Provision for Income Taxes) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureIncomeTaxesTables</ParentRole>
      <Position>95</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>99941705 - Disclosure - INCOME TAXES (Reconciliation of the Provision for Income Taxes to the Amounts Computed at the Federal Statutory Rate) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureIncomeTaxesReconciliationOfProvisionForIncomeTaxesToAmountsComputedAtFederalStatutoryRateDetails</Role>
      <ShortName>INCOME TAXES (Reconciliation of the Provision for Income Taxes to the Amounts Computed at the Federal Statutory Rate) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureIncomeTaxesTables</ParentRole>
      <Position>96</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>99941706 - Disclosure - INCOME TAXES (Income Taxes Paid) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureIncomeTaxesIncomeTaxesPaidDetails</Role>
      <ShortName>INCOME TAXES (Income Taxes Paid) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureIncomeTaxesTables</ParentRole>
      <Position>97</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>99941707 - Disclosure - INCOME TAXES (Schedule of Components of Deferred Tax Assets and Liabilities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureIncomeTaxesScheduleOfComponentsOfDeferredTaxAssetsAndLiabilitiesDetails</Role>
      <ShortName>INCOME TAXES (Schedule of Components of Deferred Tax Assets and Liabilities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureIncomeTaxesTables</ParentRole>
      <Position>98</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>99941708 - Disclosure - INCOME TAXES (Summary of Changes in Gross Amount of Unrecognized Tax Benefits) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oreillyauto.com/role/DisclosureIncomeTaxesSummaryOfChangesInGrossAmountOfUnrecognizedTaxBenefitsDetails</Role>
      <ShortName>INCOME TAXES (Summary of Changes in Gross Amount of Unrecognized Tax Benefits) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oreillyauto.com/role/DisclosureIncomeTaxesTables</ParentRole>
      <Position>99</Position>
    </Report>
    <Report instance="orly-20251231x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>99941801 - 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>100</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-20251231.xsd</File>
    <File>orly-20251231_cal.xml</File>
    <File>orly-20251231_def.xml</File>
    <File>orly-20251231_lab.xml</File>
    <File>orly-20251231_pre.xml</File>
    <File doctype="10-K" isDefinitelyFs="true" isUsgaap="true" original="orly-20251231x10k.htm">orly-20251231x10k.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>orly-20251231x10k003.jpg</File>
    <File>orly-20251231x10k007.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1">http://fasb.org/srt/2025</BaseTaxonomy>
    <BaseTaxonomy items="1145">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="15">http://xbrl.sec.gov/cyd/2025</BaseTaxonomy>
    <BaseTaxonomy items="38">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="11">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
