XML 52 R44.htm IDEA: XBRL DOCUMENT
v3.22.2.2

Derivative Financial Instruments (Details) bu in Millions | 3 Months Ended | 6 Months Ended |
--- | --- | --- | ---
Jul. 31, 2022 USD ($) bu | Jul. 31, 2021 USD ($) | Jul. 31, 2022 USD ($) bu | Jul. 31, 2021 USD ($) | Jan. 31, 2022 USD ($) bu
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Debt Instrument, Collateral Amount | $ | $ 3,332,000 |  | $ 3,332,000 |  | $ 2,222,000
Gain (Loss) on Derivative Instruments, Net, Sales and Revenue | $ | 1,474,000 | $ 1,638,000 | 1,152,000 | $ 2,764,000 |
Gain (Loss) on Derivative Instruments, Net, Pretax | $ | $ 1,152,000 | $ 6,142,000 | $ 12,928,000 | $ 8,036,000 |
Liability [Member] | Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Forward Purchase Contracts, Quantity (in US Bushels) |  |  |  |  | 19.2
Assets [Member] | Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Forward Purchase Contracts, Quantity (in US Bushels) | 12.3 |  | 12.3 |  |
Short/Sell [Member] | Liability [Member] | Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Commodity Futures, Quantity (in US Bushels) | 7.4 |  | 7.4 |  | 7.4
Long-Term Contract with Customer [Member] | Assets [Member] | Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Commodity Futures, Quantity (in US Bushels) | 25,000.0 |  | 25,000.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
- References No definition available. + Details
Name: | rex_GainLossOnDerivativeInstrumentsNetSalesAndRevenue
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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 Aggregate net gain (loss) on all derivative instruments recognized in earnings during the period, before tax effects. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4A -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959 + Details
Name: | us-gaap_GainLossOnDerivativeInstrumentsNetPretax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=us-gaap_LiabilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=us-gaap_AssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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