| | | | | | | | | | | | | | | | | | | | | |
<?xml version="1.0" encoding="windows-1252"?> |
<FilingSummary> |
| <Version> 3.24.0.1 </Version> |
| <ProcessingTime/> |
| <ReportFormat> html </ReportFormat> |
| <ContextCount> 226 </ContextCount> |
| <ElementCount> 443 </ElementCount> |
| <EntityCount> 1 </EntityCount> |
| <FootnotesReported> false </FootnotesReported> |
| <SegmentCount> 72 </SegmentCount> |
| <ScenarioCount> 0 </ScenarioCount> |
| <TuplesReported> false </TuplesReported> |
| <UnitCount> 11 </UnitCount> |
| <MyReports> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R1.htm </HtmlFileName> |
| | | <LongName> 00090 - 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-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R2.htm </HtmlFileName> |
| | | <LongName> 00100 - 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-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R3.htm </HtmlFileName> |
| | | <LongName> 00105 - 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-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R4.htm </HtmlFileName> |
| | | <LongName> 00200 - 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-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R5.htm </HtmlFileName> |
| | | <LongName> 00300 - 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-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R6.htm </HtmlFileName> |
| | | <LongName> 00400 - Statement - CONSOLIDATED STATEMENTS OF SHAREHOLDERS' EQUITY (DEFICIT) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.oreillyauto.com/role/StatementConsolidatedStatementsOfShareholdersEquityDeficit </Role> |
| | | <ShortName> CONSOLIDATED STATEMENTS OF SHAREHOLDERS' EQUITY (DEFICIT) </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 6 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R7.htm </HtmlFileName> |
| | | <LongName> 00500 - 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-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R8.htm </HtmlFileName> |
| | | <LongName> 10101 - 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-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R9.htm </HtmlFileName> |
| | | <LongName> 10201 - 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> 9 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R10.htm </HtmlFileName> |
| | | <LongName> 10301 - 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> 10 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R11.htm </HtmlFileName> |
| | | <LongName> 10401 - 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> 11 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R12.htm </HtmlFileName> |
| | | <LongName> 10501 - 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-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R13.htm </HtmlFileName> |
| | | <LongName> 10601 - 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> 13 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R14.htm </HtmlFileName> |
| | | <LongName> 10701 - 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> 14 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R15.htm </HtmlFileName> |
| | | <LongName> 10801 - Disclosure - FINANCING </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.oreillyauto.com/role/DisclosureFinancing </Role> |
| | | <ShortName> FINANCING </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 15 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R16.htm </HtmlFileName> |
| | | <LongName> 10901 - Disclosure - WARRANTIES </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.oreillyauto.com/role/DisclosureWarranties </Role> |
| | | <ShortName> WARRANTIES </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 16 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R17.htm </HtmlFileName> |
| | | <LongName> 11001 - 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> 17 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R18.htm </HtmlFileName> |
| | | <LongName> 11101 - 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> 18 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R19.htm </HtmlFileName> |
| | | <LongName> 11201 - Disclosure - REVENUE </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.oreillyauto.com/role/DisclosureRevenue </Role> |
| | | <ShortName> REVENUE </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 19 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R20.htm </HtmlFileName> |
| | | <LongName> 11301 - 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> 20 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R21.htm </HtmlFileName> |
| | | <LongName> 11401 - Disclosure - COMMITMENTS </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.oreillyauto.com/role/DisclosureCommitments </Role> |
| | | <ShortName> COMMITMENTS </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 21 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R22.htm </HtmlFileName> |
| | | <LongName> 11501 - Disclosure - RELATED PARTIES </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.oreillyauto.com/role/DisclosureRelatedParties </Role> |
| | | <ShortName> RELATED PARTIES </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 22 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R23.htm </HtmlFileName> |
| | | <LongName> 11601 - Disclosure - INCOME TAXES </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.oreillyauto.com/role/DisclosureIncomeTaxes </Role> |
| | | <ShortName> INCOME TAXES </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 23 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R24.htm </HtmlFileName> |
| | | <LongName> 11701 - 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> 24 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R25.htm </HtmlFileName> |
| | | <LongName> 11801 - Disclosure - QUARTERLY RESULTS (Unaudited) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.oreillyauto.com/role/DisclosureQuarterlyResultsUnaudited </Role> |
| | | <ShortName> QUARTERLY RESULTS (Unaudited) </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 25 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R26.htm </HtmlFileName> |
| | | <LongName> 11901 - Disclosure - SUBSEQUENT EVENT </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.oreillyauto.com/role/DisclosureSubsequentEvent </Role> |
| | | <ShortName> SUBSEQUENT EVENT </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 26 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R27.htm </HtmlFileName> |
| | | <LongName> 20102 - 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> 27 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R28.htm </HtmlFileName> |
| | | <LongName> 30103 - 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> 28 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R29.htm </HtmlFileName> |
| | | <LongName> 30203 - 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> 29 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R30.htm </HtmlFileName> |
| | | <LongName> 30303 - 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> 30 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R31.htm </HtmlFileName> |
| | | <LongName> 30403 - 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> 31 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R32.htm </HtmlFileName> |
| | | <LongName> 30503 - 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> 32 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R33.htm </HtmlFileName> |
| | | <LongName> 30603 - 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> 33 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R34.htm </HtmlFileName> |
| | | <LongName> 30803 - 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> 34 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R35.htm </HtmlFileName> |
| | | <LongName> 30903 - 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> 35 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R36.htm </HtmlFileName> |
| | | <LongName> 31003 - 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> 36 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R37.htm </HtmlFileName> |
| | | <LongName> 31103 - 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> 37 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R38.htm </HtmlFileName> |
| | | <LongName> 31203 - 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> 38 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R39.htm </HtmlFileName> |
| | | <LongName> 31303 - 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> 39 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R40.htm </HtmlFileName> |
| | | <LongName> 31603 - 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> 40 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R41.htm </HtmlFileName> |
| | | <LongName> 31703 - 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> 41 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R42.htm </HtmlFileName> |
| | | <LongName> 31803 - Disclosure - QUARTERLY RESULTS (Unaudited) (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.oreillyauto.com/role/DisclosureQuarterlyResultsUnauditedTables </Role> |
| | | <ShortName> QUARTERLY RESULTS (Unaudited) (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.oreillyauto.com/role/DisclosureQuarterlyResultsUnaudited </ParentRole> |
| | | <Position> 42 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R43.htm </HtmlFileName> |
| | | <LongName> 40101 - 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> 43 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R44.htm </HtmlFileName> |
| | | <LongName> 40102 - 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> 44 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R45.htm </HtmlFileName> |
| | | <LongName> 40201 - 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> 45 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R46.htm </HtmlFileName> |
| | | <LongName> 40202 - 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> 46 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R47.htm </HtmlFileName> |
| | | <LongName> 40203 - 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> 47 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R48.htm </HtmlFileName> |
| | | <LongName> 40301 - 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> 48 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R49.htm </HtmlFileName> |
| | | <LongName> 40401 - 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> 49 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R50.htm </HtmlFileName> |
| | | <LongName> 40402 - 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> 50 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R51.htm </HtmlFileName> |
| | | <LongName> 40501 - 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> 51 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R52.htm </HtmlFileName> |
| | | <LongName> 40502 - 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> 52 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R53.htm </HtmlFileName> |
| | | <LongName> 40503 - 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> 53 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R54.htm </HtmlFileName> |
| | | <LongName> 40504 - 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> 54 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R55.htm </HtmlFileName> |
| | | <LongName> 40601 - 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> 55 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R56.htm </HtmlFileName> |
| | | <LongName> 40602 - 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> 56 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R57.htm </HtmlFileName> |
| | | <LongName> 40603 - 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> 57 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R58.htm </HtmlFileName> |
| | | <LongName> 40604 - 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> 58 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R59.htm </HtmlFileName> |
| | | <LongName> 40701 - 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> 59 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R60.htm </HtmlFileName> |
| | | <LongName> 40801 - 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> 60 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R61.htm </HtmlFileName> |
| | | <LongName> 40802 - 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> 61 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R62.htm </HtmlFileName> |
| | | <LongName> 40803 - 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> 62 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R63.htm </HtmlFileName> |
| | | <LongName> 40804 - 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> 63 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R64.htm </HtmlFileName> |
| | | <LongName> 40805 - 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> 64 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R65.htm </HtmlFileName> |
| | | <LongName> 40901 - 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> 65 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R66.htm </HtmlFileName> |
| | | <LongName> 41001 - 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> 66 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R67.htm </HtmlFileName> |
| | | <LongName> 41002 - 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> 67 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R68.htm </HtmlFileName> |
| | | <LongName> 41101 - 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> 68 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R69.htm </HtmlFileName> |
| | | <LongName> 41201 - 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> 69 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R70.htm </HtmlFileName> |
| | | <LongName> 41202 - 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> 70 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R71.htm </HtmlFileName> |
| | | <LongName> 41301 - 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> 71 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R72.htm </HtmlFileName> |
| | | <LongName> 41302 - 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> 72 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R73.htm </HtmlFileName> |
| | | <LongName> 41303 - 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> 73 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R74.htm </HtmlFileName> |
| | | <LongName> 41304 - Disclosure - SHARE-BASED COMPENSATION AND BENEFIT PLANS (Profit Sharing and Savings Plan) (Narrative) (Detail) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansProfitSharingAndSavingsPlanNarrativeDetail </Role> |
| | | <ShortName> SHARE-BASED COMPENSATION AND BENEFIT PLANS (Profit Sharing and Savings Plan) (Narrative) (Detail) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansTables </ParentRole> |
| | | <Position> 74 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R75.htm </HtmlFileName> |
| | | <LongName> 41305 - Disclosure - SHARE-BASED COMPENSATION AND BENEFIT PLANS (Nonqualified Deferred Compensation Plan) (Narrative) (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansNonqualifiedDeferredCompensationPlanNarrativeDetails </Role> |
| | | <ShortName> SHARE-BASED COMPENSATION AND BENEFIT PLANS (Nonqualified Deferred Compensation Plan) (Narrative) (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.oreillyauto.com/role/DisclosureShareBasedCompensationAndBenefitPlansTables </ParentRole> |
| | | <Position> 75 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R76.htm </HtmlFileName> |
| | | <LongName> 41306 - 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> 76 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R77.htm </HtmlFileName> |
| | | <LongName> 41307 - 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> 77 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R78.htm </HtmlFileName> |
| | | <LongName> 41308 - 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> 78 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R79.htm </HtmlFileName> |
| | | <LongName> 41309 - 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> 79 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R80.htm </HtmlFileName> |
| | | <LongName> 41310 - 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> 80 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R81.htm </HtmlFileName> |
| | | <LongName> 41312 - 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> 81 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R82.htm </HtmlFileName> |
| | | <LongName> 41313 - 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> 82 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R83.htm </HtmlFileName> |
| | | <LongName> 41314 - 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> 83 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R84.htm </HtmlFileName> |
| | | <LongName> 41401 - 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> 84 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R85.htm </HtmlFileName> |
| | | <LongName> 41501 - 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> 85 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R86.htm </HtmlFileName> |
| | | <LongName> 41601 - 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> 86 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R87.htm </HtmlFileName> |
| | | <LongName> 41602 - 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> 87 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R88.htm </HtmlFileName> |
| | | <LongName> 41603 - 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> 88 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R89.htm </HtmlFileName> |
| | | <LongName> 41604 - 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> 89 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R90.htm </HtmlFileName> |
| | | <LongName> 41605 - 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> 90 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R91.htm </HtmlFileName> |
| | | <LongName> 41606 - 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> 91 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R92.htm </HtmlFileName> |
| | | <LongName> 41607 - 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> 92 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R93.htm </HtmlFileName> |
| | | <LongName> 41701 - 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> 93 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R94.htm </HtmlFileName> |
| | | <LongName> 41801 - Disclosure - QUARTERLY RESULTS (Unaudited) (Unaudited Operating Data) (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.oreillyauto.com/role/DisclosureQuarterlyResultsUnauditedUnauditedOperatingDataDetails </Role> |
| | | <ShortName> QUARTERLY RESULTS (Unaudited) (Unaudited Operating Data) (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.oreillyauto.com/role/DisclosureQuarterlyResultsUnauditedTables </ParentRole> |
| | | <Position> 94 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R95.htm </HtmlFileName> |
| | | <LongName> 41901 - Disclosure - SUBSEQUENT EVENT (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.oreillyauto.com/role/DisclosureSubsequentEventDetails </Role> |
| | | <ShortName> SUBSEQUENT EVENT (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.oreillyauto.com/role/DisclosureSubsequentEvent </ParentRole> |
| | | <Position> 95 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R96.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> Uncategorized </MenuCategory> |
| | | <Position> 96 </Position> |
| | | </Report> |
| | <Report instance="orly-20231231x10k.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R97.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> Cover </MenuCategory> |
| | | <Position> 97 </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-20231231.xsd </File> |
| | <File> orly-20231231_cal.xml </File> |
| | <File> orly-20231231_def.xml </File> |
| | <File> orly-20231231_lab.xml </File> |
| | <File> orly-20231231_pre.xml </File> |
| | <File doctype="10-K" isDefinitelyFs="true" isUsgaap="true" original="orly-20231231x10k.htm"> orly-20231231x10k.htm </File> |
| | </InputFiles> |
| <SupplementalFiles> |
| | <File> orly-20231231x10k003.jpg </File> |
| | <File> orly-20231231x10k007.jpg </File> |
| | </SupplementalFiles> |
| <BaseTaxonomies> |
| | <BaseTaxonomy items="1066"> http://fasb.org/us-gaap/2023 </BaseTaxonomy> |
| | <BaseTaxonomy items="38"> http://xbrl.sec.gov/dei/2023 </BaseTaxonomy> |
| | <BaseTaxonomy items="9"> http://xbrl.sec.gov/ecd/2023 </BaseTaxonomy> |
| | </BaseTaxonomies> |
| <HasPresentationLinkbase> true </HasPresentationLinkbase> |
| <HasCalculationLinkbase> true </HasCalculationLinkbase> |
| </FilingSummary> |