{
  "cik": 898173,
  "cik_padded": "0000898173",
  "entityName": "O REILLY AUTOMOTIVE INC",
  "fiscal_years": [
    {
      "accn": "0000898173-26-000009",
      "filed": "2026-02-27",
      "fiscal_year": 2025,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD"
      },
      "fundamentals": {
        "buybacks": 2096962000.0,
        "capex": 1168815000.0,
        "cash": 193793000.0,
        "cost_of_revenue": 8607851000.0,
        "eps_diluted": 2.97,
        "free_cash_flow": 1593178000.0,
        "gross_profit": 9174141000.0,
        "net_income": 2538209000.0,
        "operating_cash_flow": 2761993000.0,
        "operating_income": 3460612000.0,
        "revenue": 17781992000.0,
        "stockholders_equity": -763352000.0,
        "total_assets": 16538253000.0
      },
      "period_end": "2025-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio"
      },
      "ratios": {
        "gross_margin": 0.5159231316716373,
        "net_margin": 0.14274041963352588,
        "operating_margin": 0.19461329191915056,
        "revenue_growth_yoy": 0.0642495944723634,
        "roa_avg2y": 0.16150480303604028,
        "roa_period_end": 0.15347503753872915,
        "roe_avg2y": -2.378478695486557
      }
    },
    {
      "accn": "0000898173-26-000009",
      "filed": "2026-02-27",
      "fiscal_year": 2024,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD"
      },
      "fundamentals": {
        "buybacks": 2076529000.0,
        "capex": 1023387000.0,
        "cash": 130245000.0,
        "cost_of_revenue": 8153990000.0,
        "eps_diluted": 2.71,
        "free_cash_flow": 2026189000.0,
        "gross_profit": 8554489000.0,
        "net_income": 2386680000.0,
        "operating_cash_flow": 3049576000.0,
        "operating_income": 3251157000.0,
        "revenue": 16708479000.0,
        "stockholders_equity": -1370961000.0,
        "total_assets": 14893741000.0
      },
      "period_end": "2024-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio"
      },
      "ratios": {
        "gross_margin": 0.5119849029944616,
        "net_margin": 0.1428424454434183,
        "operating_margin": 0.19458126619424784,
        "revenue_growth_yoy": 0.056679409951145475,
        "roa_avg2y": 0.16593331965086341,
        "roa_period_end": 0.1602471803424002,
        "roe_avg2y": -1.534724501879116
      }
    },
    {
      "accn": "0000898173-26-000009",
      "filed": "2026-02-27",
      "fiscal_year": 2023,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD"
      },
      "fundamentals": {
        "buybacks": 3151155000.0,
        "capex": 1006264000.0,
        "cash": 279132000.0,
        "cost_of_revenue": 7707447000.0,
        "eps_diluted": 2.56,
        "free_cash_flow": 2027820000.0,
        "gross_profit": 8104803000.0,
        "net_income": 2346581000.0,
        "operating_cash_flow": 3034084000.0,
        "operating_income": 3186376000.0,
        "revenue": 15812250000.0,
        "stockholders_equity": -1739278000.0,
        "total_assets": 13872995000.0
      },
      "period_end": "2023-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio"
      },
      "ratios": {
        "gross_margin": 0.5125648152539961,
        "net_margin": 0.14840272573479424,
        "operating_margin": 0.20151313064238172,
        "revenue_growth_yoy": 0.0973215562122047,
        "roa_avg2y": 0.1770939437924055,
        "roa_period_end": 0.1691473975158212,
        "roe_avg2y": -1.6761113273786352
      }
    },
    {
      "accn": "0000898173-26-000009",
      "filed": "2026-02-27",
      "fiscal_year": 2022,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD"
      },
      "fundamentals": {
        "buybacks": 3282265000.0,
        "capex": 563342000.0,
        "cash": 108583000.0,
        "cost_of_revenue": 7028154000.0,
        "eps_diluted": 33.44,
        "free_cash_flow": 2584908000.0,
        "gross_profit": 7381706000.0,
        "net_income": 2172650000.0,
        "operating_cash_flow": 3148250000.0,
        "operating_income": 2954491000.0,
        "revenue": 14409860000.0,
        "stockholders_equity": -1060752000.0,
        "total_assets": 12627979000.0
      },
      "period_end": "2022-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio"
      },
      "ratios": {
        "gross_margin": 0.51226771113668,
        "net_margin": 0.15077523306957874,
        "operating_margin": 0.2050325957365304,
        "revenue_growth_yoy": 0.08120741954099185,
        "roa_avg2y": 0.1784760357118008,
        "roa_period_end": 0.17205049200667819,
        "roe_avg2y": -3.8550358196375893
      }
    },
    {
      "accn": "0000898173-25-000008",
      "filed": "2025-02-28",
      "fiscal_year": 2021,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD"
      },
      "fundamentals": {
        "buybacks": 2476048000.0,
        "capex": 442853000.0,
        "cash": 362113000.0,
        "cost_of_revenue": 6307614000.0,
        "eps_diluted": 31.1,
        "free_cash_flow": 2764457000.0,
        "gross_profit": 7019949000.0,
        "net_income": 2164685000.0,
        "operating_cash_flow": 3207310000.0,
        "operating_income": 2917168000.0,
        "revenue": 13327563000.0,
        "stockholders_equity": -66423000.0,
        "total_assets": 11718707000.0
      },
      "period_end": "2021-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio"
      },
      "ratios": {
        "gross_margin": 0.5267241280345102,
        "net_margin": 0.1624216670369519,
        "operating_margin": 0.21888232679898043,
        "revenue_growth_yoy": 0.1484830056771976,
        "roa_avg2y": 0.18568754857583303,
        "roa_period_end": 0.18472046446762427,
        "roe_avg2y": 58.63574185684296
      }
    },
    {
      "accn": "0000898173-24-000009",
      "filed": "2024-02-28",
      "fiscal_year": 2020,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD"
      },
      "fundamentals": {
        "buybacks": 2087194000.0,
        "capex": 465579000.0,
        "cash": 465640000.0,
        "cost_of_revenue": 5518801000.0,
        "eps_diluted": 23.53,
        "free_cash_flow": 2371024000.0,
        "gross_profit": 6085692000.0,
        "net_income": 1752302000.0,
        "operating_cash_flow": 2836603000.0,
        "operating_income": 2419336000.0,
        "revenue": 11604493000.0,
        "stockholders_equity": 140258000.0,
        "total_assets": 11596642000.0
      },
      "period_end": "2020-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio"
      },
      "ratios": {
        "gross_margin": 0.5244254962280558,
        "net_margin": 0.1510020299895911,
        "operating_margin": 0.208482697175999,
        "revenue_growth_yoy": 0.1433014925637821,
        "roa_avg2y": 0.15705992192634854,
        "roa_period_end": 0.15110425931920637,
        "roe_avg2y": 6.519004907012303
      }
    },
    {
      "accn": "0000898173-23-000011",
      "filed": "2023-02-28",
      "fiscal_year": 2019,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD"
      },
      "fundamentals": {
        "buybacks": 1432791000.0,
        "capex": 628057000.0,
        "cash": 40406000.0,
        "cost_of_revenue": 4755294000.0,
        "eps_diluted": 17.88,
        "free_cash_flow": 1080422000.0,
        "gross_profit": 5394691000.0,
        "net_income": 1391042000.0,
        "operating_cash_flow": 1708479000.0,
        "operating_income": 1920726000.0,
        "revenue": 10149985000.0,
        "stockholders_equity": 397340000.0,
        "total_assets": 10717160000.0
      },
      "period_end": "2019-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio"
      },
      "ratios": {
        "gross_margin": 0.5314974357104961,
        "net_margin": 0.13704867544139226,
        "operating_margin": 0.18923436832665272,
        "revenue_growth_yoy": 0.06433824069137836,
        "roa_avg2y": 0.14879086470927907,
        "roa_period_end": 0.12979576678896274,
        "roe_avg2y": 3.704471462982369
      }
    },
    {
      "accn": "0000898173-22-000012",
      "filed": "2022-02-28",
      "fiscal_year": 2018,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD"
      },
      "fundamentals": {
        "buybacks": 1714013000.0,
        "capex": 504268000.0,
        "cash": 31315000.0,
        "cost_of_revenue": 4496462000.0,
        "eps_diluted": 16.1,
        "free_cash_flow": 1223287000.0,
        "gross_profit": 5039966000.0,
        "net_income": 1324487000.0,
        "operating_cash_flow": 1727555000.0,
        "operating_income": 1815184000.0,
        "revenue": 9536428000.0,
        "stockholders_equity": 353667000.0,
        "total_assets": 7980789000.0
      },
      "period_end": "2018-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio"
      },
      "ratios": {
        "gross_margin": 0.5284962042391553,
        "net_margin": 0.13888711790200692,
        "operating_margin": 0.19034212810079412,
        "revenue_growth_yoy": 0.06223201732821875,
        "roa_avg2y": 0.1703227367846841,
        "roa_period_end": 0.16595940576802617,
        "roe_avg2y": 2.6313100158635083
      }
    },
    {
      "accn": "0000898173-21-000012",
      "filed": "2021-02-26",
      "fiscal_year": 2017,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD"
      },
      "fundamentals": {
        "buybacks": 2172530000.0,
        "capex": 465940000.0,
        "cash": 46348000.0,
        "cost_of_revenue": 4257043000.0,
        "eps_diluted": 12.67,
        "free_cash_flow": 937747000.0,
        "gross_profit": 4720683000.0,
        "net_income": 1133804000.0,
        "operating_cash_flow": 1403687000.0,
        "operating_income": 1725400000.0,
        "revenue": 8977726000.0,
        "stockholders_equity": 653046000.0,
        "total_assets": 7571885000.0
      },
      "period_end": "2017-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio"
      },
      "ratios": {
        "gross_margin": 0.5258216835755514,
        "net_margin": 0.12629077786512977,
        "operating_margin": 0.19218675196814872,
        "revenue_growth_yoy": 0.04476035179869979,
        "roa_avg2y": 0.15346485135361396,
        "roa_period_end": 0.14973867141405345,
        "roe_avg2y": 0.9944855279096142
      }
    },
    {
      "accn": "0000898173-20-000007",
      "filed": "2020-02-28",
      "fiscal_year": 2016,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD"
      },
      "fundamentals": {
        "buybacks": 1505437000.0,
        "capex": 476344000.0,
        "cash": 146598000.0,
        "cost_of_revenue": 4084085000.0,
        "eps_diluted": 10.73,
        "free_cash_flow": 1034369000.0,
        "gross_profit": 4509011000.0,
        "net_income": 1037691000.0,
        "operating_cash_flow": 1510713000.0,
        "operating_income": 1699206000.0,
        "revenue": 8593096000.0,
        "stockholders_equity": 1627136000.0,
        "total_assets": 7204189000.0
      },
      "period_end": "2016-12-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "roa_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.5247248488786812,
        "net_margin": 0.1207586881375467,
        "operating_margin": 0.19774083752817379,
        "roa_period_end": 0.14403994675875384
      }
    }
  ],
  "latest_filing": {
    "accn": "0000898173-26-000009",
    "filed": "2026-02-27",
    "form": "10-K"
  },
  "note": "Static grepcent export of verified SEC companyfacts-derived values. Monetary values are raw reported units from grepcent's resolved facts; no scaling and no FX conversion. Capex, dividends, and buybacks are reported as positive outflow magnitudes. ROE/ROA include both period-end basis (site-consistent) and average-of-two-years basis where the prior-year denominator exists.",
  "schema_version": "1",
  "sic": "5531",
  "sic_description": "Retail-Auto & Home Supply Stores",
  "source_urls": {
    "sec_companyfacts": "https://data.sec.gov/api/xbrl/companyfacts/CIK0000898173.json",
    "sec_submissions": "https://data.sec.gov/submissions/CIK0000898173.json"
  },
  "ticker": "ORLY"
}
