{
  "cik": 1170010,
  "cik_padded": "0001170010",
  "entityName": "CARMAX INC",
  "fiscal_years": [
    {
      "accn": "0001170010-26-000021",
      "filed": "2026-04-15",
      "fiscal_year": 2026,
      "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",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 642786000.0,
        "capex": 540989000.0,
        "cash": 122826000.0,
        "cost_of_revenue": 23074538000.0,
        "eps_diluted": 1.68,
        "free_cash_flow": 1242858000.0,
        "gross_profit": 2806593000.0,
        "net_income": 247290000.0,
        "operating_cash_flow": 1783847000.0,
        "revenue": 25881131000.0,
        "stockholders_equity": 5888856000.0,
        "total_assets": 26367903000.0,
        "total_liabilities": 20479047000.0
      },
      "period_end": "2026-02-28",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.10844166740626598,
        "leverage": 3.4775934408992173,
        "net_margin": 0.0095548374605422,
        "revenue_growth_yoy": -0.01792135517894831,
        "roa_avg2y": 0.00919770507792432,
        "roa_period_end": 0.009378447728664658,
        "roe_avg2y": 0.040767091960628575,
        "roe_period_end": 0.04199287603568503
      }
    },
    {
      "accn": "0001170010-26-000021",
      "filed": "2026-04-15",
      "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",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 428453000.0,
        "capex": 467939000.0,
        "cash": 246960000.0,
        "cost_of_revenue": 23455519000.0,
        "eps_diluted": 3.21,
        "free_cash_flow": 156500000.0,
        "gross_profit": 2897901000.0,
        "net_income": 500556000.0,
        "operating_cash_flow": 624439000.0,
        "revenue": 26353420000.0,
        "stockholders_equity": 6242988000.0,
        "total_assets": 27404206000.0,
        "total_liabilities": 21161218000.0
      },
      "period_end": "2025-02-28",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.10996299531521905,
        "leverage": 3.389597737493649,
        "net_margin": 0.018993967386396148,
        "revenue_growth_yoy": -0.006881961287366163,
        "roa_avg2y": 0.01833504780122812,
        "roa_period_end": 0.018265663307303996,
        "roe_avg2y": 0.08128067779040017,
        "roe_period_end": 0.08017891432756238
      }
    },
    {
      "accn": "0001170010-26-000021",
      "filed": "2026-04-15",
      "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",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 94086000.0,
        "capex": 465307000.0,
        "cash": 574142000.0,
        "cost_of_revenue": 23822831000.0,
        "eps_diluted": 3.02,
        "free_cash_flow": -6690000.0,
        "gross_profit": 2713209000.0,
        "net_income": 479204000.0,
        "operating_cash_flow": 458617000.0,
        "revenue": 26536040000.0,
        "stockholders_equity": 6073740000.0,
        "total_assets": 27196797000.0,
        "total_liabilities": 21123057000.0
      },
      "period_end": "2024-02-29",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.10224619046398785,
        "leverage": 3.477767734542473,
        "net_margin": 0.018058610101582603,
        "revenue_growth_yoy": -0.10607534012357069,
        "roa_avg2y": 0.01795459694261469,
        "roa_period_end": 0.01761986898677811,
        "roe_avg2y": 0.08200761593169466,
        "roe_period_end": 0.0788976808358606
      }
    },
    {
      "accn": "0001170010-26-000021",
      "filed": "2026-04-15",
      "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",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 333932000.0,
        "capex": 422710000.0,
        "cash": 314758000.0,
        "cost_of_revenue": 26884670000.0,
        "eps_diluted": 3.03,
        "free_cash_flow": 860622000.0,
        "gross_profit": 2800203000.0,
        "net_income": 484762000.0,
        "operating_cash_flow": 1283332000.0,
        "revenue": 29684873000.0,
        "stockholders_equity": 5613077000.0,
        "total_assets": 26182736000.0,
        "total_liabilities": 20569659000.0
      },
      "period_end": "2023-02-28",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.09433097456741688,
        "leverage": 3.66459590702212,
        "net_margin": 0.016330270302992368,
        "revenue_growth_yoy": -0.06945173623462919,
        "roa_avg2y": 0.018459739913558385,
        "roa_period_end": 0.018514566239372386,
        "roe_avg2y": 0.0893692741016375,
        "roe_period_end": 0.08636296990046635
      }
    },
    {
      "accn": "0001170010-25-000024",
      "filed": "2025-04-11",
      "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",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 576478000.0,
        "capex": 308534000.0,
        "cash": 102716000.0,
        "cost_of_revenue": 28612870000.0,
        "eps_diluted": 6.97,
        "free_cash_flow": -2857984000.0,
        "gross_profit": 3287542000.0,
        "net_income": 1151297000.0,
        "operating_cash_flow": -2549450000.0,
        "revenue": 31900412000.0,
        "stockholders_equity": 5235439000.0,
        "total_assets": 26338264000.0,
        "total_liabilities": 21102825000.0
      },
      "period_end": "2022-02-28",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.10305641193599631,
        "leverage": 4.030765137364794,
        "net_margin": 0.036090348927154924,
        "revenue_growth_yoy": 0.6833858140112777,
        "roa_avg2y": 0.04809113153238615,
        "roa_period_end": 0.04371195459199589,
        "roe_avg2y": 0.23985224246701997,
        "roe_period_end": 0.21990457724748583
      }
    },
    {
      "accn": "0001170010-24-000034",
      "filed": "2024-04-15",
      "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",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 229938000.0,
        "capex": 164536000.0,
        "cash": 132319000.0,
        "cost_of_revenue": 16571024000.0,
        "eps_diluted": 4.52,
        "free_cash_flow": 503224000.0,
        "gross_profit": 2379125000.0,
        "net_income": 746919000.0,
        "operating_cash_flow": 667760000.0,
        "revenue": 18950149000.0,
        "stockholders_equity": 4364613000.0,
        "total_assets": 21541541000.0,
        "total_liabilities": 17176928000.0
      },
      "period_end": "2021-02-28",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.12554650625702204,
        "leverage": 3.935498519570922,
        "net_margin": 0.03941494074795929,
        "revenue_growth_yoy": -0.06741333053018193,
        "roa_avg2y": 0.03504710276012257,
        "roa_period_end": 0.03467342470995924,
        "roe_avg2y": 0.18366511390930926,
        "roe_period_end": 0.17113063632445763
      }
    },
    {
      "accn": "0001170010-23-000010",
      "filed": "2023-04-13",
      "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",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 567747000.0,
        "capex": 331896000.0,
        "cash": 58211000.0,
        "cost_of_revenue": 17597647000.0,
        "eps_diluted": 5.33,
        "free_cash_flow": -568502000.0,
        "gross_profit": 2722340000.0,
        "net_income": 888433000.0,
        "operating_cash_flow": -236606000.0,
        "revenue": 20319987000.0,
        "stockholders_equity": 3768875000.0,
        "total_assets": 21082182000.0,
        "total_liabilities": 17313307000.0
      },
      "period_end": "2020-02-29",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.13397351090825008,
        "leverage": 4.593759941627144,
        "net_margin": 0.043722124428524495,
        "revenue_growth_yoy": 0.11813543093913531,
        "roa_avg2y": 0.044644819407131886,
        "roa_period_end": 0.04214141591226183,
        "roe_avg2y": 0.24935309952998239,
        "roe_period_end": 0.2357289642134589
      }
    },
    {
      "accn": "0001170010-22-000017",
      "filed": "2022-04-14",
      "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",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 904726000.0,
        "capex": 304636000.0,
        "cash": 46938000.0,
        "cost_of_revenue": 15692509000.0,
        "eps_diluted": 4.79,
        "free_cash_flow": -141665000.0,
        "gross_profit": 2480591000.0,
        "net_income": 842413000.0,
        "operating_cash_flow": 162971000.0,
        "revenue": 18173100000.0,
        "stockholders_equity": 3357028000.0,
        "total_assets": 18717867000.0,
        "total_liabilities": 15360839000.0
      },
      "period_end": "2019-02-28",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.13649795576979162,
        "leverage": 4.575725612059238,
        "net_margin": 0.046354942194782395,
        "revenue_growth_yoy": 0.061499891736134765,
        "roa_avg2y": 0.04653683381339355,
        "roa_period_end": 0.04500582251172102,
        "roe_avg2y": 0.2524508617704522,
        "roe_period_end": 0.2509401172703951
      }
    },
    {
      "accn": "0001170010-21-000053",
      "filed": "2021-04-20",
      "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",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 579570000.0,
        "capex": 296816000.0,
        "cash": 44525000.0,
        "cost_of_revenue": 14791350000.0,
        "eps_diluted": 3.6,
        "free_cash_flow": -377366000.0,
        "gross_profit": 2328859000.0,
        "net_income": 664112000.0,
        "operating_cash_flow": -80550000.0,
        "revenue": 17120209000.0,
        "stockholders_equity": 3316849000.0,
        "total_assets": 17486272000.0,
        "total_liabilities": 14169423000.0
      },
      "period_end": "2018-02-28",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.13602982300040847,
        "leverage": 4.27195298911708,
        "net_margin": 0.03879111522528726,
        "revenue_growth_yoy": 0.07843034615553723,
        "roa_avg2y": 0.03933657031345604,
        "roa_period_end": 0.03797905007997131,
        "roe_avg2y": 0.2067136684570011,
        "roe_period_end": 0.20022376659293203
      }
    },
    {
      "accn": "0001170010-20-000033",
      "filed": "2020-04-21",
      "fiscal_year": 2017,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "gross_profit": "USD",
        "net_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 564337000.0,
        "capex": 418144000.0,
        "cash": 38416000.0,
        "cost_of_revenue": 13691824000.0,
        "eps_diluted": 3.26,
        "gross_profit": 2183294000.0,
        "net_income": 626970000.0,
        "revenue": 15875118000.0,
        "stockholders_equity": 3108580000.0,
        "total_assets": 16279356000.0,
        "total_liabilities": 13170776000.0
      },
      "period_end": "2017-02-28",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "roa_period_end": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.1375293084435656,
        "leverage": 4.236910743812287,
        "net_margin": 0.03949387966754011,
        "roa_period_end": 0.0385131942565787,
        "roe_period_end": 0.20169016078080668
      }
    },
    {
      "accn": "0001193125-12-182512",
      "filed": "2012-04-25",
      "fiscal_year": 2012,
      "form": "10-K",
      "fundamental_units": {
        "operating_cash_flow": "USD"
      },
      "fundamentals": {
        "operating_cash_flow": -62164000.0
      },
      "period_end": "2012-02-29",
      "ratios": {}
    }
  ],
  "latest_filing": {
    "accn": "0001170010-26-000021",
    "filed": "2026-04-15",
    "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": "5500",
  "sic_description": "Retail-Auto Dealers & Gasoline Stations",
  "source_urls": {
    "sec_companyfacts": "https://data.sec.gov/api/xbrl/companyfacts/CIK0001170010.json",
    "sec_submissions": "https://data.sec.gov/submissions/CIK0001170010.json"
  },
  "ticker": "KMX"
}
