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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2023 Workiva-->
<!--r:7c00941c-f916-4536-b974-c3cfa10a03c4,g:8db7f97e-1f43-43be-ae25-dd1cd78398ec-->
<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-20230430.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_AssetsCurrent_ec58c6a3-df11-44d0-9f5d-8a543311cc35" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_f99dea88-5673-4ba6-99de-489445c3987d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ec58c6a3-df11-44d0-9f5d-8a543311cc35" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_f99dea88-5673-4ba6-99de-489445c3987d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_4baed2fc-78d5-4c55-9185-e643db90d1d6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ec58c6a3-df11-44d0-9f5d-8a543311cc35" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_4baed2fc-78d5-4c55-9185-e643db90d1d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_a30d97ac-0582-4503-9506-5600533ecbbd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ec58c6a3-df11-44d0-9f5d-8a543311cc35" xlink:to="loc_us-gaap_InventoryNet_a30d97ac-0582-4503-9506-5600533ecbbd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_627414e9-4111-4d24-97d3-2ef8b0881d8e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ec58c6a3-df11-44d0-9f5d-8a543311cc35" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_627414e9-4111-4d24-97d3-2ef8b0881d8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_f34b1743-979d-4a49-84c8-309607e24f5f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_d2446f75-d60d-404d-95f7-f35c4b3f18ec" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_f34b1743-979d-4a49-84c8-309607e24f5f" xlink:to="loc_us-gaap_Liabilities_d2446f75-d60d-404d-95f7-f35c4b3f18ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_b9fe400a-1b8e-44ec-81ce-12ef18269432" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_f34b1743-979d-4a49-84c8-309607e24f5f" xlink:to="loc_us-gaap_CommitmentsAndContingencies_b9fe400a-1b8e-44ec-81ce-12ef18269432" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_13eb6121-24fb-4b48-ab58-d3e6edbd1820" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_f34b1743-979d-4a49-84c8-309607e24f5f" xlink:to="loc_us-gaap_StockholdersEquity_13eb6121-24fb-4b48-ab58-d3e6edbd1820" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_3eddea02-4031-4ab9-ae74-cd2ecaa4432a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_0acc95a9-4df7-4351-bbed-e9b6baa07990" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_3eddea02-4031-4ab9-ae74-cd2ecaa4432a" xlink:to="loc_us-gaap_LiabilitiesCurrent_0acc95a9-4df7-4351-bbed-e9b6baa07990" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_519dbb51-2218-4681-9e60-cffafdf40b0a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_3eddea02-4031-4ab9-ae74-cd2ecaa4432a" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_519dbb51-2218-4681-9e60-cffafdf40b0a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_b47fb23b-e7fb-4341-a788-5919c3ec300a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_3eddea02-4031-4ab9-ae74-cd2ecaa4432a" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_b47fb23b-e7fb-4341-a788-5919c3ec300a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_f42404ad-6fa2-4d9c-97fe-4d525ae9b618" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_3eddea02-4031-4ab9-ae74-cd2ecaa4432a" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_f42404ad-6fa2-4d9c-97fe-4d525ae9b618" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_ce154da3-2f4c-41f9-9e42-764ea7748b54" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_3eddea02-4031-4ab9-ae74-cd2ecaa4432a" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_ce154da3-2f4c-41f9-9e42-764ea7748b54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_20623663-baa0-4171-8463-da1b3a05812b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_3eddea02-4031-4ab9-ae74-cd2ecaa4432a" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_20623663-baa0-4171-8463-da1b3a05812b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_71e6d3ac-fa5c-4825-bacd-df2357657a7a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_0de1af13-ab77-4e20-9d6d-d9ed3ac51a14" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_71e6d3ac-fa5c-4825-bacd-df2357657a7a" xlink:to="loc_us-gaap_AccountsPayableCurrent_0de1af13-ab77-4e20-9d6d-d9ed3ac51a14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_6bb4b484-cfd7-4c8e-b7ba-f154a902bd15" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_71e6d3ac-fa5c-4825-bacd-df2357657a7a" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_6bb4b484-cfd7-4c8e-b7ba-f154a902bd15" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_7a6c1762-a759-4860-8b28-0f9823ca1af9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_71e6d3ac-fa5c-4825-bacd-df2357657a7a" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_7a6c1762-a759-4860-8b28-0f9823ca1af9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_1c792315-4fe9-4e9c-8e0d-8df5a690087c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_71e6d3ac-fa5c-4825-bacd-df2357657a7a" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_1c792315-4fe9-4e9c-8e0d-8df5a690087c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_b1a86c17-b343-4b15-a175-2727288f4d19" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_71e6d3ac-fa5c-4825-bacd-df2357657a7a" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_b1a86c17-b343-4b15-a175-2727288f4d19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_a6238560-a0a2-4636-940e-487338582e79" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_62813d6a-9ad2-4479-92db-056cf6e0b9a0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_a6238560-a0a2-4636-940e-487338582e79" xlink:to="loc_us-gaap_AssetsCurrent_62813d6a-9ad2-4479-92db-056cf6e0b9a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_6cac791e-7eec-4963-83ef-35ccc521c9d7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_a6238560-a0a2-4636-940e-487338582e79" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_6cac791e-7eec-4963-83ef-35ccc521c9d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_498e45b8-5e45-498f-97c5-0c52b17e99f1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_a6238560-a0a2-4636-940e-487338582e79" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_498e45b8-5e45-498f-97c5-0c52b17e99f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_595337e8-f285-4d06-a4bd-9074fe9dee2b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_a6238560-a0a2-4636-940e-487338582e79" xlink:to="loc_us-gaap_Goodwill_595337e8-f285-4d06-a4bd-9074fe9dee2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_5240d5dd-7314-4948-a24c-9819faee72c7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_a6238560-a0a2-4636-940e-487338582e79" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_5240d5dd-7314-4948-a24c-9819faee72c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_a8312c6a-9142-4a0b-9a63-72fc4de54b09" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_a6238560-a0a2-4636-940e-487338582e79" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_a8312c6a-9142-4a0b-9a63-72fc4de54b09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_045a9d3d-a4ef-476d-9859-bdceff9771db" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_4be7bda0-7bd0-40c1-88b3-710d80699dc4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_045a9d3d-a4ef-476d-9859-bdceff9771db" xlink:to="loc_us-gaap_PreferredStockValue_4be7bda0-7bd0-40c1-88b3-710d80699dc4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_88302d95-419f-46f4-a670-4d66f4b8a02f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_045a9d3d-a4ef-476d-9859-bdceff9771db" xlink:to="loc_us-gaap_CommonStockValue_88302d95-419f-46f4-a670-4d66f4b8a02f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_e1c8f2c5-cb1a-4ab6-a0a5-a501af29d788" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_045a9d3d-a4ef-476d-9859-bdceff9771db" xlink:to="loc_us-gaap_AdditionalPaidInCapital_e1c8f2c5-cb1a-4ab6-a0a5-a501af29d788" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_32e81243-294c-42ea-bc51-a9cb859e3451" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_045a9d3d-a4ef-476d-9859-bdceff9771db" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_32e81243-294c-42ea-bc51-a9cb859e3451" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_b8eda0db-a2b8-4339-8f70-02f52ca476ee" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_045a9d3d-a4ef-476d-9859-bdceff9771db" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_b8eda0db-a2b8-4339-8f70-02f52ca476ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_1359b692-ced9-4572-b815-96a88638ba6c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_045a9d3d-a4ef-476d-9859-bdceff9771db" xlink:to="loc_us-gaap_TreasuryStockValue_1359b692-ced9-4572-b815-96a88638ba6c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsofIncomeLossUnaudited" xlink:type="simple" xlink:href="nx-20230430.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_c85629a1-65cb-4cea-b501-aaceebf8734b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_f4c80554-f437-422e-a8cc-f0332a19a886" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_c85629a1-65cb-4cea-b501-aaceebf8734b" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_f4c80554-f437-422e-a8cc-f0332a19a886" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_05fc66a2-54e7-4138-ac8c-a0933f7d08ff" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_c85629a1-65cb-4cea-b501-aaceebf8734b" xlink:to="loc_us-gaap_CostOfRevenue_05fc66a2-54e7-4138-ac8c-a0933f7d08ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_422e9d0d-c653-42bd-98d3-106f5a878e4e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_c85629a1-65cb-4cea-b501-aaceebf8734b" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_422e9d0d-c653-42bd-98d3-106f5a878e4e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_0c4f9108-c612-4f74-9703-7961e368c2d6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_c85629a1-65cb-4cea-b501-aaceebf8734b" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_0c4f9108-c612-4f74-9703-7961e368c2d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperations_3b2143e4-fc51-492b-8a81-7928a0b0f452" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_f678ad7f-ea7c-4c44-b728-ff12399e8aa5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_3b2143e4-fc51-492b-8a81-7928a0b0f452" xlink:to="loc_us-gaap_OperatingIncomeLoss_f678ad7f-ea7c-4c44-b728-ff12399e8aa5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_bfc09285-4b5b-4018-ad4d-e8a2682d1e60" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_3b2143e4-fc51-492b-8a81-7928a0b0f452" xlink:to="loc_us-gaap_InterestExpense_bfc09285-4b5b-4018-ad4d-e8a2682d1e60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_a3599e24-b213-435f-b3e4-9a8e1078d6fd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_3b2143e4-fc51-492b-8a81-7928a0b0f452" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_a3599e24-b213-435f-b3e4-9a8e1078d6fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_51c0d147-746e-45f6-8a1f-d971ef772660" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperations_eb8f592a-4c66-4b28-b084-d9e6e604484a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_51c0d147-746e-45f6-8a1f-d971ef772660" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperations_eb8f592a-4c66-4b28-b084-d9e6e604484a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_f533009c-fb7f-4228-9595-2e8d86f985f0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_51c0d147-746e-45f6-8a1f-d971ef772660" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_f533009c-fb7f-4228-9595-2e8d86f985f0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsofComprehensiveIncomeLossUnaudited" xlink:type="simple" xlink:href="nx-20230430.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_ComprehensiveIncomeNetOfTax_fac3bc19-dc3b-42d8-acaf-caf534c6a5d7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_89f847d9-d390-4fe4-94cc-b3555c49eee2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_fac3bc19-dc3b-42d8-acaf-caf534c6a5d7" xlink:to="loc_us-gaap_NetIncomeLoss_89f847d9-d390-4fe4-94cc-b3555c49eee2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_3a15b87a-4e8f-4889-b49e-4f32539a057d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_fac3bc19-dc3b-42d8-acaf-caf534c6a5d7" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_3a15b87a-4e8f-4889-b49e-4f32539a057d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_efecaf4d-a42e-495d-ab58-01e4ce0faa6c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_93673680-d692-4a1d-9da3-9179e1536ad2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_efecaf4d-a42e-495d-ab58-01e4ce0faa6c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_93673680-d692-4a1d-9da3-9179e1536ad2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/CondensedConsolidatedStatementsofCashFlowUnaudited" xlink:type="simple" xlink:href="nx-20230430.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_2009d778-4c52-47f1-8b4b-b6d5268afb01" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_e8e6e7b7-8214-4c48-a963-236a0efe0dc8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfLinesOfCredit"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_2009d778-4c52-47f1-8b4b-b6d5268afb01" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_e8e6e7b7-8214-4c48-a963-236a0efe0dc8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_135209c5-3a4b-4ad8-a41f-767f09ab41a6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_2009d778-4c52-47f1-8b4b-b6d5268afb01" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_135209c5-3a4b-4ad8-a41f-767f09ab41a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_7cf960ef-538d-4c59-b2ed-0fb8de280dab" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_2009d778-4c52-47f1-8b4b-b6d5268afb01" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_7cf960ef-538d-4c59-b2ed-0fb8de280dab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_6adc01ab-69af-40d7-b199-b25a943b50a5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_2009d778-4c52-47f1-8b4b-b6d5268afb01" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_6adc01ab-69af-40d7-b199-b25a943b50a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_5000878b-894b-401b-af9f-dca80bcddc92" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_2009d778-4c52-47f1-8b4b-b6d5268afb01" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_5000878b-894b-401b-af9f-dca80bcddc92" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_3c2c0412-7270-4b24-8a47-ced7ce6d6eb7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromLinesOfCredit"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_2009d778-4c52-47f1-8b4b-b6d5268afb01" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_3c2c0412-7270-4b24-8a47-ced7ce6d6eb7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_e9e48f8a-5c22-4925-a43c-561070078d0c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_2009d778-4c52-47f1-8b4b-b6d5268afb01" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_e9e48f8a-5c22-4925-a43c-561070078d0c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_688e1c98-55b1-4c11-97f3-877ff1772102" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_2009d778-4c52-47f1-8b4b-b6d5268afb01" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_688e1c98-55b1-4c11-97f3-877ff1772102" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_aaebdd7a-53e1-476e-bad3-ebdd560e209d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_e09210f9-1bc3-4287-bb86-bc4ca2b77875" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_aaebdd7a-53e1-476e-bad3-ebdd560e209d" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_e09210f9-1bc3-4287-bb86-bc4ca2b77875" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_3f7fb11b-10fb-4463-bdfe-b49991ca4521" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_aaebdd7a-53e1-476e-bad3-ebdd560e209d" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_3f7fb11b-10fb-4463-bdfe-b49991ca4521" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_e63765fc-9c69-4d2c-a42c-8fc70a90adc8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_aaebdd7a-53e1-476e-bad3-ebdd560e209d" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_e63765fc-9c69-4d2c-a42c-8fc70a90adc8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c4686b8c-c4e9-4e33-94cb-5afecb2f8a6d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_92fbd295-3164-4a08-b077-98cc43a7e098" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_c4686b8c-c4e9-4e33-94cb-5afecb2f8a6d" xlink:to="loc_us-gaap_ProfitLoss_92fbd295-3164-4a08-b077-98cc43a7e098" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_99f33df1-b3b0-434b-8892-c57cb7b330fa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_c4686b8c-c4e9-4e33-94cb-5afecb2f8a6d" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_99f33df1-b3b0-434b-8892-c57cb7b330fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_0b71cede-500d-4d02-8a7d-bae3dc49bfe0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_c4686b8c-c4e9-4e33-94cb-5afecb2f8a6d" xlink:to="loc_us-gaap_ShareBasedCompensation_0b71cede-500d-4d02-8a7d-bae3dc49bfe0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_b1cedd89-06a9-4750-b2aa-fd7cadc090d6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_c4686b8c-c4e9-4e33-94cb-5afecb2f8a6d" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_b1cedd89-06a9-4750-b2aa-fd7cadc090d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_42d07ebd-1634-4573-aedf-3f79bd935dd6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_c4686b8c-c4e9-4e33-94cb-5afecb2f8a6d" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_42d07ebd-1634-4573-aedf-3f79bd935dd6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable_12c17941-9c0d-4d8d-b1d0-0bc4ecd807fb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_c4686b8c-c4e9-4e33-94cb-5afecb2f8a6d" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable_12c17941-9c0d-4d8d-b1d0-0bc4ecd807fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_602150ce-2092-4f48-ba25-aae1d1be3de8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_c4686b8c-c4e9-4e33-94cb-5afecb2f8a6d" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_602150ce-2092-4f48-ba25-aae1d1be3de8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_de9da5db-3abe-4001-bba3-71ecea76724c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_c4686b8c-c4e9-4e33-94cb-5afecb2f8a6d" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_de9da5db-3abe-4001-bba3-71ecea76724c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_ea05fe7d-8a6e-480a-913f-db2479bbbe43" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_c4686b8c-c4e9-4e33-94cb-5afecb2f8a6d" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_ea05fe7d-8a6e-480a-913f-db2479bbbe43" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_112e312c-27f2-4d9f-9254-93e5c81e082a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_c4686b8c-c4e9-4e33-94cb-5afecb2f8a6d" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_112e312c-27f2-4d9f-9254-93e5c81e082a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_4867c61a-df9e-4638-89be-270786e64647" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_c4686b8c-c4e9-4e33-94cb-5afecb2f8a6d" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_4867c61a-df9e-4638-89be-270786e64647" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPensionAndPostretirementObligations_46a8b843-880a-4f00-833d-bddc170512db" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_c4686b8c-c4e9-4e33-94cb-5afecb2f8a6d" xlink:to="loc_us-gaap_IncreaseDecreaseInPensionAndPostretirementObligations_46a8b843-880a-4f00-833d-bddc170512db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_6399a938-2110-4cfc-a5f7-a9596e0445b7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_c4686b8c-c4e9-4e33-94cb-5afecb2f8a6d" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_6399a938-2110-4cfc-a5f7-a9596e0445b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_1806ca4b-5add-4078-82f3-f86661883835" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_c4686b8c-c4e9-4e33-94cb-5afecb2f8a6d" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_1806ca4b-5add-4078-82f3-f86661883835" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_4ce93b95-3575-4481-959d-61639bc7cb6e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_047aac3a-fb6d-4f2a-83d6-cb8ba87559ca" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_4ce93b95-3575-4481-959d-61639bc7cb6e" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_047aac3a-fb6d-4f2a-83d6-cb8ba87559ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a3293fe2-d03c-4447-b8ed-c4a41f593d4c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_4ce93b95-3575-4481-959d-61639bc7cb6e" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a3293fe2-d03c-4447-b8ed-c4a41f593d4c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b8b01bcc-9775-4c5c-a2c3-497c7c284d88" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_4ce93b95-3575-4481-959d-61639bc7cb6e" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b8b01bcc-9775-4c5c-a2c3-497c7c284d88" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9e7c87d7-a7a8-4eb5-bbb5-b087465ea2ba" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_4ce93b95-3575-4481-959d-61639bc7cb6e" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9e7c87d7-a7a8-4eb5-bbb5-b087465ea2ba" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/InventoriesDetail" xlink:type="simple" xlink:href="nx-20230430.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_ce831ff4-4981-4ff1-ad1f-19904ef7dbf2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterials_0af8acf5-0d24-42c1-a0f1-c4944b0052e4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ce831ff4-4981-4ff1-ad1f-19904ef7dbf2" xlink:to="loc_us-gaap_InventoryRawMaterials_0af8acf5-0d24-42c1-a0f1-c4944b0052e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsAndWorkInProcess_9217b954-898f-416b-bf66-bd0838439b8c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ce831ff4-4981-4ff1-ad1f-19904ef7dbf2" xlink:to="loc_us-gaap_InventoryFinishedGoodsAndWorkInProcess_9217b954-898f-416b-bf66-bd0838439b8c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInventorySupplies_e7774ff2-57e6-4eb5-8403-3593d37b1671" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ce831ff4-4981-4ff1-ad1f-19904ef7dbf2" xlink:to="loc_us-gaap_OtherInventorySupplies_e7774ff2-57e6-4eb5-8403-3593d37b1671" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_7467db3f-6396-4e67-a333-3ba112b9b374" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryGross_e6b97021-97e5-4455-a739-c880a0aec5a9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_7467db3f-6396-4e67-a333-3ba112b9b374" xlink:to="loc_us-gaap_InventoryGross_e6b97021-97e5-4455-a739-c880a0aec5a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryValuationReserves_2b4db37c-55a9-49c9-a08d-f8aee42ca86b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_7467db3f-6396-4e67-a333-3ba112b9b374" xlink:to="loc_us-gaap_InventoryValuationReserves_2b4db37c-55a9-49c9-a08d-f8aee42ca86b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/LeasesLeaseRelatedAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="nx-20230430.xsd#LeasesLeaseRelatedAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/LeasesLeaseRelatedAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_nx_LeasesLiability_3febd4ed-6957-47cd-ac8a-621a3877a632" xlink:href="nx-20230430.xsd#nx_LeasesLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_ac5d32d4-96a9-4247-9223-4916bb0ffdfd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_LeasesLiability_3febd4ed-6957-47cd-ac8a-621a3877a632" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_ac5d32d4-96a9-4247-9223-4916bb0ffdfd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_13a0b631-2aa5-48b0-9b27-9825bb8d3dde" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinanceLeaseLiabilityCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_LeasesLiability_3febd4ed-6957-47cd-ac8a-621a3877a632" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_13a0b631-2aa5-48b0-9b27-9825bb8d3dde" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_29eac2c4-affa-41f1-ba81-7ab5ad3992c3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_LeasesLiability_3febd4ed-6957-47cd-ac8a-621a3877a632" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_29eac2c4-affa-41f1-ba81-7ab5ad3992c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_70b7aaec-1c7e-456b-9b8c-e074c6ce71f2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinanceLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_LeasesLiability_3febd4ed-6957-47cd-ac8a-621a3877a632" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_70b7aaec-1c7e-456b-9b8c-e074c6ce71f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_LeasesRightofUseAsset_a2c0891b-a5ea-49e4-a04b-bb9d93ba568e" xlink:href="nx-20230430.xsd#nx_LeasesRightofUseAsset"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_b07e26c0-3960-4c3e-8e2c-97a178f2cc6a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_LeasesRightofUseAsset_a2c0891b-a5ea-49e4-a04b-bb9d93ba568e" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_b07e26c0-3960-4c3e-8e2c-97a178f2cc6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAsset_55c80162-3d8c-4519-a593-7403563e6b2f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinanceLeaseRightOfUseAsset"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_LeasesRightofUseAsset_a2c0891b-a5ea-49e4-a04b-bb9d93ba568e" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAsset_55c80162-3d8c-4519-a593-7403563e6b2f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/LeasesPresentMaturityofLeaseLiabilitiesDetails" xlink:type="simple" xlink:href="nx-20230430.xsd#LeasesPresentMaturityofLeaseLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/LeasesPresentMaturityofLeaseLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_0434b258-14d2-48a1-aaa7-5550b0926eac" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_425394cf-dca8-421a-8afb-8df3470df047" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_0434b258-14d2-48a1-aaa7-5550b0926eac" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_425394cf-dca8-421a-8afb-8df3470df047" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_043ea8ec-94de-4cb2-972f-8f36a8e26eae" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_0434b258-14d2-48a1-aaa7-5550b0926eac" xlink:to="loc_us-gaap_OperatingLeaseLiability_043ea8ec-94de-4cb2-972f-8f36a8e26eae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_37a57dbb-456c-4681-928e-05839954bd3d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_fb5b7d64-6010-411d-8534-0d3f8fb7cf99" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_37a57dbb-456c-4681-928e-05839954bd3d" xlink:to="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_fb5b7d64-6010-411d-8534-0d3f8fb7cf99" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_bc87e283-ccb2-4925-afa1-d619a0b051cd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinanceLeaseLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_37a57dbb-456c-4681-928e-05839954bd3d" xlink:to="loc_us-gaap_FinanceLeaseLiability_bc87e283-ccb2-4925-afa1-d619a0b051cd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/LeasesPresentMaturityofLeaseLiabilitiesDetails_1" xlink:type="simple" xlink:href="nx-20230430.xsd#LeasesPresentMaturityofLeaseLiabilitiesDetails_1"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/LeasesPresentMaturityofLeaseLiabilitiesDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_e840b5e3-f1a2-497e-9c9c-9db88ca9d0c6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_211a6806-9a43-4955-b6e3-f51935e212eb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_e840b5e3-f1a2-497e-9c9c-9db88ca9d0c6" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_211a6806-9a43-4955-b6e3-f51935e212eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_6200f429-9bfc-4f56-99be-820d97305fb7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_e840b5e3-f1a2-497e-9c9c-9db88ca9d0c6" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_6200f429-9bfc-4f56-99be-820d97305fb7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_0057def3-67b6-4b9f-b56f-5541d5f491a0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_e840b5e3-f1a2-497e-9c9c-9db88ca9d0c6" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_0057def3-67b6-4b9f-b56f-5541d5f491a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_70866cbf-6f69-4b72-8548-d97bad112594" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_e840b5e3-f1a2-497e-9c9c-9db88ca9d0c6" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_70866cbf-6f69-4b72-8548-d97bad112594" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_f1e4a5e0-508b-4a03-869e-51cd0ed24e26" xlink:href="nx-20230430.xsd#nx_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_e840b5e3-f1a2-497e-9c9c-9db88ca9d0c6" xlink:to="loc_nx_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_f1e4a5e0-508b-4a03-869e-51cd0ed24e26" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_15e849aa-1e62-481f-a59c-46873c7e08dd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_e840b5e3-f1a2-497e-9c9c-9db88ca9d0c6" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_15e849aa-1e62-481f-a59c-46873c7e08dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_0f1c0c99-4919-4de9-a75c-0e2c819ff3e8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_d7a5b36d-6710-4688-af58-cc012fe11ebb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_0f1c0c99-4919-4de9-a75c-0e2c819ff3e8" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsRemainderOfFiscalYear_d7a5b36d-6710-4688-af58-cc012fe11ebb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_2b6109f2-9a1a-4c75-bf45-88e9fcd1f1a7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_0f1c0c99-4919-4de9-a75c-0e2c819ff3e8" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_2b6109f2-9a1a-4c75-bf45-88e9fcd1f1a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_12e134f5-0721-47cd-8fa6-3b583ceb83cc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_0f1c0c99-4919-4de9-a75c-0e2c819ff3e8" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_12e134f5-0721-47cd-8fa6-3b583ceb83cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_743f02c2-ee55-43c1-b469-4eda1dfcd926" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_0f1c0c99-4919-4de9-a75c-0e2c819ff3e8" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_743f02c2-ee55-43c1-b469-4eda1dfcd926" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityToBePaidAfterYearFour_b7ada6bf-18cf-464b-85a1-303c2134f5d0" xlink:href="nx-20230430.xsd#nx_FinanceLeaseLiabilityToBePaidAfterYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_0f1c0c99-4919-4de9-a75c-0e2c819ff3e8" xlink:to="loc_nx_FinanceLeaseLiabilityToBePaidAfterYearFour_b7ada6bf-18cf-464b-85a1-303c2134f5d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_7a417ea4-5a92-423a-bfb2-e127c34353e9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_0f1c0c99-4919-4de9-a75c-0e2c819ff3e8" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_7a417ea4-5a92-423a-bfb2-e127c34353e9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/GoodwillandIntangibleAssetsIdentifiableIntangibleAssetsDetails" xlink:type="simple" xlink:href="nx-20230430.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_76a6c38f-3e86-428c-9148-dce01eb7b22e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_227d9095-c773-4224-8460-2546e3f1b849" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_76a6c38f-3e86-428c-9148-dce01eb7b22e" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_227d9095-c773-4224-8460-2546e3f1b849" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_8183717e-96ee-4d52-a8ee-086ca4842421" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_76a6c38f-3e86-428c-9148-dce01eb7b22e" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_8183717e-96ee-4d52-a8ee-086ca4842421" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_95f63167-62d7-4d0c-b789-24e02bbb9a60" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_76a6c38f-3e86-428c-9148-dce01eb7b22e" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_95f63167-62d7-4d0c-b789-24e02bbb9a60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_92423a70-7ed5-4802-b2a4-8f6f2293794e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_76a6c38f-3e86-428c-9148-dce01eb7b22e" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_92423a70-7ed5-4802-b2a4-8f6f2293794e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_8bed0bbe-10f9-4800-887a-78bc84cf3fb6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_76a6c38f-3e86-428c-9148-dce01eb7b22e" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_8bed0bbe-10f9-4800-887a-78bc84cf3fb6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearFour_9d5ede4e-1126-435b-aaa6-1635753392bf" xlink:href="nx-20230430.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_76a6c38f-3e86-428c-9148-dce01eb7b22e" xlink:to="loc_nx_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearFour_9d5ede4e-1126-435b-aaa6-1635753392bf" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtandFinanceLeaseObligationsDetails" xlink:type="simple" xlink:href="nx-20230430.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_adcf8a17-76c4-4e97-88a8-aace3cbb7118" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtAndCapitalLeaseObligations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_f5ca42f0-9187-4838-9a02-d23cedf17828" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_adcf8a17-76c4-4e97-88a8-aace3cbb7118" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_f5ca42f0-9187-4838-9a02-d23cedf17828" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_218162c4-752f-4db0-abd6-9eb27164c060" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_adcf8a17-76c4-4e97-88a8-aace3cbb7118" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_218162c4-752f-4db0-abd6-9eb27164c060" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/RetirementPlansDetail" xlink:type="simple" xlink:href="nx-20230430.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_dd9d86af-b912-45fb-a5b4-424859181bad" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_64eee129-4924-4254-ae53-41dc17353ee3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_dd9d86af-b912-45fb-a5b4-424859181bad" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_64eee129-4924-4254-ae53-41dc17353ee3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_e755d944-35a5-43cc-b26a-cfcd86ff49cd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_dd9d86af-b912-45fb-a5b4-424859181bad" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_e755d944-35a5-43cc-b26a-cfcd86ff49cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_bcbd6ba6-d9ed-41af-b003-70a1cd7d1e67" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_dd9d86af-b912-45fb-a5b4-424859181bad" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_bcbd6ba6-d9ed-41af-b003-70a1cd7d1e67" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_9c9a7635-9160-41de-a7a4-26d795e1c414" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_dd9d86af-b912-45fb-a5b4-424859181bad" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_9c9a7635-9160-41de-a7a4-26d795e1c414" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/OthernetDetails" xlink:type="simple" xlink:href="nx-20230430.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_5b16a0bb-07ea-4a11-bb9c-534b8357d8e2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNonoperatingGainsLosses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_24cce858-d709-4977-a2f2-94fda21932ba" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingGainsLosses_5b16a0bb-07ea-4a11-bb9c-534b8357d8e2" xlink:to="loc_us-gaap_InvestmentIncomeInterest_24cce858-d709-4977-a2f2-94fda21932ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonrecurringIncomeExpense_fe707e01-b4fb-410f-a234-264f96c8860a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNonrecurringIncomeExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingGainsLosses_5b16a0bb-07ea-4a11-bb9c-534b8357d8e2" xlink:to="loc_us-gaap_OtherNonrecurringIncomeExpense_fe707e01-b4fb-410f-a234-264f96c8860a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_3a2e91e3-cc31-4b90-9293-1dd1785c490d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeignCurrencyTransactionGainLossBeforeTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingGainsLosses_5b16a0bb-07ea-4a11-bb9c-534b8357d8e2" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_3a2e91e3-cc31-4b90-9293-1dd1785c490d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstruments_85490e26-e48f-4d73-954d-9c0933ec65a4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainLossOnForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstruments"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingGainsLosses_5b16a0bb-07ea-4a11-bb9c-534b8357d8e2" xlink:to="loc_us-gaap_GainLossOnForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstruments_85490e26-e48f-4d73-954d-9c0933ec65a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_PensionServiceBenefit_05480922-fc2e-432c-934a-ee2b3364bb8b" xlink:href="nx-20230430.xsd#nx_PensionServiceBenefit"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingGainsLosses_5b16a0bb-07ea-4a11-bb9c-534b8357d8e2" xlink:to="loc_nx_PensionServiceBenefit_05480922-fc2e-432c-934a-ee2b3364bb8b" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
