XML 93 R70.htm IDEA: XBRL DOCUMENT
v3.20.1

Segment Reporting (Details) - Schedule Of Segment Results And Assets - USD ($) $ in Thousands | 3 Months Ended | 12 Months Ended
--- | --- | ---
Jan. 31, 2020 | Oct. 31, 2019 | Jul. 31, 2019 | Apr. 30, 2019 | Jan. 31, 2019 | Oct. 31, 2018 | Jul. 31, 2018 | Apr. 30, 2018 | Jan. 31, 2020 | Jan. 31, 2019 | Jan. 31, 2018
Net sales and revenue: |  |  |  |  |  |  |  |  |  |  |  |
Net sales and revenue: |  |  |  |  |  |  |  |  |  | $ 418,034 | $ 486,671 | $ 452,586
Segment gross profit (loss): |  |  |  |  |  |  |  |  |  |  |  |
Segment gross profit (loss): |  | $ 6,593 | $ (1,758) | $ 4,004 | $ 3,646 | $ 2,218 | $ 7,747 | $ 9,399 | $ 10,851 | 12,485 | 30,215 | 44,161
(Loss) income before income taxes: |  |  |  |  |  |  |  |  |  |  |  |
(Loss) income before income taxes: |  |  |  |  |  |  |  |  |  | (1,169) | 14,588 | 25,393
Benefit (provision) for income taxes: |  |  |  |  |  |  |  |  |  |  |  |
Benefit (provision) for income taxes: |  |  |  |  |  |  |  |  |  | 12,813 | 22,922 | 19,519
Segment profit (loss): |  |  |  |  |  |  |  |  |  |  |  |
Segment profit (loss): |  |  |  |  |  |  |  |  |  | 7,427 | 31,645 | 39,706
Sales of products, ethanol and by-products segment: |  |  |  |  |  |  |  |  |  |  |  |
Sales of products, ethanol and by-products segment: |  |  |  |  |  |  |  |  |  | 417,700 | 485,885 | 452,153
Interest income: |  |  |  |  |  |  |  |  |  |  |  |
Interest income: |  |  |  |  |  |  |  |  |  | 4,120 | 3,514 | 1,556
Depreciation expense: |  |  |  |  |  |  |  |  |  |  |  |
Depreciation expense: |  |  |  |  |  |  |  |  |  | 23,007 | 24,828 | 21,462
Equity in income of unconsolidated affiliates: |  |  |  |  |  |  |  |  |  |  |  |
Equity in income of unconsolidated affiliates: |  |  |  |  |  |  |  |  |  | 1,392 | 1,536 | 3,232
Ethanol [Member] |  |  |  |  |  |  |  |  |  |  |  |
Net sales and revenue: |  |  |  |  |  |  |  |  |  |  |  |
Net sales and revenue: |  |  |  |  |  |  |  |  |  | 417,700 | 485,885 | 452,153
Segment gross profit (loss): |  |  |  |  |  |  |  |  |  |  |  |
Segment gross profit (loss): |  |  |  |  |  |  |  |  |  | 20,402 | 43,856 | 51,509
(Loss) income before income taxes: |  |  |  |  |  |  |  |  |  |  |  |
(Loss) income before income taxes: |  |  |  |  |  |  |  |  |  | 8,469 | 31,545 | 38,352
Benefit (provision) for income taxes: |  |  |  |  |  |  |  |  |  |  |  |
Benefit (provision) for income taxes: |  |  |  |  |  |  |  |  |  | 1,528 | (2,343) | 3,245
Segment profit (loss): |  |  |  |  |  |  |  |  |  |  |  |
Segment profit (loss): |  |  |  |  |  |  |  |  |  | 5,439 | 23,346 | 35,880
Sales of products, ethanol and by-products segment: |  |  |  |  |  |  |  |  |  |  |  |
Sales of products, ethanol and by-products segment: |  |  |  |  |  |  |  |  |  | 321,434 | 368,319 | 359,239
Interest income: |  |  |  |  |  |  |  |  |  |  |  |
Interest income: |  |  |  |  |  |  |  |  |  | 2,949 | 2,460 | 878
Depreciation expense: |  |  |  |  |  |  |  |  |  |  |  |
Depreciation expense: |  |  |  |  |  |  |  |  |  | 20,182 | 22,004 | 20,037
Equity in income of unconsolidated affiliates: |  |  |  |  |  |  |  |  |  |  |  |
Equity in income of unconsolidated affiliates: |  |  |  |  |  |  |  |  |  | 1,392 | 1,536 | 3,232
Refined Coal [Member] |  |  |  |  |  |  |  |  |  |  |  |
Net sales and revenue: |  |  |  |  |  |  |  |  |  |  |  |
Net sales and revenue: | [1] |  |  |  |  |  |  |  |  | 334 | 786 | 433
Segment gross profit (loss): |  |  |  |  |  |  |  |  |  |  |  |
Segment gross profit (loss): |  |  |  |  |  |  |  |  |  | (7,917) | (13,641) | (7,348)
(Loss) income before income taxes: |  |  |  |  |  |  |  |  |  |  |  |
(Loss) income before income taxes: |  |  |  |  |  |  |  |  |  | (7,778) | (15,204) | (10,021)
Benefit (provision) for income taxes: |  |  |  |  |  |  |  |  |  |  |  |
Benefit (provision) for income taxes: |  |  |  |  |  |  |  |  |  | 10,828 | 24,674 | 15,168
Segment profit (loss): |  |  |  |  |  |  |  |  |  |  |  |
Segment profit (loss): |  |  |  |  |  |  |  |  |  | 3,391 | 10,148 | 5,628
Sales of products, ethanol and by-products segment: |  |  |  |  |  |  |  |  |  |  |  |
Sales of products, ethanol and by-products segment: |  |  |  |  |  |  |  |  |  | 334 | 786 | 433
Depreciation expense: |  |  |  |  |  |  |  |  |  |  |  |
Depreciation expense: |  |  |  |  |  |  |  |  |  | 2,790 | 2,784 | 1,385
Corporate and Other [Member] |  |  |  |  |  |  |  |  |  |  |  |
(Loss) income before income taxes: |  |  |  |  |  |  |  |  |  |  |  |
(Loss) income before income taxes: |  |  |  |  |  |  |  |  |  | (1,860) | (1,753) | (2,938)
Benefit (provision) for income taxes: |  |  |  |  |  |  |  |  |  |  |  |
Benefit (provision) for income taxes: |  |  |  |  |  |  |  |  |  | 457 | 591 | 1,106
Segment profit (loss): |  |  |  |  |  |  |  |  |  |  |  |
Segment profit (loss): |  |  |  |  |  |  |  |  |  | (1,403) | (1,849) | (1,802)
Interest income: |  |  |  |  |  |  |  |  |  |  |  |
Interest income: |  |  |  |  |  |  |  |  |  | 1,171 | 1,054 | 678
Depreciation expense: |  |  |  |  |  |  |  |  |  |  |  |
Depreciation expense: |  |  |  |  |  |  |  |  |  | 35 | 40 | 40
Dried Distillers Grains [Member] |  |  |  |  |  |  |  |  |  |  |  |
Sales of products, ethanol and by-products segment: |  |  |  |  |  |  |  |  |  |  |  |
Sales of products, ethanol and by-products segment: |  |  |  |  |  |  |  |  |  | 71,755 | 85,417 | 63,120
Non-Food Grade Corn Oil [Member] |  |  |  |  |  |  |  |  |  |  |  |
Sales of products, ethanol and by-products segment: |  |  |  |  |  |  |  |  |  |  |  |
Sales of products, ethanol and by-products segment: |  |  |  |  |  |  |  |  |  | 17,135 | 20,097 | 21,195
Modified Distillers Grains [Member] |  |  |  |  |  |  |  |  |  |  |  |
Sales of products, ethanol and by-products segment: |  |  |  |  |  |  |  |  |  |  |  |
Sales of products, ethanol and by-products segment: |  |  |  |  |  |  |  |  |  | 7,240 | 11,950 | 8,525
Other Segments [Member] |  |  |  |  |  |  |  |  |  |  |  |
Sales of products, ethanol and by-products segment: |  |  |  |  |  |  |  |  |  |  |  |
Sales of products, ethanol and by-products segment: |  |  |  |  |  |  |  |  |  | $ 136 | $ 102 | $ 74
[1] | Sales in the refined coal segment are recorded net of the cost of coal as the Company purchases the coal feedstock from the customer to which refined coal is sold.

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

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

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

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

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

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

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

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

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

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

X
- Definition Aggregate revenue less cost of goods and services sold or operating expenses directly attributable to the revenue generation activity. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 31 -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8924-108599 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 30 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(g)(1)(ii)) -URI http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 28 -Subparagraph (f) -URI http://asc.fasb.org/extlink&oid=75031198&loc=d3e14064-108612 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 32 -Subparagraph (f) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599 Reference 8: 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.1,2) -URI http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 32 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599 + Details
Name: | us-gaap_GrossProfit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of income (loss) from continuing operations, including income (loss) from equity method investments, before deduction of income tax expense (benefit), and income (loss) attributable to noncontrolling interest. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 32 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 30 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 32 -Subparagraph (f) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 940 -SubTopic 20 -Section 25 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=68072869&loc=d3e41242-110953 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599 Reference 6: 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(10)) -URI http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227 Reference 7: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 220 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-04(8)) -URI http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 235 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-05(b)(2)) -URI http://asc.fasb.org/extlink&oid=120399901&loc=d3e537907-122884 Reference 9: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 31 -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8924-108599 Reference 10: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 220 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-04(15)) -URI http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260 + Details
Name: | us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB TOPIC 6.I.7) -URI http://asc.fasb.org/extlink&oid=116825942&loc=d3e330036-122817 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 10 -URI http://asc.fasb.org/extlink&oid=84230637&loc=d3e32672-109319 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -Subparagraph (h) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(h)) -URI http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 9 -URI http://asc.fasb.org/extlink&oid=109234566&loc=d3e22663-107794 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 20 -Section 45 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=120385591&loc=d3e38679-109324 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 220 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-04(9)) -URI http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=109234566&loc=d3e22658-107794 + Details
Name: | us-gaap_IncomeTaxExpenseBenefit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of interest income earned from interest-bearing assets owed to the entity by related party. + References No definition available. + Details
Name: | us-gaap_InterestIncomeRelatedParty
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount, after deduction of tax, noncontrolling interests, dividends on preferred stock and participating securities; of income (loss) from continuing operations available to common shareholders. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 45 -Paragraph 11 -URI http://asc.fasb.org/extlink&oid=121326447&loc=d3e1377-109256 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257 + Details
Name: | us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersBasic
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Sales revenue to unaffiliated enterprises from oil and gas producing activities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 932 -SubTopic 235 -Section 50 -Paragraph 24 -URI http://asc.fasb.org/extlink&oid=68064819&loc=d3e62246-109447 + Details
Name: | us-gaap_ResultsOfOperationsSalesRevenueToUnaffiliatedEnterprises
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount, excluding tax collected from customer, of revenue from satisfaction of performance obligation by transferring promised good or service to customer. Tax collected from customer is tax assessed by governmental authority that is both imposed on and concurrent with specific revenue-producing transaction, including, but not limited to, sales, use, value added and excise. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 30 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 40 -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e9031-108599 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 41 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e9038-108599 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 32 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 32 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 50 -Paragraph 4 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121604090&loc=SL49130543-203045 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 42 -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e9054-108599 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 50 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=121604090&loc=SL49130545-203045 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 924 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB Topic 11.L) -URI http://asc.fasb.org/extlink&oid=6472922&loc=d3e499488-122856 + Details
Name: | us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount, including tax collected from customer, of revenue from satisfaction of performance obligation by transferring promised good or service to customer. Tax collected from customer is tax assessed by governmental authority that is both imposed on and concurrent with specific revenue-producing transaction, including, but not limited to, sales, use, value-added and excise. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 41 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e9038-108599 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 50 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=121604090&loc=SL49130545-203045 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 32 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 32 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 30 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 50 -Paragraph 4 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121604090&loc=SL49130543-203045 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 42 -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e9054-108599 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 40 -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e9031-108599 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 924 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB Topic 11.L) -URI http://asc.fasb.org/extlink&oid=6472922&loc=d3e499488-122856 + Details
Name: | us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=rex_EthanolMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=us-gaap_CorporateAndOtherMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=rex_DriedDistillersGrainsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=rex_NonFoodGradeCornOilMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=rex_ModifiedDistillersGrainsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=us-gaap_AllOtherSegmentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |