| | | | | | | | | | | | | | | | | | | | | |
<?xml version="1.0" encoding="windows-1252"?> |
<FilingSummary> |
| <Version> 3.19.3 </Version> |
| <ProcessingTime/> |
| <ReportFormat> html </ReportFormat> |
| <ContextCount> 167 </ContextCount> |
| <ElementCount> 308 </ElementCount> |
| <EntityCount> 1 </EntityCount> |
| <FootnotesReported> true </FootnotesReported> |
| <SegmentCount> 42 </SegmentCount> |
| <ScenarioCount> 0 </ScenarioCount> |
| <TuplesReported> false </TuplesReported> |
| <UnitCount> 9 </UnitCount> |
| <MyReports> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R1.htm </HtmlFileName> |
| | | <LongName> 000 - Document - Document And Entity Information </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/DocumentAndEntityInformation </Role> |
| | | <ShortName> Document And Entity Information </ShortName> |
| | | <MenuCategory> Cover </MenuCategory> |
| | | <Position> 1 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R2.htm </HtmlFileName> |
| | | <LongName> 001 - Statement - CONSOLIDATED BALANCE SHEETS </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ConsolidatedBalanceSheet </Role> |
| | | <ShortName> CONSOLIDATED BALANCE SHEETS </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 2 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R3.htm </HtmlFileName> |
| | | <LongName> 002 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ConsolidatedIncomeStatement </Role> |
| | | <ShortName> CONSOLIDATED STATEMENTS OF OPERATIONS </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 3 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R4.htm </HtmlFileName> |
| | | <LongName> 003 - Statement - CONSOLIDATED STATEMENTS OF SHAREHOLDERS' EQUITY </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ShareholdersEquityType2or3 </Role> |
| | | <ShortName> CONSOLIDATED STATEMENTS OF SHAREHOLDERS' EQUITY </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 4 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R5.htm </HtmlFileName> |
| | | <LongName> 004 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ConsolidatedCashFlow </Role> |
| | | <ShortName> CONSOLIDATED STATEMENTS OF CASH FLOWS </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 5 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R6.htm </HtmlFileName> |
| | | <LongName> 005 - Disclosure - Consolidated Condensed Financial Statements </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ConsolidatedCondensedFinancialStatements </Role> |
| | | <ShortName> Consolidated Condensed Financial Statements </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 6 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R7.htm </HtmlFileName> |
| | | <LongName> 006 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES </Role> |
| | | <ShortName> SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 7 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R8.htm </HtmlFileName> |
| | | <LongName> 007 - Disclosure - NET SALES AND REVENUE </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/NETSALESANDREVENUE </Role> |
| | | <ShortName> NET SALES AND REVENUE </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 8 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R9.htm </HtmlFileName> |
| | | <LongName> 008 - Disclosure - LEASES </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/LEASES </Role> |
| | | <ShortName> LEASES </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 9 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R10.htm </HtmlFileName> |
| | | <LongName> 009 - Disclosure - FAIR VALUE </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/FAIRVALUE </Role> |
| | | <ShortName> FAIR VALUE </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 10 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R11.htm </HtmlFileName> |
| | | <LongName> 010 - Disclosure - PROPERTY AND EQUIPMENT </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/PROPERTYANDEQUIPMENT </Role> |
| | | <ShortName> PROPERTY AND EQUIPMENT </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 11 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R12.htm </HtmlFileName> |
| | | <LongName> 011 - Disclosure - OTHER ASSETS </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/OTHERASSETS </Role> |
| | | <ShortName> OTHER ASSETS </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 12 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R13.htm </HtmlFileName> |
| | | <LongName> 012 - Disclosure - ACCRUED EXPENSES AND OTHER CURRENT LIABILITIES </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ACCRUEDEXPENSESANDOTHERCURRENTLIABILITIES </Role> |
| | | <ShortName> ACCRUED EXPENSES AND OTHER CURRENT LIABILITIES </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 13 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R14.htm </HtmlFileName> |
| | | <LongName> 013 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/DERIVATIVEFINANCIALINSTRUMENTS </Role> |
| | | <ShortName> DERIVATIVE FINANCIAL INSTRUMENTS </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 14 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R15.htm </HtmlFileName> |
| | | <LongName> 014 - Disclosure - INVESTMENTS </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/INVESTMENTS </Role> |
| | | <ShortName> INVESTMENTS </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 15 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R16.htm </HtmlFileName> |
| | | <LongName> 015 - Disclosure - EMPLOYEE BENEFITS </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/EMPLOYEEBENEFITS </Role> |
| | | <ShortName> EMPLOYEE BENEFITS </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 16 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R17.htm </HtmlFileName> |
| | | <LongName> 016 - Disclosure - Income Taxes </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/IncomeTaxes </Role> |
| | | <ShortName> Income Taxes </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 17 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R18.htm </HtmlFileName> |
| | | <LongName> 017 - Disclosure - Commitments and Contingencies </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/CommitmentsandContingencies </Role> |
| | | <ShortName> Commitments and Contingencies </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 18 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R19.htm </HtmlFileName> |
| | | <LongName> 018 - Disclosure - Related-Party Transactions </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/RelatedPartyTransactions </Role> |
| | | <ShortName> Related-Party Transactions </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 19 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R20.htm </HtmlFileName> |
| | | <LongName> 019 - Disclosure - Segment Reporting </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/SegmentReporting </Role> |
| | | <ShortName> Segment Reporting </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 20 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R21.htm </HtmlFileName> |
| | | <LongName> 020 - Disclosure - Accounting Policies, by Policy (Policies) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/AccountingPoliciesByPolicy </Role> |
| | | <ShortName> Accounting Policies, by Policy (Policies) </ShortName> |
| | | <MenuCategory> Policies </MenuCategory> |
| | | <Position> 21 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R22.htm </HtmlFileName> |
| | | <LongName> 021 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESTables </Role> |
| | | <ShortName> SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES </ParentRole> |
| | | <Position> 22 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R23.htm </HtmlFileName> |
| | | <LongName> 022 - Disclosure - LEASES (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/LEASESTables </Role> |
| | | <ShortName> LEASES (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/LEASES </ParentRole> |
| | | <Position> 23 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R24.htm </HtmlFileName> |
| | | <LongName> 023 - Disclosure - FAIR VALUE (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/FAIRVALUETables </Role> |
| | | <ShortName> FAIR VALUE (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/FAIRVALUE </ParentRole> |
| | | <Position> 24 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R25.htm </HtmlFileName> |
| | | <LongName> 024 - Disclosure - PROPERTY AND EQUIPMENT (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/PROPERTYANDEQUIPMENTTables </Role> |
| | | <ShortName> PROPERTY AND EQUIPMENT (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/PROPERTYANDEQUIPMENT </ParentRole> |
| | | <Position> 25 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R26.htm </HtmlFileName> |
| | | <LongName> 025 - Disclosure - OTHER ASSETS (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/OTHERASSETSTables </Role> |
| | | <ShortName> OTHER ASSETS (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/OTHERASSETS </ParentRole> |
| | | <Position> 26 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R27.htm </HtmlFileName> |
| | | <LongName> 026 - Disclosure - ACCRUED EXPENSES AND OTHER CURRENT LIABILITIES (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ACCRUEDEXPENSESANDOTHERCURRENTLIABILITIESTables </Role> |
| | | <ShortName> ACCRUED EXPENSES AND OTHER CURRENT LIABILITIES (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/ACCRUEDEXPENSESANDOTHERCURRENTLIABILITIES </ParentRole> |
| | | <Position> 27 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R28.htm </HtmlFileName> |
| | | <LongName> 027 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/DERIVATIVEFINANCIALINSTRUMENTSTables </Role> |
| | | <ShortName> DERIVATIVE FINANCIAL INSTRUMENTS (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/DERIVATIVEFINANCIALINSTRUMENTS </ParentRole> |
| | | <Position> 28 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R29.htm </HtmlFileName> |
| | | <LongName> 028 - Disclosure - INVESTMENTS (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/INVESTMENTSTables </Role> |
| | | <ShortName> INVESTMENTS (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/INVESTMENTS </ParentRole> |
| | | <Position> 29 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R30.htm </HtmlFileName> |
| | | <LongName> 029 - Disclosure - EMPLOYEE BENEFITS (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/EMPLOYEEBENEFITSTables </Role> |
| | | <ShortName> EMPLOYEE BENEFITS (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/EMPLOYEEBENEFITS </ParentRole> |
| | | <Position> 30 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R31.htm </HtmlFileName> |
| | | <LongName> 030 - Disclosure - Income Taxes (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/IncomeTaxesTables </Role> |
| | | <ShortName> Income Taxes (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/IncomeTaxes </ParentRole> |
| | | <Position> 31 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R32.htm </HtmlFileName> |
| | | <LongName> 031 - Disclosure - Segment Reporting (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/SegmentReportingTables </Role> |
| | | <ShortName> Segment Reporting (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/SegmentReporting </ParentRole> |
| | | <Position> 32 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R33.htm </HtmlFileName> |
| | | <LongName> 032 - Disclosure - Consolidated Condensed Financial Statements (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ConsolidatedCondensedFinancialStatementsDetails </Role> |
| | | <ShortName> Consolidated Condensed Financial Statements (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/ConsolidatedCondensedFinancialStatements </ParentRole> |
| | | <Position> 33 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R34.htm </HtmlFileName> |
| | | <LongName> 033 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESDetails </Role> |
| | | <ShortName> SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESTables </ParentRole> |
| | | <Position> 34 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R35.htm </HtmlFileName> |
| | | <LongName> 034 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details) - Schedule of Components of Inventory </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ScheduleofComponentsofInventoryTable </Role> |
| | | <ShortName> SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details) - Schedule of Components of Inventory </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESTables </ParentRole> |
| | | <Position> 35 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R36.htm </HtmlFileName> |
| | | <LongName> 035 - Disclosure - LEASES (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/LEASESDetails </Role> |
| | | <ShortName> LEASES (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/LEASESTables </ParentRole> |
| | | <Position> 36 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R37.htm </HtmlFileName> |
| | | <LongName> 036 - Disclosure - LEASES (Details) - Schedule of Components of Lease Expense </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ScheduleofComponentsofLeaseExpenseTable </Role> |
| | | <ShortName> LEASES (Details) - Schedule of Components of Lease Expense </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/LEASESTables </ParentRole> |
| | | <Position> 37 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R38.htm </HtmlFileName> |
| | | <LongName> 037 - Disclosure - LEASES (Details) - Schedule of Future Minimum Rental Payments for Operating Leases </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ScheduleofFutureMinimumRentalPaymentsforOperatingLeasesTable </Role> |
| | | <ShortName> LEASES (Details) - Schedule of Future Minimum Rental Payments for Operating Leases </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/LEASESTables </ParentRole> |
| | | <Position> 38 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R39.htm </HtmlFileName> |
| | | <LongName> 038 - Disclosure - LEASES (Details) - Schedule of Operating Lease Agreements for Rail Cars and Other Equipment </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ScheduleofOperatingLeaseAgreementsforRailCarsandOtherEquipmentTable </Role> |
| | | <ShortName> LEASES (Details) - Schedule of Operating Lease Agreements for Rail Cars and Other Equipment </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/LEASESTables </ParentRole> |
| | | <Position> 39 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R40.htm </HtmlFileName> |
| | | <LongName> 039 - Disclosure - FAIR VALUE (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/FAIRVALUEDetails </Role> |
| | | <ShortName> FAIR VALUE (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/FAIRVALUETables </ParentRole> |
| | | <Position> 40 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R41.htm </HtmlFileName> |
| | | <LongName> 040 - Disclosure - FAIR VALUE (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ScheduleofFairValueAssetsandLiabilitiesMeasuredonRecurringBasisTable </Role> |
| | | <ShortName> FAIR VALUE (Details) - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/FAIRVALUETables </ParentRole> |
| | | <Position> 41 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R42.htm </HtmlFileName> |
| | | <LongName> 041 - Disclosure - PROPERTY AND EQUIPMENT (Details) - Schedule of Property and Equipment </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ScheduleofPropertyandEquipmentTable </Role> |
| | | <ShortName> PROPERTY AND EQUIPMENT (Details) - Schedule of Property and Equipment </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/PROPERTYANDEQUIPMENTTables </ParentRole> |
| | | <Position> 42 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R43.htm </HtmlFileName> |
| | | <LongName> 042 - Disclosure - OTHER ASSETS (Details) - Schedule of Other Assets </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ScheduleofOtherAssetsTable </Role> |
| | | <ShortName> OTHER ASSETS (Details) - Schedule of Other Assets </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/OTHERASSETSTables </ParentRole> |
| | | <Position> 43 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R44.htm </HtmlFileName> |
| | | <LongName> 043 - Disclosure - ACCRUED EXPENSES AND OTHER CURRENT LIABILITIES (Details) - Schedule of accrued expenses and other current liabilities </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ScheduleofaccruedexpensesandothercurrentliabilitiesTable </Role> |
| | | <ShortName> ACCRUED EXPENSES AND OTHER CURRENT LIABILITIES (Details) - Schedule of accrued expenses and other current liabilities </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/ACCRUEDEXPENSESANDOTHERCURRENTLIABILITIESTables </ParentRole> |
| | | <Position> 44 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R45.htm </HtmlFileName> |
| | | <LongName> 044 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/DERIVATIVEFINANCIALINSTRUMENTSDetails </Role> |
| | | <ShortName> DERIVATIVE FINANCIAL INSTRUMENTS (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/DERIVATIVEFINANCIALINSTRUMENTSTables </ParentRole> |
| | | <Position> 45 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R46.htm </HtmlFileName> |
| | | <LongName> 045 - Disclosure - DERIVATIVE FINANCIAL INSTRUMENTS (Details) - Schedule of Fair Values for Derivative Financial Instruments </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ScheduleofFairValuesforDerivativeFinancialInstrumentsTable </Role> |
| | | <ShortName> DERIVATIVE FINANCIAL INSTRUMENTS (Details) - Schedule of Fair Values for Derivative Financial Instruments </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/DERIVATIVEFINANCIALINSTRUMENTSTables </ParentRole> |
| | | <Position> 46 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R47.htm </HtmlFileName> |
| | | <LongName> 046 - Disclosure - INVESTMENTS (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/INVESTMENTSDetails </Role> |
| | | <ShortName> INVESTMENTS (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/INVESTMENTSTables </ParentRole> |
| | | <Position> 47 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R48.htm </HtmlFileName> |
| | | <LongName> 047 - Disclosure - INVESTMENTS (Details) - Schedule of Equity Method Investments </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ScheduleofEquityMethodInvestmentsTable </Role> |
| | | <ShortName> INVESTMENTS (Details) - Schedule of Equity Method Investments </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/INVESTMENTSTables </ParentRole> |
| | | <Position> 48 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R49.htm </HtmlFileName> |
| | | <LongName> 048 - Disclosure - INVESTMENTS (Details) - Schedule of Financial information For Equity Method Investment </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ScheduleofFinancialinformationForEquityMethodInvestmentTable </Role> |
| | | <ShortName> INVESTMENTS (Details) - Schedule of Financial information For Equity Method Investment </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/INVESTMENTSTables </ParentRole> |
| | | <Position> 49 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R50.htm </HtmlFileName> |
| | | <LongName> 049 - Disclosure - INVESTMENTS (Details) - Schedule of Held To Maturity Securities </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ScheduleofHeldToMaturitySecuritiesTable </Role> |
| | | <ShortName> INVESTMENTS (Details) - Schedule of Held To Maturity Securities </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/INVESTMENTSTables </ParentRole> |
| | | <Position> 50 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R51.htm </HtmlFileName> |
| | | <LongName> 050 - Disclosure - EMPLOYEE BENEFITS (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/EMPLOYEEBENEFITSDetails </Role> |
| | | <ShortName> EMPLOYEE BENEFITS (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/EMPLOYEEBENEFITSTables </ParentRole> |
| | | <Position> 51 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R52.htm </HtmlFileName> |
| | | <LongName> 051 - Disclosure - EMPLOYEE BENEFITS (Details) - Schedule of Non-Vested Restricted Stock Award Activity </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ScheduleofNonVestedRestrictedStockAwardActivityTable </Role> |
| | | <ShortName> EMPLOYEE BENEFITS (Details) - Schedule of Non-Vested Restricted Stock Award Activity </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/EMPLOYEEBENEFITSTables </ParentRole> |
| | | <Position> 52 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R53.htm </HtmlFileName> |
| | | <LongName> 052 - Disclosure - Income Taxes (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/IncomeTaxesDetails </Role> |
| | | <ShortName> Income Taxes (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/IncomeTaxesTables </ParentRole> |
| | | <Position> 53 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R54.htm </HtmlFileName> |
| | | <LongName> 053 - Disclosure - Income Taxes (Details) - Schedule of Unrecognized Tax Benefits Roll Forward </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ScheduleofUnrecognizedTaxBenefitsRollForwardTable </Role> |
| | | <ShortName> Income Taxes (Details) - Schedule of Unrecognized Tax Benefits Roll Forward </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/IncomeTaxesTables </ParentRole> |
| | | <Position> 54 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R55.htm </HtmlFileName> |
| | | <LongName> 054 - Disclosure - Commitments and Contingencies (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/CommitmentsandContingenciesDetails </Role> |
| | | <ShortName> Commitments and Contingencies (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/CommitmentsandContingencies </ParentRole> |
| | | <Position> 55 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R56.htm </HtmlFileName> |
| | | <LongName> 055 - Disclosure - Related-Party Transactions (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/RelatedPartyTransactionsDetails </Role> |
| | | <ShortName> Related-Party Transactions (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/RelatedPartyTransactions </ParentRole> |
| | | <Position> 56 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R57.htm </HtmlFileName> |
| | | <LongName> 056 - Disclosure - Segment Reporting (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/SegmentReportingDetails </Role> |
| | | <ShortName> Segment Reporting (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/SegmentReportingTables </ParentRole> |
| | | <Position> 57 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R58.htm </HtmlFileName> |
| | | <LongName> 057 - Disclosure - Segment Reporting (Details) - Schedule Of Segment Results And Assets </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ScheduleOfSegmentResultsAndAssetsTable </Role> |
| | | <ShortName> Segment Reporting (Details) - Schedule Of Segment Results And Assets </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/SegmentReportingTables </ParentRole> |
| | | <Position> 58 </Position> |
| | | </Report> |
| | <Report instance="rex-20191031.xml"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R59.htm </HtmlFileName> |
| | | <LongName> 058 - Disclosure - Segment Reporting (Details) - Schedule Of Segment Assets </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.rexamerican.com/role/ScheduleOfSegmentAssetsTable </Role> |
| | | <ShortName> Segment Reporting (Details) - Schedule Of Segment Assets </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.rexamerican.com/role/SegmentReportingTables </ParentRole> |
| | | <Position> 59 </Position> |
| | | </Report> |
| | <Report> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <LongName> All Reports </LongName> |
| | | <ReportType> Book </ReportType> |
| | | <ShortName> All Reports </ShortName> |
| | | </Report> |
| | </MyReports> |
| <InputFiles> |
| | <File> rex-20191031.xml </File> |
| | <File> rex-20191031.xsd </File> |
| | <File> rex-20191031_cal.xml </File> |
| | <File> rex-20191031_def.xml </File> |
| | <File> rex-20191031_lab.xml </File> |
| | <File> rex-20191031_pre.xml </File> |
| | </InputFiles> |
| <SupplementalFiles/> |
| <BaseTaxonomies> |
| | <BaseTaxonomy> http://xbrl.sec.gov/sic/2011-01-31 </BaseTaxonomy> |
| | <BaseTaxonomy> http://fasb.org/us-gaap/2019-01-31 </BaseTaxonomy> |
| | <BaseTaxonomy> http://fasb.org/srt/2019-01-31 </BaseTaxonomy> |
| | <BaseTaxonomy> http://xbrl.sec.gov/dei/2019-01-31 </BaseTaxonomy> |
| | </BaseTaxonomies> |
| <HasPresentationLinkbase> true </HasPresentationLinkbase> |
| <HasCalculationLinkbase> true </HasCalculationLinkbase> |
| </FilingSummary> |