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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:fe85d656-24d3-42a7-a975-9dde267ddab3,g:5e558caf-6e9e-42f6-909a-981eb48c5258-->
<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/CondensedConsolidatedBalanceSheetsUnaudited" xlink:type="simple" xlink:href="nx-20220131.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_LiabilitiesAndStockholdersEquity_e91dbfbc-3027-4da2-8bf8-7595c81ed122" 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_4c9da1a9-6d31-4308-b12b-bad4c82f430b" 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_e91dbfbc-3027-4da2-8bf8-7595c81ed122" xlink:to="loc_us-gaap_Liabilities_4c9da1a9-6d31-4308-b12b-bad4c82f430b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_6fc5a6ca-4c7a-44f7-bce1-d400e9970939" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_e91dbfbc-3027-4da2-8bf8-7595c81ed122" xlink:to="loc_us-gaap_CommitmentsAndContingencies_6fc5a6ca-4c7a-44f7-bce1-d400e9970939" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_d2912401-7c82-48d9-9b3e-79c1706baaae" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_e91dbfbc-3027-4da2-8bf8-7595c81ed122" xlink:to="loc_us-gaap_StockholdersEquity_d2912401-7c82-48d9-9b3e-79c1706baaae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_b9e8808b-dae0-4814-852b-6184ce0f4ff8" 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_a20a358b-4bf2-4948-8474-36ed7de31d10" 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_b9e8808b-dae0-4814-852b-6184ce0f4ff8" xlink:to="loc_us-gaap_LiabilitiesCurrent_a20a358b-4bf2-4948-8474-36ed7de31d10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_3d7ad2fb-c1cd-4cea-9614-38eec7f36bfa" 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_b9e8808b-dae0-4814-852b-6184ce0f4ff8" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_3d7ad2fb-c1cd-4cea-9614-38eec7f36bfa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_b46078c7-f217-48e9-8453-d332df6ebcf0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_b9e8808b-dae0-4814-852b-6184ce0f4ff8" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_b46078c7-f217-48e9-8453-d332df6ebcf0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_4cf77603-11e7-4fca-bfbe-e4cbf7d46e48" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_b9e8808b-dae0-4814-852b-6184ce0f4ff8" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_4cf77603-11e7-4fca-bfbe-e4cbf7d46e48" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_19e5e1f7-6c76-4625-ac59-8c5fadca4b41" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_b9e8808b-dae0-4814-852b-6184ce0f4ff8" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_19e5e1f7-6c76-4625-ac59-8c5fadca4b41" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_60649df7-a670-4464-b6d4-7aba6a1dc22d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_b9e8808b-dae0-4814-852b-6184ce0f4ff8" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_60649df7-a670-4464-b6d4-7aba6a1dc22d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_4d2dcf1c-db70-4aac-8a8e-910752d2dd4f" 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_5b430ad8-86b1-4ff7-a105-8b6fd4848dce" 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_4d2dcf1c-db70-4aac-8a8e-910752d2dd4f" xlink:to="loc_us-gaap_AssetsCurrent_5b430ad8-86b1-4ff7-a105-8b6fd4848dce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_70ba09fa-349c-481d-9847-d5a5dded838a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_4d2dcf1c-db70-4aac-8a8e-910752d2dd4f" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_70ba09fa-349c-481d-9847-d5a5dded838a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_4f04924d-d750-4a88-9114-871cd19d57d4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_4d2dcf1c-db70-4aac-8a8e-910752d2dd4f" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_4f04924d-d750-4a88-9114-871cd19d57d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_8bd7490c-7d5b-4c19-b930-0c43cbf872e9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_4d2dcf1c-db70-4aac-8a8e-910752d2dd4f" xlink:to="loc_us-gaap_Goodwill_8bd7490c-7d5b-4c19-b930-0c43cbf872e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_5274eae9-9ccc-4e81-a100-da548a278274" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_4d2dcf1c-db70-4aac-8a8e-910752d2dd4f" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_5274eae9-9ccc-4e81-a100-da548a278274" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_70cb107c-0e93-415d-a183-0508a151b0ea" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_4d2dcf1c-db70-4aac-8a8e-910752d2dd4f" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_70cb107c-0e93-415d-a183-0508a151b0ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_29378997-a4a1-44eb-b7a9-c6f19b50c5a5" 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_149b69ab-9105-4aec-a187-f943c08be15a" 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_29378997-a4a1-44eb-b7a9-c6f19b50c5a5" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_149b69ab-9105-4aec-a187-f943c08be15a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_a280301e-0b59-46e2-a98c-fb1f9f83650a" 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_29378997-a4a1-44eb-b7a9-c6f19b50c5a5" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_a280301e-0b59-46e2-a98c-fb1f9f83650a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_7219a8f3-4dd7-4ece-9e0d-424374e80fea" 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_29378997-a4a1-44eb-b7a9-c6f19b50c5a5" xlink:to="loc_us-gaap_InventoryNet_7219a8f3-4dd7-4ece-9e0d-424374e80fea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_d0e4151c-c399-42fb-9924-e49633879f0b" 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_29378997-a4a1-44eb-b7a9-c6f19b50c5a5" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_d0e4151c-c399-42fb-9924-e49633879f0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_6468193c-d2f9-48d8-8979-10ca0c4e37ae" 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_c13b52ae-2707-492c-8611-b6be4248311a" 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_6468193c-d2f9-48d8-8979-10ca0c4e37ae" xlink:to="loc_us-gaap_PreferredStockValue_c13b52ae-2707-492c-8611-b6be4248311a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_cc8f14a9-64ac-424e-9a94-88e2cd55b35d" 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_6468193c-d2f9-48d8-8979-10ca0c4e37ae" xlink:to="loc_us-gaap_CommonStockValue_cc8f14a9-64ac-424e-9a94-88e2cd55b35d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_e4f70c04-a546-490f-ba05-530a8ec7934c" 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_6468193c-d2f9-48d8-8979-10ca0c4e37ae" xlink:to="loc_us-gaap_AdditionalPaidInCapital_e4f70c04-a546-490f-ba05-530a8ec7934c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_6dd69e15-97e1-42e6-b6f8-1cafc69d52b6" 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_6468193c-d2f9-48d8-8979-10ca0c4e37ae" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_6dd69e15-97e1-42e6-b6f8-1cafc69d52b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_89f8f8e7-f2f9-4160-af19-f6c852c0ec88" 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_6468193c-d2f9-48d8-8979-10ca0c4e37ae" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_89f8f8e7-f2f9-4160-af19-f6c852c0ec88" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_a3013d4d-2ade-4f3b-994e-7a7c37cecfed" 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_6468193c-d2f9-48d8-8979-10ca0c4e37ae" xlink:to="loc_us-gaap_TreasuryStockValue_a3013d4d-2ade-4f3b-994e-7a7c37cecfed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_d32a4496-7ce6-4c7f-8db7-aab45861f6bc" 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_e978fdad-d341-4309-bf36-7c716456de70" 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_d32a4496-7ce6-4c7f-8db7-aab45861f6bc" xlink:to="loc_us-gaap_AccountsPayableCurrent_e978fdad-d341-4309-bf36-7c716456de70" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_599de927-79b6-4710-9873-73dc62c77d51" 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_d32a4496-7ce6-4c7f-8db7-aab45861f6bc" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_599de927-79b6-4710-9873-73dc62c77d51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_b3d7965e-5eee-4873-9980-089f016bb2ad" 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_d32a4496-7ce6-4c7f-8db7-aab45861f6bc" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_b3d7965e-5eee-4873-9980-089f016bb2ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_3b8c0761-23cb-483e-a23d-78f3cc95a05a" 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_d32a4496-7ce6-4c7f-8db7-aab45861f6bc" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_3b8c0761-23cb-483e-a23d-78f3cc95a05a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_29c74c90-94fb-4304-b0fe-69697a703538" 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_d32a4496-7ce6-4c7f-8db7-aab45861f6bc" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_29c74c90-94fb-4304-b0fe-69697a703538" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsofIncomeLossUnaudited" xlink:type="simple" xlink:href="nx-20220131.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_OperatingIncomeLoss_de227d80-ed7f-4a95-9061-eb620fd480da" 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_RevenueFromContractWithCustomerExcludingAssessedTax_b91323d8-0113-4adf-8551-10a2774b9d16" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_de227d80-ed7f-4a95-9061-eb620fd480da" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_b91323d8-0113-4adf-8551-10a2774b9d16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_98711e0a-3afe-438c-a25d-f7f28762bed3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_de227d80-ed7f-4a95-9061-eb620fd480da" xlink:to="loc_us-gaap_CostOfRevenue_98711e0a-3afe-438c-a25d-f7f28762bed3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_259f6d21-ca32-44f9-9c53-b7df23ece83d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_de227d80-ed7f-4a95-9061-eb620fd480da" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_259f6d21-ca32-44f9-9c53-b7df23ece83d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_50c4c5b4-3562-407d-bcd0-c3d3e9d5b61e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_de227d80-ed7f-4a95-9061-eb620fd480da" xlink:to="loc_us-gaap_RestructuringCharges_50c4c5b4-3562-407d-bcd0-c3d3e9d5b61e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_4700a72b-1769-4130-b144-9333f6b075be" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_de227d80-ed7f-4a95-9061-eb620fd480da" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_4700a72b-1769-4130-b144-9333f6b075be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperations_efe6219a-1df2-4497-9e9d-9036af8030a7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_9c87477b-d198-47ae-8455-6079bb4ba0d8" 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_IncomeLossFromContinuingOperations_efe6219a-1df2-4497-9e9d-9036af8030a7" xlink:to="loc_us-gaap_OperatingIncomeLoss_9c87477b-d198-47ae-8455-6079bb4ba0d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_b3450237-185e-4a81-a2a0-1ff1aa01b5e3" 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_IncomeLossFromContinuingOperations_efe6219a-1df2-4497-9e9d-9036af8030a7" xlink:to="loc_us-gaap_InterestExpense_b3450237-185e-4a81-a2a0-1ff1aa01b5e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_f59e86ec-7280-4034-84b8-37e536e701a3" 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_IncomeLossFromContinuingOperations_efe6219a-1df2-4497-9e9d-9036af8030a7" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_f59e86ec-7280-4034-84b8-37e536e701a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_a2f5a1fb-1e19-407e-900a-37f88d319e5c" 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_IncomeLossFromContinuingOperations_c3505e4f-3e52-4965-a67b-ea0945cd4140" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_a2f5a1fb-1e19-407e-900a-37f88d319e5c" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperations_c3505e4f-3e52-4965-a67b-ea0945cd4140" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_5d579cbb-3ffa-46c7-aa38-4e4a184e4fad" 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_a2f5a1fb-1e19-407e-900a-37f88d319e5c" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_5d579cbb-3ffa-46c7-aa38-4e4a184e4fad" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeLossUnaudited" xlink:type="simple" xlink:href="nx-20220131.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_f017ec7c-a1cc-4ee0-a1f1-4bc87dfea8ee" 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_89b31640-f3c6-4f2a-adba-d930caefea02" 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_f017ec7c-a1cc-4ee0-a1f1-4bc87dfea8ee" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_89b31640-f3c6-4f2a-adba-d930caefea02" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_64d212cd-124f-4edd-b325-2f5801fda8fc" 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_50c0b2b9-af40-41c9-a481-03fc5aecad60" 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_64d212cd-124f-4edd-b325-2f5801fda8fc" xlink:to="loc_us-gaap_NetIncomeLoss_50c0b2b9-af40-41c9-a481-03fc5aecad60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_01e7bf58-b3a7-4f32-963d-f6275473ccab" 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_64d212cd-124f-4edd-b325-2f5801fda8fc" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_01e7bf58-b3a7-4f32-963d-f6275473ccab" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsofCashFlowUnaudited" xlink:type="simple" xlink:href="nx-20220131.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_NetCashProvidedByUsedInOperatingActivities_9917a80f-4c78-4f08-81fd-453a60684dd4" 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_6567c158-dfdd-47c6-84c1-feecfecb1d0f" 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_9917a80f-4c78-4f08-81fd-453a60684dd4" xlink:to="loc_us-gaap_ProfitLoss_6567c158-dfdd-47c6-84c1-feecfecb1d0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_5a55dcf6-8338-42a1-8ad0-19c41ba9d2b9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_9917a80f-4c78-4f08-81fd-453a60684dd4" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_5a55dcf6-8338-42a1-8ad0-19c41ba9d2b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_52a900bc-f223-47f1-bbcc-597f8988242e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_9917a80f-4c78-4f08-81fd-453a60684dd4" xlink:to="loc_us-gaap_ShareBasedCompensation_52a900bc-f223-47f1-bbcc-597f8988242e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_7e4a28ad-3880-4134-bb25-2a736aed9f08" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_9917a80f-4c78-4f08-81fd-453a60684dd4" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_7e4a28ad-3880-4134-bb25-2a736aed9f08" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_63139842-8189-4c0a-8ff1-21b30e3356eb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_9917a80f-4c78-4f08-81fd-453a60684dd4" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_63139842-8189-4c0a-8ff1-21b30e3356eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable_5e08315e-cdcb-4f79-85b8-abbeb5a37970" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_9917a80f-4c78-4f08-81fd-453a60684dd4" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable_5e08315e-cdcb-4f79-85b8-abbeb5a37970" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_c2a87820-e2ec-4656-822b-7a69f9c82c9f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_9917a80f-4c78-4f08-81fd-453a60684dd4" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_c2a87820-e2ec-4656-822b-7a69f9c82c9f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_8a5fc218-35d0-4dc5-bede-dc4bd7aeff5e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_9917a80f-4c78-4f08-81fd-453a60684dd4" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_8a5fc218-35d0-4dc5-bede-dc4bd7aeff5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_ba819331-7c20-40cc-a047-d5af3be74dfc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_9917a80f-4c78-4f08-81fd-453a60684dd4" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_ba819331-7c20-40cc-a047-d5af3be74dfc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_3735b6c6-dad9-4db5-a4ef-6ce6c88598bc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_9917a80f-4c78-4f08-81fd-453a60684dd4" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_3735b6c6-dad9-4db5-a4ef-6ce6c88598bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_2c3f2bc1-24e9-4239-add2-bf0a5b137f10" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_9917a80f-4c78-4f08-81fd-453a60684dd4" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_2c3f2bc1-24e9-4239-add2-bf0a5b137f10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPensionAndPostretirementObligations_060ba7d6-4549-4051-91ca-dce64b5facd4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_9917a80f-4c78-4f08-81fd-453a60684dd4" xlink:to="loc_us-gaap_IncreaseDecreaseInPensionAndPostretirementObligations_060ba7d6-4549-4051-91ca-dce64b5facd4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_4f8036c3-7fa3-4f46-89cb-773e6fd25f02" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_9917a80f-4c78-4f08-81fd-453a60684dd4" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_4f8036c3-7fa3-4f46-89cb-773e6fd25f02" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_278b4772-7415-4d62-b54a-c5b6295d8d45" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_9917a80f-4c78-4f08-81fd-453a60684dd4" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_278b4772-7415-4d62-b54a-c5b6295d8d45" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_0fc0566a-4e31-4212-861a-a2ae25baa98c" 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_079e51c6-e564-4f27-b886-bc8cedf83640" 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_0fc0566a-4e31-4212-861a-a2ae25baa98c" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_079e51c6-e564-4f27-b886-bc8cedf83640" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_c2f98f7a-264b-420d-b730-988d06daf9e0" 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_0fc0566a-4e31-4212-861a-a2ae25baa98c" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_c2f98f7a-264b-420d-b730-988d06daf9e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_e59f3794-5bc7-4e54-8b98-28443921eafb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_0fc0566a-4e31-4212-861a-a2ae25baa98c" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_e59f3794-5bc7-4e54-8b98-28443921eafb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_5f9da819-11f8-47c9-a318-ae28744ee4cc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_0fc0566a-4e31-4212-861a-a2ae25baa98c" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_5f9da819-11f8-47c9-a318-ae28744ee4cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_0fbb81d1-5bb4-4ad6-b440-ca69630c053b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_0fc0566a-4e31-4212-861a-a2ae25baa98c" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_0fbb81d1-5bb4-4ad6-b440-ca69630c053b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_806396bf-23c3-48d0-a622-27a56204579f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_0fc0566a-4e31-4212-861a-a2ae25baa98c" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_806396bf-23c3-48d0-a622-27a56204579f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_bfdd664d-7120-43d2-93b8-5d5669545b34" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_0fc0566a-4e31-4212-861a-a2ae25baa98c" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_bfdd664d-7120-43d2-93b8-5d5669545b34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_33f9ea2f-18e1-4283-a103-c6b7b9dcad15" 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_EffectOfExchangeRateOnCashAndCashEquivalents_abfa59ad-8c19-4748-bce1-253c20f2cf58" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_33f9ea2f-18e1-4283-a103-c6b7b9dcad15" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents_abfa59ad-8c19-4748-bce1-253c20f2cf58" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_87ef0c96-e708-45db-8d5e-0c296d2c01d7" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_33f9ea2f-18e1-4283-a103-c6b7b9dcad15" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_87ef0c96-e708-45db-8d5e-0c296d2c01d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c6a7e3e6-f1ff-4d0a-8829-0a91349cffd3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_33f9ea2f-18e1-4283-a103-c6b7b9dcad15" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c6a7e3e6-f1ff-4d0a-8829-0a91349cffd3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_02edc5df-1f68-4b18-bb46-2308143be5da" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_33f9ea2f-18e1-4283-a103-c6b7b9dcad15" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_02edc5df-1f68-4b18-bb46-2308143be5da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_53115afd-4d49-4168-b493-789d4be55514" 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_d213b59a-09f0-49a9-8267-178154623353" 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_53115afd-4d49-4168-b493-789d4be55514" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_d213b59a-09f0-49a9-8267-178154623353" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_0151d01c-6eba-4952-b55a-7f4787e930c9" 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_53115afd-4d49-4168-b493-789d4be55514" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_0151d01c-6eba-4952-b55a-7f4787e930c9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/InventoriesDetail" xlink:type="simple" xlink:href="nx-20220131.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_52e3c72a-4a3b-47d7-8a3b-f2dead3b22e6" 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_20f70540-c158-439d-b202-04e8b3692816" 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_52e3c72a-4a3b-47d7-8a3b-f2dead3b22e6" xlink:to="loc_us-gaap_InventoryGross_20f70540-c158-439d-b202-04e8b3692816" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryValuationReserves_a645c355-67e4-4f32-85e5-d420889dc0f5" 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_52e3c72a-4a3b-47d7-8a3b-f2dead3b22e6" xlink:to="loc_us-gaap_InventoryValuationReserves_a645c355-67e4-4f32-85e5-d420889dc0f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryGross_5e6311d8-c8e3-4427-bb18-4384d2cb64be" 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_230f0b73-19c2-44ac-93d2-9f0e7e295900" 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_5e6311d8-c8e3-4427-bb18-4384d2cb64be" xlink:to="loc_us-gaap_InventoryRawMaterials_230f0b73-19c2-44ac-93d2-9f0e7e295900" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsAndWorkInProcess_045ba2c1-8fae-41be-b1a6-556ad6821c9b" 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_5e6311d8-c8e3-4427-bb18-4384d2cb64be" xlink:to="loc_us-gaap_InventoryFinishedGoodsAndWorkInProcess_045ba2c1-8fae-41be-b1a6-556ad6821c9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInventorySupplies_b72272fe-4d0a-49d6-9304-763f2cc8fa6d" 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_5e6311d8-c8e3-4427-bb18-4384d2cb64be" xlink:to="loc_us-gaap_OtherInventorySupplies_b72272fe-4d0a-49d6-9304-763f2cc8fa6d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/GoodwillandIntangibleAssetsIdentifiableIntangibleAssetsDetails" xlink:type="simple" xlink:href="nx-20220131.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_d447db3e-84dd-48f4-80aa-249cc9020fc7" 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_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_81c385cf-4fce-411e-a220-9445e614134b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d447db3e-84dd-48f4-80aa-249cc9020fc7" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_81c385cf-4fce-411e-a220-9445e614134b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_05b8f09e-7bdb-4d0f-8ce9-25f04181a370" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d447db3e-84dd-48f4-80aa-249cc9020fc7" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_05b8f09e-7bdb-4d0f-8ce9-25f04181a370" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_6123eb59-d684-4d30-b2fb-269097a31155" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d447db3e-84dd-48f4-80aa-249cc9020fc7" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_6123eb59-d684-4d30-b2fb-269097a31155" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_937e6717-1072-4e58-b7ad-fe9bb8518de5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d447db3e-84dd-48f4-80aa-249cc9020fc7" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_937e6717-1072-4e58-b7ad-fe9bb8518de5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_e459d306-dfa2-4453-b622-feed0b8b0216" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_d447db3e-84dd-48f4-80aa-249cc9020fc7" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_e459d306-dfa2-4453-b622-feed0b8b0216" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearFour_cea70038-b6b7-4c5a-b49e-6e4fdb8c3ae0" xlink:href="nx-20220131.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_d447db3e-84dd-48f4-80aa-249cc9020fc7" xlink:to="loc_nx_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearFour_cea70038-b6b7-4c5a-b49e-6e4fdb8c3ae0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtandFinanceLeaseObligationsDetails" xlink:type="simple" xlink:href="nx-20220131.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_1279a509-21d3-40cf-a0c3-1d8b88f1ca47" 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_75dc0965-be4c-4668-aea2-471d87c223ea" 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_1279a509-21d3-40cf-a0c3-1d8b88f1ca47" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_75dc0965-be4c-4668-aea2-471d87c223ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_4949dc59-8d08-495d-aa3b-46104bb69df6" 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_1279a509-21d3-40cf-a0c3-1d8b88f1ca47" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_4949dc59-8d08-495d-aa3b-46104bb69df6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/RetirementPlansDetail" xlink:type="simple" xlink:href="nx-20220131.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_3402f06d-3d56-4830-9059-6c9797f81209" 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_DefinedBenefitPlanServiceCost_246d7a74-09e7-4d95-8a71-91d8ce507ef0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_3402f06d-3d56-4830-9059-6c9797f81209" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_246d7a74-09e7-4d95-8a71-91d8ce507ef0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_e3f5129d-a5a3-42e9-9cdc-f4a3b5919516" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_3402f06d-3d56-4830-9059-6c9797f81209" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_e3f5129d-a5a3-42e9-9cdc-f4a3b5919516" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_d96873e7-4d87-4273-bda6-b58892ee7a7b" 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_3402f06d-3d56-4830-9059-6c9797f81209" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_d96873e7-4d87-4273-bda6-b58892ee7a7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_cb978e37-3a5b-46d4-b957-fdc5ccebf4f2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-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_3402f06d-3d56-4830-9059-6c9797f81209" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_cb978e37-3a5b-46d4-b957-fdc5ccebf4f2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/OthernetDetails" xlink:type="simple" xlink:href="nx-20220131.xsd#OthernetDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/OthernetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingGainsLosses_badeee88-0d3f-4f22-be90-622a8938b086" 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_968da2a4-ed53-478b-857f-b5739d160447" 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_badeee88-0d3f-4f22-be90-622a8938b086" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_968da2a4-ed53-478b-857f-b5739d160447" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_PensionServiceBenefit_ed7b6cc0-e74a-44d2-a1a8-9176b93712a4" xlink:href="nx-20220131.xsd#nx_PensionServiceBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingGainsLosses_badeee88-0d3f-4f22-be90-622a8938b086" xlink:to="loc_nx_PensionServiceBenefit_ed7b6cc0-e74a-44d2-a1a8-9176b93712a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_34d0a14a-79a4-483b-bdbf-1089d4190a4f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingGainsLosses_badeee88-0d3f-4f22-be90-622a8938b086" xlink:to="loc_us-gaap_InvestmentIncomeInterest_34d0a14a-79a4-483b-bdbf-1089d4190a4f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonrecurringIncomeExpense_fcf04873-684d-4192-8257-16ff977a22ce" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherNonrecurringIncomeExpense"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingGainsLosses_badeee88-0d3f-4f22-be90-622a8938b086" xlink:to="loc_us-gaap_OtherNonrecurringIncomeExpense_fcf04873-684d-4192-8257-16ff977a22ce" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
