2.2.0.7 true Exit Activities Narrative (Details) (USD $) 40502 - Disclosure - Exit Activities Narrative (Details) true false In Millions false false 1 USD true false false false Store Closing Liabilities [Member] us-gaap_RestructuringAndRelatedCostByTypeOfRestructuringAxis xbrldi http://xbrl.org/2006/xbrldi us-gaap_FacilityClosingMember us-gaap_RestructuringAndRelatedCostByTypeOfRestructuringAxis explicitMember Unit12 Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 $ 1 0 na true na na No definition available. false true false false false false false false false false false http://www.oreillyauto.com/role/disclosureexitactivitiesnarrativedetails false 1 false false false false 0 0 false false false false 1 USD true false false false Store Closing Liabilities [Member] us-gaap_RestructuringAndRelatedCostByTypeOfRestructuringAxis xbrldi http://xbrl.org/2006/xbrldi us-gaap_FacilityClosingMember us-gaap_RestructuringAndRelatedCostByTypeOfRestructuringAxis explicitMember Unit12 Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 $ na No definition available. No authoritative reference available. false 2 2 orly_CumulativeAmountIncurredForExitActivities orly false debit duration Cumulative amount of cash paid, to date, to fully or partially settle a specified, previously accrued type of restructuring... false false false false false false false false false false false label false 1 true true false false 22700000 22.7 false false false xbrli:monetaryItemType monetary Cumulative amount of cash paid, to date, to fully or partially settle a specified, previously accrued type of restructuring cost. No authoritative reference available. false 3 0 na true na na No definition available. false true false false false false false false false false false http://www.oreillyauto.com/role/disclosureexitactivitiesnarrativedetails false 1 false false false false 0 0 false false false false 2 USD true false false false Administrative Office and Distribution Facilities Closure Liabilities [Member] us-gaap_RestructuringAndRelatedCostByTypeOfRestructuringAxis xbrldi http://xbrl.org/2006/xbrldi orly_AdministrativeOfficeAndDistributionFacilitiesClosureMember us-gaap_RestructuringAndRelatedCostByTypeOfRestructuringAxis explicitMember Unit12 Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 $ na No definition available. No authoritative reference available. false 4 2 orly_CumulativeAmountIncurredForExitActivities orly false debit duration Cumulative amount of cash paid, to date, to fully or partially settle a specified, previously accrued type of restructuring... false false false false false false false false false false false label false 1 false true false false 9300000 9.3 false false false xbrli:monetaryItemType monetary Cumulative amount of cash paid, to date, to fully or partially settle a specified, previously accrued type of restructuring cost. No authoritative reference available. false 5 0 na true na na No definition available. false true false false false false false false false false false http://www.oreillyauto.com/role/disclosureexitactivitiesnarrativedetails false 1 false false false false 0 0 false false false false 3 USD true false false false Employee Separation Liabilities [Member] us-gaap_RestructuringAndRelatedCostByTypeOfRestructuringAxis xbrldi http://xbrl.org/2006/xbrldi us-gaap_EmployeeSeveranceMember us-gaap_RestructuringAndRelatedCostByTypeOfRestructuringAxis explicitMember Unit12 Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 $ na No definition available. No authoritative reference available. false 6 2 orly_CumulativeAmountIncurredForExitActivities orly false debit duration Cumulative amount of cash paid, to date, to fully or partially settle a specified, previously accrued type of restructuring... false false false false false false false false false false false label false 1 true true false false 29400000 29.4 false false false xbrli:monetaryItemType monetary Cumulative amount of cash paid, to date, to fully or partially settle a specified, previously accrued type of restructuring cost. No authoritative reference available. false 1 6 false HundredThousands UnKnown UnKnown false true