<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:b40da2e8-2481-443f-afcf-8a7ec0e54f10,g:0bc0c86d-25ab-4576-aee0-e6f63c558ffe-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ConsolidatedBalanceSheets" xlink:type="simple" xlink:href="nx-20221031.xsd#ConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_ec52dd43-cff9-4c64-8fe8-b2ca4eca5047" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_941dc904-6415-45e4-8335-58bab5047143" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_ec52dd43-cff9-4c64-8fe8-b2ca4eca5047" xlink:to="loc_us-gaap_PreferredStockValue_941dc904-6415-45e4-8335-58bab5047143" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_e161a758-48ce-4ad7-9961-3a84bb3507b0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_ec52dd43-cff9-4c64-8fe8-b2ca4eca5047" xlink:to="loc_us-gaap_CommonStockValue_e161a758-48ce-4ad7-9961-3a84bb3507b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_600777e9-6682-4193-905b-ebf466081be2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_ec52dd43-cff9-4c64-8fe8-b2ca4eca5047" xlink:to="loc_us-gaap_AdditionalPaidInCapital_600777e9-6682-4193-905b-ebf466081be2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_ced90045-8f1c-4d5f-8350-d1f5ff6ede96" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_ec52dd43-cff9-4c64-8fe8-b2ca4eca5047" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_ced90045-8f1c-4d5f-8350-d1f5ff6ede96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_c5e8f410-a7d4-45c3-abe7-ba78f7b2bbdf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_ec52dd43-cff9-4c64-8fe8-b2ca4eca5047" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_c5e8f410-a7d4-45c3-abe7-ba78f7b2bbdf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_f5a33f03-a910-4d11-8c38-9eceb03b2032" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TreasuryStockValue"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_ec52dd43-cff9-4c64-8fe8-b2ca4eca5047" xlink:to="loc_us-gaap_TreasuryStockValue_f5a33f03-a910-4d11-8c38-9eceb03b2032" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_9403a9cf-b00c-4048-94b0-219f4d87fb2a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_07f56c96-3aef-47bc-815c-3abfeb5dbad8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_9403a9cf-b00c-4048-94b0-219f4d87fb2a" xlink:to="loc_us-gaap_AssetsCurrent_07f56c96-3aef-47bc-815c-3abfeb5dbad8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_a1e5a104-5796-4e51-a4af-e2585706c26f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_9403a9cf-b00c-4048-94b0-219f4d87fb2a" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_a1e5a104-5796-4e51-a4af-e2585706c26f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_fc041541-b769-4bbf-b960-c296ab10c7b7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_9403a9cf-b00c-4048-94b0-219f4d87fb2a" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_fc041541-b769-4bbf-b960-c296ab10c7b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_5d1c39ea-9993-45b0-9e0f-c5f5bb9fe33b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_9403a9cf-b00c-4048-94b0-219f4d87fb2a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_5d1c39ea-9993-45b0-9e0f-c5f5bb9fe33b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_1ac5b003-2e4b-44f5-be0d-7e8d3b5cf4d1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_9403a9cf-b00c-4048-94b0-219f4d87fb2a" xlink:to="loc_us-gaap_Goodwill_1ac5b003-2e4b-44f5-be0d-7e8d3b5cf4d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_166df02b-1046-4fd7-8303-07668bff402b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_9403a9cf-b00c-4048-94b0-219f4d87fb2a" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_166df02b-1046-4fd7-8303-07668bff402b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_cd97a810-5b24-43a4-96ac-c7bd721bcf3d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_5d521465-a3fc-41a7-9598-d260e526e98b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_cd97a810-5b24-43a4-96ac-c7bd721bcf3d" xlink:to="loc_us-gaap_Liabilities_5d521465-a3fc-41a7-9598-d260e526e98b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_5253d020-61bb-4db1-9944-02c24a664e7c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_cd97a810-5b24-43a4-96ac-c7bd721bcf3d" xlink:to="loc_us-gaap_StockholdersEquity_5253d020-61bb-4db1-9944-02c24a664e7c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_6caaa29b-bc6e-43e8-8819-ba74966e814e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_0d3ea79c-45a7-4980-9cc8-d31171dd7942" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_6caaa29b-bc6e-43e8-8819-ba74966e814e" xlink:to="loc_us-gaap_LiabilitiesCurrent_0d3ea79c-45a7-4980-9cc8-d31171dd7942" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_cd0642f2-3dda-4679-bde0-b6c7e68194e9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_6caaa29b-bc6e-43e8-8819-ba74966e814e" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_cd0642f2-3dda-4679-bde0-b6c7e68194e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_9caba84a-1367-4468-a70a-f12ff3e0a31d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_6caaa29b-bc6e-43e8-8819-ba74966e814e" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_9caba84a-1367-4468-a70a-f12ff3e0a31d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_c260ce7f-908b-4933-b465-fd931379ca50" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_6caaa29b-bc6e-43e8-8819-ba74966e814e" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_c260ce7f-908b-4933-b465-fd931379ca50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_fbaf6616-94cb-4581-908f-958cbb97ed25" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_6caaa29b-bc6e-43e8-8819-ba74966e814e" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_fbaf6616-94cb-4581-908f-958cbb97ed25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_56e90dae-f927-43a0-95e0-267a9256f3ad" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilityForUncertainTaxPositionsNoncurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_6caaa29b-bc6e-43e8-8819-ba74966e814e" xlink:to="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_56e90dae-f927-43a0-95e0-267a9256f3ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_2c8b7d83-5043-466e-8c1c-7ee078b48166" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_6caaa29b-bc6e-43e8-8819-ba74966e814e" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_2c8b7d83-5043-466e-8c1c-7ee078b48166" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_76a51df9-a037-465a-865a-d14e3d4847ae" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_df7fc00f-b47d-4e65-ba8b-ced51b62127d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_76a51df9-a037-465a-865a-d14e3d4847ae" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_df7fc00f-b47d-4e65-ba8b-ced51b62127d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_e29e34e4-6a0f-4536-9f8f-e3b6c67c6a79" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_76a51df9-a037-465a-865a-d14e3d4847ae" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_e29e34e4-6a0f-4536-9f8f-e3b6c67c6a79" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_485eee2d-6f55-42bf-8b0f-411fe39b5a0e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_76a51df9-a037-465a-865a-d14e3d4847ae" xlink:to="loc_us-gaap_InventoryNet_485eee2d-6f55-42bf-8b0f-411fe39b5a0e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_84c71fc3-b1f5-435a-840e-83ef320b221a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_76a51df9-a037-465a-865a-d14e3d4847ae" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_84c71fc3-b1f5-435a-840e-83ef320b221a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_8ad647b9-c39f-41ed-8b2a-43d126bca9d0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_803d62d3-7861-4718-9173-2b622921bb09" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_8ad647b9-c39f-41ed-8b2a-43d126bca9d0" xlink:to="loc_us-gaap_AccountsPayableCurrent_803d62d3-7861-4718-9173-2b622921bb09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_fa193e34-11cb-4777-87b8-6b613df76ee0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_8ad647b9-c39f-41ed-8b2a-43d126bca9d0" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_fa193e34-11cb-4777-87b8-6b613df76ee0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_69162238-4d4b-498a-85cf-ec108e07a7f7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccruedIncomeTaxesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_8ad647b9-c39f-41ed-8b2a-43d126bca9d0" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_69162238-4d4b-498a-85cf-ec108e07a7f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_05054fa5-e721-4e03-8fe2-a1dcd69ccc8b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_8ad647b9-c39f-41ed-8b2a-43d126bca9d0" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_05054fa5-e721-4e03-8fe2-a1dcd69ccc8b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_c4342950-0fe2-4f60-85f7-627063942a74" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_8ad647b9-c39f-41ed-8b2a-43d126bca9d0" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_c4342950-0fe2-4f60-85f7-627063942a74" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsofIncomeLoss" xlink:type="simple" xlink:href="nx-20221031.xsd#ConsolidatedStatementsofIncomeLoss"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsofIncomeLoss" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_4b203937-d698-4b5f-b2c1-37147a23d4f6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_61aa684f-776a-41b9-b3e8-1d23e552c52c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_4b203937-d698-4b5f-b2c1-37147a23d4f6" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_61aa684f-776a-41b9-b3e8-1d23e552c52c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_06337b60-211c-4422-a81a-d83ac46233bb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_4b203937-d698-4b5f-b2c1-37147a23d4f6" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_06337b60-211c-4422-a81a-d83ac46233bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_94f24b66-6e42-47cd-b864-5b33062be865" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_2079314e-7ed8-4435-80aa-6ef91b9fca4c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_94f24b66-6e42-47cd-b864-5b33062be865" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_2079314e-7ed8-4435-80aa-6ef91b9fca4c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_1b69cf93-8505-4c74-bcc0-e9987afb88d0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RestructuringCharges"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_94f24b66-6e42-47cd-b864-5b33062be865" xlink:to="loc_us-gaap_RestructuringCharges_1b69cf93-8505-4c74-bcc0-e9987afb88d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_1c192d1b-b25f-4c8f-a0d6-59caecf395cd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_94f24b66-6e42-47cd-b864-5b33062be865" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_1c192d1b-b25f-4c8f-a0d6-59caecf395cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_78e9a24b-49b0-49bf-bb00-9197bd70b0b7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Revenues"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_94f24b66-6e42-47cd-b864-5b33062be865" xlink:to="loc_us-gaap_Revenues_78e9a24b-49b0-49bf-bb00-9197bd70b0b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_c36bb99b-85d7-4464-a6af-b0fb6f7f83f8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_94f24b66-6e42-47cd-b864-5b33062be865" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_c36bb99b-85d7-4464-a6af-b0fb6f7f83f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a8b91ea8-c52b-468f-babd-2a2cdf8e10a0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_6fefccdd-d642-4f9d-99f8-7f0666cc1869" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a8b91ea8-c52b-468f-babd-2a2cdf8e10a0" xlink:to="loc_us-gaap_OperatingIncomeLoss_6fefccdd-d642-4f9d-99f8-7f0666cc1869" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_78be3e94-54e2-4fd6-855d-1b1d9df3cdc5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a8b91ea8-c52b-468f-babd-2a2cdf8e10a0" xlink:to="loc_us-gaap_InterestExpense_78be3e94-54e2-4fd6-855d-1b1d9df3cdc5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_95ac9c7a-166b-47c3-8879-0fa1060c50f8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a8b91ea8-c52b-468f-babd-2a2cdf8e10a0" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_95ac9c7a-166b-47c3-8879-0fa1060c50f8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss" xlink:type="simple" xlink:href="nx-20221031.xsd#ConsolidatedStatementsofComprehensiveIncomeLoss"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_2aa92341-307a-4922-9408-59b9b97ca1c8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_0157ebe4-1f4b-40c2-baae-d372ffd2a16d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_2aa92341-307a-4922-9408-59b9b97ca1c8" xlink:to="loc_us-gaap_NetIncomeLoss_0157ebe4-1f4b-40c2-baae-d372ffd2a16d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_06169dbe-135a-4d5d-b4d0-1a17d11b1e8a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_2aa92341-307a-4922-9408-59b9b97ca1c8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_06169dbe-135a-4d5d-b4d0-1a17d11b1e8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_2f1876b1-5290-4722-999c-63c98d56df52" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_91cdfabe-6945-41d1-b7f3-463ed39ab5d1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_2f1876b1-5290-4722-999c-63c98d56df52" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_91cdfabe-6945-41d1-b7f3-463ed39ab5d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_a77e6fae-0c8e-4aa9-beaa-32b3f6478a5b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_2f1876b1-5290-4722-999c-63c98d56df52" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_a77e6fae-0c8e-4aa9-beaa-32b3f6478a5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansTax_1556cb0c-9452-4cf9-80df-c0aa9393598c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_2f1876b1-5290-4722-999c-63c98d56df52" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansTax_1556cb0c-9452-4cf9-80df-c0aa9393598c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsofCashFlow" xlink:type="simple" xlink:href="nx-20221031.xsd#ConsolidatedStatementsofCashFlow"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsofCashFlow" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_c12a4ab1-a24b-4409-9e2f-af0d1f450219" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bbbd6fa1-d6c8-4150-aae3-59f776e30231" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_c12a4ab1-a24b-4409-9e2f-af0d1f450219" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_bbbd6fa1-d6c8-4150-aae3-59f776e30231" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_247f4823-ee2d-4c00-a616-a5e24f819854" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_c12a4ab1-a24b-4409-9e2f-af0d1f450219" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_247f4823-ee2d-4c00-a616-a5e24f819854" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_75007402-42af-4d6e-a5a0-71b32ad6407f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_c12a4ab1-a24b-4409-9e2f-af0d1f450219" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_75007402-42af-4d6e-a5a0-71b32ad6407f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_828bf456-60dc-4c18-86f0-4ddf9616b968" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_c12a4ab1-a24b-4409-9e2f-af0d1f450219" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_828bf456-60dc-4c18-86f0-4ddf9616b968" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_71a97bf5-158b-46df-92b4-cca4d3fb2672" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_dd3bda86-0276-4a1a-b80a-c2e544feba58" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromLinesOfCredit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_71a97bf5-158b-46df-92b4-cca4d3fb2672" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_dd3bda86-0276-4a1a-b80a-c2e544feba58" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_e44f0ade-edf2-46b5-8e31-e2291e01e724" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RepaymentsOfLinesOfCredit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_71a97bf5-158b-46df-92b4-cca4d3fb2672" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_e44f0ade-edf2-46b5-8e31-e2291e01e724" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_35ab82af-2361-4e5d-b7fa-6f568da64d5d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_71a97bf5-158b-46df-92b4-cca4d3fb2672" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_35ab82af-2361-4e5d-b7fa-6f568da64d5d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_4ce88baa-2b76-4bac-87bd-b7d412517070" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_71a97bf5-158b-46df-92b4-cca4d3fb2672" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_4ce88baa-2b76-4bac-87bd-b7d412517070" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_e74b04f2-31b5-4267-986b-09f15d2017b2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_71a97bf5-158b-46df-92b4-cca4d3fb2672" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_e74b04f2-31b5-4267-986b-09f15d2017b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_928d6f59-4f9d-4463-b9f0-d93d0323dab6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_71a97bf5-158b-46df-92b4-cca4d3fb2672" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_928d6f59-4f9d-4463-b9f0-d93d0323dab6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_50c5770f-3113-40dc-8f8a-e9db6b7b8ad6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_71a97bf5-158b-46df-92b4-cca4d3fb2672" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_50c5770f-3113-40dc-8f8a-e9db6b7b8ad6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_42871346-a856-401d-8e32-bae6475a4cd8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_71a97bf5-158b-46df-92b4-cca4d3fb2672" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_42871346-a856-401d-8e32-bae6475a4cd8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_dc74f4ff-9535-4a7d-af05-2982a6c7a089" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_8ce7f928-caa6-4a66-bdc3-6235a92ebbd4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_dc74f4ff-9535-4a7d-af05-2982a6c7a089" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_8ce7f928-caa6-4a66-bdc3-6235a92ebbd4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_971639f8-d55b-4619-ab42-3f1f144b53d6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_dc74f4ff-9535-4a7d-af05-2982a6c7a089" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_971639f8-d55b-4619-ab42-3f1f144b53d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3bb16cd9-ce57-410c-a86c-14aefa985532" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_8c2001e0-d608-4899-9fe3-7943a34df794" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3bb16cd9-ce57-410c-a86c-14aefa985532" xlink:to="loc_us-gaap_ProfitLoss_8c2001e0-d608-4899-9fe3-7943a34df794" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAmortizationAndAccretionNet_71375863-1846-41c0-b01e-66ed30b719a1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DepreciationAmortizationAndAccretionNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3bb16cd9-ce57-410c-a86c-14aefa985532" xlink:to="loc_us-gaap_DepreciationAmortizationAndAccretionNet_71375863-1846-41c0-b01e-66ed30b719a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_df040e96-4358-460c-820c-56ab3fceb48f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3bb16cd9-ce57-410c-a86c-14aefa985532" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_df040e96-4358-460c-820c-56ab3fceb48f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_ecd4c5aa-ae2b-40ba-b4c4-26145cd08a7a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3bb16cd9-ce57-410c-a86c-14aefa985532" xlink:to="loc_us-gaap_ShareBasedCompensation_ecd4c5aa-ae2b-40ba-b4c4-26145cd08a7a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_a6a937b5-01ef-4760-a9a9-f6843143043d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3bb16cd9-ce57-410c-a86c-14aefa985532" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_a6a937b5-01ef-4760-a9a9-f6843143043d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingIncomeExpenseNet_6b4e904a-c73b-42e9-80b8-65bf6a442fbc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherOperatingIncomeExpenseNet"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3bb16cd9-ce57-410c-a86c-14aefa985532" xlink:to="loc_us-gaap_OtherOperatingIncomeExpenseNet_6b4e904a-c73b-42e9-80b8-65bf6a442fbc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable_02c33b45-3ce2-4bb8-a656-251131a91e95" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3bb16cd9-ce57-410c-a86c-14aefa985532" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable_02c33b45-3ce2-4bb8-a656-251131a91e95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_d21ad02e-77d9-4586-89c4-341f65b6bc94" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3bb16cd9-ce57-410c-a86c-14aefa985532" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_d21ad02e-77d9-4586-89c4-341f65b6bc94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_4a20c646-a902-4320-a707-a178d7e3761b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3bb16cd9-ce57-410c-a86c-14aefa985532" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_4a20c646-a902-4320-a707-a178d7e3761b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_3a77c922-2997-4c87-826f-42e4b6a2d54d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3bb16cd9-ce57-410c-a86c-14aefa985532" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_3a77c922-2997-4c87-826f-42e4b6a2d54d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_14c87e23-2e73-40b1-8b93-4874cc1a8fa2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3bb16cd9-ce57-410c-a86c-14aefa985532" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_14c87e23-2e73-40b1-8b93-4874cc1a8fa2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_db56b23f-ef4e-432b-b01e-0628bbc6521a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3bb16cd9-ce57-410c-a86c-14aefa985532" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_db56b23f-ef4e-432b-b01e-0628bbc6521a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPensionAndPostretirementObligations_a608834b-5f38-44c5-b074-10b02a9d589e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInPensionAndPostretirementObligations"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3bb16cd9-ce57-410c-a86c-14aefa985532" xlink:to="loc_us-gaap_IncreaseDecreaseInPensionAndPostretirementObligations_a608834b-5f38-44c5-b074-10b02a9d589e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_aa650ec3-ac08-4a60-9005-204afe56b8e4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3bb16cd9-ce57-410c-a86c-14aefa985532" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_aa650ec3-ac08-4a60-9005-204afe56b8e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_79064a5d-df1f-4ad4-a47a-1dc787d531cb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_3bb16cd9-ce57-410c-a86c-14aefa985532" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_79064a5d-df1f-4ad4-a47a-1dc787d531cb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ReceivablesAllowanceDetails" xlink:type="simple" xlink:href="nx-20221031.xsd#ReceivablesAllowanceDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/ReceivablesAllowanceDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_04279ce3-725a-453c-82ee-994d37725ac5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableGrossCurrent_07cb2209-3f87-4af4-ac84-1e568e7380f9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsReceivableGrossCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableNetCurrent_04279ce3-725a-453c-82ee-994d37725ac5" xlink:to="loc_us-gaap_AccountsReceivableGrossCurrent_07cb2209-3f87-4af4-ac84-1e568e7380f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_52d3d8b7-eb04-4613-9473-eb9c9891a4b1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableNetCurrent_04279ce3-725a-453c-82ee-994d37725ac5" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_52d3d8b7-eb04-4613-9473-eb9c9891a4b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableGrossCurrent_eb395ea3-e088-42fb-a456-81463b70e13b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsReceivableGrossCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherReceivablesGrossCurrent_62e14472-f177-4f2f-b8a9-e01f11eb7e0c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherReceivablesGrossCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableGrossCurrent_eb395ea3-e088-42fb-a456-81463b70e13b" xlink:to="loc_us-gaap_OtherReceivablesGrossCurrent_62e14472-f177-4f2f-b8a9-e01f11eb7e0c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherReceivables_77e34248-dcfe-444a-bc13-f78fcb16401a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherReceivables"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableGrossCurrent_eb395ea3-e088-42fb-a456-81463b70e13b" xlink:to="loc_us-gaap_OtherReceivables_77e34248-dcfe-444a-bc13-f78fcb16401a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/InventoriesDetail" xlink:type="simple" xlink:href="nx-20221031.xsd#InventoriesDetail"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/InventoriesDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_98e8c045-4756-45f3-a616-b86b6508e651" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryGross_7d698e75-a9dc-4dcb-8c15-40bd9a6085d4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_98e8c045-4756-45f3-a616-b86b6508e651" xlink:to="loc_us-gaap_InventoryGross_7d698e75-a9dc-4dcb-8c15-40bd9a6085d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryValuationReserves_5503a9d3-073b-4efc-bc2c-5c5fc9b37bfa" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryValuationReserves"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_98e8c045-4756-45f3-a616-b86b6508e651" xlink:to="loc_us-gaap_InventoryValuationReserves_5503a9d3-073b-4efc-bc2c-5c5fc9b37bfa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryGross_cfd6bab6-67f5-435a-8211-688cd043fbae" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterials_c5e55f53-200a-49f5-bafa-032471bcf011" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryRawMaterials"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryGross_cfd6bab6-67f5-435a-8211-688cd043fbae" xlink:to="loc_us-gaap_InventoryRawMaterials_c5e55f53-200a-49f5-bafa-032471bcf011" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsAndWorkInProcess_c5603a23-286e-4e73-8668-6b300c95f999" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryFinishedGoodsAndWorkInProcess"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryGross_cfd6bab6-67f5-435a-8211-688cd043fbae" xlink:to="loc_us-gaap_InventoryFinishedGoodsAndWorkInProcess_c5603a23-286e-4e73-8668-6b300c95f999" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInventorySupplies_28aa57a9-5d99-45cf-ab77-c6a90efb93b8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherInventorySupplies"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryGross_cfd6bab6-67f5-435a-8211-688cd043fbae" xlink:to="loc_us-gaap_OtherInventorySupplies_28aa57a9-5d99-45cf-ab77-c6a90efb93b8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/PropertyPlantandEquipmentDetails" xlink:type="simple" xlink:href="nx-20221031.xsd#PropertyPlantandEquipmentDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/PropertyPlantandEquipmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_f17bec77-c87f-414c-ac5f-db0f29f97781" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LandAndLandImprovements_22bce2b8-7d73-4440-a80e-88eab24a7b6c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LandAndLandImprovements"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_f17bec77-c87f-414c-ac5f-db0f29f97781" xlink:to="loc_us-gaap_LandAndLandImprovements_22bce2b8-7d73-4440-a80e-88eab24a7b6c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BuildingsAndImprovementsGross_9bcee279-93c6-45a2-a5a6-d0239d618b50" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BuildingsAndImprovementsGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_f17bec77-c87f-414c-ac5f-db0f29f97781" xlink:to="loc_us-gaap_BuildingsAndImprovementsGross_9bcee279-93c6-45a2-a5a6-d0239d618b50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MachineryAndEquipmentGross_291e53e1-c3e2-42fb-845f-21447570b5a2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_MachineryAndEquipmentGross"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_f17bec77-c87f-414c-ac5f-db0f29f97781" xlink:to="loc_us-gaap_MachineryAndEquipmentGross_291e53e1-c3e2-42fb-845f-21447570b5a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConstructionInProgressGross_54f380d1-4d03-49b7-8a88-664789ea5a6a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConstructionInProgressGross"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_f17bec77-c87f-414c-ac5f-db0f29f97781" xlink:to="loc_us-gaap_ConstructionInProgressGross_54f380d1-4d03-49b7-8a88-664789ea5a6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_5010afa1-f03e-4d15-beb1-70fefffb195e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_a0e08235-91cd-4de1-a705-0c8f1e439e2d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_5010afa1-f03e-4d15-beb1-70fefffb195e" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_a0e08235-91cd-4de1-a705-0c8f1e439e2d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_56d49317-e228-4413-ac53-d447ea68e197" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_5010afa1-f03e-4d15-beb1-70fefffb195e" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_56d49317-e228-4413-ac53-d447ea68e197" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/LeasesDetails" xlink:type="simple" xlink:href="nx-20221031.xsd#LeasesDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/LeasesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_3f7e49f6-e49b-4926-9b01-c866eb1e530a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_c26993a9-8627-4c2b-9409-648648bbbf7d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_3f7e49f6-e49b-4926-9b01-c866eb1e530a" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_c26993a9-8627-4c2b-9409-648648bbbf7d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_90ed35b1-2170-47d0-923e-df28c3bffd4b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_3f7e49f6-e49b-4926-9b01-c866eb1e530a" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_90ed35b1-2170-47d0-923e-df28c3bffd4b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_1de3a140-91d2-4053-b2cd-8d4baa3b1375" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_3f7e49f6-e49b-4926-9b01-c866eb1e530a" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_1de3a140-91d2-4053-b2cd-8d4baa3b1375" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_8447a3ae-2ca4-46aa-8523-94ee20173e9b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_3f7e49f6-e49b-4926-9b01-c866eb1e530a" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_8447a3ae-2ca4-46aa-8523-94ee20173e9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_93dbef27-b678-4064-b8b4-e42ad64eaab6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_3f7e49f6-e49b-4926-9b01-c866eb1e530a" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_93dbef27-b678-4064-b8b4-e42ad64eaab6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_c65dab5e-d246-46e0-a173-b94d73c0d24d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_3f7e49f6-e49b-4926-9b01-c866eb1e530a" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_c65dab5e-d246-46e0-a173-b94d73c0d24d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_cbe72cf6-4bcc-41b1-a431-1cb0bdb6e9b7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_f2d86710-750d-4915-a129-c9699db83c1c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinanceLeaseLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_cbe72cf6-4bcc-41b1-a431-1cb0bdb6e9b7" xlink:to="loc_us-gaap_FinanceLeaseLiability_f2d86710-750d-4915-a129-c9699db83c1c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_46b2be72-5869-458b-9083-ab60987fc8b8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_cbe72cf6-4bcc-41b1-a431-1cb0bdb6e9b7" xlink:to="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_46b2be72-5869-458b-9083-ab60987fc8b8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/LeasesDetails_1" xlink:type="simple" xlink:href="nx-20221031.xsd#LeasesDetails_1"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/LeasesDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_d2ddfc44-992a-49dd-bc8a-541bbee6be2a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_10073b39-2d31-480b-8028-1e276569455f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_d2ddfc44-992a-49dd-bc8a-541bbee6be2a" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_10073b39-2d31-480b-8028-1e276569455f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_f7ccd0a5-fea3-47a7-8b67-7dde69b4cfda" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_d2ddfc44-992a-49dd-bc8a-541bbee6be2a" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_f7ccd0a5-fea3-47a7-8b67-7dde69b4cfda" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_3ad438b8-69fa-4f25-a540-32819f94975c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_d2ddfc44-992a-49dd-bc8a-541bbee6be2a" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_3ad438b8-69fa-4f25-a540-32819f94975c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_e092fb0c-34c8-4d59-a475-00fb52aab3b7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_d2ddfc44-992a-49dd-bc8a-541bbee6be2a" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_e092fb0c-34c8-4d59-a475-00fb52aab3b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_50d12fa9-070a-4a65-92f7-235425fed35c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_d2ddfc44-992a-49dd-bc8a-541bbee6be2a" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_50d12fa9-070a-4a65-92f7-235425fed35c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_0e5202a8-4116-48ce-9ac4-267caf095916" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_d2ddfc44-992a-49dd-bc8a-541bbee6be2a" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_0e5202a8-4116-48ce-9ac4-267caf095916" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_eb464178-562d-41aa-ac7c-84558acc8109" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_613ac001-e419-4a90-847f-a4c1ca9abfad" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_eb464178-562d-41aa-ac7c-84558acc8109" xlink:to="loc_us-gaap_OperatingLeaseLiability_613ac001-e419-4a90-847f-a4c1ca9abfad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_ede1bd0a-5c7c-482a-ba5c-6693e8db7b81" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_eb464178-562d-41aa-ac7c-84558acc8109" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_ede1bd0a-5c7c-482a-ba5c-6693e8db7b81" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/GoodwillandIntangibleAssetsDetail" xlink:type="simple" xlink:href="nx-20221031.xsd#GoodwillandIntangibleAssetsDetail"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/GoodwillandIntangibleAssetsDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_d5cbf7e0-799b-45c2-9cf1-cacd9f4927c9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_2a867090-b1f9-44fd-a256-0e6786d13068" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_d5cbf7e0-799b-45c2-9cf1-cacd9f4927c9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_2a867090-b1f9-44fd-a256-0e6786d13068" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_e6a852c0-d8fb-4a54-8faf-0533fe2bfa9c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_d5cbf7e0-799b-45c2-9cf1-cacd9f4927c9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_e6a852c0-d8fb-4a54-8faf-0533fe2bfa9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_bed7a843-8b5e-4e94-9f1c-ba8457293860" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_d5cbf7e0-799b-45c2-9cf1-cacd9f4927c9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_bed7a843-8b5e-4e94-9f1c-ba8457293860" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_d063303b-a1b6-4fbb-9fdb-74a0b19a4632" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_d5cbf7e0-799b-45c2-9cf1-cacd9f4927c9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_d063303b-a1b6-4fbb-9fdb-74a0b19a4632" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_4c7cec12-1e4a-4340-a1b4-f81e764930b4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_d5cbf7e0-799b-45c2-9cf1-cacd9f4927c9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_4c7cec12-1e4a-4340-a1b4-f81e764930b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_c591b28a-e12d-4544-9ca9-cb191524759b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_d5cbf7e0-799b-45c2-9cf1-cacd9f4927c9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_c591b28a-e12d-4544-9ca9-cb191524759b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/AccruedLiabilitiesDetails" xlink:type="simple" xlink:href="nx-20221031.xsd#AccruedLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/AccruedLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_df3d62b7-4b49-497c-9795-d9b478b59283" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccruedLiabilitiesCurrentAndNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_Accruedotherbusinesstaxes_ba96563e-0a92-4d64-8157-92d2e6b2395b" xlink:href="nx-20221031.xsd#nx_Accruedotherbusinesstaxes"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_df3d62b7-4b49-497c-9795-d9b478b59283" xlink:to="loc_nx_Accruedotherbusinesstaxes_ba96563e-0a92-4d64-8157-92d2e6b2395b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductWarrantyAccrualClassifiedCurrent_4be9d8aa-02fb-4c36-a1d5-91543e55b438" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProductWarrantyAccrualClassifiedCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_df3d62b7-4b49-497c-9795-d9b478b59283" xlink:to="loc_us-gaap_ProductWarrantyAccrualClassifiedCurrent_4be9d8aa-02fb-4c36-a1d5-91543e55b438" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherEmployeeRelatedLiabilitiesCurrent_a4d75d2f-65fb-4e42-be66-51fb9dbb91ce" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherEmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_df3d62b7-4b49-497c-9795-d9b478b59283" xlink:to="loc_us-gaap_OtherEmployeeRelatedLiabilitiesCurrent_a4d75d2f-65fb-4e42-be66-51fb9dbb91ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_d75a7988-c693-4ec6-af89-d1b2a5c913e5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_df3d62b7-4b49-497c-9795-d9b478b59283" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_d75a7988-c693-4ec6-af89-d1b2a5c913e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredRevenueCurrent_aa886187-7b6d-45da-88c8-f644e6f52d01" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredRevenueCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_df3d62b7-4b49-497c-9795-d9b478b59283" xlink:to="loc_us-gaap_DeferredRevenueCurrent_aa886187-7b6d-45da-88c8-f644e6f52d01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerRefundLiabilityCurrent_7564a1cf-9fd2-43c2-8714-4e9d1acca1ee" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CustomerRefundLiabilityCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_df3d62b7-4b49-497c-9795-d9b478b59283" xlink:to="loc_us-gaap_CustomerRefundLiabilityCurrent_7564a1cf-9fd2-43c2-8714-4e9d1acca1ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedProfessionalFeesCurrent_9648edee-3ed9-4c88-bcb7-89998aa4a178" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccruedProfessionalFeesCurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_df3d62b7-4b49-497c-9795-d9b478b59283" xlink:to="loc_us-gaap_AccruedProfessionalFeesCurrent_9648edee-3ed9-4c88-bcb7-89998aa4a178" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationLiabilityCurrent_3d8c6280-dafa-43e8-88be-5276e1e8c335" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredCompensationLiabilityCurrent"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_df3d62b7-4b49-497c-9795-d9b478b59283" xlink:to="loc_us-gaap_DeferredCompensationLiabilityCurrent_3d8c6280-dafa-43e8-88be-5276e1e8c335" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_9af6bdb1-53bc-4a04-9f2d-eb5b04a340bf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_df3d62b7-4b49-497c-9795-d9b478b59283" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_9af6bdb1-53bc-4a04-9f2d-eb5b04a340bf" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtandCapitalLeaseObligationsScheduleofDebtObligationsDetails" xlink:type="simple" xlink:href="nx-20221031.xsd#DebtandCapitalLeaseObligationsScheduleofDebtObligationsDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/DebtandCapitalLeaseObligationsScheduleofDebtObligationsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndCapitalLeaseObligations_a1df1c0b-e529-4fdb-9953-ed3c6d1ffa3c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtAndCapitalLeaseObligations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_08cd2852-a789-4914-894b-291735fed5b6" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_a1df1c0b-e529-4fdb-9953-ed3c6d1ffa3c" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_08cd2852-a789-4914-894b-291735fed5b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_4b45f508-979d-494d-9588-58f23449c5f2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_a1df1c0b-e529-4fdb-9953-ed3c6d1ffa3c" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_4b45f508-979d-494d-9588-58f23449c5f2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtandCapitalLeaseObligationsScheduleofDebtMaturitiesDetails" xlink:type="simple" xlink:href="nx-20221031.xsd#DebtandCapitalLeaseObligationsScheduleofDebtMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/DebtandCapitalLeaseObligationsScheduleofDebtMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid_c09fa449-3125-4833-a12c-773c8440ce0c" xlink:href="nx-20221031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligations_e4a28d62-156b-42f8-9f08-b5437f7a087c" xlink:href="nx-20221031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligations"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid_c09fa449-3125-4833-a12c-773c8440ce0c" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligations_e4a28d62-156b-42f8-9f08-b5437f7a087c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour_16d0229e-5b81-449d-9f4e-47576e8de49e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_da048da5-bcf7-4f19-afe4-19d3a3e20185" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour_16d0229e-5b81-449d-9f4e-47576e8de49e" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_da048da5-bcf7-4f19-afe4-19d3a3e20185" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFour_264259b2-8dc9-4f6b-a284-5df31a4e6380" xlink:href="nx-20221031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFour"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour_16d0229e-5b81-449d-9f4e-47576e8de49e" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFour_264259b2-8dc9-4f6b-a284-5df31a4e6380" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree_d1f25c18-796a-4ede-bef8-d6993861ea8a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearThree_13c78c55-e4fb-4fb8-8113-e28fa682899b" xlink:href="nx-20221031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearThree"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree_d1f25c18-796a-4ede-bef8-d6993861ea8a" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearThree_13c78c55-e4fb-4fb8-8113-e28fa682899b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_e8b3b826-9746-404c-947a-ad17ef1e1447" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree_d1f25c18-796a-4ede-bef8-d6993861ea8a" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_e8b3b826-9746-404c-947a-ad17ef1e1447" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_LongTermDebtAndCapitalLeaseObligationsGross_e3fffb65-a501-4c9c-92ac-94a48ed48c92" xlink:href="nx-20221031.xsd#nx_LongTermDebtAndCapitalLeaseObligationsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree_39f6db6e-914a-4fc4-923f-182cb0d03422" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_LongTermDebtAndCapitalLeaseObligationsGross_e3fffb65-a501-4c9c-92ac-94a48ed48c92" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree_39f6db6e-914a-4fc4-923f-182cb0d03422" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive_6521293a-5f67-4ec7-b8c5-b4f8f909bc22" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_LongTermDebtAndCapitalLeaseObligationsGross_e3fffb65-a501-4c9c-92ac-94a48ed48c92" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive_6521293a-5f67-4ec7-b8c5-b4f8f909bc22" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo_6273947e-8aec-48cf-b135-c10aa1ef67b1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_LongTermDebtAndCapitalLeaseObligationsGross_e3fffb65-a501-4c9c-92ac-94a48ed48c92" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo_6273947e-8aec-48cf-b135-c10aa1ef67b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive_b93765d7-fec1-4a74-8b28-758511429778" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_LongTermDebtAndCapitalLeaseObligationsGross_e3fffb65-a501-4c9c-92ac-94a48ed48c92" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive_b93765d7-fec1-4a74-8b28-758511429778" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour_3a0f976d-e91e-4bce-b67f-140067ae81fb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_LongTermDebtAndCapitalLeaseObligationsGross_e3fffb65-a501-4c9c-92ac-94a48ed48c92" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour_3a0f976d-e91e-4bce-b67f-140067ae81fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths_c3724f8d-1022-47b4-a423-635fc78ea001" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_LongTermDebtAndCapitalLeaseObligationsGross_e3fffb65-a501-4c9c-92ac-94a48ed48c92" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths_c3724f8d-1022-47b4-a423-635fc78ea001" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_a48c9caf-8a30-4085-88e2-c1136e36561a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtLongtermAndShorttermCombinedAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree_cdb65bc4-85dd-4bfd-8187-83c35e0dc22a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_a48c9caf-8a30-4085-88e2-c1136e36561a" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree_cdb65bc4-85dd-4bfd-8187-83c35e0dc22a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive_a1741a15-28c1-4730-8989-8e865565e11b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_a48c9caf-8a30-4085-88e2-c1136e36561a" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive_a1741a15-28c1-4730-8989-8e865565e11b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo_ba824f71-3c5e-47f1-8275-b933643ba40e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_a48c9caf-8a30-4085-88e2-c1136e36561a" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo_ba824f71-3c5e-47f1-8275-b933643ba40e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive_06abc255-7cdc-478e-8c10-2e5465995905" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_a48c9caf-8a30-4085-88e2-c1136e36561a" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive_06abc255-7cdc-478e-8c10-2e5465995905" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour_6b4b5c9b-c003-4f2d-8e5d-ff8a1a2de602" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_a48c9caf-8a30-4085-88e2-c1136e36561a" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour_6b4b5c9b-c003-4f2d-8e5d-ff8a1a2de602" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths_717277c1-64a1-496c-bf18-259f429688da" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_a48c9caf-8a30-4085-88e2-c1136e36561a" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths_717277c1-64a1-496c-bf18-259f429688da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndCapitalLeaseObligations_20f70729-9794-4ba3-a29e-e2c5d9d03614" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtAndCapitalLeaseObligations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_6844168f-1e0d-4659-a410-0ede7a3ae18f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_20f70729-9794-4ba3-a29e-e2c5d9d03614" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_6844168f-1e0d-4659-a410-0ede7a3ae18f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_c6ef80e4-a4cd-4294-b5e9-2b8db8a15935" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_20f70729-9794-4ba3-a29e-e2c5d9d03614" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_c6ef80e4-a4cd-4294-b5e9-2b8db8a15935" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_dbba5b27-79ea-483b-bfbe-cb2f4e3a7d62" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_20f70729-9794-4ba3-a29e-e2c5d9d03614" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_dbba5b27-79ea-483b-bfbe-cb2f4e3a7d62" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_c3e4186c-867d-4617-aff8-8d9f26c80c9c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_20f70729-9794-4ba3-a29e-e2c5d9d03614" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_c3e4186c-867d-4617-aff8-8d9f26c80c9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_64b88fad-9dfe-442c-9e4a-5dbfaf8038c4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_20f70729-9794-4ba3-a29e-e2c5d9d03614" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_64b88fad-9dfe-442c-9e4a-5dbfaf8038c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_4ff3ed02-7eed-4040-921e-b225849691fd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_20f70729-9794-4ba3-a29e-e2c5d9d03614" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_4ff3ed02-7eed-4040-921e-b225849691fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive_fbfe495e-601e-4b52-897e-611a97001bde" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFive_b1646fad-2876-4d50-a060-5cd64583ed70" xlink:href="nx-20221031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFive"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive_fbfe495e-601e-4b52-897e-611a97001bde" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFive_b1646fad-2876-4d50-a060-5cd64583ed70" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_89c58de3-725b-423b-89f8-f5968d7294b5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive_fbfe495e-601e-4b52-897e-611a97001bde" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_89c58de3-725b-423b-89f8-f5968d7294b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive_9724e214-00f0-45a8-be64-49fc92dacd4b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_6a40757d-3928-4067-97a5-bbb4e65e9736" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive_9724e214-00f0-45a8-be64-49fc92dacd4b" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_6a40757d-3928-4067-97a5-bbb4e65e9736" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidAfterYearFive_831e64d3-b3ad-4cfc-a671-ad2504a6fef8" xlink:href="nx-20221031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidAfterYearFive"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive_9724e214-00f0-45a8-be64-49fc92dacd4b" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidAfterYearFive_831e64d3-b3ad-4cfc-a671-ad2504a6fef8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths_7b6d104f-1685-4e0d-b2e8-9f8db7232f36" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearOne_c31fe125-133c-47b1-bbca-afa9891aea67" xlink:href="nx-20221031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearOne"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths_7b6d104f-1685-4e0d-b2e8-9f8db7232f36" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearOne_c31fe125-133c-47b1-bbca-afa9891aea67" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_8cd056b4-43c0-40c7-9d34-7a24a39cdaa1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths_7b6d104f-1685-4e0d-b2e8-9f8db7232f36" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_8cd056b4-43c0-40c7-9d34-7a24a39cdaa1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo_17289a0c-6cc8-4b4a-bffc-ba25c8494868" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearTwo_8b321179-ad90-45b5-82ad-25c764c1127b" xlink:href="nx-20221031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearTwo"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo_17289a0c-6cc8-4b4a-bffc-ba25c8494868" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearTwo_8b321179-ad90-45b5-82ad-25c764c1127b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_a7e34359-e697-4d46-8781-fcc82dbcf57f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo_17289a0c-6cc8-4b4a-bffc-ba25c8494868" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_a7e34359-e697-4d46-8781-fcc82dbcf57f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtandCapitalLeaseObligationsScheduleofDebtMaturitiesDetails_1" xlink:type="simple" xlink:href="nx-20221031.xsd#DebtandCapitalLeaseObligationsScheduleofDebtMaturitiesDetails_1"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/DebtandCapitalLeaseObligationsScheduleofDebtMaturitiesDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid_5f8f4469-71e9-47a2-bcd2-9bbcc8b9058d" xlink:href="nx-20221031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearThree_312b7db1-7ba1-4704-bac6-42d3b494c4af" xlink:href="nx-20221031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearThree"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid_5f8f4469-71e9-47a2-bcd2-9bbcc8b9058d" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearThree_312b7db1-7ba1-4704-bac6-42d3b494c4af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFive_932336b0-7abf-4369-99fd-337a941274cb" xlink:href="nx-20221031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFive"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid_5f8f4469-71e9-47a2-bcd2-9bbcc8b9058d" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFive_932336b0-7abf-4369-99fd-337a941274cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearOne_dcaedd1c-3468-4dfe-a83c-eb92629ca43f" xlink:href="nx-20221031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearOne"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid_5f8f4469-71e9-47a2-bcd2-9bbcc8b9058d" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearOne_dcaedd1c-3468-4dfe-a83c-eb92629ca43f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearTwo_15a39864-1ce0-49d8-b628-c64cf9679614" xlink:href="nx-20221031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearTwo"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid_5f8f4469-71e9-47a2-bcd2-9bbcc8b9058d" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearTwo_15a39864-1ce0-49d8-b628-c64cf9679614" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidAfterYearFive_a3dec310-d44c-41c3-af0b-e34af0fed8bb" xlink:href="nx-20221031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidAfterYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid_5f8f4469-71e9-47a2-bcd2-9bbcc8b9058d" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidAfterYearFive_a3dec310-d44c-41c3-af0b-e34af0fed8bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFour_7a2eb905-673c-40ff-ba08-58f1b7421426" xlink:href="nx-20221031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFour"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid_5f8f4469-71e9-47a2-bcd2-9bbcc8b9058d" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFour_7a2eb905-673c-40ff-ba08-58f1b7421426" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/RetirementPlansDetail" xlink:type="simple" xlink:href="nx-20221031.xsd#RetirementPlansDetail"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/RetirementPlansDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_nx_DefinedBenefitPlanExpectedFutureBenefitPayments_84fe42d2-b9b4-4c18-af21-a5e4b92b7611" xlink:href="nx-20221031.xsd#nx_DefinedBenefitPlanExpectedFutureBenefitPayments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths_117f2683-f867-4da1-95cf-8d8c9c991dad" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_DefinedBenefitPlanExpectedFutureBenefitPayments_84fe42d2-b9b4-4c18-af21-a5e4b92b7611" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths_117f2683-f867-4da1-95cf-8d8c9c991dad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo_becaeead-75e1-4b2a-839f-9a1e52005bbc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_DefinedBenefitPlanExpectedFutureBenefitPayments_84fe42d2-b9b4-4c18-af21-a5e4b92b7611" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo_becaeead-75e1-4b2a-839f-9a1e52005bbc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree_74f3d56e-1fa3-42ca-9f27-2b15c6dd8103" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_DefinedBenefitPlanExpectedFutureBenefitPayments_84fe42d2-b9b4-4c18-af21-a5e4b92b7611" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree_74f3d56e-1fa3-42ca-9f27-2b15c6dd8103" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour_a4dcfed6-b3d5-48d4-86c1-5f012ed3e9d7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_DefinedBenefitPlanExpectedFutureBenefitPayments_84fe42d2-b9b4-4c18-af21-a5e4b92b7611" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour_a4dcfed6-b3d5-48d4-86c1-5f012ed3e9d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive_dfd920ca-6df2-41e2-b799-8f5f3a868f52" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_DefinedBenefitPlanExpectedFutureBenefitPayments_84fe42d2-b9b4-4c18-af21-a5e4b92b7611" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive_dfd920ca-6df2-41e2-b799-8f5f3a868f52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter_e5a6a1a0-92a2-4d38-94c9-f3f8a2909993" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_DefinedBenefitPlanExpectedFutureBenefitPayments_84fe42d2-b9b4-4c18-af21-a5e4b92b7611" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter_e5a6a1a0-92a2-4d38-94c9-f3f8a2909993" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_66ebcde4-2a1a-4c56-927d-23fd3bd253d1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_f7e23f23-0d05-4184-8fe4-b769da7f05db" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_66ebcde4-2a1a-4c56-927d-23fd3bd253d1" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_f7e23f23-0d05-4184-8fe4-b769da7f05db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_09763b7b-4359-4bfa-ad13-67d436545649" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_66ebcde4-2a1a-4c56-927d-23fd3bd253d1" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_09763b7b-4359-4bfa-ad13-67d436545649" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_b12bb03e-8a5c-4cbe-81c7-ed62b4b88971" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_66ebcde4-2a1a-4c56-927d-23fd3bd253d1" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_b12bb03e-8a5c-4cbe-81c7-ed62b4b88971" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_d3159649-b0d7-419b-a1c6-997a64a529fc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_66ebcde4-2a1a-4c56-927d-23fd3bd253d1" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_d3159649-b0d7-419b-a1c6-997a64a529fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_a6ec5eb3-bd66-4a47-9003-e93c4a6316b3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_66ebcde4-2a1a-4c56-927d-23fd3bd253d1" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_a6ec5eb3-bd66-4a47-9003-e93c4a6316b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_62aef346-642a-46f2-af27-cd704c0ffdd4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_DefinedBenefitPlanAmortizationofGainslossesNet_4055e502-b8ce-469a-8716-beb63cb8a914" xlink:href="nx-20221031.xsd#nx_DefinedBenefitPlanAmortizationofGainslossesNet"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_62aef346-642a-46f2-af27-cd704c0ffdd4" xlink:to="loc_nx_DefinedBenefitPlanAmortizationofGainslossesNet_4055e502-b8ce-469a-8716-beb63cb8a914" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_483deefe-e149-45aa-99e5-4ebe5967a143" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_62aef346-642a-46f2-af27-cd704c0ffdd4" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_483deefe-e149-45aa-99e5-4ebe5967a143" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToCurtailments_b34c9393-ad88-4c72-ba20-747375d6d735" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToCurtailments"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_62aef346-642a-46f2-af27-cd704c0ffdd4" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToCurtailments_b34c9393-ad88-4c72-ba20-747375d6d735" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeLossNetGainLossBeforeTax_1e1cab9f-d4ea-42e8-895f-210ba014a159" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeLossNetGainLossBeforeTax"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_62aef346-642a-46f2-af27-cd704c0ffdd4" xlink:to="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeLossNetGainLossBeforeTax_1e1cab9f-d4ea-42e8-895f-210ba014a159" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent_54fbb30a-6d23-48b9-9d43-41a1983b294d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/IncomeTaxesDetails" xlink:type="simple" xlink:href="nx-20221031.xsd#IncomeTaxesDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/IncomeTaxesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_6f63acae-1b76-47e5-a750-462f35b22ede" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_8d26fc7d-104f-480c-9bf8-bc9dd9a41729" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_6f63acae-1b76-47e5-a750-462f35b22ede" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_8d26fc7d-104f-480c-9bf8-bc9dd9a41729" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_0bfb4ed8-289c-458d-b30d-b2ec1a04b601" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_6f63acae-1b76-47e5-a750-462f35b22ede" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_0bfb4ed8-289c-458d-b30d-b2ec1a04b601" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_4d52a381-7d53-447d-aa3d-6f9bc5da0647" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_8529b41e-e3fb-41f0-aaa8-1555ed2a8a08" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_4d52a381-7d53-447d-aa3d-6f9bc5da0647" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_8529b41e-e3fb-41f0-aaa8-1555ed2a8a08" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_d5a865a5-41e6-45a6-8297-f75af48dd95f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_4d52a381-7d53-447d-aa3d-6f9bc5da0647" xlink:to="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_d5a865a5-41e6-45a6-8297-f75af48dd95f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_90c99034-0390-4416-846c-9bf1cd2fade9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredForeignIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_4d52a381-7d53-447d-aa3d-6f9bc5da0647" xlink:to="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_90c99034-0390-4416-846c-9bf1cd2fade9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_00f4a01b-1818-483e-8aae-cf8398080de9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_a7e2c852-e628-49f5-afe8-f31f19686fdc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_00f4a01b-1818-483e-8aae-cf8398080de9" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_a7e2c852-e628-49f5-afe8-f31f19686fdc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssets_6d56c921-378d-42cb-85bc-ee2d6e37ea1e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_00f4a01b-1818-483e-8aae-cf8398080de9" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssets_6d56c921-378d-42cb-85bc-ee2d6e37ea1e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_c3f51442-670e-4b88-ba2b-0771d349ae23" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_78cd57c0-bc19-4e90-869b-729a2c2cb844" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_c3f51442-670e-4b88-ba2b-0771d349ae23" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_78cd57c0-bc19-4e90-869b-729a2c2cb844" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_15f75931-ffc9-45b7-8469-ec8cc07d28db" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_c3f51442-670e-4b88-ba2b-0771d349ae23" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_15f75931-ffc9-45b7-8469-ec8cc07d28db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_b6a27595-209a-4874-b730-f25b1d1814d1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_6fc079d8-580f-4aa9-9226-98e522ad678a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CurrentFederalTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_b6a27595-209a-4874-b730-f25b1d1814d1" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_6fc079d8-580f-4aa9-9226-98e522ad678a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_342f78ee-14fc-4dee-9a10-e09846a2a3e9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CurrentStateAndLocalTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_b6a27595-209a-4874-b730-f25b1d1814d1" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_342f78ee-14fc-4dee-9a10-e09846a2a3e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentForeignTaxExpenseBenefit_87b492c8-95ba-4db8-a802-eb5629b82584" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CurrentForeignTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_b6a27595-209a-4874-b730-f25b1d1814d1" xlink:to="loc_us-gaap_CurrentForeignTaxExpenseBenefit_87b492c8-95ba-4db8-a802-eb5629b82584" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_a5adc180-f8b2-4a25-8bdf-b891cacdf0ae" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation_8e2fb483-0679-454a-bba5-b7fb12cb559c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a5adc180-f8b2-4a25-8bdf-b891cacdf0ae" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation_8e2fb483-0679-454a-bba5-b7fb12cb559c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_8f8fa5f3-3ebf-454e-b4eb-71d4c156984a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a5adc180-f8b2-4a25-8bdf-b891cacdf0ae" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_8f8fa5f3-3ebf-454e-b4eb-71d4c156984a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions_249c3998-32b2-4f36-977c-9122af59b164" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a5adc180-f8b2-4a25-8bdf-b891cacdf0ae" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions_249c3998-32b2-4f36-977c-9122af59b164" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsInventory_fab188f5-aeac-477d-8f44-e5536b12479d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsInventory"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a5adc180-f8b2-4a25-8bdf-b891cacdf0ae" xlink:to="loc_us-gaap_DeferredTaxAssetsInventory_fab188f5-aeac-477d-8f44-e5536b12479d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_802cfda4-c5cb-4a8c-95d1-12506d3c571e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a5adc180-f8b2-4a25-8bdf-b891cacdf0ae" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_802cfda4-c5cb-4a8c-95d1-12506d3c571e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseOther_c586daae-5ddb-49e3-a782-bc084babd815" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseOther"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_a5adc180-f8b2-4a25-8bdf-b891cacdf0ae" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseOther_c586daae-5ddb-49e3-a782-bc084babd815" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilities_bd3b961e-3b61-41e7-b259-76ecce23cb81" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_1d4005cb-a275-4e2c-92f2-e626fe02d2a9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsNet"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_bd3b961e-3b61-41e7-b259-76ecce23cb81" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_1d4005cb-a275-4e2c-92f2-e626fe02d2a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_d61f22b9-0386-45b2-916b-e2bea46de3c0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_bd3b961e-3b61-41e7-b259-76ecce23cb81" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_d61f22b9-0386-45b2-916b-e2bea46de3c0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationDetail" xlink:type="simple" xlink:href="nx-20221031.xsd#StockBasedCompensationDetail"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_7eca6908-ffa3-46e5-ba55-b19c4192973e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_cff34c83-6eb2-493b-a54f-e9f4af6da89f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_7eca6908-ffa3-46e5-ba55-b19c4192973e" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_cff34c83-6eb2-493b-a54f-e9f4af6da89f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_Incometaxeffect_58f0cdba-4d27-444a-b006-5316cd3203df" xlink:href="nx-20221031.xsd#nx_Incometaxeffect"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_7eca6908-ffa3-46e5-ba55-b19c4192973e" xlink:to="loc_nx_Incometaxeffect_58f0cdba-4d27-444a-b006-5316cd3203df" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/OtherIncomeExpenseDetail" xlink:type="simple" xlink:href="nx-20221031.xsd#OtherIncomeExpenseDetail"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/OtherIncomeExpenseDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingGainsLosses_5d595b96-3198-4a91-a272-deac83e672d9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherNonoperatingGainsLosses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_527a6b81-ceb8-4751-abd2-17027607ef34" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ForeignCurrencyTransactionGainLossBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingGainsLosses_5d595b96-3198-4a91-a272-deac83e672d9" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_527a6b81-ceb8-4751-abd2-17027607ef34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_cabd051b-97c8-4da5-a124-4ab557079100" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingGainsLosses_5d595b96-3198-4a91-a272-deac83e672d9" xlink:to="loc_us-gaap_InvestmentIncomeInterest_cabd051b-97c8-4da5-a124-4ab557079100" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_8519948b-8fb9-4627-97d3-dd76ac645bb5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingGainsLosses_5d595b96-3198-4a91-a272-deac83e672d9" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_8519948b-8fb9-4627-97d3-dd76ac645bb5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstruments_981f343a-9bfe-4d1f-a434-cb4cea501d0b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GainLossOnForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstruments"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingGainsLosses_5d595b96-3198-4a91-a272-deac83e672d9" xlink:to="loc_us-gaap_GainLossOnForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstruments_981f343a-9bfe-4d1f-a434-cb4cea501d0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_PensionServiceBenefit_b8c2a18c-8abf-41b5-b2a1-e05556e9fab2" xlink:href="nx-20221031.xsd#nx_PensionServiceBenefit"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingGainsLosses_5d595b96-3198-4a91-a272-deac83e672d9" xlink:to="loc_nx_PensionServiceBenefit_b8c2a18c-8abf-41b5-b2a1-e05556e9fab2" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
