<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:href="nx-20200430.xsd#CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedBalanceSheetsUnauditedParenthetical" xlink:href="nx-20200430.xsd#CondensedConsolidatedBalanceSheetsUnauditedParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementOfStockholdersEquity" xlink:href="nx-20200430.xsd#CondensedConsolidatedStatementOfStockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementOfStockholdersEquityParenthetical" xlink:href="nx-20200430.xsd#CondensedConsolidatedStatementOfStockholdersEquityParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsOfCashFlowUnaudited" xlink:href="nx-20200430.xsd#CondensedConsolidatedStatementsOfCashFlowUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsOfComprehensiveIncomeLossUnaudited" xlink:href="nx-20200430.xsd#CondensedConsolidatedStatementsOfComprehensiveIncomeLossUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsOfIncomeLossUnaudited" xlink:href="nx-20200430.xsd#CondensedConsolidatedStatementsOfIncomeLossUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsOfIncomeLossUnauditedParenthetical" xlink:href="nx-20200430.xsd#CondensedConsolidatedStatementsOfIncomeLossUnauditedParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/Contingencies" xlink:href="nx-20200430.xsd#Contingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ContingenciesDetails" xlink:href="nx-20200430.xsd#ContingenciesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtAndCapitalLeaseObligations" xlink:href="nx-20200430.xsd#DebtAndCapitalLeaseObligations" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtAndCapitalLeaseObligationsDetail" xlink:href="nx-20200430.xsd#DebtAndCapitalLeaseObligationsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtAndCapitalLeaseObligationsTables" xlink:href="nx-20200430.xsd#DebtAndCapitalLeaseObligationsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DocumentAndEntityInformation" xlink:href="nx-20200430.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/EarningsPerShare" xlink:href="nx-20200430.xsd#EarningsPerShare" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/EarningsPerShareDetail" xlink:href="nx-20200430.xsd#EarningsPerShareDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/EarningsPerShareEarningsPerShareTables" xlink:href="nx-20200430.xsd#EarningsPerShareEarningsPerShareTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/FairValueMeasurementOfAssetsAndLiabilities" xlink:href="nx-20200430.xsd#FairValueMeasurementOfAssetsAndLiabilities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/FairValueMeasurementOfAssetsAndLiabilitiesDetails" xlink:href="nx-20200430.xsd#FairValueMeasurementOfAssetsAndLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/FairValueMeasurementOfAssetsAndLiabilitiesTables" xlink:href="nx-20200430.xsd#FairValueMeasurementOfAssetsAndLiabilitiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/GoodwillAndIntangibleAssets" xlink:href="nx-20200430.xsd#GoodwillAndIntangibleAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/GoodwillAndIntangibleAssetsGoodwillDetails" xlink:href="nx-20200430.xsd#GoodwillAndIntangibleAssetsGoodwillDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/GoodwillAndIntangibleAssetsIdentifiableIntangibleAssetsDetail" xlink:href="nx-20200430.xsd#GoodwillAndIntangibleAssetsIdentifiableIntangibleAssetsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/GoodwillAndIntangibleAssetsTables" xlink:href="nx-20200430.xsd#GoodwillAndIntangibleAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/IncomeTaxes" xlink:href="nx-20200430.xsd#IncomeTaxes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/IncomeTaxesDetail" xlink:href="nx-20200430.xsd#IncomeTaxesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/IncomeTaxesIncomeTaxTables" xlink:href="nx-20200430.xsd#IncomeTaxesIncomeTaxTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/Inventories" xlink:href="nx-20200430.xsd#Inventories" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/InventoriesDetail" xlink:href="nx-20200430.xsd#InventoriesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/InventoriesTables" xlink:href="nx-20200430.xsd#InventoriesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/Leases" xlink:href="nx-20200430.xsd#Leases" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/LeasesAdditionalInformationDetails" xlink:href="nx-20200430.xsd#LeasesAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/LeasesFutureMinimumLeasePaymentsDetails" xlink:href="nx-20200430.xsd#LeasesFutureMinimumLeasePaymentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/LeasesLeaseCostsDetails" xlink:href="nx-20200430.xsd#LeasesLeaseCostsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/LeasesLeaseRelatedAssetsAndLiabilitiesDetails" xlink:href="nx-20200430.xsd#LeasesLeaseRelatedAssetsAndLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/LeasesPresentMaturityOfLeaseLiabilitiesDetails" xlink:href="nx-20200430.xsd#LeasesPresentMaturityOfLeaseLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/LeasesSupplementalCashFlowInformationDetails" xlink:href="nx-20200430.xsd#LeasesSupplementalCashFlowInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/LeasesTables" xlink:href="nx-20200430.xsd#LeasesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/LeasesWeightedAverageRemainingLeaseTermsAndWeightedAverageDiscountRatesDetails" xlink:href="nx-20200430.xsd#LeasesWeightedAverageRemainingLeaseTermsAndWeightedAverageDiscountRatesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentation" xlink:href="nx-20200430.xsd#NatureOfOperationsAndBasisOfPresentation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationCovid19Details" xlink:href="nx-20200430.xsd#NatureOfOperationsAndBasisOfPresentationCovid19Details" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationDetails" xlink:href="nx-20200430.xsd#NatureOfOperationsAndBasisOfPresentationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationSummaryOfProductSalesDetails" xlink:href="nx-20200430.xsd#NatureOfOperationsAndBasisOfPresentationSummaryOfProductSalesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationTables" xlink:href="nx-20200430.xsd#NatureOfOperationsAndBasisOfPresentationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NewAccountingGuidanceAdopted" xlink:href="nx-20200430.xsd#NewAccountingGuidanceAdopted" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NewAccountingGuidanceAdoptedDetails" xlink:href="nx-20200430.xsd#NewAccountingGuidanceAdoptedDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/OtherIncomeExpense" xlink:href="nx-20200430.xsd#OtherIncomeExpense" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/OtherIncomeExpenseDetail" xlink:href="nx-20200430.xsd#OtherIncomeExpenseDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/OtherIncomeExpenseTables" xlink:href="nx-20200430.xsd#OtherIncomeExpenseTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/RetirementPlans" xlink:href="nx-20200430.xsd#RetirementPlans" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/RetirementPlansDetail" xlink:href="nx-20200430.xsd#RetirementPlansDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/RetirementPlansTables" xlink:href="nx-20200430.xsd#RetirementPlansTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/SegmentInformationDetails" xlink:href="nx-20200430.xsd#SegmentInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/SegmentInformationGoodwillBySegmentDetails" xlink:href="nx-20200430.xsd#SegmentInformationGoodwillBySegmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/SegmentInformationNotes" xlink:href="nx-20200430.xsd#SegmentInformationNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/SegmentInformationReconcilliationOfOperatingLossToNetIncomeDetails" xlink:href="nx-20200430.xsd#SegmentInformationReconcilliationOfOperatingLossToNetIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/SegmentInformationSegmentReportingInformationDetails" xlink:href="nx-20200430.xsd#SegmentInformationSegmentReportingInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/SegmentInformationTables" xlink:href="nx-20200430.xsd#SegmentInformationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensation" xlink:href="nx-20200430.xsd#StockBasedCompensation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationDetail" xlink:href="nx-20200430.xsd#StockBasedCompensationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationPerformanceRestrictedStockUnitsDetails" xlink:href="nx-20200430.xsd#StockBasedCompensationPerformanceRestrictedStockUnitsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationPerformanceShareAwardsDetails" xlink:href="nx-20200430.xsd#StockBasedCompensationPerformanceShareAwardsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationRestrictedStockAwardsDetails" xlink:href="nx-20200430.xsd#StockBasedCompensationRestrictedStockAwardsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationRestrictedStockUnitsDetails" xlink:href="nx-20200430.xsd#StockBasedCompensationRestrictedStockUnitsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationStockOptionsDetails" xlink:href="nx-20200430.xsd#StockBasedCompensationStockOptionsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationTables" xlink:href="nx-20200430.xsd#StockBasedCompensationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationTreasurySharesDetails" xlink:href="nx-20200430.xsd#StockBasedCompensationTreasurySharesDetails" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" xlink:type="simple" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedBalanceSheetsUnauditedParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementOfStockholdersEquity" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_6325D86F4DBCC6F1C2F2D10533B0A1D6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_0BF7CE72B7D5C80CBEB9D10533AD870E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_6325D86F4DBCC6F1C2F2D10533B0A1D6" xlink:to="loc_us-gaap_StatementTable_0BF7CE72B7D5C80CBEB9D10533AD870E" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_E6CB04E12054FF037A51D10533ADA05C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_0BF7CE72B7D5C80CBEB9D10533AD870E" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_E6CB04E12054FF037A51D10533ADA05C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_29D58C0E56BEBA5DA2D8D10533AEB24B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_E6CB04E12054FF037A51D10533ADA05C" xlink:to="loc_us-gaap_EquityComponentDomain_29D58C0E56BEBA5DA2D8D10533AEB24B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_29D58C0E56BEBA5DA2D8D10533AEB24B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_E6CB04E12054FF037A51D10533ADA05C" xlink:to="loc_us-gaap_EquityComponentDomain_29D58C0E56BEBA5DA2D8D10533AEB24B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_E40CC9FCDF947B5FACC9D10533AE03A4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_29D58C0E56BEBA5DA2D8D10533AEB24B" xlink:to="loc_us-gaap_CommonStockMember_E40CC9FCDF947B5FACC9D10533AE03A4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_83DE383265CF15E16416D10533AF0CAC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_29D58C0E56BEBA5DA2D8D10533AEB24B" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_83DE383265CF15E16416D10533AF0CAC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_12146DC7A09DA258C68AD10533AF7080" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_29D58C0E56BEBA5DA2D8D10533AEB24B" xlink:to="loc_us-gaap_RetainedEarningsMember_12146DC7A09DA258C68AD10533AF7080" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_EFB4686AA625BBDAF805D10533B041A6" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_29D58C0E56BEBA5DA2D8D10533AEB24B" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_EFB4686AA625BBDAF805D10533B041A6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TreasuryStockMember" xlink:label="loc_us-gaap_TreasuryStockMember_572D0EE6B258B02DBAEDD10533B0CE64" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_29D58C0E56BEBA5DA2D8D10533AEB24B" xlink:to="loc_us-gaap_TreasuryStockMember_572D0EE6B258B02DBAEDD10533B0CE64" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1F2613DDA8571C2AF546D10533B0A7A4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6325D86F4DBCC6F1C2F2D10533B0A1D6" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1F2613DDA8571C2AF546D10533B0A7A4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_2A98C0F83B0D5944258DD10533B18CEF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1F2613DDA8571C2AF546D10533B0A7A4" xlink:to="loc_us-gaap_StockholdersEquity_2A98C0F83B0D5944258DD10533B18CEF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_671CC1E897D4BB1D404FD10533B1365B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1F2613DDA8571C2AF546D10533B0A7A4" xlink:to="loc_us-gaap_NetIncomeLoss_671CC1E897D4BB1D404FD10533B1365B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_B1A0224DCC0C4D54CDBFD10533B2F1AA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1F2613DDA8571C2AF546D10533B0A7A4" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_B1A0224DCC0C4D54CDBFD10533B2F1AA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DividendsCommonStockCash" xlink:label="loc_us-gaap_DividendsCommonStockCash_DF73EF68A1968EF8A173D10533B2FF18" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1F2613DDA8571C2AF546D10533B0A7A4" xlink:to="loc_us-gaap_DividendsCommonStockCash_DF73EF68A1968EF8A173D10533B2FF18" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_53152088D9787D5C4260D10533B24EB1" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1F2613DDA8571C2AF546D10533B0A7A4" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_53152088D9787D5C4260D10533B24EB1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationAbstract" xlink:label="loc_us-gaap_ShareBasedCompensationAbstract_F33B7FFD008103579C0AD10533B2F62A" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1F2613DDA8571C2AF546D10533B0A7A4" xlink:to="loc_us-gaap_ShareBasedCompensationAbstract_F33B7FFD008103579C0AD10533B2F62A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_F157F5D149DA8AB0C31BD10533B24BDE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationAbstract_F33B7FFD008103579C0AD10533B2F62A" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_F157F5D149DA8AB0C31BD10533B24BDE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_C5940CD73D993E5BF778D10533B3F5FE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationAbstract_F33B7FFD008103579C0AD10533B2F62A" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_C5940CD73D993E5BF778D10533B3F5FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross_19502076E461510E9F0CD10533B4AA84" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationAbstract_F33B7FFD008103579C0AD10533B2F62A" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross_19502076E461510E9F0CD10533B4AA84" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquityOther" xlink:label="loc_us-gaap_StockholdersEquityOther_A73AC714653E2FBECF84D10533B4D6BF" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_1F2613DDA8571C2AF546D10533B0A7A4" xlink:to="loc_us-gaap_StockholdersEquityOther_A73AC714653E2FBECF84D10533B4D6BF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodNetOfTax_EBB831AFB9B60ACC7B09D10533B44A56" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6325D86F4DBCC6F1C2F2D10533B0A1D6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodNetOfTax_EBB831AFB9B60ACC7B09D10533B44A56" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_StockIssuedDuringPeriodTreasurySharesPerformanceSharesVested" xlink:label="loc_nx_StockIssuedDuringPeriodTreasurySharesPerformanceSharesVested_8856AAAD798EC936A928D10533B59373" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6325D86F4DBCC6F1C2F2D10533B0A1D6" xlink:to="loc_nx_StockIssuedDuringPeriodTreasurySharesPerformanceSharesVested_8856AAAD798EC936A928D10533B59373" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementOfStockholdersEquityParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsOfCashFlowUnaudited" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsOfComprehensiveIncomeLossUnaudited" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsOfIncomeLossUnaudited" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsOfIncomeLossUnauditedParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/Contingencies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/ContingenciesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/DebtAndCapitalLeaseObligations" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/DebtAndCapitalLeaseObligationsDetail" xlink:type="extended">
    <link:loc xlink:href="nx-20200430.xsd#nx_DebtDisclosureLineItems" xlink:label="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:type="locator" />
    <link:loc xlink:href="nx-20200430.xsd#nx_DebtDisclosureTable" xlink:label="loc_nx_DebtDisclosureTable_69A40CACCBA0826ECCDCD10532E545F7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_nx_DebtDisclosureTable_69A40CACCBA0826ECCDCD10532E545F7" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_E3DAF710692726EB7D64D10532E5A2F3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_DebtDisclosureTable_69A40CACCBA0826ECCDCD10532E545F7" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_E3DAF710692726EB7D64D10532E5A2F3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_82AC05BBC773B03A8E5FD10532E6E497_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_E3DAF710692726EB7D64D10532E5A2F3" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_82AC05BBC773B03A8E5FD10532E6E497_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_82AC05BBC773B03A8E5FD10532E6E497" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_E3DAF710692726EB7D64D10532E5A2F3" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_82AC05BBC773B03A8E5FD10532E6E497" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_InterestRateScenarioAxis" xlink:label="loc_nx_InterestRateScenarioAxis_75C70A01A382961EC631D10532E6062E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_DebtDisclosureTable_69A40CACCBA0826ECCDCD10532E545F7" xlink:to="loc_nx_InterestRateScenarioAxis_75C70A01A382961EC631D10532E6062E" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_InterestRateScenarioDomain" xlink:label="loc_nx_InterestRateScenarioDomain_A507EEB2F1DAA0177B93D10532E73F65_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_nx_InterestRateScenarioAxis_75C70A01A382961EC631D10532E6062E" xlink:to="loc_nx_InterestRateScenarioDomain_A507EEB2F1DAA0177B93D10532E73F65_default" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_InterestRateScenarioDomain" xlink:label="loc_nx_InterestRateScenarioDomain_A507EEB2F1DAA0177B93D10532E73F65" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_nx_InterestRateScenarioAxis_75C70A01A382961EC631D10532E6062E" xlink:to="loc_nx_InterestRateScenarioDomain_A507EEB2F1DAA0177B93D10532E73F65" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_LessThanOneandOneHalfLeverageRatioMember" xlink:label="loc_nx_LessThanOneandOneHalfLeverageRatioMember_8D1E2888FB402127821ED10532E7B43B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_InterestRateScenarioDomain_A507EEB2F1DAA0177B93D10532E73F65" xlink:to="loc_nx_LessThanOneandOneHalfLeverageRatioMember_8D1E2888FB402127821ED10532E7B43B" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_BetweenOneandOneHalfandTwoandOneQuarterLeverageRatioMember" xlink:label="loc_nx_BetweenOneandOneHalfandTwoandOneQuarterLeverageRatioMember_A94AA8FA2EE0911DF455D10532E7718C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_InterestRateScenarioDomain_A507EEB2F1DAA0177B93D10532E73F65" xlink:to="loc_nx_BetweenOneandOneHalfandTwoandOneQuarterLeverageRatioMember_A94AA8FA2EE0911DF455D10532E7718C" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_BetweenTwoandOneQuarterandThreeLeverageRatioMember" xlink:label="loc_nx_BetweenTwoandOneQuarterandThreeLeverageRatioMember_04556EE795D4AC897012D10532E8B9DC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_InterestRateScenarioDomain_A507EEB2F1DAA0177B93D10532E73F65" xlink:to="loc_nx_BetweenTwoandOneQuarterandThreeLeverageRatioMember_04556EE795D4AC897012D10532E8B9DC" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_GreaterThanThreeLeverageRatioMember" xlink:label="loc_nx_GreaterThanThreeLeverageRatioMember_F15C4F6522F61EBF6C73D10532E823B1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_InterestRateScenarioDomain_A507EEB2F1DAA0177B93D10532E73F65" xlink:to="loc_nx_GreaterThanThreeLeverageRatioMember_F15C4F6522F61EBF6C73D10532E823B1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NewAccountingPronouncementEarlyAdoptionAxis" xlink:label="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionAxis_1C54A0D9B3D956531076D10532E85B96" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_DebtDisclosureTable_69A40CACCBA0826ECCDCD10532E545F7" xlink:to="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionAxis_1C54A0D9B3D956531076D10532E85B96" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NewAccountingPrinciplesEarlyAdoptionMember" xlink:label="loc_us-gaap_NewAccountingPrinciplesEarlyAdoptionMember_ACDAA75052BAF08C377BD10532E8EE13_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionAxis_1C54A0D9B3D956531076D10532E85B96" xlink:to="loc_us-gaap_NewAccountingPrinciplesEarlyAdoptionMember_ACDAA75052BAF08C377BD10532E8EE13_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NewAccountingPrinciplesEarlyAdoptionMember" xlink:label="loc_us-gaap_NewAccountingPrinciplesEarlyAdoptionMember_ACDAA75052BAF08C377BD10532E8EE13" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionAxis_1C54A0D9B3D956531076D10532E85B96" xlink:to="loc_us-gaap_NewAccountingPrinciplesEarlyAdoptionMember_ACDAA75052BAF08C377BD10532E8EE13" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_55A9A50DD2C4B726AD50D10532E922D1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_DebtDisclosureTable_69A40CACCBA0826ECCDCD10532E545F7" xlink:to="loc_srt_RangeAxis_55A9A50DD2C4B726AD50D10532E922D1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_ADFD2D000D8605EED30CD10532E92F55_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_55A9A50DD2C4B726AD50D10532E922D1" xlink:to="loc_srt_RangeMember_ADFD2D000D8605EED30CD10532E92F55_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_ADFD2D000D8605EED30CD10532E92F55" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_55A9A50DD2C4B726AD50D10532E922D1" xlink:to="loc_srt_RangeMember_ADFD2D000D8605EED30CD10532E92F55" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_A8046024ED60C49A2D4CD10532E9B632" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_ADFD2D000D8605EED30CD10532E92F55" xlink:to="loc_srt_MinimumMember_A8046024ED60C49A2D4CD10532E9B632" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_BF0C683A87BC64BAA60CD10532EA3C50" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_ADFD2D000D8605EED30CD10532E92F55" xlink:to="loc_srt_MaximumMember_BF0C683A87BC64BAA60CD10532EA3C50" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VariableRateAxis" xlink:label="loc_us-gaap_VariableRateAxis_E6F96D120216FCD45794D10532EA3706" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_DebtDisclosureTable_69A40CACCBA0826ECCDCD10532E545F7" xlink:to="loc_us-gaap_VariableRateAxis_E6F96D120216FCD45794D10532EA3706" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_688BE374E80CE33AA1DED10532EAA9F2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_E6F96D120216FCD45794D10532EA3706" xlink:to="loc_us-gaap_VariableRateDomain_688BE374E80CE33AA1DED10532EAA9F2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_688BE374E80CE33AA1DED10532EAA9F2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_E6F96D120216FCD45794D10532EA3706" xlink:to="loc_us-gaap_VariableRateDomain_688BE374E80CE33AA1DED10532EAA9F2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BaseRateMember" xlink:label="loc_us-gaap_BaseRateMember_4E6DEE8CA4A508864DCCD10532EBBFA0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_688BE374E80CE33AA1DED10532EAA9F2" xlink:to="loc_us-gaap_BaseRateMember_4E6DEE8CA4A508864DCCD10532EBBFA0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LondonInterbankOfferedRateLIBORMember" xlink:label="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_DAC6A930AFBD0B2FCB31D10532EB2BD4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_688BE374E80CE33AA1DED10532EAA9F2" xlink:to="loc_us-gaap_LondonInterbankOfferedRateLIBORMember_DAC6A930AFBD0B2FCB31D10532EB2BD4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_5C814D1D8B8A20248CB6D10532EBB774" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_DebtDisclosureTable_69A40CACCBA0826ECCDCD10532E545F7" xlink:to="loc_us-gaap_CreditFacilityAxis_5C814D1D8B8A20248CB6D10532EBB774" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_D36EE18C0727AD2A8B53D10532EC29A8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_5C814D1D8B8A20248CB6D10532EBB774" xlink:to="loc_us-gaap_CreditFacilityDomain_D36EE18C0727AD2A8B53D10532EC29A8_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_D36EE18C0727AD2A8B53D10532EC29A8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_5C814D1D8B8A20248CB6D10532EBB774" xlink:to="loc_us-gaap_CreditFacilityDomain_D36EE18C0727AD2A8B53D10532EC29A8" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_A2018CreditFacilityMember" xlink:label="loc_nx_A2018CreditFacilityMember_46444CC3127FC8123D56D10532ECA4B1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_D36EE18C0727AD2A8B53D10532EC29A8" xlink:to="loc_nx_A2018CreditFacilityMember_46444CC3127FC8123D56D10532ECA4B1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevolvingCreditFacilityMember" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_61AF6FD2C64F7485FACDD10532ECB125" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_D36EE18C0727AD2A8B53D10532EC29A8" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_61AF6FD2C64F7485FACDD10532ECB125" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_TermLoanFacilityMember" xlink:label="loc_nx_TermLoanFacilityMember_08CB9E61389A2C1FE5E9D10532EDD0CE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_D36EE18C0727AD2A8B53D10532EC29A8" xlink:to="loc_nx_TermLoanFacilityMember_08CB9E61389A2C1FE5E9D10532EDD0CE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_BAE7AE8966F4BD70FDB8D10532EDEDF7" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_DebtDisclosureTable_69A40CACCBA0826ECCDCD10532E545F7" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_BAE7AE8966F4BD70FDB8D10532EDEDF7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_344B75BA6BCF61D9BF47D10532EDA014_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_BAE7AE8966F4BD70FDB8D10532EDEDF7" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_344B75BA6BCF61D9BF47D10532EDA014_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_344B75BA6BCF61D9BF47D10532EDA014" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_BAE7AE8966F4BD70FDB8D10532EDEDF7" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_344B75BA6BCF61D9BF47D10532EDA014" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_3BC3AD663AA693E4EA39D10532EDBEE7" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_DebtDisclosureTable_69A40CACCBA0826ECCDCD10532E545F7" xlink:to="loc_dei_LegalEntityAxis_3BC3AD663AA693E4EA39D10532EDBEE7" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_5F00434BAB4CDCEBE69CD10532EEF9EC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_3BC3AD663AA693E4EA39D10532EDBEE7" xlink:to="loc_dei_EntityDomain_5F00434BAB4CDCEBE69CD10532EEF9EC_default" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_5F00434BAB4CDCEBE69CD10532EEF9EC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_3BC3AD663AA693E4EA39D10532EDBEE7" xlink:to="loc_dei_EntityDomain_5F00434BAB4CDCEBE69CD10532EEF9EC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_DC30C6634DC14DF10A6AD10532EE7514" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_DebtDisclosureTable_69A40CACCBA0826ECCDCD10532E545F7" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_DC30C6634DC14DF10A6AD10532EE7514" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_3B9A17802D5C9A1D8DABD10532EE98E4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_DC30C6634DC14DF10A6AD10532EE7514" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_3B9A17802D5C9A1D8DABD10532EE98E4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_3B9A17802D5C9A1D8DABD10532EE98E4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_DC30C6634DC14DF10A6AD10532EE7514" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_3B9A17802D5C9A1D8DABD10532EE98E4" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_TermLoanFacilityMember" xlink:label="loc_nx_TermLoanFacilityMember_38B7EB27C9BD866CE8D7D10532EFEF65" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_3B9A17802D5C9A1D8DABD10532EE98E4" xlink:to="loc_nx_TermLoanFacilityMember_38B7EB27C9BD866CE8D7D10532EFEF65" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditMember" xlink:label="loc_us-gaap_LineOfCreditMember_3ECA57266756F586A3F9D10532EF3BDC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_3B9A17802D5C9A1D8DABD10532EE98E4" xlink:to="loc_us-gaap_LineOfCreditMember_3ECA57266756F586A3F9D10532EF3BDC" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_CapitalLeaseObligationsAndOtherMember" xlink:label="loc_nx_CapitalLeaseObligationsAndOtherMember_7B30126953B4E20FEAD8D10532EFE1DB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_3B9A17802D5C9A1D8DABD10532EE98E4" xlink:to="loc_nx_CapitalLeaseObligationsAndOtherMember_7B30126953B4E20FEAD8D10532EFE1DB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevolvingCreditFacilityMember" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_6390CFB0CE4B8DE9C5C8D10532EF0474" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_3B9A17802D5C9A1D8DABD10532EE98E4" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_6390CFB0CE4B8DE9C5C8D10532EF0474" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_A2018CreditFacilityMember" xlink:label="loc_nx_A2018CreditFacilityMember_A89728715EC628FE6086D10532F08331" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_3B9A17802D5C9A1D8DABD10532EE98E4" xlink:to="loc_nx_A2018CreditFacilityMember_A89728715EC628FE6086D10532F08331" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_E4F6E2AD48C6D8FFAEC3D10532F01CCC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_E4F6E2AD48C6D8FFAEC3D10532F01CCC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromLinesOfCredit" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_858D38055B451819EA7BD10532F14522" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_858D38055B451819EA7BD10532F14522" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentPeriodEndDate" xlink:label="loc_dei_DocumentPeriodEndDate_5458EBD426BB18BC36C7D10532F155C6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_dei_DocumentPeriodEndDate_5458EBD426BB18BC36C7D10532F155C6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCredit" xlink:label="loc_us-gaap_LineOfCredit_C4B3D54B7215FA966DA9D10532F12E03" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_us-gaap_LineOfCredit_C4B3D54B7215FA966DA9D10532F12E03" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherLongTermDebt" xlink:label="loc_us-gaap_OtherLongTermDebt_9E9D139CC68BCDAAF5CDD10532F17516" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_us-gaap_OtherLongTermDebt_9E9D139CC68BCDAAF5CDD10532F17516" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_Financeleaseobligationsandother" xlink:label="loc_nx_Financeleaseobligationsandother_69454579DFA4A3B4B509D10532F28885" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_nx_Financeleaseobligationsandother_69454579DFA4A3B4B509D10532F28885" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredFinanceCostsOwnshareLendingArrangementIssuanceCostsNet" xlink:label="loc_us-gaap_DeferredFinanceCostsOwnshareLendingArrangementIssuanceCostsNet_F407D5AF2F1D6F025446D10532F2FE96" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_us-gaap_DeferredFinanceCostsOwnshareLendingArrangementIssuanceCostsNet_F407D5AF2F1D6F025446D10532F2FE96" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtAndCapitalLeaseObligations" xlink:label="loc_us-gaap_DebtAndCapitalLeaseObligations_F3C212A96DB3C1D5A835D10532F202EA" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_us-gaap_DebtAndCapitalLeaseObligations_F3C212A96DB3C1D5A835D10532F202EA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_5ECD4987E81312E160CED10532F29BA8" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_5ECD4987E81312E160CED10532F29BA8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_58620BC489B7FD7B9D68D10532F339F6" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_58620BC489B7FD7B9D68D10532F339F6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentInterestRateDuringPeriod" xlink:label="loc_us-gaap_DebtInstrumentInterestRateDuringPeriod_652056D5C76B799A4959D10532F30997" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_us-gaap_DebtInstrumentInterestRateDuringPeriod_652056D5C76B799A4959D10532F30997" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RepaymentsOfLinesOfCredit" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_6A9CBB8F06E352CD830ED10532F3D43B" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_6A9CBB8F06E352CD830ED10532F3D43B" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_LineofCreditFacilityMaximumBorrowingCapacityCommittedAmount" xlink:label="loc_nx_LineofCreditFacilityMaximumBorrowingCapacityCommittedAmount_94FCFDC096199A458A42D10532F30D71" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_nx_LineofCreditFacilityMaximumBorrowingCapacityCommittedAmount_94FCFDC096199A458A42D10532F30D71" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityCommitmentFeePercentage" xlink:label="loc_us-gaap_LineOfCreditFacilityCommitmentFeePercentage_7F50AF50E7DDD6DD81CCD10532F350C2" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_us-gaap_LineOfCreditFacilityCommitmentFeePercentage_7F50AF50E7DDD6DD81CCD10532F350C2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_C5C8D3655A6A32216629D10532F4677F" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_C5C8D3655A6A32216629D10532F4677F" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_DebtInstrumentDebtDefaultInterestAccrualRate" xlink:label="loc_nx_DebtInstrumentDebtDefaultInterestAccrualRate_41429885416EBDC59DFED10532F4F4CE" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_nx_DebtInstrumentDebtDefaultInterestAccrualRate_41429885416EBDC59DFED10532F4F4CE" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_DebtInstrumentRequiredLeverageRatio" xlink:label="loc_nx_DebtInstrumentRequiredLeverageRatio_1211EC6C4F20B3346098D10532F46540" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_nx_DebtInstrumentRequiredLeverageRatio_1211EC6C4F20B3346098D10532F46540" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_DebtInstrumentLimitationonAnnualDividend" xlink:label="loc_nx_DebtInstrumentLimitationonAnnualDividend_E7C784C875F41E58EA34D10532F4F142" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_nx_DebtInstrumentLimitationonAnnualDividend_E7C784C875F41E58EA34D10532F4F142" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_31A6763A39E6DADA94C9D10532F52692" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_31A6763A39E6DADA94C9D10532F52692" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_DebtInstrumentMaximumFixedChargeCoverageRatio" xlink:label="loc_nx_DebtInstrumentMaximumFixedChargeCoverageRatio_CAC58E42A4B03AE08ACBD10532F5DBE6" xlink:type="locator" />
    <link:definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_nx_DebtInstrumentMaximumFixedChargeCoverageRatio_CAC58E42A4B03AE08ACBD10532F5DBE6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_8D57BF6E58783E7F558ED10532F52C51" xlink:type="locator" />
    <link:definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_8D57BF6E58783E7F558ED10532F52C51" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtDisclosureAbstract" xlink:label="loc_us-gaap_DebtDisclosureAbstract_D538D9DDE36B3632B51FD10532F5C6D7" xlink:type="locator" />
    <link:definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_DebtDisclosureLineItems_F51B90FBF7E2AA8D5901D10532F0BD2E" xlink:to="loc_us-gaap_DebtDisclosureAbstract_D538D9DDE36B3632B51FD10532F5C6D7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_1F3EFF5A4D4B9A80E6FDD10532F55BB9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtDisclosureAbstract_D538D9DDE36B3632B51FD10532F5C6D7" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_1F3EFF5A4D4B9A80E6FDD10532F55BB9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LettersOfCreditOutstandingAmount" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_5B0048F95BF3AA1D63C9D10532F6008B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtDisclosureAbstract_D538D9DDE36B3632B51FD10532F5C6D7" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_5B0048F95BF3AA1D63C9D10532F6008B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/DebtAndCapitalLeaseObligationsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/DocumentAndEntityInformation" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockLineItems" xlink:label="loc_us-gaap_ClassOfStockLineItems_D686026126C387DE9059D105335AD719" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfStockByClassTable" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_1932C8EC2783E5811096D1053358299C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_D686026126C387DE9059D105335AD719" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_1932C8EC2783E5811096D1053358299C" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_2A9BF19CE72F86D8381FD105335814A8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_1932C8EC2783E5811096D1053358299C" xlink:to="loc_us-gaap_StatementClassOfStockAxis_2A9BF19CE72F86D8381FD105335814A8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_C0320FBD9FC86C02A8DFD1053359A48C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_2A9BF19CE72F86D8381FD105335814A8" xlink:to="loc_us-gaap_ClassOfStockDomain_C0320FBD9FC86C02A8DFD1053359A48C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_C0320FBD9FC86C02A8DFD1053359A48C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_2A9BF19CE72F86D8381FD105335814A8" xlink:to="loc_us-gaap_ClassOfStockDomain_C0320FBD9FC86C02A8DFD1053359A48C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_A108E1BCE5B75DDD8BABD1053359181C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_C0320FBD9FC86C02A8DFD1053359A48C" xlink:to="loc_us-gaap_CommonStockMember_A108E1BCE5B75DDD8BABD1053359181C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/EarningsPerShare" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/EarningsPerShareDetail" xlink:type="extended">
    <link:loc xlink:href="nx-20200430.xsd#nx_EarningsPerShareDisclosureLineItems" xlink:label="loc_nx_EarningsPerShareDisclosureLineItems_33B28BAD64BAD5746943FFA09A5FB551" xlink:type="locator" />
    <link:loc xlink:href="nx-20200430.xsd#nx_EarningsPerShareDisclosureTable" xlink:label="loc_nx_EarningsPerShareDisclosureTable_4253FD6B7641CFD55500FFA09A5B92AD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_33B28BAD64BAD5746943FFA09A5FB551" xlink:to="loc_nx_EarningsPerShareDisclosureTable_4253FD6B7641CFD55500FFA09A5B92AD" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_16FC1004064067D064EEFFA09A5C4232" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_EarningsPerShareDisclosureTable_4253FD6B7641CFD55500FFA09A5B92AD" xlink:to="loc_us-gaap_StatementClassOfStockAxis_16FC1004064067D064EEFFA09A5C4232" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_482BC2F7DE2455C3F2CCFFA09A5DF689_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_16FC1004064067D064EEFFA09A5C4232" xlink:to="loc_us-gaap_ClassOfStockDomain_482BC2F7DE2455C3F2CCFFA09A5DF689_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_482BC2F7DE2455C3F2CCFFA09A5DF689" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_16FC1004064067D064EEFFA09A5C4232" xlink:to="loc_us-gaap_ClassOfStockDomain_482BC2F7DE2455C3F2CCFFA09A5DF689" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_090E41F08F36D8C6ECB2FFA09A5D23E0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_482BC2F7DE2455C3F2CCFFA09A5DF689" xlink:to="loc_us-gaap_CommonStockMember_090E41F08F36D8C6ECB2FFA09A5D23E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_750DD19A7E73AC4553AAFFA09A5D2249" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_482BC2F7DE2455C3F2CCFFA09A5DF689" xlink:to="loc_us-gaap_EmployeeStockOptionMember_750DD19A7E73AC4553AAFFA09A5D2249" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_6680D84119D154680E11FFA09A5ED70A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_482BC2F7DE2455C3F2CCFFA09A5DF689" xlink:to="loc_us-gaap_RestrictedStockMember_6680D84119D154680E11FFA09A5ED70A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PerformanceSharesMember" xlink:label="loc_us-gaap_PerformanceSharesMember_DB45FFFE1E1F3EDEDAFDFFA09A5EFE23" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_482BC2F7DE2455C3F2CCFFA09A5DF689" xlink:to="loc_us-gaap_PerformanceSharesMember_DB45FFFE1E1F3EDEDAFDFFA09A5EFE23" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_PerformanceRestrictedStockUnitsMember" xlink:label="loc_nx_PerformanceRestrictedStockUnitsMember_C7F553254818C2017EF7FFA09A5E7085" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_482BC2F7DE2455C3F2CCFFA09A5DF689" xlink:to="loc_nx_PerformanceRestrictedStockUnitsMember_C7F553254818C2017EF7FFA09A5E7085" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_249C257EBE52EABFE718FFA09A5E0C18" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_nx_EarningsPerShareDisclosureTable_4253FD6B7641CFD55500FFA09A5B92AD" xlink:to="loc_us-gaap_AwardTypeAxis_249C257EBE52EABFE718FFA09A5E0C18" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B03FE124151C67AA4E08FFA09A5E5AB8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_249C257EBE52EABFE718FFA09A5E0C18" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B03FE124151C67AA4E08FFA09A5E5AB8_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B03FE124151C67AA4E08FFA09A5E5AB8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_249C257EBE52EABFE718FFA09A5E0C18" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B03FE124151C67AA4E08FFA09A5E5AB8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_9C61AAEF26FD61709DFFFFA09A5E2F92" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B03FE124151C67AA4E08FFA09A5E5AB8" xlink:to="loc_us-gaap_EmployeeStockOptionMember_9C61AAEF26FD61709DFFFFA09A5E2F92" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_25BEE0CA79AB2185D2C4FFA09A5F38D9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B03FE124151C67AA4E08FFA09A5E5AB8" xlink:to="loc_us-gaap_RestrictedStockMember_25BEE0CA79AB2185D2C4FFA09A5F38D9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PerformanceSharesMember" xlink:label="loc_us-gaap_PerformanceSharesMember_0E6E29DB0F5F2755ED50FFA09A5F5052" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B03FE124151C67AA4E08FFA09A5E5AB8" xlink:to="loc_us-gaap_PerformanceSharesMember_0E6E29DB0F5F2755ED50FFA09A5F5052" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_9AA42CE09B0AF7424FB1FFA09A5FC6C8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_33B28BAD64BAD5746943FFA09A5FB551" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_9AA42CE09B0AF7424FB1FFA09A5FC6C8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_0E2DDE2FBAF2793B1826FFA09A62E6DA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_33B28BAD64BAD5746943FFA09A5FB551" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_0E2DDE2FBAF2793B1826FFA09A62E6DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_CBDB0A0CD898837D0388FFA09A627605" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_33B28BAD64BAD5746943FFA09A5FB551" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_CBDB0A0CD898837D0388FFA09A627605" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsPerBasicShare" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsPerBasicShare_2D315C3EEEBF72D81A08FFA09A66411C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_33B28BAD64BAD5746943FFA09A5FB551" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsPerBasicShare_2D315C3EEEBF72D81A08FFA09A66411C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment" xlink:label="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_F1A85AA3A80C2E7429D6FFA09A661AD2" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_33B28BAD64BAD5746943FFA09A5FB551" xlink:to="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_F1A85AA3A80C2E7429D6FFA09A661AD2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_D5A90009B09E20B712ECFFA09A6753BF" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_33B28BAD64BAD5746943FFA09A5FB551" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_D5A90009B09E20B712ECFFA09A6753BF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare_4CE8C6A36F70D20A5B54FFA09A6796EF" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_33B28BAD64BAD5746943FFA09A5FB551" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare_4CE8C6A36F70D20A5B54FFA09A6796EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EarningsPerShareBasicAndDiluted" xlink:label="loc_us-gaap_EarningsPerShareBasicAndDiluted_8156158F9728482193D3FFA09A684E97" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_33B28BAD64BAD5746943FFA09A5FB551" xlink:to="loc_us-gaap_EarningsPerShareBasicAndDiluted_8156158F9728482193D3FFA09A684E97" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_5B8E8FDD27BFFB35F07AFFA09A6863D0" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_33B28BAD64BAD5746943FFA09A5FB551" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_5B8E8FDD27BFFB35F07AFFA09A6863D0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EarningsPerShareDiluted" xlink:label="loc_us-gaap_EarningsPerShareDiluted_AA11205875618C8B88DDFFA09A68C49B" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_EarningsPerShareDisclosureLineItems_33B28BAD64BAD5746943FFA09A5FB551" xlink:to="loc_us-gaap_EarningsPerShareDiluted_AA11205875618C8B88DDFFA09A68C49B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/EarningsPerShareEarningsPerShareTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/FairValueMeasurementOfAssetsAndLiabilities" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/FairValueMeasurementOfAssetsAndLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_9A588FEE0FDAE5EE83BDD1053315A70C" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_57AE5081EC51FC54A634D1053314872F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_9A588FEE0FDAE5EE83BDD1053315A70C" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_57AE5081EC51FC54A634D1053314872F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_ADBECB8BEFA9CAC11408D10533145338" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_57AE5081EC51FC54A634D1053314872F" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_ADBECB8BEFA9CAC11408D10533145338" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_21E31FD553E2A4191ECDD105331557E8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_ADBECB8BEFA9CAC11408D10533145338" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_21E31FD553E2A4191ECDD105331557E8_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_21E31FD553E2A4191ECDD105331557E8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_ADBECB8BEFA9CAC11408D10533145338" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_21E31FD553E2A4191ECDD105331557E8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_B10FCE8AC8405A025796D10533150ED2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_21E31FD553E2A4191ECDD105331557E8" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_B10FCE8AC8405A025796D10533150ED2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAssetAtFairValue" xlink:label="loc_us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAssetAtFairValue_4894B466886D92C59EDDD1053315436C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_9A588FEE0FDAE5EE83BDD1053315A70C" xlink:to="loc_us-gaap_ForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAssetAtFairValue_4894B466886D92C59EDDD1053315436C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_EC69A24CD460869D3DC5D1053316187C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_9A588FEE0FDAE5EE83BDD1053315A70C" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_EC69A24CD460869D3DC5D1053316187C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/FairValueMeasurementOfAssetsAndLiabilitiesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/GoodwillAndIntangibleAssets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/GoodwillAndIntangibleAssetsGoodwillDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillLineItems" xlink:label="loc_us-gaap_GoodwillLineItems_460D4FF750649B41B895D10533BF4DB7" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfGoodwillTable" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_01C1EC514F5D6993CC9ED10533BD966B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_460D4FF750649B41B895D10533BF4DB7" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_01C1EC514F5D6993CC9ED10533BD966B" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_F9DE35BA6922EF63C91CD10533BEE196" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_01C1EC514F5D6993CC9ED10533BD966B" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_F9DE35BA6922EF63C91CD10533BEE196" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_5EEE431143C29201A571D10533BE73AC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_F9DE35BA6922EF63C91CD10533BEE196" xlink:to="loc_us-gaap_SegmentDomain_5EEE431143C29201A571D10533BE73AC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_5EEE431143C29201A571D10533BE73AC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_F9DE35BA6922EF63C91CD10533BEE196" xlink:to="loc_us-gaap_SegmentDomain_5EEE431143C29201A571D10533BE73AC" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_NACabinetComponentsMember" xlink:label="loc_nx_NACabinetComponentsMember_384F60DE9EAE93D2D8ABD10533BEBD3E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_5EEE431143C29201A571D10533BE73AC" xlink:to="loc_nx_NACabinetComponentsMember_384F60DE9EAE93D2D8ABD10533BEBD3E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_9435DCFCCFC86ED204CED10533BF9A48" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_460D4FF750649B41B895D10533BF4DB7" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_9435DCFCCFC86ED204CED10533BF9A48" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillRollForward" xlink:label="loc_us-gaap_GoodwillRollForward_BC0A65FC913090F6F624D10533BF0F7F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_460D4FF750649B41B895D10533BF4DB7" xlink:to="loc_us-gaap_GoodwillRollForward_BC0A65FC913090F6F624D10533BF0F7F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_3A8C5219BFC190E24BCCD10533C0F657" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_BC0A65FC913090F6F624D10533BF0F7F" xlink:to="loc_us-gaap_Goodwill_3A8C5219BFC190E24BCCD10533C0F657" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillForeignCurrencyTranslationGainLoss" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_263A33FD588C9E4DD92ED10533C0944E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_BC0A65FC913090F6F624D10533BF0F7F" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_263A33FD588C9E4DD92ED10533C0944E" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/GoodwillAndIntangibleAssetsIdentifiableIntangibleAssetsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_BE06B15BCC9AED2A1F1CD105345BF91B" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_99C3241A65E43EED6964D10534598334" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_BE06B15BCC9AED2A1F1CD105345BF91B" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_99C3241A65E43EED6964D10534598334" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_DB68667C5705C0FB6FDFD1053459D91C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_99C3241A65E43EED6964D10534598334" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_DB68667C5705C0FB6FDFD1053459D91C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F28DF282D0F525C5E9BED105345A06EB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_DB68667C5705C0FB6FDFD1053459D91C" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F28DF282D0F525C5E9BED105345A06EB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F28DF282D0F525C5E9BED105345A06EB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_DB68667C5705C0FB6FDFD1053459D91C" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F28DF282D0F525C5E9BED105345A06EB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_3A13511C8AF9A66917EFD105345A6B98" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F28DF282D0F525C5E9BED105345A06EB" xlink:to="loc_us-gaap_CustomerRelationshipsMember_3A13511C8AF9A66917EFD105345A6B98" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_TradenamesAndTrademarksMember" xlink:label="loc_nx_TradenamesAndTrademarksMember_21320724FFF0BEC958F2D105345AA3A4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F28DF282D0F525C5E9BED105345A06EB" xlink:to="loc_nx_TradenamesAndTrademarksMember_21320724FFF0BEC958F2D105345AA3A4" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_PatentsAndOtherTechnologyMember" xlink:label="loc_nx_PatentsAndOtherTechnologyMember_D1D6E27512CF65A61B3AD105345A2645" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F28DF282D0F525C5E9BED105345A06EB" xlink:to="loc_nx_PatentsAndOtherTechnologyMember_D1D6E27512CF65A61B3AD105345A2645" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_6C4427B4A59C251D3816D105345B0B45" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_BE06B15BCC9AED2A1F1CD105345BF91B" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_6C4427B4A59C251D3816D105345B0B45" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_01B8B3D34E2F935EE741D105345BD5B3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_BE06B15BCC9AED2A1F1CD105345BF91B" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_01B8B3D34E2F935EE741D105345BD5B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_F1BC6880800EB2DF8FD8D105345B0788" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_BE06B15BCC9AED2A1F1CD105345BF91B" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_F1BC6880800EB2DF8FD8D105345B0788" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/GoodwillAndIntangibleAssetsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/IncomeTaxes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/IncomeTaxesDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxExaminationLineItems" xlink:label="loc_us-gaap_IncomeTaxExaminationLineItems_617F301745FEC3FBBA142D3FD54AF25B" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxExaminationTable" xlink:label="loc_us-gaap_IncomeTaxExaminationTable_D1DE69DE8F1EB06E5DDB2D3FD548F338" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_617F301745FEC3FBBA142D3FD54AF25B" xlink:to="loc_us-gaap_IncomeTaxExaminationTable_D1DE69DE8F1EB06E5DDB2D3FD548F338" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityByLocationAxis" xlink:label="loc_dei_EntityByLocationAxis_BFB2B997A43672ED47142D3FD548018C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxExaminationTable_D1DE69DE8F1EB06E5DDB2D3FD548F338" xlink:to="loc_dei_EntityByLocationAxis_BFB2B997A43672ED47142D3FD548018C" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_LocationDomain" xlink:label="loc_dei_LocationDomain_D6E57EF7A365988323082D3FD548853D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_EntityByLocationAxis_BFB2B997A43672ED47142D3FD548018C" xlink:to="loc_dei_LocationDomain_D6E57EF7A365988323082D3FD548853D_default" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_LocationDomain" xlink:label="loc_dei_LocationDomain_D6E57EF7A365988323082D3FD548853D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_EntityByLocationAxis_BFB2B997A43672ED47142D3FD548018C" xlink:to="loc_dei_LocationDomain_D6E57EF7A365988323082D3FD548853D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NewAccountingPronouncementEarlyAdoptionAxis" xlink:label="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionAxis_87C2B81491781A5DE3E62D3FD54992E2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxExaminationTable_D1DE69DE8F1EB06E5DDB2D3FD548F338" xlink:to="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionAxis_87C2B81491781A5DE3E62D3FD54992E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NewAccountingPrinciplesEarlyAdoptionMember" xlink:label="loc_us-gaap_NewAccountingPrinciplesEarlyAdoptionMember_179E68D828D7250F3A252D3FD5499D30_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionAxis_87C2B81491781A5DE3E62D3FD54992E2" xlink:to="loc_us-gaap_NewAccountingPrinciplesEarlyAdoptionMember_179E68D828D7250F3A252D3FD5499D30_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NewAccountingPrinciplesEarlyAdoptionMember" xlink:label="loc_us-gaap_NewAccountingPrinciplesEarlyAdoptionMember_179E68D828D7250F3A252D3FD5499D30" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_NewAccountingPronouncementEarlyAdoptionAxis_87C2B81491781A5DE3E62D3FD54992E2" xlink:to="loc_us-gaap_NewAccountingPrinciplesEarlyAdoptionMember_179E68D828D7250F3A252D3FD5499D30" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxAuthorityAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_0F2A42561A7EE9D089892D3FD5496E8E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxExaminationTable_D1DE69DE8F1EB06E5DDB2D3FD548F338" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_0F2A42561A7EE9D089892D3FD5496E8E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_A59486DDB10E9533DBCC2D3FD5497ACD_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_0F2A42561A7EE9D089892D3FD5496E8E" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_A59486DDB10E9533DBCC2D3FD5497ACD_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_A59486DDB10E9533DBCC2D3FD5497ACD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_0F2A42561A7EE9D089892D3FD5496E8E" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_A59486DDB10E9533DBCC2D3FD5497ACD" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_1D2B0A8343DED300ECF12D3FD54A50D4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxExaminationTable_D1DE69DE8F1EB06E5DDB2D3FD548F338" xlink:to="loc_dei_LegalEntityAxis_1D2B0A8343DED300ECF12D3FD54A50D4" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_09C84194575820049D712D3FD54AB55C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_1D2B0A8343DED300ECF12D3FD54A50D4" xlink:to="loc_dei_EntityDomain_09C84194575820049D712D3FD54AB55C_default" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_09C84194575820049D712D3FD54AB55C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_1D2B0A8343DED300ECF12D3FD54A50D4" xlink:to="loc_dei_EntityDomain_09C84194575820049D712D3FD54AB55C" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentPeriodEndDate" xlink:label="loc_dei_DocumentPeriodEndDate_1AD48E32147784DB2C7E2D3FD54AB588" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_617F301745FEC3FBBA142D3FD54AF25B" xlink:to="loc_dei_DocumentPeriodEndDate_1AD48E32147784DB2C7E2D3FD54AB588" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_ExpectedEffectiveIncomeTaxRateContinuingOperations" xlink:label="loc_nx_ExpectedEffectiveIncomeTaxRateContinuingOperations_DBA121318386EFEA94512D3FD54A43E3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_617F301745FEC3FBBA142D3FD54AF25B" xlink:to="loc_nx_ExpectedEffectiveIncomeTaxRateContinuingOperations_DBA121318386EFEA94512D3FD54A43E3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilityForUncertainTaxPositionsNoncurrent" xlink:label="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_D6A00BD2C77EFF6EE5842D3FD54BC4B8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_617F301745FEC3FBBA142D3FD54AF25B" xlink:to="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_D6A00BD2C77EFF6EE5842D3FD54BC4B8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_37FB0E67E9E360195E7A2D3FD54B4804" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_617F301745FEC3FBBA142D3FD54AF25B" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_37FB0E67E9E360195E7A2D3FD54B4804" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/IncomeTaxesIncomeTaxTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/Inventories" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/InventoriesDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_A4EE7C552E0D841EFD27D1053369A198" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_D7122B9B817BF8AD8418D1053367F27C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_A4EE7C552E0D841EFD27D1053369A198" xlink:to="loc_us-gaap_StatementTable_D7122B9B817BF8AD8418D1053367F27C" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis" xlink:label="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_EEC00D8C510857622406D10533687675" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_D7122B9B817BF8AD8418D1053367F27C" xlink:to="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_EEC00D8C510857622406D10533687675" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ChangeInAccountingPrincipleMember" xlink:label="loc_us-gaap_ChangeInAccountingPrincipleMember_7BC242A7B6203A6A78B8D1053368A0C9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_EEC00D8C510857622406D10533687675" xlink:to="loc_us-gaap_ChangeInAccountingPrincipleMember_7BC242A7B6203A6A78B8D1053368A0C9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ChangeInAccountingPrincipleMember" xlink:label="loc_us-gaap_ChangeInAccountingPrincipleMember_7BC242A7B6203A6A78B8D1053368A0C9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_EEC00D8C510857622406D10533687675" xlink:to="loc_us-gaap_ChangeInAccountingPrincipleMember_7BC242A7B6203A6A78B8D1053368A0C9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaap_InventoryNet_F858AF02DA1E73CFB741D10533698CB6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_A4EE7C552E0D841EFD27D1053369A198" xlink:to="loc_us-gaap_InventoryNet_F858AF02DA1E73CFB741D10533698CB6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_D963EA18A38EE613353BD1053369564F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_A4EE7C552E0D841EFD27D1053369A198" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_D963EA18A38EE613353BD1053369564F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_4FA0A809A48CCC3B7E3ED10533695028" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_A4EE7C552E0D841EFD27D1053369A198" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_4FA0A809A48CCC3B7E3ED10533695028" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/InventoriesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/Leases" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/LeasesAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeLeaseDescriptionLineItems" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_E0D307D803B1F5B4A41CD10534DC4AAE" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeLeaseDescriptionTable" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_37A99A7DD8B80EEDDE05D10534D82F92" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_E0D307D803B1F5B4A41CD10534DC4AAE" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_37A99A7DD8B80EEDDE05D10534D82F92" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_DA010D7FCC92BC1D67BFD10534D8214A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_37A99A7DD8B80EEDDE05D10534D82F92" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_DA010D7FCC92BC1D67BFD10534D8214A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_997A524C65209664E611D10534D94A57_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_DA010D7FCC92BC1D67BFD10534D8214A" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_997A524C65209664E611D10534D94A57_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_997A524C65209664E611D10534D94A57" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_DA010D7FCC92BC1D67BFD10534D8214A" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_997A524C65209664E611D10534D94A57" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BuildingMember" xlink:label="loc_us-gaap_BuildingMember_A6F6CAECD3C4B91C4EF8D10534D92850" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_997A524C65209664E611D10534D94A57" xlink:to="loc_us-gaap_BuildingMember_A6F6CAECD3C4B91C4EF8D10534D92850" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquipmentMember" xlink:label="loc_us-gaap_EquipmentMember_F260A437CFEDF6A3E28FD10534DA7D94" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_997A524C65209664E611D10534D94A57" xlink:to="loc_us-gaap_EquipmentMember_F260A437CFEDF6A3E28FD10534DA7D94" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_E45EF36010FEE17CC81FD10534DA9F54" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_37A99A7DD8B80EEDDE05D10534D82F92" xlink:to="loc_srt_RangeAxis_E45EF36010FEE17CC81FD10534DA9F54" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_36B29F556FEEAF799076D10534DABF74_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_E45EF36010FEE17CC81FD10534DA9F54" xlink:to="loc_srt_RangeMember_36B29F556FEEAF799076D10534DABF74_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_36B29F556FEEAF799076D10534DABF74" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_E45EF36010FEE17CC81FD10534DA9F54" xlink:to="loc_srt_RangeMember_36B29F556FEEAF799076D10534DABF74" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_D332FC526D676A42C816D10534DBCFD5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_36B29F556FEEAF799076D10534DABF74" xlink:to="loc_srt_MinimumMember_D332FC526D676A42C816D10534DBCFD5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_D1933F86B8BB1493FE26D10534DC04F2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_36B29F556FEEAF799076D10534DABF74" xlink:to="loc_srt_MaximumMember_D1933F86B8BB1493FE26D10534DC04F2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseTermOfContract" xlink:label="loc_us-gaap_LesseeOperatingLeaseTermOfContract_0D27F671AEEE5FE6DB5BD10534DC1E02" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_E0D307D803B1F5B4A41CD10534DC4AAE" xlink:to="loc_us-gaap_LesseeOperatingLeaseTermOfContract_0D27F671AEEE5FE6DB5BD10534DC1E02" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/LeasesFutureMinimumLeasePaymentsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/LeasesLeaseCostsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/LeasesLeaseRelatedAssetsAndLiabilitiesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/LeasesPresentMaturityOfLeaseLiabilitiesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/LeasesSupplementalCashFlowInformationDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/LeasesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/LeasesWeightedAverageRemainingLeaseTermsAndWeightedAverageDiscountRatesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationCovid19Details" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_9CA421244A8631E052402D3FD5DE6D02" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_8F595BBBEEFC2B6F9BD22D3FD5DDE987" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_9CA421244A8631E052402D3FD5DE6D02" xlink:to="loc_us-gaap_StatementTable_8F595BBBEEFC2B6F9BD22D3FD5DDE987" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_AF849CBCBBFF3F94F54F2D3FD5DDFB23" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_8F595BBBEEFC2B6F9BD22D3FD5DDE987" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_AF849CBCBBFF3F94F54F2D3FD5DDFB23" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_3BEF7B85568AA891FEE22D3FD5DDB34E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_AF849CBCBBFF3F94F54F2D3FD5DDFB23" xlink:to="loc_us-gaap_SegmentDomain_3BEF7B85568AA891FEE22D3FD5DDB34E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_3BEF7B85568AA891FEE22D3FD5DDB34E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_AF849CBCBBFF3F94F54F2D3FD5DDFB23" xlink:to="loc_us-gaap_SegmentDomain_3BEF7B85568AA891FEE22D3FD5DDB34E" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_NAFenestrationMember" xlink:label="loc_nx_NAFenestrationMember_E0722BCCBF928936D19B2D3FD5DED95A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_3BEF7B85568AA891FEE22D3FD5DDB34E" xlink:to="loc_nx_NAFenestrationMember_E0722BCCBF928936D19B2D3FD5DED95A" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_NACabinetComponentsMember" xlink:label="loc_nx_NACabinetComponentsMember_72134498A55D453D868C2D3FD5DEA179" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_3BEF7B85568AA891FEE22D3FD5DDB34E" xlink:to="loc_nx_NACabinetComponentsMember_72134498A55D453D868C2D3FD5DEA179" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_56F854707A87B2C970DF2D3FD5DE699E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_9CA421244A8631E052402D3FD5DE6D02" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_56F854707A87B2C970DF2D3FD5DE699E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringCosts" xlink:label="loc_us-gaap_RestructuringCosts_EB39553FC728CA7CC7662D3FD5DE028F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_9CA421244A8631E052402D3FD5DE6D02" xlink:to="loc_us-gaap_RestructuringCosts_EB39553FC728CA7CC7662D3FD5DE028F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationSummaryOfProductSalesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProductInformationLineItems" xlink:label="loc_us-gaap_ProductInformationLineItems_FF626A087E46C5F59E58D10533D0880A" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfProductInformationTable" xlink:label="loc_us-gaap_ScheduleOfProductInformationTable_747D68280E0952825D29D10533CB0F0E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ProductInformationLineItems_FF626A087E46C5F59E58D10533D0880A" xlink:to="loc_us-gaap_ScheduleOfProductInformationTable_747D68280E0952825D29D10533CB0F0E" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_C4508ACB86F9E9D1D5F4D10533CB5BAD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfProductInformationTable_747D68280E0952825D29D10533CB0F0E" xlink:to="loc_srt_ConsolidationItemsAxis_C4508ACB86F9E9D1D5F4D10533CB5BAD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_09274A4954BEED079477D10533CCAFEB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_C4508ACB86F9E9D1D5F4D10533CB5BAD" xlink:to="loc_srt_ConsolidationItemsDomain_09274A4954BEED079477D10533CCAFEB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_09274A4954BEED079477D10533CCAFEB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_C4508ACB86F9E9D1D5F4D10533CB5BAD" xlink:to="loc_srt_ConsolidationItemsDomain_09274A4954BEED079477D10533CCAFEB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_6310E5A65A5FD6F87B3BD10533CC7A8C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_09274A4954BEED079477D10533CCAFEB" xlink:to="loc_us-gaap_OperatingSegmentsMember_6310E5A65A5FD6F87B3BD10533CC7A8C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CorporateNonSegmentMember" xlink:label="loc_us-gaap_CorporateNonSegmentMember_D24DC2A30D8B44C62943D10533CD8928" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_09274A4954BEED079477D10533CCAFEB" xlink:to="loc_us-gaap_CorporateNonSegmentMember_D24DC2A30D8B44C62943D10533CD8928" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_DA5F3A14FF2E95352FAED10533CD2DB1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfProductInformationTable_747D68280E0952825D29D10533CB0F0E" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_DA5F3A14FF2E95352FAED10533CD2DB1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_3D6A43CCBD496F315C64D10533CDA584_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_DA5F3A14FF2E95352FAED10533CD2DB1" xlink:to="loc_us-gaap_SegmentDomain_3D6A43CCBD496F315C64D10533CDA584_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_3D6A43CCBD496F315C64D10533CDA584" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_DA5F3A14FF2E95352FAED10533CD2DB1" xlink:to="loc_us-gaap_SegmentDomain_3D6A43CCBD496F315C64D10533CDA584" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_NAEngineeredComponentsMember" xlink:label="loc_nx_NAEngineeredComponentsMember_01C141EEBA01391B0527D10533CD2A32" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_3D6A43CCBD496F315C64D10533CDA584" xlink:to="loc_nx_NAEngineeredComponentsMember_01C141EEBA01391B0527D10533CD2A32" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_EUEngineeredComponentsMember" xlink:label="loc_nx_EUEngineeredComponentsMember_60F487294B0B2A172414D10533CD10CA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_3D6A43CCBD496F315C64D10533CDA584" xlink:to="loc_nx_EUEngineeredComponentsMember_60F487294B0B2A172414D10533CD10CA" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_NACabinetComponentsMember" xlink:label="loc_nx_NACabinetComponentsMember_F76941EBBCBB29D7F58BD10533CE9FFF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_3D6A43CCBD496F315C64D10533CDA584" xlink:to="loc_nx_NACabinetComponentsMember_F76941EBBCBB29D7F58BD10533CE9FFF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_94238755B64E037E7441D10533CEED83" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfProductInformationTable_747D68280E0952825D29D10533CB0F0E" xlink:to="loc_srt_StatementGeographicalAxis_94238755B64E037E7441D10533CEED83" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_FEC4288F4A837D22FB52D10533CE93BA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_94238755B64E037E7441D10533CEED83" xlink:to="loc_srt_SegmentGeographicalDomain_FEC4288F4A837D22FB52D10533CE93BA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_FEC4288F4A837D22FB52D10533CE93BA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_94238755B64E037E7441D10533CEED83" xlink:to="loc_srt_SegmentGeographicalDomain_FEC4288F4A837D22FB52D10533CE93BA" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_InternationalMember" xlink:label="loc_nx_InternationalMember_A7F301F7325C64D9AE49D10533CFC3D6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_FEC4288F4A837D22FB52D10533CE93BA" xlink:to="loc_nx_InternationalMember_A7F301F7325C64D9AE49D10533CFC3D6" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_US" xlink:label="loc_country_US_C712FDC83F76E9B9A0ECD10533CF68F7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_FEC4288F4A837D22FB52D10533CE93BA" xlink:to="loc_country_US_C712FDC83F76E9B9A0ECD10533CF68F7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_2932FE0808CC9DF4CB06D10533CFB63D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfProductInformationTable_747D68280E0952825D29D10533CB0F0E" xlink:to="loc_srt_ProductOrServiceAxis_2932FE0808CC9DF4CB06D10533CFB63D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_FA8DC6872DCE4816CB62D10533CFDE01_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_2932FE0808CC9DF4CB06D10533CFB63D" xlink:to="loc_srt_ProductsAndServicesDomain_FA8DC6872DCE4816CB62D10533CFDE01_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_FA8DC6872DCE4816CB62D10533CFDE01" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_2932FE0808CC9DF4CB06D10533CFB63D" xlink:to="loc_srt_ProductsAndServicesDomain_FA8DC6872DCE4816CB62D10533CFDE01" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_NonfenestrationMember" xlink:label="loc_nx_NonfenestrationMember_0E012576915BCBD71968D10533D01B10" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_FA8DC6872DCE4816CB62D10533CFDE01" xlink:to="loc_nx_NonfenestrationMember_0E012576915BCBD71968D10533D01B10" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_FenestrationMember" xlink:label="loc_nx_FenestrationMember_26614A5521369C343D36D10533D0B3CE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_FA8DC6872DCE4816CB62D10533CFDE01" xlink:to="loc_nx_FenestrationMember_26614A5521369C343D36D10533D0B3CE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_961E12704E5696FE82E1D10533D05B2B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ProductInformationLineItems_FF626A087E46C5F59E58D10533D0880A" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_961E12704E5696FE82E1D10533D05B2B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/NatureOfOperationsAndBasisOfPresentationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/NewAccountingGuidanceAdopted" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/NewAccountingGuidanceAdoptedDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_0B54EF470FD81AF8E819D10533D6986C" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_91615AA4AC31C3FB56A6D10533D561ED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_0B54EF470FD81AF8E819D10533D6986C" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_91615AA4AC31C3FB56A6D10533D561ED" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis" xlink:label="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_BD9ACD3156E88976C43ED10533D6DCEF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_91615AA4AC31C3FB56A6D10533D561ED" xlink:to="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_BD9ACD3156E88976C43ED10533D6DCEF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ChangeInAccountingPrincipleMember" xlink:label="loc_us-gaap_ChangeInAccountingPrincipleMember_DAF5BCCCEEFC8832A88ED10533D6DFB9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_BD9ACD3156E88976C43ED10533D6DCEF" xlink:to="loc_us-gaap_ChangeInAccountingPrincipleMember_DAF5BCCCEEFC8832A88ED10533D6DFB9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ChangeInAccountingPrincipleMember" xlink:label="loc_us-gaap_ChangeInAccountingPrincipleMember_DAF5BCCCEEFC8832A88ED10533D6DFB9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForChangeInAccountingPrincipleAxis_BD9ACD3156E88976C43ED10533D6DCEF" xlink:to="loc_us-gaap_ChangeInAccountingPrincipleMember_DAF5BCCCEEFC8832A88ED10533D6DFB9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountingStandardsUpdate201602Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201602Member_70CC5492EBB5E757A9A8D10533D65941" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInAccountingPrincipleMember_DAF5BCCCEEFC8832A88ED10533D6DFB9" xlink:to="loc_us-gaap_AccountingStandardsUpdate201602Member_70CC5492EBB5E757A9A8D10533D65941" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseLiability" xlink:label="loc_us-gaap_OperatingLeaseLiability_B29F004A81D7B48074DED10533D734B0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_0B54EF470FD81AF8E819D10533D6986C" xlink:to="loc_us-gaap_OperatingLeaseLiability_B29F004A81D7B48074DED10533D734B0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_CE9B17990B11AC7666ECD10533D718F7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_0B54EF470FD81AF8E819D10533D6986C" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_CE9B17990B11AC7666ECD10533D718F7" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/OtherIncomeExpense" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/OtherIncomeExpenseDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/OtherIncomeExpenseTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/RetirementPlans" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/RetirementPlansDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/RetirementPlansTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/SegmentInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_8E5F1E6B7F7B256A12C2D105352AB9DC" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_D09539B52B5C61090268D10535264701" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_8E5F1E6B7F7B256A12C2D105352AB9DC" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_D09539B52B5C61090268D10535264701" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_41C98AE95F31743937C2D1053527837D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_D09539B52B5C61090268D10535264701" xlink:to="loc_srt_ConsolidationItemsAxis_41C98AE95F31743937C2D1053527837D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_47BD17E91D59EDADB6A8D1053527BE42_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_41C98AE95F31743937C2D1053527837D" xlink:to="loc_srt_ConsolidationItemsDomain_47BD17E91D59EDADB6A8D1053527BE42_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_47BD17E91D59EDADB6A8D1053527BE42" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_41C98AE95F31743937C2D1053527837D" xlink:to="loc_srt_ConsolidationItemsDomain_47BD17E91D59EDADB6A8D1053527BE42" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_BF1591284159D8B1D131D105352853BC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_47BD17E91D59EDADB6A8D1053527BE42" xlink:to="loc_us-gaap_OperatingSegmentsMember_BF1591284159D8B1D131D105352853BC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CorporateNonSegmentMember" xlink:label="loc_us-gaap_CorporateNonSegmentMember_F9BD9C3FB6629BCB50F7D1053528C82C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_47BD17E91D59EDADB6A8D1053527BE42" xlink:to="loc_us-gaap_CorporateNonSegmentMember_F9BD9C3FB6629BCB50F7D1053528C82C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_3C8E7600A440E3EF14C0D1053528B5E8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_D09539B52B5C61090268D10535264701" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_3C8E7600A440E3EF14C0D1053528B5E8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_8F805D581AED3E605E7BD10535287AD4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3C8E7600A440E3EF14C0D1053528B5E8" xlink:to="loc_us-gaap_SegmentDomain_8F805D581AED3E605E7BD10535287AD4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_8F805D581AED3E605E7BD10535287AD4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3C8E7600A440E3EF14C0D1053528B5E8" xlink:to="loc_us-gaap_SegmentDomain_8F805D581AED3E605E7BD10535287AD4" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_NAEngineeredComponentsMember" xlink:label="loc_nx_NAEngineeredComponentsMember_77F8ED85D13574F447C1D10535290DC9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8F805D581AED3E605E7BD10535287AD4" xlink:to="loc_nx_NAEngineeredComponentsMember_77F8ED85D13574F447C1D10535290DC9" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_EUEngineeredComponentsMember" xlink:label="loc_nx_EUEngineeredComponentsMember_2BBC58482BD3A50970FCD10535293C28" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8F805D581AED3E605E7BD10535287AD4" xlink:to="loc_nx_EUEngineeredComponentsMember_2BBC58482BD3A50970FCD10535293C28" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_NACabinetComponentsMember" xlink:label="loc_nx_NACabinetComponentsMember_5F31057C7D1530BB9076D105352A27D5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8F805D581AED3E605E7BD10535287AD4" xlink:to="loc_nx_NACabinetComponentsMember_5F31057C7D1530BB9076D105352A27D5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NumberOfReportableSegments" xlink:label="loc_us-gaap_NumberOfReportableSegments_8BDC7C3765D648AECA70D105352AE14A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_8E5F1E6B7F7B256A12C2D105352AB9DC" xlink:to="loc_us-gaap_NumberOfReportableSegments_8BDC7C3765D648AECA70D105352AE14A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NumberOfOperatingSegments" xlink:label="loc_us-gaap_NumberOfOperatingSegments_2A285FE557FCB39EA481D105352A5EFA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_8E5F1E6B7F7B256A12C2D105352AB9DC" xlink:to="loc_us-gaap_NumberOfOperatingSegments_2A285FE557FCB39EA481D105352A5EFA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_0D60A4D03C8B4E79AE65D105352A8AA8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_8E5F1E6B7F7B256A12C2D105352AB9DC" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_0D60A4D03C8B4E79AE65D105352A8AA8" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/SegmentInformationGoodwillBySegmentDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillLineItems" xlink:label="loc_us-gaap_GoodwillLineItems_EA5D50F73E03AB31886AD105346F7AC1" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfGoodwillTable" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_0BF84CC3658DB1555D07D105346B1626" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_EA5D50F73E03AB31886AD105346F7AC1" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_0BF84CC3658DB1555D07D105346B1626" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_39FD4F1CA4CCD26AC2DCD105346C2818" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_0BF84CC3658DB1555D07D105346B1626" xlink:to="loc_srt_ConsolidationItemsAxis_39FD4F1CA4CCD26AC2DCD105346C2818" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_667687378861174F009DD105346CD497_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_39FD4F1CA4CCD26AC2DCD105346C2818" xlink:to="loc_srt_ConsolidationItemsDomain_667687378861174F009DD105346CD497_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_667687378861174F009DD105346CD497" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_39FD4F1CA4CCD26AC2DCD105346C2818" xlink:to="loc_srt_ConsolidationItemsDomain_667687378861174F009DD105346CD497" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_B126CCBB3E8B57D26518D105346D10E2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_667687378861174F009DD105346CD497" xlink:to="loc_us-gaap_OperatingSegmentsMember_B126CCBB3E8B57D26518D105346D10E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CorporateNonSegmentMember" xlink:label="loc_us-gaap_CorporateNonSegmentMember_B1DFCAB7B17118437958D105346D99D5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_667687378861174F009DD105346CD497" xlink:to="loc_us-gaap_CorporateNonSegmentMember_B1DFCAB7B17118437958D105346D99D5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_3A8C1FA3125423C01810D105346D4BCC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_0BF84CC3658DB1555D07D105346B1626" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_3A8C1FA3125423C01810D105346D4BCC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_D3EEEE28B46773DC727AD105346E1B90_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3A8C1FA3125423C01810D105346D4BCC" xlink:to="loc_us-gaap_SegmentDomain_D3EEEE28B46773DC727AD105346E1B90_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_D3EEEE28B46773DC727AD105346E1B90" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3A8C1FA3125423C01810D105346D4BCC" xlink:to="loc_us-gaap_SegmentDomain_D3EEEE28B46773DC727AD105346E1B90" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_NAEngineeredComponentsMember" xlink:label="loc_nx_NAEngineeredComponentsMember_7806E4FCEDBE69DDF908D105346EFF84" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_D3EEEE28B46773DC727AD105346E1B90" xlink:to="loc_nx_NAEngineeredComponentsMember_7806E4FCEDBE69DDF908D105346EFF84" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_EUEngineeredComponentsMember" xlink:label="loc_nx_EUEngineeredComponentsMember_72F71E1D0ADA0EEE9BCBD105346FAB2D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_D3EEEE28B46773DC727AD105346E1B90" xlink:to="loc_nx_EUEngineeredComponentsMember_72F71E1D0ADA0EEE9BCBD105346FAB2D" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_NACabinetComponentsMember" xlink:label="loc_nx_NACabinetComponentsMember_882B519EE78B8BFE471ED105346FAC1E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_D3EEEE28B46773DC727AD105346E1B90" xlink:to="loc_nx_NACabinetComponentsMember_882B519EE78B8BFE471ED105346FAC1E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_D2370D0A08771DA60EA7D105346FFEED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_EA5D50F73E03AB31886AD105346F7AC1" xlink:to="loc_us-gaap_Goodwill_D2370D0A08771DA60EA7D105346FFEED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillForeignCurrencyTranslationGainLoss" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_F91EAB5C32988192003AD1053470B6C2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_EA5D50F73E03AB31886AD105346F7AC1" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_F91EAB5C32988192003AD1053470B6C2" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/SegmentInformationNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/SegmentInformationReconcilliationOfOperatingLossToNetIncomeDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/SegmentInformationSegmentReportingInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_A82F0EE15BF941804D34D105330E529D" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_92334FF8C020D034841ED105330ADF1B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_A82F0EE15BF941804D34D105330E529D" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_92334FF8C020D034841ED105330ADF1B" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_16594CD835251EEF2CC0D105330B2451" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_92334FF8C020D034841ED105330ADF1B" xlink:to="loc_srt_ConsolidationItemsAxis_16594CD835251EEF2CC0D105330B2451" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_DE6B1E7855CEABCB4E2CD105330B370A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_16594CD835251EEF2CC0D105330B2451" xlink:to="loc_srt_ConsolidationItemsDomain_DE6B1E7855CEABCB4E2CD105330B370A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_DE6B1E7855CEABCB4E2CD105330B370A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_16594CD835251EEF2CC0D105330B2451" xlink:to="loc_srt_ConsolidationItemsDomain_DE6B1E7855CEABCB4E2CD105330B370A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_8E7EAA76129FFCF72EF3D105330C2E0D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_DE6B1E7855CEABCB4E2CD105330B370A" xlink:to="loc_us-gaap_OperatingSegmentsMember_8E7EAA76129FFCF72EF3D105330C2E0D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CorporateNonSegmentMember" xlink:label="loc_us-gaap_CorporateNonSegmentMember_1843FC69142B06022252D105330CF9FB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_DE6B1E7855CEABCB4E2CD105330B370A" xlink:to="loc_us-gaap_CorporateNonSegmentMember_1843FC69142B06022252D105330CF9FB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_D717D74CF26F384323F5D105330C7A4E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_92334FF8C020D034841ED105330ADF1B" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_D717D74CF26F384323F5D105330C7A4E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_7617A4F9C8BC32EBE672D105330C8C53_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_D717D74CF26F384323F5D105330C7A4E" xlink:to="loc_us-gaap_SegmentDomain_7617A4F9C8BC32EBE672D105330C8C53_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_7617A4F9C8BC32EBE672D105330C8C53" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_D717D74CF26F384323F5D105330C7A4E" xlink:to="loc_us-gaap_SegmentDomain_7617A4F9C8BC32EBE672D105330C8C53" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_NAFenestrationMember" xlink:label="loc_nx_NAFenestrationMember_65E30CF76D545961A3DBD105330D1EDD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_7617A4F9C8BC32EBE672D105330C8C53" xlink:to="loc_nx_NAFenestrationMember_65E30CF76D545961A3DBD105330D1EDD" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_EUFenestrationMember" xlink:label="loc_nx_EUFenestrationMember_32164F2B735A96EB1120D105330D2A6D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_7617A4F9C8BC32EBE672D105330C8C53" xlink:to="loc_nx_EUFenestrationMember_32164F2B735A96EB1120D105330D2A6D" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_NACabinetComponentsMember" xlink:label="loc_nx_NACabinetComponentsMember_2CB43D79FA9DE3DF31B1D105330DDF3B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_7617A4F9C8BC32EBE672D105330C8C53" xlink:to="loc_nx_NACabinetComponentsMember_2CB43D79FA9DE3DF31B1D105330DDF3B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_5FBCDCB51E2B08DCB1B4D105330E8228" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_A82F0EE15BF941804D34D105330E529D" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_5FBCDCB51E2B08DCB1B4D105330E8228" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_9AB3BA39A96F6914E367D105330EBF62" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_A82F0EE15BF941804D34D105330E529D" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_9AB3BA39A96F6914E367D105330EBF62" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_1335B085B03A14058C72D105330E93EC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_A82F0EE15BF941804D34D105330E529D" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_1335B085B03A14058C72D105330E93EC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_2F26A51E79FC7E67B5DFD105330F70D6" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_A82F0EE15BF941804D34D105330E529D" xlink:to="loc_us-gaap_OperatingIncomeLoss_2F26A51E79FC7E67B5DFD105330F70D6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_E3A9B51FD3BA3DDE7EF7D105330F48AF" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_A82F0EE15BF941804D34D105330E529D" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_E3A9B51FD3BA3DDE7EF7D105330F48AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_73C25E01FBB16DF8BF34D105330F4F77" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_A82F0EE15BF941804D34D105330E529D" xlink:to="loc_us-gaap_Assets_73C25E01FBB16DF8BF34D105330F4F77" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/SegmentInformationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_73AEAC2251E6EACD3802D105349E6A86" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_883EAE0C1B8745AB31C6D105349C7A4D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_73AEAC2251E6EACD3802D105349E6A86" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_883EAE0C1B8745AB31C6D105349C7A4D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_EEA4FEABD961DEF522A1D105349CDC17" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_883EAE0C1B8745AB31C6D105349C7A4D" xlink:to="loc_us-gaap_AwardTypeAxis_EEA4FEABD961DEF522A1D105349CDC17" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_63DF63F895C84CB8645DD105349E9B99_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_EEA4FEABD961DEF522A1D105349CDC17" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_63DF63F895C84CB8645DD105349E9B99_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_63DF63F895C84CB8645DD105349E9B99" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_EEA4FEABD961DEF522A1D105349CDC17" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_63DF63F895C84CB8645DD105349E9B99" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentPeriodEndDate" xlink:label="loc_dei_DocumentPeriodEndDate_125ADD906300C6F71512D105349E92D4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_73AEAC2251E6EACD3802D105349E6A86" xlink:to="loc_dei_DocumentPeriodEndDate_125ADD906300C6F71512D105349E92D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_EBAD2A740F79DB7E886CD105349EF9E6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_73AEAC2251E6EACD3802D105349E6A86" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_EBAD2A740F79DB7E886CD105349EF9E6" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationPerformanceRestrictedStockUnitsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E2F5DF0AAF8A19C9C84BD105339C92DB" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_70C98EBA1B2B14629DEBD1053395F545" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E2F5DF0AAF8A19C9C84BD105339C92DB" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_70C98EBA1B2B14629DEBD1053395F545" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_BDEF6ED4AD903BE254DFD1053395EDBB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_70C98EBA1B2B14629DEBD1053395F545" xlink:to="loc_us-gaap_AwardTypeAxis_BDEF6ED4AD903BE254DFD1053395EDBB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_EA5B0887B1933BA207E0D105339520FA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_BDEF6ED4AD903BE254DFD1053395EDBB" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_EA5B0887B1933BA207E0D105339520FA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_EA5B0887B1933BA207E0D105339520FA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_BDEF6ED4AD903BE254DFD1053395EDBB" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_EA5B0887B1933BA207E0D105339520FA" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_KeyEmployeeRestrictedStockUnitsMember" xlink:label="loc_nx_KeyEmployeeRestrictedStockUnitsMember_1ABEBE756D0BBC71F8FAD10533960D48" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_EA5B0887B1933BA207E0D105339520FA" xlink:to="loc_nx_KeyEmployeeRestrictedStockUnitsMember_1ABEBE756D0BBC71F8FAD10533960D48" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_PerformanceRestrictedStockUnitsMember" xlink:label="loc_nx_PerformanceRestrictedStockUnitsMember_56ED0150079A8E2AD327D1053396239C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_EA5B0887B1933BA207E0D105339520FA" xlink:to="loc_nx_PerformanceRestrictedStockUnitsMember_56ED0150079A8E2AD327D1053396239C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_58954CBF2EEBAC7D1738D10533970534" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_70C98EBA1B2B14629DEBD1053395F545" xlink:to="loc_srt_RangeAxis_58954CBF2EEBAC7D1738D10533970534" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_9E72B1970237315E2637D1053397E675_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_58954CBF2EEBAC7D1738D10533970534" xlink:to="loc_srt_RangeMember_9E72B1970237315E2637D1053397E675_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_9E72B1970237315E2637D1053397E675" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_58954CBF2EEBAC7D1738D10533970534" xlink:to="loc_srt_RangeMember_9E72B1970237315E2637D1053397E675" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_EF7104F1A5250507C8FDD10533979E43" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_9E72B1970237315E2637D1053397E675" xlink:to="loc_srt_MinimumMember_EF7104F1A5250507C8FDD10533979E43" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_A3E2B851CA547B63E534D1053398BFF9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_9E72B1970237315E2637D1053397E675" xlink:to="loc_srt_MaximumMember_A3E2B851CA547B63E534D1053398BFF9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VestingAxis" xlink:label="loc_us-gaap_VestingAxis_22F9D10DB8BFCDC06C7FD1053398323C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_70C98EBA1B2B14629DEBD1053395F545" xlink:to="loc_us-gaap_VestingAxis_22F9D10DB8BFCDC06C7FD1053398323C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VestingDomain" xlink:label="loc_us-gaap_VestingDomain_7D4ACEEF798E094998BED1053398C1C4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VestingAxis_22F9D10DB8BFCDC06C7FD1053398323C" xlink:to="loc_us-gaap_VestingDomain_7D4ACEEF798E094998BED1053398C1C4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VestingDomain" xlink:label="loc_us-gaap_VestingDomain_7D4ACEEF798E094998BED1053398C1C4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VestingAxis_22F9D10DB8BFCDC06C7FD1053398323C" xlink:to="loc_us-gaap_VestingDomain_7D4ACEEF798E094998BED1053398C1C4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationAwardTrancheOneMember" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheOneMember_ACB40F832292215A118DD10533984951" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_7D4ACEEF798E094998BED1053398C1C4" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheOneMember_ACB40F832292215A118DD10533984951" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationAwardTrancheTwoMember" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheTwoMember_18C84D2B1DCA7AEEE3A8D105339907AF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_7D4ACEEF798E094998BED1053398C1C4" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheTwoMember_18C84D2B1DCA7AEEE3A8D105339907AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationAwardTrancheThreeMember" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheThreeMember_02246E1177BAAE90E4A1D1053399A0E8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_7D4ACEEF798E094998BED1053398C1C4" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheThreeMember_02246E1177BAAE90E4A1D1053399A0E8" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_ShareBasedCompensationAwardTrancheFourMember" xlink:label="loc_nx_ShareBasedCompensationAwardTrancheFourMember_6AA8EB8D67DBB9A8B684D105339A448A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_7D4ACEEF798E094998BED1053398C1C4" xlink:to="loc_nx_ShareBasedCompensationAwardTrancheFourMember_6AA8EB8D67DBB9A8B684D105339A448A" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_ShareBasedCompensationAwardPerformanceCriteriaAxis" xlink:label="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAxis_2788A4AD4F138071E705D105339A8082" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_70C98EBA1B2B14629DEBD1053395F545" xlink:to="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAxis_2788A4AD4F138071E705D105339A8082" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_ShareBasedCompensationAwardPerformanceCriteriaDomain" xlink:label="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_271385F385EE80457A9AD105339A02F4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAxis_2788A4AD4F138071E705D105339A8082" xlink:to="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_271385F385EE80457A9AD105339A02F4_default" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_ShareBasedCompensationAwardPerformanceCriteriaDomain" xlink:label="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_271385F385EE80457A9AD105339A02F4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAxis_2788A4AD4F138071E705D105339A8082" xlink:to="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_271385F385EE80457A9AD105339A02F4" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesGreaterThanOrEqualTo50PercentMember" xlink:label="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesGreaterThanOrEqualTo50PercentMember_997DF0561D180B4A8426D105339ABC40" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_271385F385EE80457A9AD105339A02F4" xlink:to="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesGreaterThanOrEqualTo50PercentMember_997DF0561D180B4A8426D105339ABC40" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThan50PercentAndGreaterThanOrEqualTo20PercentMember" xlink:label="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThan50PercentAndGreaterThanOrEqualTo20PercentMember_792493CB14201549DBD4D105339BB89E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_271385F385EE80457A9AD105339A02F4" xlink:to="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThan50PercentAndGreaterThanOrEqualTo20PercentMember_792493CB14201549DBD4D105339BB89E" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThan20PercentAndGreaterThanOrEqualToNegative20PercentMember" xlink:label="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThan20PercentAndGreaterThanOrEqualToNegative20PercentMember_7BF81158EE00D4C24F8FD105339BA2CD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_271385F385EE80457A9AD105339A02F4" xlink:to="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThan20PercentAndGreaterThanOrEqualToNegative20PercentMember_7BF81158EE00D4C24F8FD105339BA2CD" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThanNegative20PercentMember" xlink:label="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThanNegative20PercentMember_255539DFD86096A71858D105339C3943" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaDomain_271385F385EE80457A9AD105339A02F4" xlink:to="loc_nx_ShareBasedCompensationAwardPerformanceCriteriaAbsoluteTotalShareholderReturnMilestonesLessThanNegative20PercentMember_255539DFD86096A71858D105339C3943" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_250144B1372ABAE2ABC3D105339C72A0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E2F5DF0AAF8A19C9C84BD105339C92DB" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_250144B1372ABAE2ABC3D105339C72A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted_D9F50238C92DAA55EED3D105339CF41F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E2F5DF0AAF8A19C9C84BD105339C92DB" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted_D9F50238C92DAA55EED3D105339CF41F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_070FC3D61D2E3A5CAE25D105339D33D8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E2F5DF0AAF8A19C9C84BD105339C92DB" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_070FC3D61D2E3A5CAE25D105339D33D8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures_99E5998394B6258C5A65D105339D66A6" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E2F5DF0AAF8A19C9C84BD105339C92DB" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures_99E5998394B6258C5A65D105339D66A6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_FBE7169A0EACC29E6537D105339DA130" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E2F5DF0AAF8A19C9C84BD105339C92DB" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_FBE7169A0EACC29E6537D105339DA130" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_47373F0BCE8578B40A48D105339E43B4" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E2F5DF0AAF8A19C9C84BD105339C92DB" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_47373F0BCE8578B40A48D105339E43B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber_5A8850322ED87F1259C5D105339EED83" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E2F5DF0AAF8A19C9C84BD105339C92DB" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber_5A8850322ED87F1259C5D105339EED83" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationPerformanceShareAwardsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DD1AE3340856872D86DFD10533815339" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0C1BDD7D8E79A6052A46D105337D9C30" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DD1AE3340856872D86DFD10533815339" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0C1BDD7D8E79A6052A46D105337D9C30" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardDateAxis" xlink:label="loc_us-gaap_AwardDateAxis_1EC264201BB10E2A7A87D105337D4C61" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0C1BDD7D8E79A6052A46D105337D9C30" xlink:to="loc_us-gaap_AwardDateAxis_1EC264201BB10E2A7A87D105337D4C61" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardDateDomain" xlink:label="loc_us-gaap_AwardDateDomain_D457E5FA6E11CF885A95D105337E7215_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardDateAxis_1EC264201BB10E2A7A87D105337D4C61" xlink:to="loc_us-gaap_AwardDateDomain_D457E5FA6E11CF885A95D105337E7215_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardDateDomain" xlink:label="loc_us-gaap_AwardDateDomain_D457E5FA6E11CF885A95D105337E7215" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardDateAxis_1EC264201BB10E2A7A87D105337D4C61" xlink:to="loc_us-gaap_AwardDateDomain_D457E5FA6E11CF885A95D105337E7215" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_4C3EE3FFA1BC229D35B8D105337E1DD3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0C1BDD7D8E79A6052A46D105337D9C30" xlink:to="loc_us-gaap_AwardTypeAxis_4C3EE3FFA1BC229D35B8D105337E1DD3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_BA47B1E05457F38EE459D105337EE438_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_4C3EE3FFA1BC229D35B8D105337E1DD3" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_BA47B1E05457F38EE459D105337EE438_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_BA47B1E05457F38EE459D105337EE438" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_4C3EE3FFA1BC229D35B8D105337E1DD3" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_BA47B1E05457F38EE459D105337EE438" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PerformanceSharesMember" xlink:label="loc_us-gaap_PerformanceSharesMember_359DD715A6302C37077CD105337F2B4C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_BA47B1E05457F38EE459D105337EE438" xlink:to="loc_us-gaap_PerformanceSharesMember_359DD715A6302C37077CD105337F2B4C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_29071393065873A0109ED105337F9751" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_BA47B1E05457F38EE459D105337EE438" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_29071393065873A0109ED105337F9751" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_PerformanceRestrictedStockUnitsMember" xlink:label="loc_nx_PerformanceRestrictedStockUnitsMember_A0D9D33DB87CAFCD2F22D105337F70DD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_BA47B1E05457F38EE459D105337EE438" xlink:to="loc_nx_PerformanceRestrictedStockUnitsMember_A0D9D33DB87CAFCD2F22D105337F70DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_A4FB902FA5F5C01B8173D105338009C2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0C1BDD7D8E79A6052A46D105337D9C30" xlink:to="loc_srt_RangeAxis_A4FB902FA5F5C01B8173D105338009C2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_0D6BA964F28D315B34BFD105338098CF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_A4FB902FA5F5C01B8173D105338009C2" xlink:to="loc_srt_RangeMember_0D6BA964F28D315B34BFD105338098CF_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_0D6BA964F28D315B34BFD105338098CF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_A4FB902FA5F5C01B8173D105338009C2" xlink:to="loc_srt_RangeMember_0D6BA964F28D315B34BFD105338098CF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_EB6FB49CBF14BA126E01D10533807FC1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_0D6BA964F28D315B34BFD105338098CF" xlink:to="loc_srt_MinimumMember_EB6FB49CBF14BA126E01D10533807FC1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_11D8CF73B3BE514CE33FD105338061FA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_0D6BA964F28D315B34BFD105338098CF" xlink:to="loc_srt_MaximumMember_11D8CF73B3BE514CE33FD105338061FA" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_PerformanceSharesSettledinCash" xlink:label="loc_nx_PerformanceSharesSettledinCash_AE0653DD729FB4B399B3D1053381E1B5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DD1AE3340856872D86DFD10533815339" xlink:to="loc_nx_PerformanceSharesSettledinCash_AE0653DD729FB4B399B3D1053381E1B5" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_PerformanceSharesSettledinStock" xlink:label="loc_nx_PerformanceSharesSettledinStock_9FC59EAE330868E17AE3D10533812538" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DD1AE3340856872D86DFD10533815339" xlink:to="loc_nx_PerformanceSharesSettledinStock_9FC59EAE330868E17AE3D10533812538" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationCashFlowEffectCashUsedToSettleAwards" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationCashFlowEffectCashUsedToSettleAwards_261F716BA37C2257DF79D10533826C1D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DD1AE3340856872D86DFD10533815339" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationCashFlowEffectCashUsedToSettleAwards_261F716BA37C2257DF79D10533826C1D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted_54847CCA2330B5F5C459D10533824C4A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DD1AE3340856872D86DFD10533815339" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted_54847CCA2330B5F5C459D10533824C4A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_B1CA96A2734D036D11B1D1053382BB0C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DD1AE3340856872D86DFD10533815339" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_B1CA96A2734D036D11B1D1053382BB0C" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_A2016PerformanceSharesVested" xlink:label="loc_nx_A2016PerformanceSharesVested_1DD8949A3B7A36839910D105338239C8" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DD1AE3340856872D86DFD10533815339" xlink:to="loc_nx_A2016PerformanceSharesVested_1DD8949A3B7A36839910D105338239C8" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_Sharesgrantedforperformancesharevesting" xlink:label="loc_nx_Sharesgrantedforperformancesharevesting_1D4693469A67B5368B3CD10533825F3B" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DD1AE3340856872D86DFD10533815339" xlink:to="loc_nx_Sharesgrantedforperformancesharevesting_1D4693469A67B5368B3CD10533825F3B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures_7B1518317F8370F687F0D1053383114A" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DD1AE3340856872D86DFD10533815339" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures_7B1518317F8370F687F0D1053383114A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_F4DE7B2EB6BA94058A2DD1053383C340" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DD1AE3340856872D86DFD10533815339" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_F4DE7B2EB6BA94058A2DD1053383C340" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber_CC4A48C060A254009FFBD1053383D899" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DD1AE3340856872D86DFD10533815339" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber_CC4A48C060A254009FFBD1053383D899" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EarningsPerShareBasicAndDiluted" xlink:label="loc_us-gaap_EarningsPerShareBasicAndDiluted_D8D8FA3485D45E69C4D3D1053383FB58" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DD1AE3340856872D86DFD10533815339" xlink:to="loc_us-gaap_EarningsPerShareBasicAndDiluted_D8D8FA3485D45E69C4D3D1053383FB58" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_RelativeTotalShareReturn" xlink:label="loc_nx_RelativeTotalShareReturn_C6D7FED28E42542F147DD10533848737" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DD1AE3340856872D86DFD10533815339" xlink:to="loc_nx_RelativeTotalShareReturn_C6D7FED28E42542F147DD10533848737" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_ReturnOnNetAssets" xlink:label="loc_nx_ReturnOnNetAssets_67CD83A16FE94BD66F55D1053384EC28" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_DD1AE3340856872D86DFD10533815339" xlink:to="loc_nx_ReturnOnNetAssets_67CD83A16FE94BD66F55D1053384EC28" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationRestrictedStockAwardsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE4EF241BBF77DF2B3BAD10534939840" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_13523EA9C06B51D753DFD10534929BE2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE4EF241BBF77DF2B3BAD10534939840" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_13523EA9C06B51D753DFD10534929BE2" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_C552FB4FF98C1C38CD63D105349258BD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_13523EA9C06B51D753DFD10534929BE2" xlink:to="loc_us-gaap_AwardTypeAxis_C552FB4FF98C1C38CD63D105349258BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_AEDDFBF10B3FF85D3804D105349285DB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_C552FB4FF98C1C38CD63D105349258BD" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_AEDDFBF10B3FF85D3804D105349285DB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_AEDDFBF10B3FF85D3804D105349285DB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_C552FB4FF98C1C38CD63D105349258BD" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_AEDDFBF10B3FF85D3804D105349285DB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_A51FAAE45B2846D1333AD10534937C1C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_AEDDFBF10B3FF85D3804D105349285DB" xlink:to="loc_us-gaap_RestrictedStockMember_A51FAAE45B2846D1333AD10534937C1C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_93CAAEABEE59E93BF4D6D10534931700" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE4EF241BBF77DF2B3BAD10534939840" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_93CAAEABEE59E93BF4D6D10534931700" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_DC6BB781563F76898EE9D10534935FE7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_93CAAEABEE59E93BF4D6D10534931700" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_DC6BB781563F76898EE9D10534935FE7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_3194E9C7E88EE59FBFF7D1053493C7AD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_93CAAEABEE59E93BF4D6D10534931700" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_3194E9C7E88EE59FBFF7D1053493C7AD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_7B0CECD62F4F66526A7DD105349305F4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_93CAAEABEE59E93BF4D6D10534931700" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_7B0CECD62F4F66526A7DD105349305F4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_BE94890D1BE9CECBB6B4D10534931BAE" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_93CAAEABEE59E93BF4D6D10534931700" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_BE94890D1BE9CECBB6B4D10534931BAE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_E60FA766A486A65BCA4AD1053494D76C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE4EF241BBF77DF2B3BAD10534939840" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_E60FA766A486A65BCA4AD1053494D76C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_DD0EDAB9277BC36B8350D1053494AB2A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_E60FA766A486A65BCA4AD1053494D76C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_DD0EDAB9277BC36B8350D1053494AB2A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_A21A42736F3A0BBFDA02D1053494E317" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_E60FA766A486A65BCA4AD1053494D76C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_A21A42736F3A0BBFDA02D1053494E317" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_051E38F15F17942E91DBD105349585B7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_E60FA766A486A65BCA4AD1053494D76C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_051E38F15F17942E91DBD105349585B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_3214DD7722221A016A7ED10534957D52" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_E60FA766A486A65BCA4AD1053494D76C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_3214DD7722221A016A7ED10534957D52" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_C065D76249DBFB4FA8ACD10534957420" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE4EF241BBF77DF2B3BAD10534939840" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_C065D76249DBFB4FA8ACD10534957420" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_410749F484F4AD10FA7BD10534968A54" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE4EF241BBF77DF2B3BAD10534939840" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_410749F484F4AD10FA7BD10534968A54" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_CAEFC2E5406D112432F4D10534969058" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_CE4EF241BBF77DF2B3BAD10534939840" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_CAEFC2E5406D112432F4D10534969058" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationRestrictedStockUnitsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_AC4F59B649FDBC27774FE116841836D6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_3617E73CC0C37673DB41E1168417ACA5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_AC4F59B649FDBC27774FE116841836D6" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_3617E73CC0C37673DB41E1168417ACA5" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_CEE3823D33841C0B67CFE1168417BAA7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_3617E73CC0C37673DB41E1168417ACA5" xlink:to="loc_us-gaap_AwardTypeAxis_CEE3823D33841C0B67CFE1168417BAA7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B0A0103D85776CA8B782E1168417A8C0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_CEE3823D33841C0B67CFE1168417BAA7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B0A0103D85776CA8B782E1168417A8C0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B0A0103D85776CA8B782E1168417A8C0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_CEE3823D33841C0B67CFE1168417BAA7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B0A0103D85776CA8B782E1168417A8C0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_05DF1A8FAFCA89452C73E1168418C582" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B0A0103D85776CA8B782E1168417A8C0" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_05DF1A8FAFCA89452C73E1168418C582" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_KeyEmployeeRestrictedStockUnitsMember" xlink:label="loc_nx_KeyEmployeeRestrictedStockUnitsMember_13DDAAFEC0D9E5B5E3D5E11684187452" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B0A0103D85776CA8B782E1168417A8C0" xlink:to="loc_nx_KeyEmployeeRestrictedStockUnitsMember_13DDAAFEC0D9E5B5E3D5E11684187452" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_F1FA3B9D807522B6EC03E11684190774" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_AC4F59B649FDBC27774FE116841836D6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_F1FA3B9D807522B6EC03E11684190774" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_1EA4F50C9CFB6A86875BE1168419386C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_AC4F59B649FDBC27774FE116841836D6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_1EA4F50C9CFB6A86875BE1168419386C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsShareBasedLiabilitiesPaid" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsShareBasedLiabilitiesPaid_238F2D050ECB86B919CBE11684197411" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_AC4F59B649FDBC27774FE116841836D6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsShareBasedLiabilitiesPaid_238F2D050ECB86B919CBE11684197411" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_DBB1FC6E33FE59983BB5E11684197C9F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_AC4F59B649FDBC27774FE116841836D6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_DBB1FC6E33FE59983BB5E11684197C9F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_BABB83E87040762D906BE11684191F08" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_DBB1FC6E33FE59983BB5E11684197C9F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_BABB83E87040762D906BE11684191F08" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_FD23C7283990BBE83CF6E116841AFC4C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_DBB1FC6E33FE59983BB5E11684197C9F" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_FD23C7283990BBE83CF6E116841AFC4C" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsWeightedAverageGrantDateFairValueAbstract" xlink:label="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsWeightedAverageGrantDateFairValueAbstract_08B7DF62882A15895091E116841A2965" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_AC4F59B649FDBC27774FE116841836D6" xlink:to="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsWeightedAverageGrantDateFairValueAbstract_08B7DF62882A15895091E116841A2965" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_53CB4DAA87090AE71B4BE116841A5CE7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsWeightedAverageGrantDateFairValueAbstract_08B7DF62882A15895091E116841A2965" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_53CB4DAA87090AE71B4BE116841A5CE7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_38F4DDC71197AF408F0DE116841A49B0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_nx_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsWeightedAverageGrantDateFairValueAbstract_08B7DF62882A15895091E116841A2965" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_38F4DDC71197AF408F0DE116841A49B0" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationStockOptionsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B452CBC6C50CCA283FCCD1053555E73D" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_D1B338BE7C20BF4403CBD10535548C3B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B452CBC6C50CCA283FCCD1053555E73D" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_D1B338BE7C20BF4403CBD10535548C3B" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_BE4540628B26194DD69ED1053554A6E2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_D1B338BE7C20BF4403CBD10535548C3B" xlink:to="loc_us-gaap_AwardTypeAxis_BE4540628B26194DD69ED1053554A6E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B7EB364EA84B4BD66532D10535546316_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_BE4540628B26194DD69ED1053554A6E2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B7EB364EA84B4BD66532D10535546316_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B7EB364EA84B4BD66532D10535546316" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_BE4540628B26194DD69ED1053554A6E2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B7EB364EA84B4BD66532D10535546316" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_62B4F373E34253252C65D10535551827" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_B7EB364EA84B4BD66532D10535546316" xlink:to="loc_us-gaap_EmployeeStockOptionMember_62B4F373E34253252C65D10535551827" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_CEF55B1A66749424A50DD1053555B86B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B452CBC6C50CCA283FCCD1053555E73D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_CEF55B1A66749424A50DD1053555B86B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1_866C6B2CECE759737A8CD10535551038" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B452CBC6C50CCA283FCCD1053555E73D" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1_866C6B2CECE759737A8CD10535551038" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_78CCC5A771686BBA924DD10535560479" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B452CBC6C50CCA283FCCD1053555E73D" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_78CCC5A771686BBA924DD10535560479" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationTreasurySharesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3F89621C3992AD70CDF4D10533F10B5F" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_1A04EABFB64584BF5B06D10533EF1DB1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3F89621C3992AD70CDF4D10533F10B5F" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_1A04EABFB64584BF5B06D10533EF1DB1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_4444E11729EAA77BFD99D10533F0DC15" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_1A04EABFB64584BF5B06D10533EF1DB1" xlink:to="loc_us-gaap_AwardTypeAxis_4444E11729EAA77BFD99D10533F0DC15" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_CD9BE73107F5F3B4E320D10533F0CB9F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_4444E11729EAA77BFD99D10533F0DC15" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_CD9BE73107F5F3B4E320D10533F0CB9F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_CD9BE73107F5F3B4E320D10533F0CB9F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_4444E11729EAA77BFD99D10533F0DC15" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_CD9BE73107F5F3B4E320D10533F0CB9F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_05FAA3FFEBF3314B645BD10533F0700C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_CD9BE73107F5F3B4E320D10533F0CB9F" xlink:to="loc_us-gaap_RestrictedStockMember_05FAA3FFEBF3314B645BD10533F0700C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PerformanceSharesMember" xlink:label="loc_us-gaap_PerformanceSharesMember_B92F181F62955F3E2667D10533F1F186" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_CD9BE73107F5F3B4E320D10533F0CB9F" xlink:to="loc_us-gaap_PerformanceSharesMember_B92F181F62955F3E2667D10533F1F186" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_EEA04F54D3265064FAA2D10533F1B55A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_CD9BE73107F5F3B4E320D10533F0CB9F" xlink:to="loc_us-gaap_EmployeeStockOptionMember_EEA04F54D3265064FAA2D10533F1B55A" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentPeriodEndDate" xlink:label="loc_dei_DocumentPeriodEndDate_E544EDAD35324AF8E279D10533F1E85D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3F89621C3992AD70CDF4D10533F10B5F" xlink:to="loc_dei_DocumentPeriodEndDate_E544EDAD35324AF8E279D10533F1E85D" xlink:type="arc" />
    <link:loc xlink:href="nx-20200430.xsd#nx_Deficiencyofstockoptionproceedsrecordedtoretainedearnings" xlink:label="loc_nx_Deficiencyofstockoptionproceedsrecordedtoretainedearnings_744F42788A2AAB542C31D10533F27C29" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3F89621C3992AD70CDF4D10533F10B5F" xlink:to="loc_nx_Deficiencyofstockoptionproceedsrecordedtoretainedearnings_744F42788A2AAB542C31D10533F27C29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TreasuryStockNumberOfSharesAndRestrictionDisclosuresAbstract" xlink:label="loc_us-gaap_TreasuryStockNumberOfSharesAndRestrictionDisclosuresAbstract_9267D81C72337BC53C01D10533F22D23" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3F89621C3992AD70CDF4D10533F10B5F" xlink:to="loc_us-gaap_TreasuryStockNumberOfSharesAndRestrictionDisclosuresAbstract_9267D81C72337BC53C01D10533F22D23" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TreasuryStockShares" xlink:label="loc_us-gaap_TreasuryStockShares_F4CCA14D099C1E07BFA3D10533F21760" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TreasuryStockNumberOfSharesAndRestrictionDisclosuresAbstract_9267D81C72337BC53C01D10533F22D23" xlink:to="loc_us-gaap_TreasuryStockShares_F4CCA14D099C1E07BFA3D10533F21760" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_B9590B91311E9232C9EDD10533F3EC1A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TreasuryStockNumberOfSharesAndRestrictionDisclosuresAbstract_9267D81C72337BC53C01D10533F22D23" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_B9590B91311E9232C9EDD10533F3EC1A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_08150F327A0216DC5506D10533F3B6B3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TreasuryStockNumberOfSharesAndRestrictionDisclosuresAbstract_9267D81C72337BC53C01D10533F22D23" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_08150F327A0216DC5506D10533F3B6B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodShares" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodShares_CB670922F9E1675D89D2D10533F36CBC" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TreasuryStockNumberOfSharesAndRestrictionDisclosuresAbstract_9267D81C72337BC53C01D10533F22D23" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodShares_CB670922F9E1675D89D2D10533F36CBC" xlink:type="arc" />
  </link:definitionLink>
</link:linkbase>
