XML 81 R69.htm IDEA: XBRL DOCUMENT
v3.19.1

Segment Reporting (Details) - Schedule Of Segment Results And Assets - USD ($) $ in Thousands | 3 Months Ended | 12 Months Ended
--- | --- | ---
Jan. 31, 2019 | Oct. 31, 2018 | Jul. 31, 2018 | Apr. 30, 2018 | Jan. 31, 2018 | Oct. 31, 2017 | Jul. 31, 2017 | Apr. 30, 2017 | Jan. 31, 2019 | Jan. 31, 2018 | Jan. 31, 2017
Segment Reporting Information [Line Items] |  |  |  |  |  |  |  |  |  |  |  |
Net sales and revenue: |  | $ 113,344 | $ 123,750 | $ 128,757 | $ 120,820 | $ 109,535 | $ 121,164 | $ 108,744 | $ 113,143 | $ 486,671 | $ 452,586 | $ 453,799
Segment gross profit (loss): |  | $ 2,218 | $ 7,747 | $ 9,399 | $ 10,851 | $ 6,024 | $ 14,867 | $ 10,781 | $ 12,489 | 30,215 | 44,161 | 71,039
Income (loss) before income taxes: |  |  |  |  |  |  |  |  |  | 14,588 | 25,393 | 56,911
Benefit (provision) for income taxes: |  |  |  |  |  |  |  |  |  | 22,922 | 19,519 | (17,393)
Segment profit (loss): |  |  |  |  |  |  |  |  |  | 31,645 | 39,706 | 32,333
Sales of products, ethanol and by-products segment: |  |  |  |  |  |  |  |  |  | 485,885 | 452,153 | 453,799
Interest income: |  |  |  |  |  |  |  |  |  | 3,514 | 1,556 | 434
Depreciation expense: |  |  |  |  |  |  |  |  |  | 24,828 | 21,462 | 19,519
Equity in income of unconsolidated affiliates: |  |  |  |  |  |  |  |  |  | 1,536 | 3,232 | 6,144
(Loss) gain on sale of investment: |  |  |  |  |  |  |  |  |  |  | (13) | 192
Ethanol [Member] |  |  |  |  |  |  |  |  |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |  |  |  |  |  |  |  |  |
Net sales and revenue: |  |  |  |  |  |  |  |  |  | 485,885 | 452,153 | 453,799
Segment gross profit (loss): |  |  |  |  |  |  |  |  |  | 43,856 | 51,509 | 71,039
Income (loss) before income taxes: |  |  |  |  |  |  |  |  |  | 31,545 | 38,352 | 59,447
Benefit (provision) for income taxes: |  |  |  |  |  |  |  |  |  | (2,343) | 3,245 | (18,259)
Segment profit (loss): |  |  |  |  |  |  |  |  |  | 23,346 | 35,880 | 33,950
Sales of products, ethanol and by-products segment: |  |  |  |  |  |  |  |  |  | 368,319 | 359,239 | 358,349
Interest income: |  |  |  |  |  |  |  |  |  | 2,460 | 878 | 212
Depreciation expense: |  |  |  |  |  |  |  |  |  | 22,004 | 20,037 | 19,464
Equity in income of unconsolidated affiliates: |  |  |  |  |  |  |  |  |  | 1,536 | 3,232 | 6,144
(Loss) gain on sale of investment: |  |  |  |  |  |  |  |  |  |  | (13) | 192
Refined Coal [Member] |  |  |  |  |  |  |  |  |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |  |  |  |  |  |  |  |  |
Net sales and revenue: | [1] |  |  |  |  |  |  |  |  | 786 | 433 |
Segment gross profit (loss): |  |  |  |  |  |  |  |  |  | (13,641) | (7,348) |
Income (loss) before income taxes: |  |  |  |  |  |  |  |  |  | (15,204) | (10,021) |
Benefit (provision) for income taxes: |  |  |  |  |  |  |  |  |  | 24,674 | 15,168 |
Segment profit (loss): |  |  |  |  |  |  |  |  |  | 10,148 | 5,628 |
Sales of products, refined coal segment: |  |  |  |  |  |  |  |  |  | 786 | 433 |
Depreciation expense: |  |  |  |  |  |  |  |  |  | 2,784 | 1,385 |
Corporate and Other [Member] |  |  |  |  |  |  |  |  |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |  |  |  |  |  |  |  |  |
Income (loss) before income taxes: |  |  |  |  |  |  |  |  |  | (1,753) | (2,938) | (2,536)
Benefit (provision) for income taxes: |  |  |  |  |  |  |  |  |  | 591 | 1,106 | 866
Segment profit (loss): |  |  |  |  |  |  |  |  |  | (1,849) | (1,802) | (1,617)
Interest income: |  |  |  |  |  |  |  |  |  | 1,054 | 678 | 222
Depreciation expense: |  |  |  |  |  |  |  |  |  | 40 | 40 | 55
Dried Distillers Grains [Member] |  |  |  |  |  |  |  |  |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |  |  |  |  |  |  |  |  |
Sales of products, ethanol and by-products segment: |  |  |  |  |  |  |  |  |  | 85,417 | 63,120 | 71,204
Non-Food Grade Corn Oil [Member] |  |  |  |  |  |  |  |  |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |  |  |  |  |  |  |  |  |
Sales of products, ethanol and by-products segment: |  |  |  |  |  |  |  |  |  | 20,097 | 21,195 | 18,518
Modified Distillers Grains [Member] |  |  |  |  |  |  |  |  |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |  |  |  |  |  |  |  |  |
Sales of products, ethanol and by-products segment: |  |  |  |  |  |  |  |  |  | 11,950 | 8,525 | 5,326
Other Segments [Member] |  |  |  |  |  |  |  |  |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |  |  |  |  |  |  |  |  |
Sales of products, ethanol and by-products segment: |  |  |  |  |  |  |  |  |  | $ 102 | $ 74 | $ 402
[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_SalesOfProductsRefinedCoalSegment
Namespace Prefix: | rex_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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

X
- Definition The current period expense charged against earnings on long-lived, physical assets not used in production, and which are not intended for resale, to allocate or recognize the cost of such assets over their useful lives; or to record the reduction in book value of an intangible asset over the benefit period of such asset; or to reflect consumption during the period of an asset that is not used in production. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 360 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=109223946&loc=d3e3602-108585 + Details
Name: | us-gaap_DepreciationAndAmortization
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The net realized gain (loss) on investments sold during the period, not including gains (losses) on securities separately or otherwise categorized as trading, available-for-sale, or held-to-maturity, which, for cash flow reporting, is a component of proceeds from investing activities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=109223946&loc=d3e3602-108585 + Details
Name: | us-gaap_GainLossOnSaleOfInvestments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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://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=115205541&loc=SL114868664-224227 + 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://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 2: 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=115205541&loc=SL114868664-224227 Reference 3: 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=114873790&loc=SL114874131-224263 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 11 -URI http://asc.fasb.org/extlink&oid=109234566&loc=d3e22694-107794 Reference 5: 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=114873765&loc=SL114874048-224260 + Details
Name: | us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition This item represents the entity's proportionate share for the period of the net income (loss) of its investee (such as unconsolidated subsidiaries and joint ventures) to which the equity method of accounting is applied. This item includes income or expense related to stock-based compensation based on the investor's grant of stock to employees of an equity method investee. + 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(12)) -URI http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227 Reference 2: 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(10)) -URI http://asc.fasb.org/extlink&oid=114873790&loc=SL114874131-224263 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=109223946&loc=d3e3602-108585 Reference 4: 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(13)(f)) -URI http://asc.fasb.org/extlink&oid=114873765&loc=SL114874048-224260 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -Subparagraph (g) -URI http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599 Reference 6: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=109237563&loc=d3e33749-111570 + Details
Name: | us-gaap_IncomeLossFromEquityMethodInvestments
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 280 -SubTopic 10 -Section 50 -Paragraph 22 -Subparagraph (h) -URI http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599 Reference 2: 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=26873400&loc=d3e23780-122690 Reference 3: 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=109238882&loc=d3e38679-109324 + Details
Name: | us-gaap_IncomeTaxExpenseBenefit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of operating interest income, including, but not limited to, amortization and accretion of premiums and discounts on securities. + 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.1(e)) -URI http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227 + Details
Name: | us-gaap_InterestIncomeOperating
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://fasb.org/us-gaap/role/ref/legacyRef -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 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 45 -Paragraph 11 -URI http://asc.fasb.org/extlink&oid=109260490&loc=d3e1377-109256 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 45 -Paragraph 60B -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=109260490&loc=SL5780133-109256 + Details
Name: | us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersBasic
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of revenue recognized from goods sold, services rendered, insurance premiums, or other activities that constitute an earning process. Includes, but is not limited to, investment and interest income before deduction of interest expense when recognized as a component of revenue, and sales and trading gain (loss). + References Reference 1: 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=115929826&loc=d3e8736-108599 Reference 2: 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) -URI http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227 Reference 3: 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=115929826&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 22 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599 + Details
Name: | us-gaap_Revenues
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_SegmentReportingInformationLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
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: |