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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:bb29a2b2-bc37-4995-9ec2-d42a8bdf7b83,g:5f7a75a4-8828-42e7-9e14-b96ccfb3346c-->
<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-20211031.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_e56902fd-3d06-43e9-ae2d-40a5f1c594e5" 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_df92bc16-4aa5-4249-ab18-b6f15bf26152" 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_e56902fd-3d06-43e9-ae2d-40a5f1c594e5" xlink:to="loc_us-gaap_PreferredStockValue_df92bc16-4aa5-4249-ab18-b6f15bf26152" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_65f575e2-e3f2-49c0-8a75-20d837d0f31f" 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_e56902fd-3d06-43e9-ae2d-40a5f1c594e5" xlink:to="loc_us-gaap_CommonStockValue_65f575e2-e3f2-49c0-8a75-20d837d0f31f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_d0206084-809e-4df2-9192-090d84aef372" 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_e56902fd-3d06-43e9-ae2d-40a5f1c594e5" xlink:to="loc_us-gaap_AdditionalPaidInCapital_d0206084-809e-4df2-9192-090d84aef372" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_54146a05-9044-4470-9ad2-058fe41ebc4d" 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_e56902fd-3d06-43e9-ae2d-40a5f1c594e5" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_54146a05-9044-4470-9ad2-058fe41ebc4d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_2321186e-be83-4caa-aff7-99c3d23436a5" 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_e56902fd-3d06-43e9-ae2d-40a5f1c594e5" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_2321186e-be83-4caa-aff7-99c3d23436a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_20e5ed53-424e-4ad1-8676-a53118fd3d76" 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_e56902fd-3d06-43e9-ae2d-40a5f1c594e5" xlink:to="loc_us-gaap_TreasuryStockValue_20e5ed53-424e-4ad1-8676-a53118fd3d76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_0634c5a6-acce-499d-9cd7-846052b36766" 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_80642490-4ba6-472e-8345-d68ec2b72e46" 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_0634c5a6-acce-499d-9cd7-846052b36766" xlink:to="loc_us-gaap_AccountsPayableCurrent_80642490-4ba6-472e-8345-d68ec2b72e46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_5f57b217-26ce-4443-b011-886622aeb721" 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_0634c5a6-acce-499d-9cd7-846052b36766" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_5f57b217-26ce-4443-b011-886622aeb721" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_0a2441eb-aee1-4916-a426-38d61929ebc3" 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_0634c5a6-acce-499d-9cd7-846052b36766" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_0a2441eb-aee1-4916-a426-38d61929ebc3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_ff81a0ae-0796-4e15-94b8-789cb0e357a0" 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_0634c5a6-acce-499d-9cd7-846052b36766" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_ff81a0ae-0796-4e15-94b8-789cb0e357a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_9b05c177-1c9c-4d50-aa0f-2047d61eaa41" 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_0634c5a6-acce-499d-9cd7-846052b36766" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_9b05c177-1c9c-4d50-aa0f-2047d61eaa41" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_2b1df6b3-4f54-4bca-afaf-c3b1de64f979" 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_78891765-d114-4efe-a497-1500d10e6c9d" 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_2b1df6b3-4f54-4bca-afaf-c3b1de64f979" xlink:to="loc_us-gaap_LiabilitiesCurrent_78891765-d114-4efe-a497-1500d10e6c9d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_5b678906-99e6-40c9-b418-c45ed722a031" 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_2b1df6b3-4f54-4bca-afaf-c3b1de64f979" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_5b678906-99e6-40c9-b418-c45ed722a031" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_c8748a0a-74bb-4e58-b167-438385e5afd6" 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_2b1df6b3-4f54-4bca-afaf-c3b1de64f979" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_c8748a0a-74bb-4e58-b167-438385e5afd6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_f588aee5-f4f8-496a-9ca6-549bfde91fea" 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_2b1df6b3-4f54-4bca-afaf-c3b1de64f979" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_f588aee5-f4f8-496a-9ca6-549bfde91fea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_562803ef-2b9e-4ef8-ad3b-e36f821f77ed" 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_2b1df6b3-4f54-4bca-afaf-c3b1de64f979" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_562803ef-2b9e-4ef8-ad3b-e36f821f77ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_d717ff81-bb89-44d5-b50a-4abee177e5e2" 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_2b1df6b3-4f54-4bca-afaf-c3b1de64f979" xlink:to="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_d717ff81-bb89-44d5-b50a-4abee177e5e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_8c3a4584-911d-4abf-9875-d2b40ae10570" 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_2b1df6b3-4f54-4bca-afaf-c3b1de64f979" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_8c3a4584-911d-4abf-9875-d2b40ae10570" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_f7b5abdc-11b9-456b-8974-44d43d93907d" 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_836b757b-8572-4512-a454-6f0f0cc2f9e1" 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_f7b5abdc-11b9-456b-8974-44d43d93907d" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_836b757b-8572-4512-a454-6f0f0cc2f9e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_d50a40ba-146f-424d-9980-77a3fef42b04" 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_f7b5abdc-11b9-456b-8974-44d43d93907d" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_d50a40ba-146f-424d-9980-77a3fef42b04" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_031fb9be-a02e-4bd5-91d1-bb1fabb0a7c2" 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_f7b5abdc-11b9-456b-8974-44d43d93907d" xlink:to="loc_us-gaap_InventoryNet_031fb9be-a02e-4bd5-91d1-bb1fabb0a7c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_736156c3-ece4-4d05-bda3-2c2198bed27b" 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_f7b5abdc-11b9-456b-8974-44d43d93907d" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_736156c3-ece4-4d05-bda3-2c2198bed27b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_6e7f2d4d-bfe6-4e6e-9627-1ed2792adb6d" 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_24506679-4abd-4e2a-a225-d7c12a081c0a" 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_6e7f2d4d-bfe6-4e6e-9627-1ed2792adb6d" xlink:to="loc_us-gaap_AssetsCurrent_24506679-4abd-4e2a-a225-d7c12a081c0a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_fb5bd8b0-2cc4-4794-a24d-9bcf7fe1e31d" 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_6e7f2d4d-bfe6-4e6e-9627-1ed2792adb6d" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_fb5bd8b0-2cc4-4794-a24d-9bcf7fe1e31d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_80635ada-af51-4980-8444-d05967746ae0" 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_6e7f2d4d-bfe6-4e6e-9627-1ed2792adb6d" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_80635ada-af51-4980-8444-d05967746ae0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_75fcc709-ebc4-452b-99bc-46fbb0655773" 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_6e7f2d4d-bfe6-4e6e-9627-1ed2792adb6d" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_75fcc709-ebc4-452b-99bc-46fbb0655773" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_9e37d188-c901-4bf6-8b9b-948fba60c675" 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_6e7f2d4d-bfe6-4e6e-9627-1ed2792adb6d" xlink:to="loc_us-gaap_Goodwill_9e37d188-c901-4bf6-8b9b-948fba60c675" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_4fb4d990-7b94-4325-8431-d96ac87fce55" 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_6e7f2d4d-bfe6-4e6e-9627-1ed2792adb6d" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_4fb4d990-7b94-4325-8431-d96ac87fce55" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_e3dbf1a4-6f75-480e-a769-4f9709e17d0f" 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_8a3a14c0-7d29-457a-bc04-7192da33dd4c" 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_e3dbf1a4-6f75-480e-a769-4f9709e17d0f" xlink:to="loc_us-gaap_Liabilities_8a3a14c0-7d29-457a-bc04-7192da33dd4c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_a1296645-3ad6-41de-a2fd-6fcecb19ceae" 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_e3dbf1a4-6f75-480e-a769-4f9709e17d0f" xlink:to="loc_us-gaap_StockholdersEquity_a1296645-3ad6-41de-a2fd-6fcecb19ceae" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsofIncomeLoss" xlink:type="simple" xlink:href="nx-20211031.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_b779de23-41ea-4c2d-a65e-4aa5621e97c1" 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_43f8d71f-3622-4605-88ee-516d623d2759" 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_b779de23-41ea-4c2d-a65e-4aa5621e97c1" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_43f8d71f-3622-4605-88ee-516d623d2759" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_fd2fcb3f-0adf-4b26-8bc4-9619d6168c94" 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_b779de23-41ea-4c2d-a65e-4aa5621e97c1" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_fd2fcb3f-0adf-4b26-8bc4-9619d6168c94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_e2f0ae45-9de4-4283-9174-1f95d25e4987" 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_ccdf233d-e020-4850-8ae2-c1f4f9fb2acc" 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_e2f0ae45-9de4-4283-9174-1f95d25e4987" xlink:to="loc_us-gaap_OperatingIncomeLoss_ccdf233d-e020-4850-8ae2-c1f4f9fb2acc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_90bb073a-9387-416e-8837-899baf934885" 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_e2f0ae45-9de4-4283-9174-1f95d25e4987" xlink:to="loc_us-gaap_InterestExpense_90bb073a-9387-416e-8837-899baf934885" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_6b9a368a-928f-4014-bb6b-e952d8f52714" 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_e2f0ae45-9de4-4283-9174-1f95d25e4987" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_6b9a368a-928f-4014-bb6b-e952d8f52714" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_ea10c20e-bc93-4e0f-9d7e-434340e04966" 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_cf49b6be-1d44-4a87-ad6d-77ea9e5abd43" 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_ea10c20e-bc93-4e0f-9d7e-434340e04966" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_cf49b6be-1d44-4a87-ad6d-77ea9e5abd43" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_0f258427-44f1-45fd-8ccd-f3551283dbd3" 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_ea10c20e-bc93-4e0f-9d7e-434340e04966" xlink:to="loc_us-gaap_RestructuringCharges_0f258427-44f1-45fd-8ccd-f3551283dbd3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_68c5ef28-1607-4a2d-8468-9482aed82e54" 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_ea10c20e-bc93-4e0f-9d7e-434340e04966" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_68c5ef28-1607-4a2d-8468-9482aed82e54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_b78a853a-129f-462c-b235-da241a43607a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_ea10c20e-bc93-4e0f-9d7e-434340e04966" xlink:to="loc_us-gaap_AssetImpairmentCharges_b78a853a-129f-462c-b235-da241a43607a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_f58c3b5c-641f-4546-a555-2763e9632b26" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Revenues"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_ea10c20e-bc93-4e0f-9d7e-434340e04966" xlink:to="loc_us-gaap_Revenues_f58c3b5c-641f-4546-a555-2763e9632b26" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_7dd2af68-2986-43d7-9eaa-40c07cf63cd8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_ea10c20e-bc93-4e0f-9d7e-434340e04966" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_7dd2af68-2986-43d7-9eaa-40c07cf63cd8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss" xlink:type="simple" xlink:href="nx-20211031.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_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_69a78c18-f05b-4f9e-a1fc-873e60551d09" 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_4f5583c5-a11f-4f1c-90e7-ef7a7b3005a9" 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_69a78c18-f05b-4f9e-a1fc-873e60551d09" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_4f5583c5-a11f-4f1c-90e7-ef7a7b3005a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_6cfdb3b3-b6d4-43ec-8d76-a9393d4d4832" 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_69a78c18-f05b-4f9e-a1fc-873e60551d09" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_6cfdb3b3-b6d4-43ec-8d76-a9393d4d4832" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansTax_da13c14f-1c6b-45ae-b232-cb44b12df9bc" 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_69a78c18-f05b-4f9e-a1fc-873e60551d09" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansTax_da13c14f-1c6b-45ae-b232-cb44b12df9bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_b89fb82b-e430-4cb9-a0a2-f6b3cd15d9e4" 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_38e64248-f36e-4784-86b0-2069d183ab5a" 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_b89fb82b-e430-4cb9-a0a2-f6b3cd15d9e4" xlink:to="loc_us-gaap_NetIncomeLoss_38e64248-f36e-4784-86b0-2069d183ab5a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_c6a727b5-f877-4105-9726-9c4a8a90ecfa" 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_b89fb82b-e430-4cb9-a0a2-f6b3cd15d9e4" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_c6a727b5-f877-4105-9726-9c4a8a90ecfa" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsofCashFlow" xlink:type="simple" xlink:href="nx-20211031.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_NetCashProvidedByUsedInFinancingActivities_bee57d28-d654-4752-bd2e-080b9d1e9184" 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_909f1eae-87c5-434c-b26e-2bcc7f833b10" 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_bee57d28-d654-4752-bd2e-080b9d1e9184" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_909f1eae-87c5-434c-b26e-2bcc7f833b10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_7a71ea2b-241f-410f-b4b3-7545ed23ee43" 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_bee57d28-d654-4752-bd2e-080b9d1e9184" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_7a71ea2b-241f-410f-b4b3-7545ed23ee43" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_3bb8f88f-4a03-45f6-b04f-d456516a33b5" 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_bee57d28-d654-4752-bd2e-080b9d1e9184" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_3bb8f88f-4a03-45f6-b04f-d456516a33b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_089e5793-30e6-48e5-8a27-a0fce848addc" 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_bee57d28-d654-4752-bd2e-080b9d1e9184" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_089e5793-30e6-48e5-8a27-a0fce848addc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_8ffb20fb-7b00-472b-9543-bf70af92576a" 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_bee57d28-d654-4752-bd2e-080b9d1e9184" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_8ffb20fb-7b00-472b-9543-bf70af92576a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_904278e8-7436-469d-8bf9-b310fc639086" 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_bee57d28-d654-4752-bd2e-080b9d1e9184" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_904278e8-7436-469d-8bf9-b310fc639086" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_30999e9e-069b-47c4-8a90-b954262b70c9" 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_bee57d28-d654-4752-bd2e-080b9d1e9184" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_30999e9e-069b-47c4-8a90-b954262b70c9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_52737030-0c3d-4fd3-83f2-dd408a92b9d8" 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_bee57d28-d654-4752-bd2e-080b9d1e9184" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_52737030-0c3d-4fd3-83f2-dd408a92b9d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_b6589d08-dd36-4ccc-9b67-72506e513dd5" 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_353a7b16-59b4-45cf-9add-a9b94cdf0c8c" 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_b6589d08-dd36-4ccc-9b67-72506e513dd5" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_353a7b16-59b4-45cf-9add-a9b94cdf0c8c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_932966c0-7ca5-414a-bfcd-f268e9fccfa4" 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_b6589d08-dd36-4ccc-9b67-72506e513dd5" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_932966c0-7ca5-414a-bfcd-f268e9fccfa4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7a248cd0-5b78-4e67-a7bd-161cf64d1e80" 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_b6589d08-dd36-4ccc-9b67-72506e513dd5" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7a248cd0-5b78-4e67-a7bd-161cf64d1e80" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents_d1c4130b-362d-4349-a519-50b129cbab1b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_b6589d08-dd36-4ccc-9b67-72506e513dd5" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents_d1c4130b-362d-4349-a519-50b129cbab1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_28c39077-0f16-49a9-a56a-893501003af0" 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_7b28182e-8e28-4121-b67d-42a343f3dd4c" 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_28c39077-0f16-49a9-a56a-893501003af0" xlink:to="loc_us-gaap_ProfitLoss_7b28182e-8e28-4121-b67d-42a343f3dd4c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAmortizationAndAccretionNet_4da38657-594a-4700-92f8-28881e45efde" 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_28c39077-0f16-49a9-a56a-893501003af0" xlink:to="loc_us-gaap_DepreciationAmortizationAndAccretionNet_4da38657-594a-4700-92f8-28881e45efde" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_cff03f4d-7a10-49ec-bbbd-b8d72c5d4e4f" 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_28c39077-0f16-49a9-a56a-893501003af0" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_cff03f4d-7a10-49ec-bbbd-b8d72c5d4e4f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_7fa738c8-a36b-4c57-9d10-d652b6971d76" 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_28c39077-0f16-49a9-a56a-893501003af0" xlink:to="loc_us-gaap_ShareBasedCompensation_7fa738c8-a36b-4c57-9d10-d652b6971d76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_0c1a7abe-b32c-4d4c-834d-4566fb282c11" 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_28c39077-0f16-49a9-a56a-893501003af0" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_0c1a7abe-b32c-4d4c-834d-4566fb282c11" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_02804e7d-4068-4c96-aee8-ba7759698d84" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_28c39077-0f16-49a9-a56a-893501003af0" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_02804e7d-4068-4c96-aee8-ba7759698d84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_eb52d420-3f37-43ec-a952-d5847f70c8d7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_28c39077-0f16-49a9-a56a-893501003af0" xlink:to="loc_us-gaap_AssetImpairmentCharges_eb52d420-3f37-43ec-a952-d5847f70c8d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingIncomeExpenseNet_f0c9a619-24a9-4124-bd8f-f80008d7c4f3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherOperatingIncomeExpenseNet"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_28c39077-0f16-49a9-a56a-893501003af0" xlink:to="loc_us-gaap_OtherOperatingIncomeExpenseNet_f0c9a619-24a9-4124-bd8f-f80008d7c4f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable_f8eef030-ec02-489a-955c-36ae9d379b7a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_28c39077-0f16-49a9-a56a-893501003af0" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable_f8eef030-ec02-489a-955c-36ae9d379b7a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_9c92e22a-35da-484f-b75e-b61a896b101e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_28c39077-0f16-49a9-a56a-893501003af0" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_9c92e22a-35da-484f-b75e-b61a896b101e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_f6645176-c15e-483b-b50a-a99bdc142c44" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_28c39077-0f16-49a9-a56a-893501003af0" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_f6645176-c15e-483b-b50a-a99bdc142c44" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_de79cc73-d65c-44da-9f00-66235ab8f26f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_28c39077-0f16-49a9-a56a-893501003af0" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_de79cc73-d65c-44da-9f00-66235ab8f26f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_69934f79-294d-4f0d-a3e5-ab1d72a356a5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_28c39077-0f16-49a9-a56a-893501003af0" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_69934f79-294d-4f0d-a3e5-ab1d72a356a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_47fce008-8021-4e5f-9cc3-1bfb9b0835c2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_28c39077-0f16-49a9-a56a-893501003af0" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_47fce008-8021-4e5f-9cc3-1bfb9b0835c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPensionAndPostretirementObligations_12f24b56-f8e6-4cf2-8f13-053e33566741" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInPensionAndPostretirementObligations"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_28c39077-0f16-49a9-a56a-893501003af0" xlink:to="loc_us-gaap_IncreaseDecreaseInPensionAndPostretirementObligations_12f24b56-f8e6-4cf2-8f13-053e33566741" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_04e67eca-21fe-4619-a9ba-57567acade0c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_28c39077-0f16-49a9-a56a-893501003af0" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_04e67eca-21fe-4619-a9ba-57567acade0c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_7da845f7-deb7-43a7-a091-5e6ae78f3ed0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet"/>
    <link:calculationArc order="17" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_28c39077-0f16-49a9-a56a-893501003af0" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_7da845f7-deb7-43a7-a091-5e6ae78f3ed0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_ced4650c-1524-41a2-ac72-03be76ad6ad2" 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_5d52ed81-1893-4533-810e-c356612a7f5d" 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_ced4650c-1524-41a2-ac72-03be76ad6ad2" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_5d52ed81-1893-4533-810e-c356612a7f5d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_e3cc66ab-2a9d-4468-8141-a1fcd41cc1dd" 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_ced4650c-1524-41a2-ac72-03be76ad6ad2" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_e3cc66ab-2a9d-4468-8141-a1fcd41cc1dd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ReceivablesAllowanceDetails" xlink:type="simple" xlink:href="nx-20211031.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_9e44caf7-5df8-442c-99c6-03450f69337c" 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_200ef7c4-50ed-45f3-b8ad-baee14092215" 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_9e44caf7-5df8-442c-99c6-03450f69337c" xlink:to="loc_us-gaap_AccountsReceivableGrossCurrent_200ef7c4-50ed-45f3-b8ad-baee14092215" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_4426592f-7edd-4b45-98e9-f4f485f88da5" 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_9e44caf7-5df8-442c-99c6-03450f69337c" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_4426592f-7edd-4b45-98e9-f4f485f88da5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableGrossCurrent_1e53daca-c4ca-4317-bd77-9b43c791625f" 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_7d381ffc-f07f-4bcd-96dc-ea2da720e12d" 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_1e53daca-c4ca-4317-bd77-9b43c791625f" xlink:to="loc_us-gaap_OtherReceivablesGrossCurrent_7d381ffc-f07f-4bcd-96dc-ea2da720e12d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherReceivables_4b7630c5-80ad-4b08-b473-035bc5de1b13" 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_1e53daca-c4ca-4317-bd77-9b43c791625f" xlink:to="loc_us-gaap_OtherReceivables_4b7630c5-80ad-4b08-b473-035bc5de1b13" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/InventoriesDetail" xlink:type="simple" xlink:href="nx-20211031.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_077850ae-6713-4ac4-a3ef-31e8ad48e02e" 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_749e1c6a-2ab6-4937-bd48-d20e313fc8c5" 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_077850ae-6713-4ac4-a3ef-31e8ad48e02e" xlink:to="loc_us-gaap_InventoryGross_749e1c6a-2ab6-4937-bd48-d20e313fc8c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryValuationReserves_18ff783c-ae7a-4df8-803b-97d15d5d9616" 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_077850ae-6713-4ac4-a3ef-31e8ad48e02e" xlink:to="loc_us-gaap_InventoryValuationReserves_18ff783c-ae7a-4df8-803b-97d15d5d9616" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryGross_8e91c75a-1dee-464e-9608-3286341c1457" 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_0910e3a7-8ece-4793-8ccd-49a9f86bc2f6" 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_8e91c75a-1dee-464e-9608-3286341c1457" xlink:to="loc_us-gaap_InventoryRawMaterials_0910e3a7-8ece-4793-8ccd-49a9f86bc2f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsAndWorkInProcess_ced91c20-1300-4fe6-9b9b-00b374dc8bcd" 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_8e91c75a-1dee-464e-9608-3286341c1457" xlink:to="loc_us-gaap_InventoryFinishedGoodsAndWorkInProcess_ced91c20-1300-4fe6-9b9b-00b374dc8bcd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInventorySupplies_7a4d9f5b-aece-4098-a599-3d300da9e924" 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_8e91c75a-1dee-464e-9608-3286341c1457" xlink:to="loc_us-gaap_OtherInventorySupplies_7a4d9f5b-aece-4098-a599-3d300da9e924" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/PropertyPlantandEquipmentDetails" xlink:type="simple" xlink:href="nx-20211031.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_e8a1c4d0-b316-46cc-a44f-6911dcd3076b" 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_7ce12e6e-0b62-4465-b843-8ac8fef2c399" 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_e8a1c4d0-b316-46cc-a44f-6911dcd3076b" xlink:to="loc_us-gaap_LandAndLandImprovements_7ce12e6e-0b62-4465-b843-8ac8fef2c399" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BuildingsAndImprovementsGross_f3dfe07d-4cf7-4ffa-b596-543eae54c5c2" 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_e8a1c4d0-b316-46cc-a44f-6911dcd3076b" xlink:to="loc_us-gaap_BuildingsAndImprovementsGross_f3dfe07d-4cf7-4ffa-b596-543eae54c5c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MachineryAndEquipmentGross_29e5c051-e78c-442b-bf21-c1061f7461e9" 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_e8a1c4d0-b316-46cc-a44f-6911dcd3076b" xlink:to="loc_us-gaap_MachineryAndEquipmentGross_29e5c051-e78c-442b-bf21-c1061f7461e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConstructionInProgressGross_7a270548-fa0a-44c5-b66b-4e3dfc9a96f5" 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_e8a1c4d0-b316-46cc-a44f-6911dcd3076b" xlink:to="loc_us-gaap_ConstructionInProgressGross_7a270548-fa0a-44c5-b66b-4e3dfc9a96f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_728ebfe9-daed-42ec-85f3-eb3df71ddf4a" 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_bdeec9bd-9471-4e7c-82a0-c0354fa09645" 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_728ebfe9-daed-42ec-85f3-eb3df71ddf4a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_bdeec9bd-9471-4e7c-82a0-c0354fa09645" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_f14d70f8-05bf-488f-b553-031f09fd2f27" 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_728ebfe9-daed-42ec-85f3-eb3df71ddf4a" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_f14d70f8-05bf-488f-b553-031f09fd2f27" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/LeasesDetails" xlink:type="simple" xlink:href="nx-20211031.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_FinanceLeaseLiabilityPaymentsDue_7d7baad4-28d0-419b-81a4-b63302fd57a5" 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_76c4b85e-408d-43d1-8519-49849988b82c" 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_7d7baad4-28d0-419b-81a4-b63302fd57a5" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_76c4b85e-408d-43d1-8519-49849988b82c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_80175075-03d9-4496-b018-c9d8aa4c4b59" 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_7d7baad4-28d0-419b-81a4-b63302fd57a5" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_80175075-03d9-4496-b018-c9d8aa4c4b59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_92aa9843-246b-48a8-a29e-496536c4897e" 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_7d7baad4-28d0-419b-81a4-b63302fd57a5" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_92aa9843-246b-48a8-a29e-496536c4897e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_455e5985-f584-4c8b-8570-a058d7e9718a" 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_7d7baad4-28d0-419b-81a4-b63302fd57a5" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_455e5985-f584-4c8b-8570-a058d7e9718a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_99640f0f-643f-4a16-9644-740761a99bc3" 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_7d7baad4-28d0-419b-81a4-b63302fd57a5" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_99640f0f-643f-4a16-9644-740761a99bc3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_96efd076-fa59-4a59-83b1-93fbd9592ef6" 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_7d7baad4-28d0-419b-81a4-b63302fd57a5" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_96efd076-fa59-4a59-83b1-93fbd9592ef6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_3307c5fb-e2c9-4217-8460-de2df80994cc" 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_69e12209-3490-45cc-8d41-74c9f08378fd" 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_3307c5fb-e2c9-4217-8460-de2df80994cc" xlink:to="loc_us-gaap_OperatingLeaseLiability_69e12209-3490-45cc-8d41-74c9f08378fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_94316f2e-5ed5-44ff-bcd4-055a12c80f39" 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_3307c5fb-e2c9-4217-8460-de2df80994cc" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_94316f2e-5ed5-44ff-bcd4-055a12c80f39" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/LeasesDetails_1" xlink:type="simple" xlink:href="nx-20211031.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_97d85716-4db7-41a3-8827-d5e0f016adb3" 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_f4abdccb-8309-4a23-ae4b-787ce38043fb" 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_97d85716-4db7-41a3-8827-d5e0f016adb3" xlink:to="loc_us-gaap_FinanceLeaseLiability_f4abdccb-8309-4a23-ae4b-787ce38043fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_f14846b0-085f-4b77-b3ef-c062154db0da" 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_97d85716-4db7-41a3-8827-d5e0f016adb3" xlink:to="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_f14846b0-085f-4b77-b3ef-c062154db0da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_d9cbe3be-87d5-4a84-85cb-a82acbb412c9" 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_0c5a590d-089d-41de-adf4-4fed0fffe34e" 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_d9cbe3be-87d5-4a84-85cb-a82acbb412c9" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_0c5a590d-089d-41de-adf4-4fed0fffe34e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_0e76547a-be53-4ae2-ade3-0e457fe7deaa" 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_d9cbe3be-87d5-4a84-85cb-a82acbb412c9" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_0e76547a-be53-4ae2-ade3-0e457fe7deaa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_ae09430a-bcbc-4986-902c-a63a8cf6f45a" 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_d9cbe3be-87d5-4a84-85cb-a82acbb412c9" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_ae09430a-bcbc-4986-902c-a63a8cf6f45a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_d86bd8ba-9fef-442f-a126-23406660cfa8" 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_d9cbe3be-87d5-4a84-85cb-a82acbb412c9" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_d86bd8ba-9fef-442f-a126-23406660cfa8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_7a30a71d-e6a3-4437-b173-a6ff6f923f50" 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_d9cbe3be-87d5-4a84-85cb-a82acbb412c9" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_7a30a71d-e6a3-4437-b173-a6ff6f923f50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_7061f3a4-901c-487d-88ca-73ecd77a8ddf" 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_d9cbe3be-87d5-4a84-85cb-a82acbb412c9" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_7061f3a4-901c-487d-88ca-73ecd77a8ddf" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/GoodwillandIntangibleAssetsDetail" xlink:type="simple" xlink:href="nx-20211031.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_4c5dacd7-90bb-4c79-81e1-e604a56717d8" 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_9cf6882e-2509-49dd-b302-7abca997203f" 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_4c5dacd7-90bb-4c79-81e1-e604a56717d8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_9cf6882e-2509-49dd-b302-7abca997203f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_924baef8-a000-4b03-b16e-e4a015f760c3" 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_4c5dacd7-90bb-4c79-81e1-e604a56717d8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_924baef8-a000-4b03-b16e-e4a015f760c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_3a1b5d44-d75b-4a47-971f-27f1baf58814" 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_4c5dacd7-90bb-4c79-81e1-e604a56717d8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_3a1b5d44-d75b-4a47-971f-27f1baf58814" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_8f8c09f6-3564-4b64-8d86-660a7d45c51c" 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_4c5dacd7-90bb-4c79-81e1-e604a56717d8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_8f8c09f6-3564-4b64-8d86-660a7d45c51c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_da1136fe-670a-49d3-9581-caf6ce074f16" 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_4c5dacd7-90bb-4c79-81e1-e604a56717d8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_da1136fe-670a-49d3-9581-caf6ce074f16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_96f3b9d3-bce0-48c5-b491-2ccf7ef9931e" 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_4c5dacd7-90bb-4c79-81e1-e604a56717d8" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_96f3b9d3-bce0-48c5-b491-2ccf7ef9931e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/AccruedLiabilitiesDetails" xlink:type="simple" xlink:href="nx-20211031.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_0c5ed1e8-5eda-409c-9fa4-c4e0c53286fe" 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_26ef3b48-540f-4523-b150-2b402a09a675" xlink:href="nx-20211031.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_0c5ed1e8-5eda-409c-9fa4-c4e0c53286fe" xlink:to="loc_nx_Accruedotherbusinesstaxes_26ef3b48-540f-4523-b150-2b402a09a675" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductWarrantyAccrualClassifiedCurrent_98737059-e985-47f9-963e-0056e210118a" 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_0c5ed1e8-5eda-409c-9fa4-c4e0c53286fe" xlink:to="loc_us-gaap_ProductWarrantyAccrualClassifiedCurrent_98737059-e985-47f9-963e-0056e210118a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherEmployeeRelatedLiabilitiesCurrent_66c85ff4-5ee7-4ee5-a3b4-2aa2e56c5934" 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_0c5ed1e8-5eda-409c-9fa4-c4e0c53286fe" xlink:to="loc_us-gaap_OtherEmployeeRelatedLiabilitiesCurrent_66c85ff4-5ee7-4ee5-a3b4-2aa2e56c5934" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_a99bb32c-3840-4f5f-8b4f-8df490349812" 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_0c5ed1e8-5eda-409c-9fa4-c4e0c53286fe" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_a99bb32c-3840-4f5f-8b4f-8df490349812" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredRevenueCurrent_9a98c728-3260-4d5f-912f-8e854bfd0212" 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_0c5ed1e8-5eda-409c-9fa4-c4e0c53286fe" xlink:to="loc_us-gaap_DeferredRevenueCurrent_9a98c728-3260-4d5f-912f-8e854bfd0212" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerRefundLiabilityCurrent_5b0b1f3f-64c2-46d4-b343-2a748a11ca1f" 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_0c5ed1e8-5eda-409c-9fa4-c4e0c53286fe" xlink:to="loc_us-gaap_CustomerRefundLiabilityCurrent_5b0b1f3f-64c2-46d4-b343-2a748a11ca1f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedProfessionalFeesCurrent_285ec84b-fd29-43e1-9e27-74b9ebf0fa45" 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_0c5ed1e8-5eda-409c-9fa4-c4e0c53286fe" xlink:to="loc_us-gaap_AccruedProfessionalFeesCurrent_285ec84b-fd29-43e1-9e27-74b9ebf0fa45" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationLiabilityCurrent_048b540e-23ae-471f-af56-99e8efbd1482" 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_0c5ed1e8-5eda-409c-9fa4-c4e0c53286fe" xlink:to="loc_us-gaap_DeferredCompensationLiabilityCurrent_048b540e-23ae-471f-af56-99e8efbd1482" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_aadc9801-6e03-401c-920e-8fc52ebdada5" 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_0c5ed1e8-5eda-409c-9fa4-c4e0c53286fe" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_aadc9801-6e03-401c-920e-8fc52ebdada5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtandCapitalLeaseObligationsScheduleofDebtObligationsDetails" xlink:type="simple" xlink:href="nx-20211031.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_c069b468-6cf1-40a1-ba42-8181f844dd95" 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_cadfc061-c8c7-4574-b220-dcf2efec8d2d" 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_c069b468-6cf1-40a1-ba42-8181f844dd95" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_cadfc061-c8c7-4574-b220-dcf2efec8d2d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_14d57627-de70-479f-b125-cc899415cd84" 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_c069b468-6cf1-40a1-ba42-8181f844dd95" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_14d57627-de70-479f-b125-cc899415cd84" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtandCapitalLeaseObligationsScheduleofDebtMaturitiesDetails" xlink:type="simple" xlink:href="nx-20211031.xsd#DebtandCapitalLeaseObligationsScheduleofDebtMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/DebtandCapitalLeaseObligationsScheduleofDebtMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour_d2bd542a-912d-45bd-b484-57962adddbfb" 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_88f22186-31f3-4d8e-905e-eb0fd3b790d0" 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_d2bd542a-912d-45bd-b484-57962adddbfb" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_88f22186-31f3-4d8e-905e-eb0fd3b790d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFour_d80b6e55-fb5e-4246-ac09-0313b57354e4" xlink:href="nx-20211031.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_d2bd542a-912d-45bd-b484-57962adddbfb" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFour_d80b6e55-fb5e-4246-ac09-0313b57354e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_LongTermDebtAndCapitalLeaseObligationsGross_1b453186-c85b-49d0-9b5a-f1b8e3dfc832" xlink:href="nx-20211031.xsd#nx_LongTermDebtAndCapitalLeaseObligationsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree_7f9c75dc-9e68-4ddb-9b4f-9ddeb5d62ffa" 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_1b453186-c85b-49d0-9b5a-f1b8e3dfc832" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree_7f9c75dc-9e68-4ddb-9b4f-9ddeb5d62ffa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive_d63a74ca-276d-46b8-9c21-87abc32a31f1" 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_1b453186-c85b-49d0-9b5a-f1b8e3dfc832" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive_d63a74ca-276d-46b8-9c21-87abc32a31f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo_3dfec1c4-c2a9-4a63-925d-ec8498cdfb3a" 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_1b453186-c85b-49d0-9b5a-f1b8e3dfc832" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo_3dfec1c4-c2a9-4a63-925d-ec8498cdfb3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive_71be627f-3b2d-45e9-b67b-7ac60c4ac50c" 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_1b453186-c85b-49d0-9b5a-f1b8e3dfc832" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive_71be627f-3b2d-45e9-b67b-7ac60c4ac50c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour_85e2131b-c62a-4d0d-b294-bac6e3950552" 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_1b453186-c85b-49d0-9b5a-f1b8e3dfc832" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour_85e2131b-c62a-4d0d-b294-bac6e3950552" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths_1744c555-66f4-4ee3-b6c6-0ab310b10c84" 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_1b453186-c85b-49d0-9b5a-f1b8e3dfc832" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths_1744c555-66f4-4ee3-b6c6-0ab310b10c84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive_f1d55615-8dc9-4015-90aa-70d5e5ddb3a9" 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_e95f824f-1404-48c6-9488-8ce732f9b30e" xlink:href="nx-20211031.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_f1d55615-8dc9-4015-90aa-70d5e5ddb3a9" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFive_e95f824f-1404-48c6-9488-8ce732f9b30e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_24c87319-20fe-4e82-b68f-248d3ff65a3d" 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_f1d55615-8dc9-4015-90aa-70d5e5ddb3a9" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_24c87319-20fe-4e82-b68f-248d3ff65a3d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid_b1677c83-66fb-4d7c-8032-779937f5db52" xlink:href="nx-20211031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligations_148852eb-96ec-4e2e-abad-9402d378ec10" xlink:href="nx-20211031.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_b1677c83-66fb-4d7c-8032-779937f5db52" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligations_148852eb-96ec-4e2e-abad-9402d378ec10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndCapitalLeaseObligations_a588b0b7-c284-44c8-ae6f-c8d77a26ce9f" 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_08c554a9-2484-4a81-9f41-b896e9e582f6" 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_a588b0b7-c284-44c8-ae6f-c8d77a26ce9f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_08c554a9-2484-4a81-9f41-b896e9e582f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_c2cbfc24-dc6a-4ff6-80f4-65de4cbb3d29" 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_a588b0b7-c284-44c8-ae6f-c8d77a26ce9f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_c2cbfc24-dc6a-4ff6-80f4-65de4cbb3d29" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_3b9a29b3-b1c9-4fb9-aa92-5e46ef1ddc55" 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_a588b0b7-c284-44c8-ae6f-c8d77a26ce9f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_3b9a29b3-b1c9-4fb9-aa92-5e46ef1ddc55" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_69cd344b-1a22-41a5-b73c-46d8125a63bc" 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_a588b0b7-c284-44c8-ae6f-c8d77a26ce9f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_69cd344b-1a22-41a5-b73c-46d8125a63bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_15d98bb9-f00d-4f0e-9263-77a5252e88de" 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_a588b0b7-c284-44c8-ae6f-c8d77a26ce9f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_15d98bb9-f00d-4f0e-9263-77a5252e88de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_556f4cb6-7e97-41f1-8b29-0c35f5144e84" 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_a588b0b7-c284-44c8-ae6f-c8d77a26ce9f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_556f4cb6-7e97-41f1-8b29-0c35f5144e84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree_2e4fac00-0c2f-498f-8ea5-7a614be5c79e" 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_72689822-9264-42b5-8f8e-0d2dc75fe1ad" xlink:href="nx-20211031.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_2e4fac00-0c2f-498f-8ea5-7a614be5c79e" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearThree_72689822-9264-42b5-8f8e-0d2dc75fe1ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_537b41db-ca04-4ccf-b0d3-3024cd3739f5" 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_2e4fac00-0c2f-498f-8ea5-7a614be5c79e" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_537b41db-ca04-4ccf-b0d3-3024cd3739f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths_199040da-a864-47c9-a2f0-2c38ce227a15" 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_6f05a204-d77e-4ef8-a062-58bec7167b80" xlink:href="nx-20211031.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_199040da-a864-47c9-a2f0-2c38ce227a15" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearOne_6f05a204-d77e-4ef8-a062-58bec7167b80" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_8373daa1-cac8-4baf-a9d2-f4fedf016f3b" 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_199040da-a864-47c9-a2f0-2c38ce227a15" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_8373daa1-cac8-4baf-a9d2-f4fedf016f3b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo_2cd07d31-0a27-4604-800d-9d34bbd2c101" 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_e54f9640-72c3-42da-9ad1-5742d569538f" xlink:href="nx-20211031.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_2cd07d31-0a27-4604-800d-9d34bbd2c101" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearTwo_e54f9640-72c3-42da-9ad1-5742d569538f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_201a1097-4c28-4300-807d-7319a8ed6565" 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_2cd07d31-0a27-4604-800d-9d34bbd2c101" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_201a1097-4c28-4300-807d-7319a8ed6565" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_b132003a-b35e-45d6-8090-5785321350f6" 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_320e10a7-4e9e-4203-9556-a68e89270742" 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_b132003a-b35e-45d6-8090-5785321350f6" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree_320e10a7-4e9e-4203-9556-a68e89270742" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive_7167c8bf-26fb-4791-9d4b-256f0b631373" 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_b132003a-b35e-45d6-8090-5785321350f6" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive_7167c8bf-26fb-4791-9d4b-256f0b631373" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo_e11891bd-cf0f-418b-8e4c-0d94245ded95" 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_b132003a-b35e-45d6-8090-5785321350f6" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo_e11891bd-cf0f-418b-8e4c-0d94245ded95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive_cf35381d-3426-494b-90eb-1fa9f84871c7" 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_b132003a-b35e-45d6-8090-5785321350f6" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive_cf35381d-3426-494b-90eb-1fa9f84871c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour_d5e34792-c9d4-4818-bc5f-044b87496fba" 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_b132003a-b35e-45d6-8090-5785321350f6" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour_d5e34792-c9d4-4818-bc5f-044b87496fba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths_298124ab-33b9-407e-ab33-f97b22afda9b" 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_b132003a-b35e-45d6-8090-5785321350f6" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths_298124ab-33b9-407e-ab33-f97b22afda9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive_fd3ef3f1-b599-489d-bce5-5c3522a0b267" 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_e46b2ab1-7fac-4fa2-a162-1c5f8643e0d3" 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_fd3ef3f1-b599-489d-bce5-5c3522a0b267" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_e46b2ab1-7fac-4fa2-a162-1c5f8643e0d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidAfterYearFive_da63b8ab-772c-454f-a728-ced72a9d0cd4" xlink:href="nx-20211031.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_fd3ef3f1-b599-489d-bce5-5c3522a0b267" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidAfterYearFive_da63b8ab-772c-454f-a728-ced72a9d0cd4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtandCapitalLeaseObligationsScheduleofDebtMaturitiesDetails_1" xlink:type="simple" xlink:href="nx-20211031.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_30897ea2-ff1f-4a96-af27-b3b4aff3d90a" xlink:href="nx-20211031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearThree_2a8b0ded-9031-434e-83e2-fa7cd698f1cb" xlink:href="nx-20211031.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_30897ea2-ff1f-4a96-af27-b3b4aff3d90a" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearThree_2a8b0ded-9031-434e-83e2-fa7cd698f1cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFive_1ac775b2-e364-4261-bc37-b9695531cf65" xlink:href="nx-20211031.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_30897ea2-ff1f-4a96-af27-b3b4aff3d90a" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFive_1ac775b2-e364-4261-bc37-b9695531cf65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearOne_c3ffe49f-f67a-4d71-9fcc-48aaddad48e9" xlink:href="nx-20211031.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_30897ea2-ff1f-4a96-af27-b3b4aff3d90a" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearOne_c3ffe49f-f67a-4d71-9fcc-48aaddad48e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearTwo_4c0d0e54-2d96-41ce-bf12-d155d793ffa5" xlink:href="nx-20211031.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_30897ea2-ff1f-4a96-af27-b3b4aff3d90a" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearTwo_4c0d0e54-2d96-41ce-bf12-d155d793ffa5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidAfterYearFive_b9a6ba4d-ae71-4923-ad37-bea90b898973" xlink:href="nx-20211031.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_30897ea2-ff1f-4a96-af27-b3b4aff3d90a" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidAfterYearFive_b9a6ba4d-ae71-4923-ad37-bea90b898973" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFour_27f9349c-9162-423c-a391-5e4a703edd95" xlink:href="nx-20211031.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_30897ea2-ff1f-4a96-af27-b3b4aff3d90a" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFour_27f9349c-9162-423c-a391-5e4a703edd95" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/RetirementPlansDetail" xlink:type="simple" xlink:href="nx-20211031.xsd#RetirementPlansDetail"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/RetirementPlansDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent_373e3014-d734-4fc9-be03-a82dacfcd017" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_Postretirementdefinedbenefitplanscurrentliabilities_126ca663-6f2e-479b-a1c7-dc87c5513b4f" xlink:href="nx-20211031.xsd#nx_Postretirementdefinedbenefitplanscurrentliabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent_373e3014-d734-4fc9-be03-a82dacfcd017" xlink:to="loc_nx_Postretirementdefinedbenefitplanscurrentliabilities_126ca663-6f2e-479b-a1c7-dc87c5513b4f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_Postretirementdefinedbenefitplansnoncurrentliabilities_c0609360-4b90-43af-a605-46bcf99b0ee1" xlink:href="nx-20211031.xsd#nx_Postretirementdefinedbenefitplansnoncurrentliabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent_373e3014-d734-4fc9-be03-a82dacfcd017" xlink:to="loc_nx_Postretirementdefinedbenefitplansnoncurrentliabilities_c0609360-4b90-43af-a605-46bcf99b0ee1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_83fecb3f-b2ca-424d-90ea-9e3a97ff08d6" 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_17662f4b-3e3a-4019-906a-ea206923b128" 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_83fecb3f-b2ca-424d-90ea-9e3a97ff08d6" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_17662f4b-3e3a-4019-906a-ea206923b128" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_ef99236d-5df6-4f98-8c3e-35c2df16c494" 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_83fecb3f-b2ca-424d-90ea-9e3a97ff08d6" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_ef99236d-5df6-4f98-8c3e-35c2df16c494" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_40b33571-4de8-403e-a3aa-9f8bf8ec910a" 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_83fecb3f-b2ca-424d-90ea-9e3a97ff08d6" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_40b33571-4de8-403e-a3aa-9f8bf8ec910a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_66b1dd74-ce4c-48a3-aebc-ad0b60edb280" 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_83fecb3f-b2ca-424d-90ea-9e3a97ff08d6" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_66b1dd74-ce4c-48a3-aebc-ad0b60edb280" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_001e2935-efb9-45d5-b971-84f09ab021b8" 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_83fecb3f-b2ca-424d-90ea-9e3a97ff08d6" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_001e2935-efb9-45d5-b971-84f09ab021b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_86ba242c-d696-4075-9eb5-04f371a5044f" 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_8abea5ff-65cc-415d-b006-9599b6b470e8" xlink:href="nx-20211031.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_86ba242c-d696-4075-9eb5-04f371a5044f" xlink:to="loc_nx_DefinedBenefitPlanAmortizationofGainslossesNet_8abea5ff-65cc-415d-b006-9599b6b470e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_325b857a-9455-418b-8ec0-124711b1c4a2" 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_86ba242c-d696-4075-9eb5-04f371a5044f" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_325b857a-9455-418b-8ec0-124711b1c4a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToCurtailments_7d5cd87a-970d-426a-b310-141dc5f9909e" 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_86ba242c-d696-4075-9eb5-04f371a5044f" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToCurtailments_7d5cd87a-970d-426a-b310-141dc5f9909e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeLossNetGainLossBeforeTax_7f4857fd-111c-46e8-a883-c510ec1bd35f" 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_86ba242c-d696-4075-9eb5-04f371a5044f" xlink:to="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeLossNetGainLossBeforeTax_7f4857fd-111c-46e8-a883-c510ec1bd35f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_DefinedBenefitPlanExpectedFutureBenefitPayments_d805cbd5-533c-4a5a-99fe-eaca77a2b3fe" xlink:href="nx-20211031.xsd#nx_DefinedBenefitPlanExpectedFutureBenefitPayments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths_45375673-7bc3-4980-b8ef-12ccea1ac82a" 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_d805cbd5-533c-4a5a-99fe-eaca77a2b3fe" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths_45375673-7bc3-4980-b8ef-12ccea1ac82a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo_fa09c7b3-86fa-4664-aa14-799f0641eb5a" 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_d805cbd5-533c-4a5a-99fe-eaca77a2b3fe" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo_fa09c7b3-86fa-4664-aa14-799f0641eb5a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree_6300b33f-7d0c-47b4-937f-1502bbe152ae" 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_d805cbd5-533c-4a5a-99fe-eaca77a2b3fe" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree_6300b33f-7d0c-47b4-937f-1502bbe152ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour_355a2a61-f6eb-4cff-9138-14478010b046" 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_d805cbd5-533c-4a5a-99fe-eaca77a2b3fe" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour_355a2a61-f6eb-4cff-9138-14478010b046" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive_dbc77606-8bc0-42d5-8443-a7b35fdd8180" 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_d805cbd5-533c-4a5a-99fe-eaca77a2b3fe" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive_dbc77606-8bc0-42d5-8443-a7b35fdd8180" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter_eafcd5f4-7a74-4a0c-93bc-f1d4559d1c56" 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_d805cbd5-533c-4a5a-99fe-eaca77a2b3fe" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter_eafcd5f4-7a74-4a0c-93bc-f1d4559d1c56" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/IncomeTaxesDetails" xlink:type="simple" xlink:href="nx-20211031.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_DeferredTaxAssetsNet_d93e4de6-6654-429a-9eb2-4bab61e6c686" 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_59afda25-d459-4322-8ac9-852953b6b33b" 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_d93e4de6-6654-429a-9eb2-4bab61e6c686" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_59afda25-d459-4322-8ac9-852953b6b33b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_a93854e7-9e62-4be8-ac98-3a82ae1c1a84" 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_d93e4de6-6654-429a-9eb2-4bab61e6c686" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_a93854e7-9e62-4be8-ac98-3a82ae1c1a84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_d8fe2770-c22b-4aed-92d0-3ea90fb908f8" 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_3c09b225-aa09-4975-a596-366d115f8a8c" 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_d8fe2770-c22b-4aed-92d0-3ea90fb908f8" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_3c09b225-aa09-4975-a596-366d115f8a8c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_2eac969c-871c-42dc-ac5e-823f97633211" 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_d8fe2770-c22b-4aed-92d0-3ea90fb908f8" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_2eac969c-871c-42dc-ac5e-823f97633211" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentForeignTaxExpenseBenefit_7b532918-0483-42b8-a6eb-1bee05a2acef" 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_d8fe2770-c22b-4aed-92d0-3ea90fb908f8" xlink:to="loc_us-gaap_CurrentForeignTaxExpenseBenefit_7b532918-0483-42b8-a6eb-1bee05a2acef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_e8b9aae2-f6f2-482b-9698-1ef4fca2867c" 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_54f52122-8918-4dd2-bf44-1985972b3d3d" 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_e8b9aae2-f6f2-482b-9698-1ef4fca2867c" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation_54f52122-8918-4dd2-bf44-1985972b3d3d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_cea5d9ea-d885-44d0-95f4-7b3e745beeaa" 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_e8b9aae2-f6f2-482b-9698-1ef4fca2867c" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_cea5d9ea-d885-44d0-95f4-7b3e745beeaa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions_400aa493-3208-4c99-a487-8d0cff9d8112" 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_e8b9aae2-f6f2-482b-9698-1ef4fca2867c" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions_400aa493-3208-4c99-a487-8d0cff9d8112" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsInventory_56201921-77f5-4fea-b6bb-2ff40f9fa2e9" 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_e8b9aae2-f6f2-482b-9698-1ef4fca2867c" xlink:to="loc_us-gaap_DeferredTaxAssetsInventory_56201921-77f5-4fea-b6bb-2ff40f9fa2e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_d038bde2-5dce-4e97-b945-fa88d4f5c53a" 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_e8b9aae2-f6f2-482b-9698-1ef4fca2867c" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_d038bde2-5dce-4e97-b945-fa88d4f5c53a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseOther_351cec49-aa9d-4d32-9fe9-dc1b65523486" 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_e8b9aae2-f6f2-482b-9698-1ef4fca2867c" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseOther_351cec49-aa9d-4d32-9fe9-dc1b65523486" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_971f5fde-8b8e-4c74-9368-84f0b7d04429" 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_1cd75bee-55ed-4105-a228-d78af142c8b6" 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_971f5fde-8b8e-4c74-9368-84f0b7d04429" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_1cd75bee-55ed-4105-a228-d78af142c8b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_add6ba58-281a-4d5f-a76a-619aecbd9725" 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_971f5fde-8b8e-4c74-9368-84f0b7d04429" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_add6ba58-281a-4d5f-a76a-619aecbd9725" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_d7e6527c-26ed-41ac-b1e1-af8f0f4ea6be" 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_3f2c347d-4000-4d73-8e67-d35858dc8f93" 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_d7e6527c-26ed-41ac-b1e1-af8f0f4ea6be" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_3f2c347d-4000-4d73-8e67-d35858dc8f93" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssets_2a91fdeb-7cc6-455b-802c-5e9af7173307" 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_d7e6527c-26ed-41ac-b1e1-af8f0f4ea6be" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssets_2a91fdeb-7cc6-455b-802c-5e9af7173307" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilities_094ac8dd-91a9-4aa2-a635-c116b52a0ad1" 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_b622e9d7-b300-4ea5-9eba-ea5659d40dac" 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_094ac8dd-91a9-4aa2-a635-c116b52a0ad1" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_b622e9d7-b300-4ea5-9eba-ea5659d40dac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_f327b9c1-bb50-4fb4-a925-77e80b17ddf0" 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_094ac8dd-91a9-4aa2-a635-c116b52a0ad1" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_f327b9c1-bb50-4fb4-a925-77e80b17ddf0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_8887014f-7ca4-4c5f-8e91-8e5e6307ab82" 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_a518efc7-b418-40f4-b7c1-50b886979b41" 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_8887014f-7ca4-4c5f-8e91-8e5e6307ab82" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_a518efc7-b418-40f4-b7c1-50b886979b41" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_1aceb247-b29d-40ee-a660-d77d48344e19" 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_8887014f-7ca4-4c5f-8e91-8e5e6307ab82" xlink:to="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_1aceb247-b29d-40ee-a660-d77d48344e19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_b36b47e3-9d4b-4ff8-8e1d-00f80dfa4be4" 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_8887014f-7ca4-4c5f-8e91-8e5e6307ab82" xlink:to="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_b36b47e3-9d4b-4ff8-8e1d-00f80dfa4be4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationDetail" xlink:type="simple" xlink:href="nx-20211031.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_4bdd0e48-a4a9-4eac-bd56-f4074be18a25" 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_7c0eb00a-5fe6-4a70-8780-1b329add5b3b" 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_4bdd0e48-a4a9-4eac-bd56-f4074be18a25" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_7c0eb00a-5fe6-4a70-8780-1b329add5b3b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_Incometaxeffect_cca0315f-b892-4d0b-9b15-1b5ee3ea394f" xlink:href="nx-20211031.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_4bdd0e48-a4a9-4eac-bd56-f4074be18a25" xlink:to="loc_nx_Incometaxeffect_cca0315f-b892-4d0b-9b15-1b5ee3ea394f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/OtherIncomeExpenseDetail" xlink:type="simple" xlink:href="nx-20211031.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_333ed59e-6b70-492f-a2c2-8e8ba72860a1" 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_f1b21647-add5-4c8c-a28e-381fcc219c41" 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_333ed59e-6b70-492f-a2c2-8e8ba72860a1" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_f1b21647-add5-4c8c-a28e-381fcc219c41" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_17239f2f-80c7-4727-bf73-ec9a91206b1b" 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_333ed59e-6b70-492f-a2c2-8e8ba72860a1" xlink:to="loc_us-gaap_InvestmentIncomeInterest_17239f2f-80c7-4727-bf73-ec9a91206b1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_4aea0ddd-5c06-4a36-98c3-943e8842c08d" 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_333ed59e-6b70-492f-a2c2-8e8ba72860a1" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_4aea0ddd-5c06-4a36-98c3-943e8842c08d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstruments_e601b112-cace-49d8-b6f5-ed0de9752960" 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_333ed59e-6b70-492f-a2c2-8e8ba72860a1" xlink:to="loc_us-gaap_GainLossOnForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstruments_e601b112-cace-49d8-b6f5-ed0de9752960" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_PensionServiceBenefit_587785cb-25dc-4158-8124-1266707243a7" xlink:href="nx-20211031.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_333ed59e-6b70-492f-a2c2-8e8ba72860a1" xlink:to="loc_nx_PensionServiceBenefit_587785cb-25dc-4158-8124-1266707243a7" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
