XML 55 R47.htm IDEA: XBRL DOCUMENT
v3.23.3

Derivative Financial Instruments (Details) | 3 Months Ended | 9 Months Ended |
--- | --- | --- | ---
Oct. 31, 2023 USD ($) bu | Oct. 31, 2022 USD ($) | Oct. 31, 2023 USD ($) bu | Oct. 31, 2022 | Jan. 31, 2023 USD ($) bu
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Debt Instrument, Collateral Amount (in Dollars) | $ | $ 1,700,000 |  | $ 1,700,000 |  | $ 1,700,000
Gain (Loss) on Derivative Instruments, Net, Sales and Revenue (in Dollars) | $ | (20,000) | $ 8,000 |  |  |
Gain (Loss) on Derivative Instruments, Net, Pretax (in Dollars) | $ | $ 10,600,000 | $ 9,000 |  |  |
Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Description of Location of Gain (Loss) on Interest Rate Derivative Instruments Not Designated as Hedging Instruments in Financial Statements |  |  | $15.7 | (12.9) |
Ethanol [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Description of Location of Gain (Loss) on Interest Rate Derivative Instruments Not Designated as Hedging Instruments in Financial Statements |  |  | $0.8 | (1.1) |
Assets [Member] | Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Forward Purchase Contracts, Quantity | 13,800,000 |  | 13,800,000 |  | 12,800,000
Liability [Member] | Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Forward Purchase Contracts, Quantity |  |  |  |  | 5,200,000
Short/Sell [Member] | Assets [Member] | Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Commodity Futures, Quantity | 500,000 |  | 500,000 |  | 3,200,000
Short/Sell [Member] | Liability [Member] | Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Commodity Futures, Quantity | 45,000 |  | 45,000 |  | 1,400,000
Long/Buy [Member] | Assets [Member] | Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Commodity Futures, Quantity | 4,700,000 |  | 4,700,000 |  | 725,000
Long/Buy [Member] | Liability [Member] | Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Commodity Futures, Quantity | 1,300,000 |  | 1,300,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
- 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 -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480848/942-470-50-3 + Details
Name: | us-gaap_DebtInstrumentCollateralAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Description of where the net gain (loss) on interest rate derivatives not designated as hedging instruments are reported in the statement of income or other statement of financial performance. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4C -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480434/815-10-50-4C Reference 2: 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_DescriptionOfLocationOfGainLossOnInterestRateDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsInFinancialStatements
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
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
- Details
Name: | us-gaap_TradingActivityByTypeAxis=rex_CornMember
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=us-gaap_AssetsMember
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_ContractWithCustomerDurationAxis=rex_ShortSellMember
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: |