XML 58 R45.htm IDEA: XBRL DOCUMENT
v3.24.3

Derivative Financial Instruments (Details) | 3 Months Ended | 9 Months Ended |
--- | --- | --- | ---
Oct. 31, 2024 USD ($) bu | Oct. 31, 2023 USD ($) | Oct. 31, 2024 USD ($) bu | Oct. 31, 2023 USD ($) | Jan. 31, 2024 USD ($) bu gal
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Prepaid Expense and Other Assets | $ | $ 1,200,000 |  | $ 1,200,000 |  | $ 2,200,000
Assets [Member] | Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Forward Purchase Contracts Quantity | bu | 11,800,000 |  | 11,800,000 |  | 9,300,000
Liabilities, Total [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Forward Purchase Contracts Quantity | bu | 4,700,000 |  | 4,700,000 |  | 8,200,000
Liabilities, Total [Member] | Corn [Member] | Short [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Commodity Futures Quantity | bu | 7,000,000 |  | 7,000,000 |  | 255,000
Liabilities, Total [Member] | Corn [Member] | Long [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Commodity Futures Quantity | bu | 2,100,000 |  | 2,100,000 |  | 6,900,000
Liabilities, Total [Member] | Ethanol [Member] | Short [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Commodity Futures Quantity | gal |  |  |  |  | 210,000
Gain (Loss) on Sale of Derivatives | $ | $ 0.3 |  | $ 700,000 |  |
Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Gain (Loss) on Derivative Instruments, Net, Pretax | $ | $ 3.8 | $ 10,600,000 |  |  |
Derivative, Gain (Loss) on Derivative, Net | $ |  |  | $ (2.4) | $ 15,700,000 |

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 increase (decrease) in the fair value of derivatives recognized in the income statement. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 4A -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-4A + Details
Name: | us-gaap_DerivativeGainLossOnDerivativeNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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 -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4A -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-4A + Details
Name: | us-gaap_GainLossOnDerivativeInstrumentsNetPretax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The difference between the book value and the sale price of options, swaps, futures, forward contracts, and other derivative instruments. This element refers to the gain (loss) included in earnings. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 45 -Paragraph 28 -Subparagraph (b) -SubTopic 10 -Topic 230 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482740/230-10-45-28 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 942 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-04(13)(h)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478524/942-220-S99-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-07(7)(a)(7)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479134/946-220-S99-1 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-07(7)(a)(3)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479134/946-220-S99-1 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-07(7)(a)(5)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479134/946-220-S99-1 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-07(7)(a)(6)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479134/946-220-S99-1 + Details
Name: | us-gaap_GainLossOnSaleOfDerivatives
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of asset related to consideration paid in advance for costs that provide economic benefits in future periods, and amount of other assets. + References No definition available. + Details
Name: | us-gaap_PrepaidExpenseAndOtherAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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_DerivativeInstrumentRiskAxis=us-gaap_LiabilitiesTotalMember
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_ContractWithCustomerDurationAxis=us-gaap_LongMember
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_DerivativeInstrumentRiskAxis=rex_CornMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |