XML 74 R62.htm IDEA: XBRL DOCUMENT
v3.19.1

Commitments (Details) lb in Millions, gal in Millions, bu in Millions | 12 Months Ended
--- | ---
Jan. 31, 2019 USD ($) T lb gal bu | Jan. 31, 2018 USD ($) | Jan. 31, 2017 USD ($)
One Earth Energy And Nu Gen Energy [Member] |  |  |
Commitments (Details) [Line Items] |  |  |
Forward Purchase Contracts, Quantity (in US Bushels) | bu | 13.0 |  |
Quantity of Ethanol under Sales Commitment (in US Gallons) | gal | 32.3 |  |
Quantity of Distillers Grains Under Sales Commitment (in US Tons) | T | 88,000 |  |
Quantity of Non-food Grade Corn Oil Under Sales Commitments (in Pounds) | lb | 18.2 |  |
Supply Commitment Expected Period Of Delivery | They expect to deliver the ethanol, distillers grains and corn oil through March 2019. |  |
One Earth Energy And Nu Gen Energy [Member] | Railcars One [Member] |  |  |
Commitments (Details) [Line Items] |  |  |
Operating Leases, Rent Expense, Net | $ 8,109,000 | $ 8,600,000 | $ 8,515,000
One Earth Energy And Nu Gen Energy [Member] | Distillers Grains Marketing Services [Member] |  |  |
Commitments (Details) [Line Items] |  |  |
Marketing Expense | $ 1,250,000 | 1,354,000 | 1,194,000
One Earth Energy [Member] | Natural Gas Pipeline [Member] |  |  |
Commitments (Details) [Line Items] |  |  |
Lease Expiration Period | 10 years |  |
Operating Leases, Future Minimum Payments Due | $ 4,380,000 |  |
Number of installments payable | 120 |  |
Installment amount | $ 36,500 |  |
Operating Leases, Rent Expense, Net | $ 438,000 | 438,000 | $ 438,000
One Earth Energy [Member] | Renewal [Member] | Natural Gas Pipeline [Member] |  |  |
Commitments (Details) [Line Items] |  |  |
Lease Expiration Period | 15 years |  |
Installment amount | $ 29,250 |  |
Alliance Grain [Member] |  |  |
Commitments (Details) [Line Items] |  |  |
Percentage of Grain Purchase Under Agreement | 100.00% |  |
Expiration Date of Grain Agreement | Dec. 31, 2020 |  |
Maximum Period to Notify Other Party for Grain Agreement Period Extension | 180 days |  |
Refined Coal [Member] |  |  |
Commitments (Details) [Line Items] |  |  |
Fees Incurred By Subsidiary | $ 9,900,000 | $ 5,500,000 |

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

X
- Definition Expiration date of grain Agreement. + References No definition available. + Details
Name: | rex_ExpirationDateOfGrainAgreement
Namespace Prefix: | rex_
Data Type: | xbrli:dateItemType
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
- References No definition available. + Details
Name: | rex_ForwardPurchaseContractsQuantity
Namespace Prefix: | rex_
Data Type: | num:volumeItemType
Balance Type: | na
Period Type: | instant

X
- Definition Installment amount. + References No definition available. + Details
Name: | rex_InstallmentAmount
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Lease expiration period. + References No definition available. + Details
Name: | rex_LeaseExpirationPeriod
Namespace Prefix: | rex_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Maximum period to notify other party for grain agreement period extension. + References No definition available. + Details
Name: | rex_MaximumPeriodToNotifyOtherPartyForGrainAgreementPeriodExtension
Namespace Prefix: | rex_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of installments payable. + References No definition available. + Details
Name: | rex_NumberOfInstallmentsPayable
Namespace Prefix: | rex_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of grain purchase under agreement. + References No definition available. + Details
Name: | rex_PercentageOfGrainPurchaseUnderAgreement
Namespace Prefix: | rex_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Quantity of distillers grains under sales commitment. + References No definition available. + Details
Name: | rex_QuantityOfDistillersGrainsUnderSalesCommitment
Namespace Prefix: | rex_
Data Type: | num: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: | num:volumeItemType
Balance Type: | na
Period Type: | instant

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

X
- Definition Supply commitment expected period of delivery. + References No definition available. + Details
Name: | rex_SupplyCommitmentExpectedPeriodOfDelivery
Namespace Prefix: | rex_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Expenditures for planning and executing the conception, pricing, promotion, and distribution of ideas, goods, and services. Costs of public relations and corporate promotions are typically considered to be marketing costs. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.4) -URI http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227 + Details
Name: | us-gaap_MarketingExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of required minimum rental payments for leases having an initial or remaining non-cancelable letter-terms in excess of one year. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 10 -Section 55 -Paragraph 40 -Subparagraph (Note 3) -URI http://asc.fasb.org/extlink&oid=82846649&loc=d3e38371-112697 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 20 -Section 50 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=77902758&loc=d3e41502-112717 + Details
Name: | us-gaap_OperatingLeasesFutureMinimumPaymentsDue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Rental expense for the reporting period incurred under operating leases, including minimum and any contingent rent expense, net of related sublease income. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 20 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=77902758&loc=d3e41499-112717 + Details
Name: | us-gaap_OperatingLeasesRentExpenseNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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

X
- Details
Name: | us-gaap_PropertySubjectToOrAvailableForOperatingLeaseAxis=rex_RailcarsOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PropertySubjectToOrAvailableForOperatingLeaseAxis=rex_DistillersGrainsMarketingServicesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_PropertySubjectToOrAvailableForOperatingLeaseAxis=rex_NaturalGasPipelineMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LeaseArrangementTypeAxis=rex_RenewalMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_LegalEntityAxis=rex_AllianceGrainMember
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: |