XML 17 R1.htm IDEA: XBRL DOCUMENT v3.24.0.1
Document and Entity Information - USD ($)
12 Months Ended
Dec. 31, 2023
Feb. 19, 2024
Jun. 30, 2023
Document and Entity Information      
Document type 10-K    
Document annual report true    
Document transition report false    
Amendment flag false    
Current fiscal year end date --12-31    
Document period end date Dec. 31, 2023    
Document fiscal year focus 2023    
Document fiscal period focus FY    
Entity registrant name O Reilly Automotive Inc    
Entity central index key 0000898173    
Entity incorporation, state MO    
Entity file number 000-21318    
Entity tax identification number 27-4358837    
Entity address, address 233 South Patterson Avenue    
Entity address, city Springfield    
Entity address, postal zip code 65802    
Entity address, state MO    
City area code 417    
Local phone number 862-6708    
Title of 12(b) security Common Stock    
Trading symbol ORLY    
Security exchange name NASDAQ    
Entity current reporting status Yes    
Entity well-known seasoned issuer Yes    
Entity voluntary filers No    
Entity filer category Large Accelerated Filer    
Entity small business false    
Entity emerging growth company false    
Entity interactive data current Yes    
ICFR auditor attestation flag true    
Entity shell company false    
Entity public float     $ 48,266,172,701
Entity common stock, shares outstanding   59,036,585  
Auditor Name Ernst & Young LLP    
Auditor Firm ID 42    
Auditor Location Kansas City, Missouri    
Document Financial Statement Error Correction [Flag] false