XML 53 R44.htm IDEA: XBRL DOCUMENT
v3.21.2

Derivative Financial Instruments (Details) gal in Millions | 3 Months Ended | 9 Months Ended |
--- | --- | --- | ---
Oct. 31, 2021 USD ($) bu gal | Oct. 31, 2020 USD ($) | Oct. 31, 2021 USD ($) bu gal | Oct. 31, 2020 USD ($) | Jan. 31, 2021 USD ($) bu
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Debt Instrument, Collateral Amount | $ | $ 1,737,000 |  | $ 1,737,000 |  | $ 1,657,000
Gain (Loss) on Derivative Instruments, Net, Sales and Revenue | $ | 2,144,000 | $ 777,000 | 4,907,000 | $ 1,076,000 |
Gain (Loss) on Derivative Instruments, Net, Pretax | $ | $ 5,474,000 | $ 26,000 | $ 2,562,000 | $ 1,785,000 |
Assets [Member] | Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Commodity Futures, Quantity | 6,700,000 |  | 6,700,000 |  |
Forward Purchase Contracts, Quantity (in US Bushels) | 5,700,000 |  | 5,700,000 |  | 6,400,000
Short/Sell [Member] | Liability [Member] | Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Commodity Futures, Quantity | 690,000 |  | 690,000 |  | 6,900,000
Short/Sell [Member] | Liability [Member] | Ethanol [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Commodity Futures, Quantity | gal | 5.5 |  | 5.5 |  |
Long/Buy [Member] | Liability [Member] | Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Commodity Futures, Quantity | 2,300,000 |  | 2,300,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 http://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 http://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_AssetsMember
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_ContractWithCustomerDurationAxis=rex_ShortSellMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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_EthanolMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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