XML 66 R55.htm IDEA: XBRL DOCUMENT
v3.22.1

DERIVATIVE FINANCIAL INSTRUMENTS (Details) bu in Millions | 12 Months Ended
--- | ---
Jan. 31, 2022 USD ($) bu | Jan. 31, 2021 USD ($) bu | Jan. 31, 2020 USD ($)
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |  |
Forward Purchase Contracts, Quantity (in US Bushels) | bu | 19.3 |  |
Debt Instrument, Collateral Amount | $ 2,222,000 | $ 1,657,000 |
Corn [Member] |  |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |  |
Forward Purchase Contracts, Quantity (in US Bushels) | bu | 19.2 | 6.4 |
Short [Member] | Corn [Member] |  |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |  |
Commodity Futures, Quantity (in US Bushels) | bu | 7.4 | 6.9 |
Cost of Sales [Member] |  |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |  |
Derivative, Loss on Derivative | $ (3,427,000) | $ (5,552,000) |
Derivative, Gain on Derivative |  |  | $ 2,201,000
Revenue Benchmark [Member] |  |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |  |
Derivative, Loss on Derivative | $ 12,109,000 | $ 1,167,000 |
Derivative, Gain on Derivative |  |  | $ 0

X
- References No definition available. + Details
Name: | rex_CommodityFuturesQuantity
Namespace Prefix: | rex_
Data Type: | dtr:volumeItemType
Balance Type: | na
Period Type: | instant

X
- References No definition available. + Details
Name: | rex_DERIVATIVEFINANCIALINSTRUMENTSDetailsLineItems
Namespace Prefix: | rex_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | rex_ForwardPurchaseContractsQuantity
Namespace Prefix: | rex_
Data Type: | dtr:volumeItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of assets pledged to secure a debt instrument. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph (d) -URI https://asc.fasb.org/extlink&oid=123599511&loc=d3e64711-112823 + Details
Name: | us-gaap_DebtInstrumentCollateralAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of increase in the fair value of derivatives recognized in the income statement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4A -Subparagraph (b)(1) -URI https://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959 + Details
Name: | us-gaap_DerivativeGainOnDerivative
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of decrease in the fair value of derivatives recognized in the income statement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4A -Subparagraph (b)(1) -URI https://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959 + Details
Name: | us-gaap_DerivativeLossOnDerivative
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_TradingActivityByTypeAxis=rex_CornMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ContractWithCustomerDurationAxis=us-gaap_ShortMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_CostOfSalesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_SalesRevenueNetMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |