<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.20.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>299</ContextCount>
  <ElementCount>598</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>88</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>10</UnitCount>
  <MyReports>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001001 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001002 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1002003 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1003004 - Statement - Consolidated Statements of Income (Loss)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsofIncomeLoss</Role>
      <ShortName>Consolidated Statements of Income (Loss)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1005006 - Statement - Consolidated Statements of Comprehensive Income (Loss)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss</Role>
      <ShortName>Consolidated Statements of Comprehensive Income (Loss)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1006007 - Statement - Consolidated Statement of Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/ConsolidatedStatementofStockholdersEquity</Role>
      <ShortName>Consolidated Statement of Stockholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1007008 - Statement - Consolidated Statement of Stockholders' Equity (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/ConsolidatedStatementofStockholdersEquityParenthetical</Role>
      <ShortName>Consolidated Statement of Stockholders' Equity (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>1008009 - Statement - Consolidated Statements of Cash Flow</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsofCashFlow</Role>
      <ShortName>Consolidated Statements of Cash Flow</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2101101 - Disclosure - Nature of Operations, Basis of Presentation and Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/NatureofOperationsBasisofPresentationandSignificantAccountingPolicies</Role>
      <ShortName>Nature of Operations, Basis of Presentation and Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2112102 - Disclosure - Receivables &amp; Allowance</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/ReceivablesAllowance</Role>
      <ShortName>Receivables &amp; Allowance</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2115103 - Disclosure - Inventories</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/Inventories</Role>
      <ShortName>Inventories</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2118104 - Disclosure - Property, Plant &amp; Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/PropertyPlantEquipment</Role>
      <ShortName>Property, Plant &amp; Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2121105 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/Leases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2124106 - Disclosure - Goodwill and Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/GoodwillandIntangibleAssets</Role>
      <ShortName>Goodwill and Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2127107 - Disclosure - Accrued Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/AccruedLiabilities</Role>
      <ShortName>Accrued Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2136109 - Disclosure - Retirement Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/RetirementPlans</Role>
      <ShortName>Retirement Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2139110 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2143111 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2145112 - Disclosure - Fair Value Measurement of Assets and Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/FairValueMeasurementofAssetsandLiabilities</Role>
      <ShortName>Fair Value Measurement of Assets and Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2147113 - Disclosure - Stock-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/StockBasedCompensation</Role>
      <ShortName>Stock-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2150114 - Disclosure - Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/StockholdersEquity</Role>
      <ShortName>Stockholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2152115 - Disclosure - Other Income (Expense)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/OtherIncomeExpense</Role>
      <ShortName>Other Income (Expense)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2155116 - Disclosure - Segment Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/SegmentInformation</Role>
      <ShortName>Segment Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2158117 - Disclosure - Earnings Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/EarningsPerShare</Role>
      <ShortName>Earnings Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2161118 - Disclosure - Unaudited Quarterly Data</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/UnauditedQuarterlyData</Role>
      <ShortName>Unaudited Quarterly Data</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2164119 - Disclosure - New Accounting Guidance</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/NewAccountingGuidance</Role>
      <ShortName>New Accounting Guidance</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2202201 - Disclosure - Nature of Operations, Basis of Presentation and Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/NatureofOperationsBasisofPresentationandSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Nature of Operations, Basis of Presentation and Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/NatureofOperationsBasisofPresentationandSignificantAccountingPolicies</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2303301 - Disclosure - Nature of Operations, Basis of Presentation and Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/NatureofOperationsBasisofPresentationandSignificantAccountingPoliciesTables</Role>
      <ShortName>Nature of Operations, Basis of Presentation and Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/NatureofOperationsBasisofPresentationandSignificantAccountingPolicies</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2313302 - Disclosure - Receivables &amp; Allowance (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/ReceivablesAllowanceTables</Role>
      <ShortName>Receivables &amp; Allowance (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/ReceivablesAllowance</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2316303 - Disclosure - Inventories (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/InventoriesTables</Role>
      <ShortName>Inventories (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/Inventories</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2319304 - Disclosure - Property, Plant &amp; and Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/PropertyPlantandEquipmentTables</Role>
      <ShortName>Property, Plant &amp; and Equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2322305 - Disclosure - Leases, Codification Topic 842 (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/LeasesCodificationTopic842Tables</Role>
      <ShortName>Leases, Codification Topic 842 (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2325306 - Disclosure - Goodwill and Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/GoodwillandIntangibleAssetsTables</Role>
      <ShortName>Goodwill and Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/GoodwillandIntangibleAssets</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2328307 - Disclosure - Accrued Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/AccruedLiabilitiesTables</Role>
      <ShortName>Accrued Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/AccruedLiabilities</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2331308 - Disclosure - Debt and Capital Lease Obligations (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/DebtandCapitalLeaseObligationsTables</Role>
      <ShortName>Debt and Capital Lease Obligations (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2337309 - Disclosure - Retirement Plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/RetirementPlansTables</Role>
      <ShortName>Retirement Plans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/RetirementPlans</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2340310 - Disclosure - Income Tax (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/IncomeTaxTables</Role>
      <ShortName>Income Tax (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/IncomeTaxes</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2348311 - Disclosure - Stock-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/StockBasedCompensationTables</Role>
      <ShortName>Stock-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/StockBasedCompensation</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2353312 - Disclosure - Other Income (Expense) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/OtherIncomeExpenseTables</Role>
      <ShortName>Other Income (Expense) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/OtherIncomeExpense</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2356313 - Disclosure - Segment Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/SegmentInformationTables</Role>
      <ShortName>Segment Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/SegmentInformation</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2359314 - Disclosure - Earnings Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/EarningsPerShareTables</Role>
      <ShortName>Earnings Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/EarningsPerShare</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2362315 - Disclosure - Unaudited Quarterly Data (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/UnauditedQuarterlyDataTables</Role>
      <ShortName>Unaudited Quarterly Data (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/UnauditedQuarterlyData</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2404401 - Disclosure - Nature of Operations, Basis of Presentation and Significant Accounting Policies, Revenue from Contracts with Customers (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/NatureofOperationsBasisofPresentationandSignificantAccountingPoliciesRevenuefromContractswithCustomersDetails</Role>
      <ShortName>Nature of Operations, Basis of Presentation and Significant Accounting Policies, Revenue from Contracts with Customers (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2405402 - Disclosure - Nature of Operations, Basis of Presentation and Significant Accounting Policies, Concentration (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/NatureofOperationsBasisofPresentationandSignificantAccountingPoliciesConcentrationDetails</Role>
      <ShortName>Nature of Operations, Basis of Presentation and Significant Accounting Policies, Concentration (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/NatureofOperationsBasisofPresentationandSignificantAccountingPoliciesTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2406403 - Disclosure - Nature of Operations, Basis of Presentation and Significant Accounting Policies, Long Lived Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/NatureofOperationsBasisofPresentationandSignificantAccountingPoliciesLongLivedAssetsDetails</Role>
      <ShortName>Nature of Operations, Basis of Presentation and Significant Accounting Policies, Long Lived Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/NatureofOperationsBasisofPresentationandSignificantAccountingPoliciesTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2407404 - Disclosure - Nature of Operations, Basis of Presentation and Significant Accounting Policies, Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/NatureofOperationsBasisofPresentationandSignificantAccountingPoliciesGoodwillDetails</Role>
      <ShortName>Nature of Operations, Basis of Presentation and Significant Accounting Policies, Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/NatureofOperationsBasisofPresentationandSignificantAccountingPoliciesTables</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2408405 - Disclosure - Nature of Operations, Basis of Presentation and Significant Accounting Policies, Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/NatureofOperationsBasisofPresentationandSignificantAccountingPoliciesIncomeTaxesDetails</Role>
      <ShortName>Nature of Operations, Basis of Presentation and Significant Accounting Policies, Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/NatureofOperationsBasisofPresentationandSignificantAccountingPoliciesTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2409406 - Disclosure - Nature of Operations, Basis of Presentation and Significant Accounting Policies, Stock-Based Compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/NatureofOperationsBasisofPresentationandSignificantAccountingPoliciesStockBasedCompensationDetails</Role>
      <ShortName>Nature of Operations, Basis of Presentation and Significant Accounting Policies, Stock-Based Compensation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2410407 - Disclosure - Nature of Operations, Basis of Presentation and Significant Accounting Policies, Cash Flow (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/NatureofOperationsBasisofPresentationandSignificantAccountingPoliciesCashFlowDetails</Role>
      <ShortName>Nature of Operations, Basis of Presentation and Significant Accounting Policies, Cash Flow (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/NatureofOperationsBasisofPresentationandSignificantAccountingPoliciesTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2411408 - Disclosure - Nature of Operations, Basis of Presentation and Significant Accounting Policies, Related Party Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/NatureofOperationsBasisofPresentationandSignificantAccountingPoliciesRelatedPartyTransactionsDetails</Role>
      <ShortName>Nature of Operations, Basis of Presentation and Significant Accounting Policies, Related Party Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2414409 - Disclosure - Receivables &amp; Allowance (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/ReceivablesAllowanceDetails</Role>
      <ShortName>Receivables &amp; Allowance (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/ReceivablesAllowanceTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2417410 - Disclosure - Inventories (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/InventoriesDetail</Role>
      <ShortName>Inventories (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/InventoriesTables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2420411 - Disclosure - Property, Plant &amp; and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/PropertyPlantandEquipmentDetails</Role>
      <ShortName>Property, Plant &amp; and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/PropertyPlantandEquipmentTables</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2423412 - Disclosure - Leases, Codification Topic 842 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/LeasesCodificationTopic842Details</Role>
      <ShortName>Leases, Codification Topic 842 (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/LeasesCodificationTopic842Tables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>2426413 - Disclosure - Goodwill and Intangible Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/GoodwillandIntangibleAssetsDetail</Role>
      <ShortName>Goodwill and Intangible Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/GoodwillandIntangibleAssetsTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>2429414 - Disclosure - Accrued Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/AccruedLiabilitiesDetails</Role>
      <ShortName>Accrued Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/AccruedLiabilitiesTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>2432415 - Disclosure - Debt and Capital Lease Obligations - Schedule of Debt Obligations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/DebtandCapitalLeaseObligationsScheduleofDebtObligationsDetails</Role>
      <ShortName>Debt and Capital Lease Obligations - Schedule of Debt Obligations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>2433416 - Disclosure - Debt and Capital Lease Obligations - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/DebtandCapitalLeaseObligationsNarrativeDetails</Role>
      <ShortName>Debt and Capital Lease Obligations - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>2434417 - Disclosure - Debt and Capital Lease Obligations - Schedule of Applicable Margins and Commitment Fees (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/DebtandCapitalLeaseObligationsScheduleofApplicableMarginsandCommitmentFeesDetails</Role>
      <ShortName>Debt and Capital Lease Obligations - Schedule of Applicable Margins and Commitment Fees (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>2435418 - Disclosure - Debt and Capital Lease Obligations - Schedule of Debt Maturities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/DebtandCapitalLeaseObligationsScheduleofDebtMaturitiesDetails</Role>
      <ShortName>Debt and Capital Lease Obligations - Schedule of Debt Maturities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>2438419 - Disclosure - Retirement Plans (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/RetirementPlansDetail</Role>
      <ShortName>Retirement Plans (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/RetirementPlansTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>2441420 - Disclosure - Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/IncomeTaxesDetails</Role>
      <ShortName>Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/IncomeTaxTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>2442421 - Disclosure - Income Taxes - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/IncomeTaxesNarrativeDetails</Role>
      <ShortName>Income Taxes - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>2444422 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/CommitmentsandContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/CommitmentsandContingencies</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>2446423 - Disclosure - Fair Value Measurement of Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/FairValueMeasurementofAssetsandLiabilitiesDetails</Role>
      <ShortName>Fair Value Measurement of Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/FairValueMeasurementofAssetsandLiabilities</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>2449424 - Disclosure - Stock Based Compensation (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/StockBasedCompensationDetail</Role>
      <ShortName>Stock Based Compensation (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>2451425 - Disclosure - Stockholders' Equity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/StockholdersEquityDetails</Role>
      <ShortName>Stockholders' Equity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/StockholdersEquity</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>2454426 - Disclosure - Other Income (Expense) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/OtherIncomeExpenseDetail</Role>
      <ShortName>Other Income (Expense) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/OtherIncomeExpenseTables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>2457427 - Disclosure - Segment Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/SegmentInformationDetail</Role>
      <ShortName>Segment Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/SegmentInformationTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>2460428 - Disclosure - Earnings Per Share (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/EarningsPerShareDetail</Role>
      <ShortName>Earnings Per Share (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/EarningsPerShareTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>2463429 - Disclosure - Unaudited Quarterly Data (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/UnauditedQuarterlyDataDetails</Role>
      <ShortName>Unaudited Quarterly Data (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.quanexbuildingproducts.com/role/UnauditedQuarterlyDataTables</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="nx-20201031.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>2465430 - Disclosure - Accounting Changes and Error Corrections (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.quanexbuildingproducts.com/role/AccountingChangesandErrorCorrectionsDetails</Role>
      <ShortName>Accounting Changes and Error Corrections (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-K" original="nx-20201031.htm">nx-20201031.htm</File>
    <File>nx-20201031.xsd</File>
    <File>nx-20201031_cal.xml</File>
    <File>nx-20201031_def.xml</File>
    <File>nx-20201031_lab.xml</File>
    <File>nx-20201031_pre.xml</File>
    <File>nx-exhibit1039.htm</File>
    <File>nx-exhibit211202010k.htm</File>
    <File>nx-exhibit231202010k.htm</File>
    <File>nx-exhibit311202010k.htm</File>
    <File>nx-exhibit312202010k.htm</File>
    <File>nx-exhibit32202010k.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>nx-20201031_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy>http://fasb.org/us-gaap/2020-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/country/2020-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2020-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2020-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
