{
  "cik": 744187,
  "cik_padded": "0000744187",
  "entityName": "REX AMERICAN RESOURCES Corp",
  "fiscal_years": [
    {
      "accn": "0000930413-26-000937",
      "filed": "2026-03-30",
      "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"
      },
      "fundamentals": {
        "buybacks": 33383000.0,
        "capex": 68439000.0,
        "cash": 188734000.0,
        "cost_of_revenue": 556781000.0,
        "eps_diluted": 2.5,
        "free_cash_flow": 49390000.0,
        "gross_profit": 93706000.0,
        "net_income": 95074000.0,
        "operating_cash_flow": 117829000.0,
        "revenue": 650487000.0,
        "stockholders_equity": 610712000.0,
        "total_assets": 797731000.0
      },
      "period_end": "2026-01-31",
      "ratio_units": {
        "gross_margin": "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.14405514637494676,
        "net_margin": 0.14615818609749312,
        "revenue_growth_yoy": 0.012445310517968345,
        "roa_avg2y": 0.12528372796640266,
        "roa_period_end": 0.1191805257662044,
        "roe_avg2y": 0.16237407657578803,
        "roe_period_end": 0.15567730779811106
      }
    },
    {
      "accn": "0000930413-26-000937",
      "filed": "2026-03-30",
      "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"
      },
      "fundamentals": {
        "buybacks": 14741000.0,
        "capex": 71318000.0,
        "cash": 196255000.0,
        "cost_of_revenue": 551014000.0,
        "eps_diluted": 1.65,
        "free_cash_flow": -7126000.0,
        "gross_profit": 91477000.0,
        "net_income": 71486000.0,
        "operating_cash_flow": 64192000.0,
        "revenue": 642491000.0,
        "stockholders_equity": 560337000.0,
        "total_assets": 720008000.0
      },
      "period_end": "2025-01-31",
      "ratio_units": {
        "gross_margin": "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.14237864810557657,
        "net_margin": 0.11126381536861996,
        "revenue_growth_yoy": -0.22905767329346377,
        "roa_avg2y": 0.1032430441721247,
        "roa_period_end": 0.09928500794435617,
        "roe_avg2y": 0.13308944338169243,
        "roe_period_end": 0.12757679753434095
      }
    },
    {
      "accn": "0000930413-26-000937",
      "filed": "2026-03-30",
      "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"
      },
      "fundamentals": {
        "buybacks": 0.0,
        "capex": 37663000.0,
        "cash": 223397000.0,
        "cost_of_revenue": 735166000.0,
        "eps_diluted": 1.73,
        "free_cash_flow": 90307000.0,
        "gross_profit": 98218000.0,
        "net_income": 75924000.0,
        "operating_cash_flow": 127970000.0,
        "revenue": 833384000.0,
        "stockholders_equity": 513918000.0,
        "total_assets": 664802000.0
      },
      "period_end": "2024-01-31",
      "ratio_units": {
        "gross_margin": "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.11785443445038542,
        "net_margin": 0.09110326092173596,
        "revenue_growth_yoy": -0.02528187134502924,
        "roa_avg2y": 0.12202693548037137,
        "roa_period_end": 0.11420543259496813,
        "roe_avg2y": 0.1578625636760578,
        "roe_period_end": 0.14773563097614795
      }
    },
    {
      "accn": "0000930413-25-001069",
      "filed": "2025-03-28",
      "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"
      },
      "fundamentals": {
        "buybacks": 13012000.0,
        "capex": 15578000.0,
        "cash": 69612000.0,
        "cost_of_revenue": 806398000.0,
        "eps_diluted": 1.57,
        "free_cash_flow": 39217000.0,
        "gross_profit": 48602000.0,
        "net_income": 37937000.0,
        "operating_cash_flow": 54795000.0,
        "revenue": 855000000.0,
        "stockholders_equity": 447982000.0,
        "total_assets": 579579000.0
      },
      "period_end": "2023-01-31",
      "ratio_units": {
        "gross_margin": "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.05684444444444445,
        "net_margin": 0.04437076023391813,
        "revenue_growth_yoy": 0.10350773487936273,
        "roa_avg2y": 0.0671486981609643,
        "roa_period_end": 0.06545613281364576,
        "roe_avg2y": 0.08634074289862922,
        "roe_period_end": 0.0846842060618507
      }
    },
    {
      "accn": "0000930413-24-001186",
      "filed": "2024-03-29",
      "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"
      },
      "fundamentals": {
        "buybacks": 6627000.0,
        "capex": 5126000.0,
        "cash": 229846000.0,
        "cost_of_revenue": 684173000.0,
        "eps_diluted": 2.92,
        "free_cash_flow": 86585000.0,
        "gross_profit": 90629000.0,
        "net_income": 61202000.0,
        "operating_cash_flow": 91711000.0,
        "revenue": 774802000.0,
        "stockholders_equity": 430792000.0,
        "total_assets": 550361000.0
      },
      "period_end": "2022-01-31",
      "ratio_units": {
        "gross_margin": "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.11697052924489096,
        "net_margin": 0.07899050338021843,
        "revenue_growth_yoy": 1.0790900113775412,
        "roa_avg2y": 0.11887276562436268,
        "roa_period_end": 0.11120337378556984,
        "roe_avg2y": 0.1500830702265273,
        "roe_period_end": 0.1420685620902895
      }
    },
    {
      "accn": "0000930413-23-001143",
      "filed": "2023-03-30",
      "fiscal_year": 2021,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD"
      },
      "fundamentals": {
        "buybacks": 19629000.0,
        "capex": 10412000.0,
        "cash": 144501000.0,
        "cost_of_revenue": 353131000.0,
        "free_cash_flow": -1789000.0,
        "gross_profit": 19533000.0,
        "net_income": 5618000.0,
        "operating_cash_flow": 8623000.0,
        "revenue": 372664000.0,
        "stockholders_equity": 384783000.0,
        "total_assets": 479345000.0
      },
      "period_end": "2021-01-31",
      "ratio_units": {
        "gross_margin": "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.052414507438335874,
        "net_margin": 0.01507524204108795,
        "revenue_growth_yoy": -0.10781900885803208,
        "roa_avg2y": 0.011467096393620637,
        "roa_period_end": 0.011720159801395654,
        "roe_avg2y": 0.014298985734101986,
        "roe_period_end": 0.014600437129498964
      }
    },
    {
      "accn": "0000930413-22-000653",
      "filed": "2022-04-06",
      "fiscal_year": 2020,
      "form": "10-K",
      "fundamental_units": {
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD"
      },
      "fundamentals": {
        "capex": 3776000.0,
        "cash": 179658000.0,
        "cost_of_revenue": 397298000.0,
        "free_cash_flow": 6567000.0,
        "gross_profit": 20402000.0,
        "net_income": 11644000.0,
        "operating_cash_flow": 10343000.0,
        "revenue": 417700000.0,
        "stockholders_equity": 401007000.0,
        "total_assets": 500502000.0
      },
      "period_end": "2020-01-31",
      "ratio_units": {
        "gross_margin": "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.048843667704093846,
        "net_margin": 0.02787646636341872,
        "revenue_growth_yoy": -0.1417199709865597,
        "roa_avg2y": 0.02396143616337156,
        "roa_period_end": 0.023264642299131673,
        "roe_avg2y": 0.029332043569823565,
        "roe_period_end": 0.029036899605243794
      }
    },
    {
      "accn": "0000930413-21-000765",
      "filed": "2021-04-12",
      "fiscal_year": 2019,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD"
      },
      "fundamentals": {
        "buybacks": 21855000.0,
        "capex": 10775000.0,
        "cash": 188531000.0,
        "cost_of_revenue": 456456000.0,
        "free_cash_flow": 37156000.0,
        "gross_profit": 30215000.0,
        "net_income": 37510000.0,
        "operating_cash_flow": 47931000.0,
        "revenue": 486671000.0,
        "stockholders_equity": 392937000.0,
        "total_assets": 471393000.0
      },
      "period_end": "2019-01-31",
      "ratio_units": {
        "gross_margin": "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.0620850636261458,
        "net_margin": 0.07707465618456821,
        "revenue_growth_yoy": 0.0753116534758035,
        "roa_avg2y": 0.0789470637943209,
        "roa_period_end": 0.07957267078637145,
        "roe_avg2y": 0.09687137232722431,
        "roe_period_end": 0.09546059546441286
      }
    },
    {
      "accn": "0000930413-20-000944",
      "filed": "2020-04-01",
      "fiscal_year": 2018,
      "form": "10-K",
      "fundamental_units": {
        "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"
      },
      "fundamentals": {
        "capex": 24017000.0,
        "cash": 190988000.0,
        "cost_of_revenue": 408425000.0,
        "eps_diluted": 6.02,
        "free_cash_flow": 16952000.0,
        "gross_profit": 44161000.0,
        "net_income": 44912000.0,
        "operating_cash_flow": 40969000.0,
        "revenue": 452586000.0,
        "stockholders_equity": 381492000.0,
        "total_assets": 478864000.0
      },
      "period_end": "2018-01-31",
      "ratio_units": {
        "gross_margin": "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.0975748255580155,
        "net_margin": 0.0992341786975293,
        "revenue_growth_yoy": -0.0026729895834940137,
        "roa_avg2y": 0.09628594214953992,
        "roa_period_end": 0.09378863309833273,
        "roe_avg2y": 0.12442255241873486,
        "roe_period_end": 0.11772723936543886
      }
    },
    {
      "accn": "0000930413-19-001085",
      "filed": "2019-03-29",
      "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",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD"
      },
      "fundamentals": {
        "buybacks": 4709000.0,
        "capex": 14208000.0,
        "cash": 188576000.0,
        "cost_of_revenue": 382760000.0,
        "eps_diluted": 4.91,
        "free_cash_flow": 54901000.0,
        "gross_profit": 71039000.0,
        "net_income": 39518000.0,
        "operating_cash_flow": 69109000.0,
        "revenue": 453799000.0,
        "stockholders_equity": 340435000.0,
        "total_assets": 454024000.0
      },
      "period_end": "2017-01-31",
      "ratio_units": {
        "gross_margin": "ratio",
        "net_margin": "ratio",
        "roa_period_end": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.15654287470884687,
        "net_margin": 0.0870826070573095,
        "roa_period_end": 0.08703945165894314,
        "roe_period_end": 0.11608089650006609
      }
    },
    {
      "accn": "0000930413-18-001149",
      "filed": "2018-03-29",
      "fiscal_year": 2016,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "eps_diluted": "USD/shares"
      },
      "fundamentals": {
        "buybacks": 69852000.0,
        "eps_diluted": 4.3
      },
      "period_end": "2016-01-31",
      "ratios": {}
    },
    {
      "accn": "0000930413-17-001219",
      "filed": "2017-03-27",
      "fiscal_year": 2015,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "eps_diluted": "USD/shares"
      },
      "fundamentals": {
        "buybacks": 18138000.0,
        "eps_diluted": 10.76
      },
      "period_end": "2015-01-31",
      "ratios": {}
    },
    {
      "accn": "0000930413-16-006190",
      "filed": "2016-03-25",
      "fiscal_year": 2014,
      "form": "10-K",
      "fundamental_units": {
        "eps_diluted": "USD/shares"
      },
      "fundamentals": {
        "eps_diluted": 4.29
      },
      "period_end": "2014-01-31",
      "ratios": {}
    }
  ],
  "latest_filing": {
    "accn": "0000930413-26-000937",
    "filed": "2026-03-30",
    "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": "2860",
  "sic_description": "Industrial Organic Chemicals",
  "source_urls": {
    "sec_companyfacts": "https://data.sec.gov/api/xbrl/companyfacts/CIK0000744187.json",
    "sec_submissions": "https://data.sec.gov/submissions/CIK0000744187.json"
  },
  "ticker": "REX"
}
