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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:29275be8-5f6e-4bc2-ad28-f39cf08543a0,g:6fd07fe1-7c2c-4ba2-863a-85996149b78d-->
<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/Coverpage" xlink:type="simple" xlink:href="nx-20210131.xsd#Coverpage"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/Coverpage" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="simple" xlink:href="nx-20210131.xsd#CondensedConsolidatedBalanceSheetsUnaudited"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_009f5ae5-229c-431d-b332-4cf6118f77dc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_8aabaf9e-ba94-441b-bbaf-53d082e974fb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_009f5ae5-229c-431d-b332-4cf6118f77dc" xlink:to="loc_us-gaap_AccountsPayableCurrent_8aabaf9e-ba94-441b-bbaf-53d082e974fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_bf507517-76d3-4645-883f-5a44c9fcbd55" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_009f5ae5-229c-431d-b332-4cf6118f77dc" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_bf507517-76d3-4645-883f-5a44c9fcbd55" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_26bf900b-e287-494c-8bb5-f87d9d8b776a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_009f5ae5-229c-431d-b332-4cf6118f77dc" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_26bf900b-e287-494c-8bb5-f87d9d8b776a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_1e1bf715-6e5e-426d-942f-98080d3c2df6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_009f5ae5-229c-431d-b332-4cf6118f77dc" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_1e1bf715-6e5e-426d-942f-98080d3c2df6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_ad5c64d7-ec4a-475f-83cd-4b72869c80b6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_009f5ae5-229c-431d-b332-4cf6118f77dc" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_ad5c64d7-ec4a-475f-83cd-4b72869c80b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_01b195c2-b22d-4abd-a1b6-459c20e1027b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_ed187f62-51b3-4b9b-bc10-43363fe72c86" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_01b195c2-b22d-4abd-a1b6-459c20e1027b" xlink:to="loc_us-gaap_AssetsCurrent_ed187f62-51b3-4b9b-bc10-43363fe72c86" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_dc19b742-785d-4f55-ac94-7d4ba928f67b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_01b195c2-b22d-4abd-a1b6-459c20e1027b" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_dc19b742-785d-4f55-ac94-7d4ba928f67b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_aff8c1b7-c2fe-42d8-baec-1fef79e46d7f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_01b195c2-b22d-4abd-a1b6-459c20e1027b" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_aff8c1b7-c2fe-42d8-baec-1fef79e46d7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_05f9fe27-4f50-4e86-b152-4e9de5b1ed83" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_01b195c2-b22d-4abd-a1b6-459c20e1027b" xlink:to="loc_us-gaap_Goodwill_05f9fe27-4f50-4e86-b152-4e9de5b1ed83" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_5163e967-c7fa-4816-aff9-1e08ebdddfc4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_01b195c2-b22d-4abd-a1b6-459c20e1027b" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_5163e967-c7fa-4816-aff9-1e08ebdddfc4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_d25442c6-f47f-4d98-9f5e-de63d4bb279d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_01b195c2-b22d-4abd-a1b6-459c20e1027b" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_d25442c6-f47f-4d98-9f5e-de63d4bb279d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_4d8a0e10-50ce-4451-911c-99c7880f6af6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_5d79a65e-b3c2-4b3f-b4b3-eae7f1c62705" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_4d8a0e10-50ce-4451-911c-99c7880f6af6" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_5d79a65e-b3c2-4b3f-b4b3-eae7f1c62705" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_0167d073-71dc-4ef5-8966-64894abcee46" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_4d8a0e10-50ce-4451-911c-99c7880f6af6" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_0167d073-71dc-4ef5-8966-64894abcee46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_905fee02-94ce-4da1-8748-af9eef722a91" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_4d8a0e10-50ce-4451-911c-99c7880f6af6" xlink:to="loc_us-gaap_InventoryNet_905fee02-94ce-4da1-8748-af9eef722a91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_2b548cb1-e107-45eb-8d7a-c541d5ccabb2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_4d8a0e10-50ce-4451-911c-99c7880f6af6" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_2b548cb1-e107-45eb-8d7a-c541d5ccabb2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_eeff2f50-0f26-4e20-b519-b0d892642a58" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_65c4520c-af21-46ed-a845-3338150dd866" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_eeff2f50-0f26-4e20-b519-b0d892642a58" xlink:to="loc_us-gaap_LiabilitiesCurrent_65c4520c-af21-46ed-a845-3338150dd866" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_b8865df3-db9c-4895-aab8-2ac4afe26c5d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_eeff2f50-0f26-4e20-b519-b0d892642a58" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_b8865df3-db9c-4895-aab8-2ac4afe26c5d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_7e11ca7c-51c7-4b2d-9cb8-13acbe95e16a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_eeff2f50-0f26-4e20-b519-b0d892642a58" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_7e11ca7c-51c7-4b2d-9cb8-13acbe95e16a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_4dc8555b-5045-4c29-9af6-ab460d9c3e18" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_eeff2f50-0f26-4e20-b519-b0d892642a58" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_4dc8555b-5045-4c29-9af6-ab460d9c3e18" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_d5eda835-600c-44a2-a934-75f45753bdce" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_eeff2f50-0f26-4e20-b519-b0d892642a58" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_d5eda835-600c-44a2-a934-75f45753bdce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_659984a5-3235-42d3-b026-1671c5ac114a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_eeff2f50-0f26-4e20-b519-b0d892642a58" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_659984a5-3235-42d3-b026-1671c5ac114a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_8e5e594e-3aee-457e-a84c-596a15d900d6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_b45b8019-cb94-4910-8dbc-53e7b139da92" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_8e5e594e-3aee-457e-a84c-596a15d900d6" xlink:to="loc_us-gaap_Liabilities_b45b8019-cb94-4910-8dbc-53e7b139da92" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_167cf74b-da03-4269-93ce-31e3d3a8d96c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_8e5e594e-3aee-457e-a84c-596a15d900d6" xlink:to="loc_us-gaap_CommitmentsAndContingencies_167cf74b-da03-4269-93ce-31e3d3a8d96c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_0ea4c12c-a378-49bd-8ab4-8ddbc2ce4c11" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_8e5e594e-3aee-457e-a84c-596a15d900d6" xlink:to="loc_us-gaap_StockholdersEquity_0ea4c12c-a378-49bd-8ab4-8ddbc2ce4c11" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_3ad00dff-d864-47b9-a8ef-12f0f283816c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_94052e88-15a5-4f67-9901-97fc2a0581bd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3ad00dff-d864-47b9-a8ef-12f0f283816c" xlink:to="loc_us-gaap_PreferredStockValue_94052e88-15a5-4f67-9901-97fc2a0581bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_e4616391-fed0-4076-9e08-901c995bbbc1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3ad00dff-d864-47b9-a8ef-12f0f283816c" xlink:to="loc_us-gaap_CommonStockValue_e4616391-fed0-4076-9e08-901c995bbbc1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_eeee3c49-e4e8-408e-858e-5894cd272531" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3ad00dff-d864-47b9-a8ef-12f0f283816c" xlink:to="loc_us-gaap_AdditionalPaidInCapital_eeee3c49-e4e8-408e-858e-5894cd272531" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_b92cb3aa-a541-44af-8be9-80b9700edd64" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3ad00dff-d864-47b9-a8ef-12f0f283816c" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_b92cb3aa-a541-44af-8be9-80b9700edd64" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_47b9bee6-1fb8-4e3f-bcb5-125320bca662" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3ad00dff-d864-47b9-a8ef-12f0f283816c" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_47b9bee6-1fb8-4e3f-bcb5-125320bca662" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_fffb5d12-9182-4f9f-b0da-183af5179488" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3ad00dff-d864-47b9-a8ef-12f0f283816c" xlink:to="loc_us-gaap_TreasuryStockValue_fffb5d12-9182-4f9f-b0da-183af5179488" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedBalanceSheetsUnauditedParenthetical" xlink:type="simple" xlink:href="nx-20210131.xsd#CondensedConsolidatedBalanceSheetsUnauditedParenthetical"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedBalanceSheetsUnauditedParenthetical" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsofIncomeLossUnaudited" xlink:type="simple" xlink:href="nx-20210131.xsd#CondensedConsolidatedStatementsofIncomeLossUnaudited"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsofIncomeLossUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperations_5fc2d6f6-f67a-40ff-844c-4fff7bc5afb7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_e921ec35-8245-47c2-89c6-729249d035b9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_IncomeLossFromContinuingOperations_5fc2d6f6-f67a-40ff-844c-4fff7bc5afb7" xlink:to="loc_us-gaap_OperatingIncomeLoss_e921ec35-8245-47c2-89c6-729249d035b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_2c7c60ed-0fd1-406b-be24-f9c9cfe2a7e7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_IncomeLossFromContinuingOperations_5fc2d6f6-f67a-40ff-844c-4fff7bc5afb7" xlink:to="loc_us-gaap_InterestExpense_2c7c60ed-0fd1-406b-be24-f9c9cfe2a7e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_ad9a41e8-8070-45c0-8375-353c8ea957e6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_IncomeLossFromContinuingOperations_5fc2d6f6-f67a-40ff-844c-4fff7bc5afb7" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_ad9a41e8-8070-45c0-8375-353c8ea957e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_18cd4212-096a-4f52-9fea-aa76d9995ec9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_ef88c086-77d3-4750-97c1-3b305acc45e1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_18cd4212-096a-4f52-9fea-aa76d9995ec9" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_ef88c086-77d3-4750-97c1-3b305acc45e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_00485eeb-315f-4e8c-a54e-4a013f73d26e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CostOfRevenue"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_18cd4212-096a-4f52-9fea-aa76d9995ec9" xlink:to="loc_us-gaap_CostOfRevenue_00485eeb-315f-4e8c-a54e-4a013f73d26e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_f25090de-6251-4705-aaa9-2c404bd38f36" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_18cd4212-096a-4f52-9fea-aa76d9995ec9" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_f25090de-6251-4705-aaa9-2c404bd38f36" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_5689102f-e41b-4803-be09-b0a6024fd1f9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringCharges"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_18cd4212-096a-4f52-9fea-aa76d9995ec9" xlink:to="loc_us-gaap_RestructuringCharges_5689102f-e41b-4803-be09-b0a6024fd1f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_fe056e08-625d-4fd0-b5cb-da5dddb9a2a1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_18cd4212-096a-4f52-9fea-aa76d9995ec9" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_fe056e08-625d-4fd0-b5cb-da5dddb9a2a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_c74b6f63-dd24-4982-a8ac-477d5a28fe46" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperations_eb0358f7-6b78-4be9-b1b0-cbe304fac5eb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperations"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_c74b6f63-dd24-4982-a8ac-477d5a28fe46" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperations_eb0358f7-6b78-4be9-b1b0-cbe304fac5eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_b4487750-229a-4bbc-ada3-a8995bd8a062" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_c74b6f63-dd24-4982-a8ac-477d5a28fe46" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_b4487750-229a-4bbc-ada3-a8995bd8a062" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsofIncomeLossUnauditedParenthetical" xlink:type="simple" xlink:href="nx-20210131.xsd#CondensedConsolidatedStatementsofIncomeLossUnauditedParenthetical"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsofIncomeLossUnauditedParenthetical" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeLossUnaudited" xlink:type="simple" xlink:href="nx-20210131.xsd#CondensedConsolidatedStatementsofComprehensiveIncomeLossUnaudited"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeLossUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_6630ddd0-866d-42a4-a587-2fa6f21747e6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_4fa2e6fa-1a85-4033-98aa-74d9de7461a5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_6630ddd0-866d-42a4-a587-2fa6f21747e6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_4fa2e6fa-1a85-4033-98aa-74d9de7461a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_77013f64-e73d-43fa-a077-aeb4cfb6b663" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_6630ddd0-866d-42a4-a587-2fa6f21747e6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_77013f64-e73d-43fa-a077-aeb4cfb6b663" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansTax_4f7dedc4-0fa8-42ea-bef9-4a929642b55e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_6630ddd0-866d-42a4-a587-2fa6f21747e6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansTax_4f7dedc4-0fa8-42ea-bef9-4a929642b55e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_c6946c03-7f4c-45c3-a0ed-3a82c4193d5f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_0b9a846b-c93c-4993-9698-1361d65c3956" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_c6946c03-7f4c-45c3-a0ed-3a82c4193d5f" xlink:to="loc_us-gaap_NetIncomeLoss_0b9a846b-c93c-4993-9698-1361d65c3956" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_478fe8c4-3b5d-44e8-a9d5-7fc405e1cf31" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_c6946c03-7f4c-45c3-a0ed-3a82c4193d5f" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_478fe8c4-3b5d-44e8-a9d5-7fc405e1cf31" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsofCashFlowUnaudited" xlink:type="simple" xlink:href="nx-20210131.xsd#CondensedConsolidatedStatementsofCashFlowUnaudited"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsofCashFlowUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9adef090-5106-41ab-974c-7c0866258191" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_8dda00b1-2e97-4e9d-8368-7b2cbaf81964" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_9adef090-5106-41ab-974c-7c0866258191" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_8dda00b1-2e97-4e9d-8368-7b2cbaf81964" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_6ede3310-dadd-4b5d-aed8-a02136105f73" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_9adef090-5106-41ab-974c-7c0866258191" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_6ede3310-dadd-4b5d-aed8-a02136105f73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_8a11f7f2-9384-4e9a-b8bb-e8cf2662fecf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9adef090-5106-41ab-974c-7c0866258191" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_8a11f7f2-9384-4e9a-b8bb-e8cf2662fecf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_907e0226-e4f4-4c42-ab2d-d0d1d4720b9b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9adef090-5106-41ab-974c-7c0866258191" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_907e0226-e4f4-4c42-ab2d-d0d1d4720b9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_5fdb6aff-fc00-4d59-a4f4-4ef74e346087" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9adef090-5106-41ab-974c-7c0866258191" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_5fdb6aff-fc00-4d59-a4f4-4ef74e346087" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_6979df15-fdc8-47e4-ac87-084de83530b3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9adef090-5106-41ab-974c-7c0866258191" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_6979df15-fdc8-47e4-ac87-084de83530b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_c0ceb29e-7388-4871-9ce7-7eefbe977a35" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9adef090-5106-41ab-974c-7c0866258191" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_c0ceb29e-7388-4871-9ce7-7eefbe977a35" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_3af6faa0-4a47-449c-b147-8676cf98243f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_5f402236-98a0-4293-a41c-fabac4d51a46" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3af6faa0-4a47-449c-b147-8676cf98243f" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_5f402236-98a0-4293-a41c-fabac4d51a46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_673aa011-ea54-4088-9b00-e6f842feadba" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_3af6faa0-4a47-449c-b147-8676cf98243f" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_673aa011-ea54-4088-9b00-e6f842feadba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e5ff6f3b-119a-45e1-bf48-f41880b8fed1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_449fa99c-78a2-447f-9692-446495713752" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_e5ff6f3b-119a-45e1-bf48-f41880b8fed1" xlink:to="loc_us-gaap_ProfitLoss_449fa99c-78a2-447f-9692-446495713752" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_57756c29-3140-45ee-a978-f1b12705df2f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e5ff6f3b-119a-45e1-bf48-f41880b8fed1" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_57756c29-3140-45ee-a978-f1b12705df2f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_8407d045-d5b4-4c0f-905f-b875f13f1615" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e5ff6f3b-119a-45e1-bf48-f41880b8fed1" xlink:to="loc_us-gaap_ShareBasedCompensation_8407d045-d5b4-4c0f-905f-b875f13f1615" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_17dd6ff6-0731-49fd-8e63-b8b914c620d5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e5ff6f3b-119a-45e1-bf48-f41880b8fed1" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_17dd6ff6-0731-49fd-8e63-b8b914c620d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_f99c9526-6cf6-4edc-8937-f6935ef78cac" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e5ff6f3b-119a-45e1-bf48-f41880b8fed1" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_f99c9526-6cf6-4edc-8937-f6935ef78cac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable_b18cc30e-bdfc-43c5-b334-bb3c2423f021" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e5ff6f3b-119a-45e1-bf48-f41880b8fed1" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable_b18cc30e-bdfc-43c5-b334-bb3c2423f021" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_b0fda845-d39c-4a93-a998-89b0ec8101a4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e5ff6f3b-119a-45e1-bf48-f41880b8fed1" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_b0fda845-d39c-4a93-a998-89b0ec8101a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_4f13c995-ed87-4409-a820-e1c992a43031" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e5ff6f3b-119a-45e1-bf48-f41880b8fed1" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_4f13c995-ed87-4409-a820-e1c992a43031" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_e7716b1a-7ebd-4d88-b460-8d8ca307518a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e5ff6f3b-119a-45e1-bf48-f41880b8fed1" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_e7716b1a-7ebd-4d88-b460-8d8ca307518a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_06c8978f-b54e-4a6e-93ef-f5981c5d407b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e5ff6f3b-119a-45e1-bf48-f41880b8fed1" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_06c8978f-b54e-4a6e-93ef-f5981c5d407b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_a69c2533-85fe-4523-a265-cd113b106e5b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e5ff6f3b-119a-45e1-bf48-f41880b8fed1" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_a69c2533-85fe-4523-a265-cd113b106e5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPensionAndPostretirementObligations_712ebba3-c92b-46af-a443-49977675ca7f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInPensionAndPostretirementObligations"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e5ff6f3b-119a-45e1-bf48-f41880b8fed1" xlink:to="loc_us-gaap_IncreaseDecreaseInPensionAndPostretirementObligations_712ebba3-c92b-46af-a443-49977675ca7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_046b6788-e205-4c9e-aa05-ffb0a8fe5cfa" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e5ff6f3b-119a-45e1-bf48-f41880b8fed1" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_046b6788-e205-4c9e-aa05-ffb0a8fe5cfa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_907df542-9942-4933-a7a4-31d931b3f521" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e5ff6f3b-119a-45e1-bf48-f41880b8fed1" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_907df542-9942-4933-a7a4-31d931b3f521" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_e729402a-17db-476b-a12a-8bef28c913e4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents_79e45408-d5ab-4898-8ef7-47a3e993d0ab" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_e729402a-17db-476b-a12a-8bef28c913e4" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents_79e45408-d5ab-4898-8ef7-47a3e993d0ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_11b88b75-913e-4ebd-9344-b34b2e474b27" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_e729402a-17db-476b-a12a-8bef28c913e4" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_11b88b75-913e-4ebd-9344-b34b2e474b27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e1bb6d63-c9af-463f-8ff3-c63f1c3e81b0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_e729402a-17db-476b-a12a-8bef28c913e4" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e1bb6d63-c9af-463f-8ff3-c63f1c3e81b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_5891b587-1e5c-4019-9bd0-ffcb12d444bd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_e729402a-17db-476b-a12a-8bef28c913e4" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_5891b587-1e5c-4019-9bd0-ffcb12d444bd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementofStockholdersEquity" xlink:type="simple" xlink:href="nx-20210131.xsd#CondensedConsolidatedStatementofStockholdersEquity"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementofStockholdersEquity" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementofStockholdersEquityParenthetical" xlink:type="simple" xlink:href="nx-20210131.xsd#CondensedConsolidatedStatementofStockholdersEquityParenthetical"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementofStockholdersEquityParenthetical" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureofOperationsandBasisofPresentation" xlink:type="simple" xlink:href="nx-20210131.xsd#NatureofOperationsandBasisofPresentation"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/NatureofOperationsandBasisofPresentation" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureofOperationsandBasisofPresentationTables" xlink:type="simple" xlink:href="nx-20210131.xsd#NatureofOperationsandBasisofPresentationTables"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/NatureofOperationsandBasisofPresentationTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NatureofOperationsandBasisofPresentationSummaryofProductSalesDetails" xlink:type="simple" xlink:href="nx-20210131.xsd#NatureofOperationsandBasisofPresentationSummaryofProductSalesDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/NatureofOperationsandBasisofPresentationSummaryofProductSalesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/Inventories" xlink:type="simple" xlink:href="nx-20210131.xsd#Inventories"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/Inventories" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/InventoriesTables" xlink:type="simple" xlink:href="nx-20210131.xsd#InventoriesTables"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/InventoriesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/InventoriesDetail" xlink:type="simple" xlink:href="nx-20210131.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_InventoryGross_65e918d1-a910-4273-a009-c0e6e8bd7eb5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterials_71a631e8-92a1-47db-bdec-f8a8a9a8c1bf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_65e918d1-a910-4273-a009-c0e6e8bd7eb5" xlink:to="loc_us-gaap_InventoryRawMaterials_71a631e8-92a1-47db-bdec-f8a8a9a8c1bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsAndWorkInProcess_e75e316e-f7c1-4537-b0ba-930d1a079098" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_65e918d1-a910-4273-a009-c0e6e8bd7eb5" xlink:to="loc_us-gaap_InventoryFinishedGoodsAndWorkInProcess_e75e316e-f7c1-4537-b0ba-930d1a079098" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInventorySupplies_70a1f80f-2d3f-4cd5-b87f-581c23733b31" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_65e918d1-a910-4273-a009-c0e6e8bd7eb5" xlink:to="loc_us-gaap_OtherInventorySupplies_70a1f80f-2d3f-4cd5-b87f-581c23733b31" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_5e12733d-a117-4280-a361-1ffd6bc26bac" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryGross_67ca7d1d-9d80-4eaf-9c78-1a67e7f21a57" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_5e12733d-a117-4280-a361-1ffd6bc26bac" xlink:to="loc_us-gaap_InventoryGross_67ca7d1d-9d80-4eaf-9c78-1a67e7f21a57" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryValuationReserves_254a20f6-fa1d-4ab4-959c-3268df5cba0e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_5e12733d-a117-4280-a361-1ffd6bc26bac" xlink:to="loc_us-gaap_InventoryValuationReserves_254a20f6-fa1d-4ab4-959c-3268df5cba0e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/GoodwillandIntangibleAssets" xlink:type="simple" xlink:href="nx-20210131.xsd#GoodwillandIntangibleAssets"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/GoodwillandIntangibleAssets" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/GoodwillandIntangibleAssetsTables" xlink:type="simple" xlink:href="nx-20210131.xsd#GoodwillandIntangibleAssetsTables"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/GoodwillandIntangibleAssetsTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/GoodwillandIntangibleAssetsGoodwillDetails" xlink:type="simple" xlink:href="nx-20210131.xsd#GoodwillandIntangibleAssetsGoodwillDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/GoodwillandIntangibleAssetsGoodwillDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/GoodwillandIntangibleAssetsIdentifiableIntangibleAssetsDetails" xlink:type="simple" xlink:href="nx-20210131.xsd#GoodwillandIntangibleAssetsIdentifiableIntangibleAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/GoodwillandIntangibleAssetsIdentifiableIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_8fb1bf66-e135-4cd7-93cd-4decfafafd4d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_9b06d284-10cb-4bc9-aee6-42f2fb753251" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_8fb1bf66-e135-4cd7-93cd-4decfafafd4d" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_9b06d284-10cb-4bc9-aee6-42f2fb753251" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_0933bbd0-a208-4978-a022-7f1debb17ab8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_8fb1bf66-e135-4cd7-93cd-4decfafafd4d" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_0933bbd0-a208-4978-a022-7f1debb17ab8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_4ddea29d-e0a0-44bc-854b-06090b4ec2e5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_8fb1bf66-e135-4cd7-93cd-4decfafafd4d" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_4ddea29d-e0a0-44bc-854b-06090b4ec2e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_14deae2e-c7bb-42e2-9117-aa7cbf7ac84b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_8fb1bf66-e135-4cd7-93cd-4decfafafd4d" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_14deae2e-c7bb-42e2-9117-aa7cbf7ac84b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_98694a83-75e0-4a54-bc32-1f6f423ce9bd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_8fb1bf66-e135-4cd7-93cd-4decfafafd4d" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_98694a83-75e0-4a54-bc32-1f6f423ce9bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearFour_318b2cd3-6f2e-4a81-a953-b72c2bc90ec6" xlink:href="nx-20210131.xsd#nx_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearFour"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_8fb1bf66-e135-4cd7-93cd-4decfafafd4d" xlink:to="loc_nx_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearFour_318b2cd3-6f2e-4a81-a953-b72c2bc90ec6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtandFinanceLeaseObligations" xlink:type="simple" xlink:href="nx-20210131.xsd#DebtandFinanceLeaseObligations"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/DebtandFinanceLeaseObligations" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtandFinanceLeaseObligationsTables" xlink:type="simple" xlink:href="nx-20210131.xsd#DebtandFinanceLeaseObligationsTables"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/DebtandFinanceLeaseObligationsTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtandFinanceLeaseObligationsDetails" xlink:type="simple" xlink:href="nx-20210131.xsd#DebtandFinanceLeaseObligationsDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/DebtandFinanceLeaseObligationsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndCapitalLeaseObligations_920e8145-8e2c-4f3c-aa34-959d6597f3b1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtAndCapitalLeaseObligations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_dbaef921-aa2e-43ac-ac4b-7fad722eb4e3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_920e8145-8e2c-4f3c-aa34-959d6597f3b1" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_dbaef921-aa2e-43ac-ac4b-7fad722eb4e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_cd215655-6a47-4bd3-840b-371e6a66ee3c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_920e8145-8e2c-4f3c-aa34-959d6597f3b1" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_cd215655-6a47-4bd3-840b-371e6a66ee3c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/RetirementPlans" xlink:type="simple" xlink:href="nx-20210131.xsd#RetirementPlans"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/RetirementPlans" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/RetirementPlansTables" xlink:type="simple" xlink:href="nx-20210131.xsd#RetirementPlansTables"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/RetirementPlansTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/RetirementPlansDetail" xlink:type="simple" xlink:href="nx-20210131.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_DefinedBenefitPlanNetPeriodicBenefitCost_91b6ee00-ff59-4874-bad9-eb15d971f719" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_810c0057-8a23-4298-8e6e-5354b00ec879" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_91b6ee00-ff59-4874-bad9-eb15d971f719" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_810c0057-8a23-4298-8e6e-5354b00ec879" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_249cdca7-2e00-44e6-8a7f-8293e6d757c7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_91b6ee00-ff59-4874-bad9-eb15d971f719" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_249cdca7-2e00-44e6-8a7f-8293e6d757c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_cdfe4857-f835-44eb-8a13-fb854feca9a6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_91b6ee00-ff59-4874-bad9-eb15d971f719" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_cdfe4857-f835-44eb-8a13-fb854feca9a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_dd911908-37f3-459c-989b-0210bdf0bd26" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_91b6ee00-ff59-4874-bad9-eb15d971f719" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_dd911908-37f3-459c-989b-0210bdf0bd26" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/IncomeTaxes" xlink:type="simple" xlink:href="nx-20210131.xsd#IncomeTaxes"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/IncomeTaxes" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/IncomeTaxesDetail" xlink:type="simple" xlink:href="nx-20210131.xsd#IncomeTaxesDetail"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/IncomeTaxesDetail" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/Contingencies" xlink:type="simple" xlink:href="nx-20210131.xsd#Contingencies"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/Contingencies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/FairValueMeasurementofAssetsandLiabilities" xlink:type="simple" xlink:href="nx-20210131.xsd#FairValueMeasurementofAssetsandLiabilities"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/FairValueMeasurementofAssetsandLiabilities" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensation" xlink:type="simple" xlink:href="nx-20210131.xsd#StockBasedCompensation"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensation" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationTables" xlink:type="simple" xlink:href="nx-20210131.xsd#StockBasedCompensationTables"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationDetails" xlink:type="simple" xlink:href="nx-20210131.xsd#StockBasedCompensationDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationRestrictedStockAwardsDetails" xlink:type="simple" xlink:href="nx-20210131.xsd#StockBasedCompensationRestrictedStockAwardsDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationRestrictedStockAwardsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationStockOptionsDetails" xlink:type="simple" xlink:href="nx-20210131.xsd#StockBasedCompensationStockOptionsDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationStockOptionsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationRestrictedStockUnitsDetails" xlink:type="simple" xlink:href="nx-20210131.xsd#StockBasedCompensationRestrictedStockUnitsDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationRestrictedStockUnitsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationPerformanceShareAwardsDetails" xlink:type="simple" xlink:href="nx-20210131.xsd#StockBasedCompensationPerformanceShareAwardsDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationPerformanceShareAwardsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationPerformanceRestrictedStockUnitsDetails" xlink:type="simple" xlink:href="nx-20210131.xsd#StockBasedCompensationPerformanceRestrictedStockUnitsDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationPerformanceRestrictedStockUnitsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationTreasurySharesDetails" xlink:type="simple" xlink:href="nx-20210131.xsd#StockBasedCompensationTreasurySharesDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationTreasurySharesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/OtherIncome" xlink:type="simple" xlink:href="nx-20210131.xsd#OtherIncome"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/OtherIncome" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/OtherIncomeExpenseTables" xlink:type="simple" xlink:href="nx-20210131.xsd#OtherIncomeExpenseTables"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/OtherIncomeExpenseTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/OtherIncomeExpenseDetail" xlink:type="simple" xlink:href="nx-20210131.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_5fc16dbb-6c46-4ac1-be2c-090c9342eee1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNonoperatingGainsLosses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_e337b240-af89-49e0-9a89-9b73b5fd2720" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_5fc16dbb-6c46-4ac1-be2c-090c9342eee1" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_e337b240-af89-49e0-9a89-9b73b5fd2720" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstruments_7fc31a64-2502-43a4-a78a-0a06ad4dda40" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainLossOnForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstruments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingGainsLosses_5fc16dbb-6c46-4ac1-be2c-090c9342eee1" xlink:to="loc_us-gaap_GainLossOnForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstruments_7fc31a64-2502-43a4-a78a-0a06ad4dda40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_PensionServiceBenefit_c10eda10-1ddb-4260-8eca-07bb3a3d0d05" xlink:href="nx-20210131.xsd#nx_PensionServiceBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingGainsLosses_5fc16dbb-6c46-4ac1-be2c-090c9342eee1" xlink:to="loc_nx_PensionServiceBenefit_c10eda10-1ddb-4260-8eca-07bb3a3d0d05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_42b79041-f595-457e-89a7-33446cd2969b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingGainsLosses_5fc16dbb-6c46-4ac1-be2c-090c9342eee1" xlink:to="loc_us-gaap_InvestmentIncomeInterest_42b79041-f595-457e-89a7-33446cd2969b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonrecurringIncomeExpense_0ec78841-dbe8-4cc3-83ca-0c29d5e60154" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNonrecurringIncomeExpense"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingGainsLosses_5fc16dbb-6c46-4ac1-be2c-090c9342eee1" xlink:to="loc_us-gaap_OtherNonrecurringIncomeExpense_0ec78841-dbe8-4cc3-83ca-0c29d5e60154" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/SegmentInformationNotes" xlink:type="simple" xlink:href="nx-20210131.xsd#SegmentInformationNotes"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/SegmentInformationNotes" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/SegmentInformationTables" xlink:type="simple" xlink:href="nx-20210131.xsd#SegmentInformationTables"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/SegmentInformationTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/SegmentInformationDetails" xlink:type="simple" xlink:href="nx-20210131.xsd#SegmentInformationDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/SegmentInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/SegmentInformationSegmentReportingInformationDetails" xlink:type="simple" xlink:href="nx-20210131.xsd#SegmentInformationSegmentReportingInformationDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/SegmentInformationSegmentReportingInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/SegmentInformationGoodwillbySegmentDetails" xlink:type="simple" xlink:href="nx-20210131.xsd#SegmentInformationGoodwillbySegmentDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/SegmentInformationGoodwillbySegmentDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/SegmentInformationReconcilliationofOperatingLosstoNetIncomeDetails" xlink:type="simple" xlink:href="nx-20210131.xsd#SegmentInformationReconcilliationofOperatingLosstoNetIncomeDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/SegmentInformationReconcilliationofOperatingLosstoNetIncomeDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/EarningsPerShare" xlink:type="simple" xlink:href="nx-20210131.xsd#EarningsPerShare"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/EarningsPerShare" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/EarningsPerShareEarningsPerShareTables" xlink:type="simple" xlink:href="nx-20210131.xsd#EarningsPerShareEarningsPerShareTables"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/EarningsPerShareEarningsPerShareTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/EarningsPerShareDetail" xlink:type="simple" xlink:href="nx-20210131.xsd#EarningsPerShareDetail"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/EarningsPerShareDetail" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/NewAccountingGuidance" xlink:type="simple" xlink:href="nx-20210131.xsd#NewAccountingGuidance"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/NewAccountingGuidance" xlink:type="extended"/>
</link:linkbase>
