XML 52 R43.htm IDEA: XBRL DOCUMENT
v3.20.2

Derivative Financial Instruments (Details) $ in Thousands, gal in Millions, bu in Millions | 3 Months Ended | 9 Months Ended |
--- | --- | --- | ---
Oct. 31, 2020 USD ($) bu gal | Oct. 31, 2019 USD ($) | Oct. 31, 2020 USD ($) bu gal | Oct. 31, 2019 USD ($) | Jan. 31, 2020 USD ($) bu
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Debt Instrument, Collateral Amount | $ | $ 884 |  | $ 884 |  | $ 1,113
Gain (Loss) on Derivative Instruments, Net, Pretax | $ | (26) | $ 248 | (1,785) | $ 1,478 |
Gain (Loss) on Derivative Instruments, Net, Sales and Revenue | $ | $ 777 |  | $ 1,076 |  |
Assets [Member] | Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Forward Purchase Contracts, Quantity (in US Bushels) | 5.4 |  | 5.4 |  |
Liability [Member] | Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Forward Purchase Contracts, Quantity (in US Bushels) |  |  |  |  | 1.6
Short/Sell [Member] | Assets [Member] | Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Commodity Futures, Quantity | 4.6 |  | 4.6 |  | 3.7
Short/Sell [Member] | Assets [Member] | Ethanol [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Commodity Futures, Quantity | gal | 4.2 |  | 4.2 |  |
Long/Buy | Assets [Member] | Corn [Member] |  |  |  |  |
Derivative Financial Instruments (Details) [Line Items] |  |  |  |  |
Commodity Futures, Quantity | 4.8 |  | 4.8 |  | 2.2

X
- References No definition available. + Details
Name: | rex_CommodityFuturesQuantity
Namespace Prefix: | rex_
Data Type: | num: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: | num: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=75038535&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=121590274&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_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_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: |