XML 56 R47.htm IDEA: XBRL DOCUMENT
v3.24.1.1.u2

Derivative Financial Instruments (Details) | 3 Months Ended |
--- | --- | ---
Apr. 30, 2024 USD ($) bu gal | Apr. 30, 2023 USD ($) | Jan. 31, 2024 USD ($) bu gal
Derivative Financial Instruments (Details) [Line Items] |  |  |
Prepaid Expense and Other Assets (in Dollars) | $ | $ 500,000 |  | $ 2,200,000
Gain (Loss) on Derivative Instruments, Net, Pretax (in Dollars) | $ | $ 64,000 | $ 5,800,000 |
Assets [Member] | Corn [Member] |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |
Forward Purchase Contracts Quantity | 14,600,000 |  | 9,300,000
Liabilities, Total [Member] |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |
Forward Purchase Contracts Quantity | 2,500,000 |  | 8,200,000
Liabilities, Total [Member] | Corn [Member] | Short [Member] |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |
Commodity Futures Quantity | 3,000,000 |  | 255,000
Liabilities, Total [Member] | Corn [Member] | Long [Member] |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |
Commodity Futures Quantity | 700,000 |  | 6,900,000
Liabilities, Total [Member] | Ethanol [Member] | Short [Member] |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |
Commodity Futures Quantity | gal | 420,000 |  | 210,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 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 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: |