XML 51 R42.htm IDEA: XBRL DOCUMENT
v3.21.2

Derivative Financial Instruments (Details) bu in Millions | 3 Months Ended | 6 Months Ended |
--- | --- | --- | ---
Jul. 31, 2021 USD ($) bu | Jul. 31, 2020 USD ($) | Jul. 31, 2021 USD ($) bu | Jul. 31, 2020 USD ($) | Jan. 31, 2021 USD ($) bu l
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Debt Instrument, Collateral Amount | $ 6,758,000 |  | $ 6,758,000 |  | $ 1,657,000
Gain (Loss) on Derivative Instruments, Net, Sales and Revenue | 1,638,000 | $ 298,000 | 2,764,000 | $ 298,000 |
Gain (Loss) on Derivative Instruments, Net, Pretax | $ 6,142,000 | $ 4,613,000 | $ 8,036,000 | $ 1,758,000 |
Liability [Member] | Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Forward Purchase Contracts, Quantity (in US Bushels) | bu | 10.6 |  | 10.6 |  | 6.4
Short/Sell [Member] | Liability [Member] | Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Commodity Futures, Quantity | bu | 8.6 |  | 8.6 |  | 6.9
Long/Buy [Member] | Assets [Member] | Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Commodity Futures, Quantity | 5.8 |  | 5.8 |  | 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_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_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: |

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