XML 62 R54.htm IDEA: XBRL DOCUMENT
v3.22.2.2

Commitments and Contingencies (Details) lb in Millions, gal in Millions, bu in Millions, $ in Millions | 3 Months Ended | 6 Months Ended |
--- | --- | --- | ---
Jul. 31, 2021 USD ($) | Jul. 31, 2021 USD ($) | Jul. 31, 2022 MMBTU T lb bu gal
Commitments and Contingencies (Details) [Line Items] |  |  |
Fees Incurred By Subsidiary |  | $ 3.1 |
One Earth Energy And Nu Gen Energy [Member] |  |  |
Commitments and Contingencies (Details) [Line Items] |  |  |
Quantity of Bushels under Forward Purchase Contract (in US Bushels) | bu |  |  | 12.3
Quantity Of Natural Gas Under Sales Commitment (in Millions of British Thermal Units) | MMBTU |  |  | 1.1
Quantity of Ethanol under Sales Commitment (in US Gallons) | gal |  |  | 36.8
Quantity of Distillers Grains Under Sales Commitment (in US Tons) | T |  |  | 82,000
Quantity of Non-food Grade Corn Oil Under Sales Commitments (in Pounds) | lb |  |  | 8.9
Refined Coal [Member] |  |  |
Commitments and Contingencies (Details) [Line Items] |  |  |
Fees Incurred By Subsidiary | $ 2.2 |  |

X
- References No definition available. + Details
Name: | rex_CommitmentsandContingenciesDetailsLineItems
Namespace Prefix: | rex_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | rex_FeesIncurredBySubsidiary
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Quantity of bushels under forward purchase contract. + References No definition available. + Details
Name: | rex_QuantityOfBushelsUnderForwardPurchaseContract
Namespace Prefix: | rex_
Data Type: | dtr:volumeItemType
Balance Type: | na
Period Type: | instant

X
- Definition Quantity of distillers grains under sales commitment. + References No definition available. + Details
Name: | rex_QuantityOfDistillersGrainsUnderSalesCommitment
Namespace Prefix: | rex_
Data Type: | dtr:massItemType
Balance Type: | na
Period Type: | instant

X
- Definition Quantity of ethanol under sales commitment. + References No definition available. + Details
Name: | rex_QuantityOfEthanolUnderSalesCommitment
Namespace Prefix: | rex_
Data Type: | dtr:volumeItemType
Balance Type: | na
Period Type: | instant

X
- References No definition available. + Details
Name: | rex_QuantityOfNaturalGasUnderSalesCommitment
Namespace Prefix: | rex_
Data Type: | dtr:energyItemType
Balance Type: | na
Period Type: | instant

X
- References No definition available. + Details
Name: | rex_QuantityOfNonFoodGradeCornOilUnderSalesCommitments
Namespace Prefix: | rex_
Data Type: | dtr:massItemType
Balance Type: | na
Period Type: | instant

X
- Details
Name: | dei_LegalEntityAxis=rex_OneEarthEnergyAndNuGenEnergyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_LegalEntityAxis=rex_RefinedCoalMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |