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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2023 Workiva-->
<!--r:7390cb22-561e-42f6-b6c3-2e199a006883,g:ffb9028e-4460-49f5-bfe1-bfff74e0905e-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ConsolidatedBalanceSheets" xlink:type="simple" xlink:href="nx-20231031.xsd#ConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_d599cc7a-5d4b-4e45-af28-d00649745817" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_c8a33c06-5e52-453b-95fa-c048db1892e0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_d599cc7a-5d4b-4e45-af28-d00649745817" xlink:to="loc_us-gaap_PreferredStockValue_c8a33c06-5e52-453b-95fa-c048db1892e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_984b1bd4-0b46-4aae-b2b8-4b0e1f2ed346" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_d599cc7a-5d4b-4e45-af28-d00649745817" xlink:to="loc_us-gaap_CommonStockValue_984b1bd4-0b46-4aae-b2b8-4b0e1f2ed346" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_46d79991-1162-44e8-9824-e35f25433fd9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_d599cc7a-5d4b-4e45-af28-d00649745817" xlink:to="loc_us-gaap_AdditionalPaidInCapital_46d79991-1162-44e8-9824-e35f25433fd9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_507b436b-60a8-47ac-82d5-87180ceb5436" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_d599cc7a-5d4b-4e45-af28-d00649745817" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_507b436b-60a8-47ac-82d5-87180ceb5436" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_9c1c5b0c-3ce7-4de5-b3e9-da11ea04f2b7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_d599cc7a-5d4b-4e45-af28-d00649745817" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_9c1c5b0c-3ce7-4de5-b3e9-da11ea04f2b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_02e1e0f0-911f-4645-9e57-8fe7d30d792e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_d599cc7a-5d4b-4e45-af28-d00649745817" xlink:to="loc_us-gaap_TreasuryStockValue_02e1e0f0-911f-4645-9e57-8fe7d30d792e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_cb17e6f0-5b40-4d01-a63a-b87717a7b9be" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_8e0f0be0-2ce9-4a93-b1df-54c3a058ed8a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_cb17e6f0-5b40-4d01-a63a-b87717a7b9be" xlink:to="loc_us-gaap_AccountsPayableCurrent_8e0f0be0-2ce9-4a93-b1df-54c3a058ed8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_c7b5381e-7446-4d86-9b8a-a559179d1caf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_cb17e6f0-5b40-4d01-a63a-b87717a7b9be" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_c7b5381e-7446-4d86-9b8a-a559179d1caf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_defa9ef0-2475-4866-b541-22da22d55395" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_cb17e6f0-5b40-4d01-a63a-b87717a7b9be" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_defa9ef0-2475-4866-b541-22da22d55395" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_40caf3e9-0143-4ba3-8f60-ea651db83b89" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_cb17e6f0-5b40-4d01-a63a-b87717a7b9be" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_40caf3e9-0143-4ba3-8f60-ea651db83b89" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_dc8ae3d9-fdb5-4480-a028-ef0cc12b575e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_cb17e6f0-5b40-4d01-a63a-b87717a7b9be" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_dc8ae3d9-fdb5-4480-a028-ef0cc12b575e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_de7c7fc4-4f93-4466-bcf8-67f9e2d980f0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_b8619182-0864-43bf-811e-a189b827f00e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_de7c7fc4-4f93-4466-bcf8-67f9e2d980f0" xlink:to="loc_us-gaap_LiabilitiesCurrent_b8619182-0864-43bf-811e-a189b827f00e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_cb003600-600a-4cfb-9280-0e83589136ec" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_de7c7fc4-4f93-4466-bcf8-67f9e2d980f0" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_cb003600-600a-4cfb-9280-0e83589136ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_f18ac860-5e02-4025-9ab5-e2cfb6696315" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_de7c7fc4-4f93-4466-bcf8-67f9e2d980f0" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_f18ac860-5e02-4025-9ab5-e2cfb6696315" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_af585aba-9634-4520-a843-8528dbacb708" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_de7c7fc4-4f93-4466-bcf8-67f9e2d980f0" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_af585aba-9634-4520-a843-8528dbacb708" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_f57a67c6-b858-4b1b-9af7-4778d3362a63" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_de7c7fc4-4f93-4466-bcf8-67f9e2d980f0" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_f57a67c6-b858-4b1b-9af7-4778d3362a63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_51ecee39-958c-4c73-bb64-0afc77c0d72f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilityForUncertainTaxPositionsNoncurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_de7c7fc4-4f93-4466-bcf8-67f9e2d980f0" xlink:to="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_51ecee39-958c-4c73-bb64-0afc77c0d72f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_9cce5f1a-f1e7-4dec-8c68-4832ebe75848" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_de7c7fc4-4f93-4466-bcf8-67f9e2d980f0" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_9cce5f1a-f1e7-4dec-8c68-4832ebe75848" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_0cf1103b-3eb0-4985-b6fd-3b5145e3b29b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_ae446926-568d-440d-83b9-e02dd2b91ca1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_0cf1103b-3eb0-4985-b6fd-3b5145e3b29b" xlink:to="loc_us-gaap_InventoryNet_ae446926-568d-440d-83b9-e02dd2b91ca1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_57c307a1-2317-4d67-9329-d3a83a0e4d24" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_0cf1103b-3eb0-4985-b6fd-3b5145e3b29b" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_57c307a1-2317-4d67-9329-d3a83a0e4d24" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_abb22002-beb5-43dc-9431-432dced912ec" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_0cf1103b-3eb0-4985-b6fd-3b5145e3b29b" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_abb22002-beb5-43dc-9431-432dced912ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_f163b003-7fd3-490f-a28b-2777556e5d01" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_0cf1103b-3eb0-4985-b6fd-3b5145e3b29b" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_f163b003-7fd3-490f-a28b-2777556e5d01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReceivable_b6d19b55-4a3f-4da9-8bef-331fd3b54d84" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxReceivable"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_0cf1103b-3eb0-4985-b6fd-3b5145e3b29b" xlink:to="loc_us-gaap_IncomeTaxReceivable_b6d19b55-4a3f-4da9-8bef-331fd3b54d84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_b3ce049b-ab25-41b4-ad23-fc709f4d0a76" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_69e0ccdf-166c-4008-b20b-f0230e8ddba4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_b3ce049b-ab25-41b4-ad23-fc709f4d0a76" xlink:to="loc_us-gaap_Liabilities_69e0ccdf-166c-4008-b20b-f0230e8ddba4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_47615222-5bfd-4344-982d-040be6cbe951" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_b3ce049b-ab25-41b4-ad23-fc709f4d0a76" xlink:to="loc_us-gaap_StockholdersEquity_47615222-5bfd-4344-982d-040be6cbe951" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_6ba05d3a-8cfe-40bc-811b-cedd7446a846" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_2ebe5dd8-7ce3-4ceb-8e57-1bfa5e380f06" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_6ba05d3a-8cfe-40bc-811b-cedd7446a846" xlink:to="loc_us-gaap_AssetsCurrent_2ebe5dd8-7ce3-4ceb-8e57-1bfa5e380f06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_a06d1649-399f-4ec6-9a3e-074e220df765" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_6ba05d3a-8cfe-40bc-811b-cedd7446a846" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_a06d1649-399f-4ec6-9a3e-074e220df765" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_6244c084-e5fd-4afd-b932-1c3a36b2b870" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_6ba05d3a-8cfe-40bc-811b-cedd7446a846" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_6244c084-e5fd-4afd-b932-1c3a36b2b870" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_21712784-82fd-4ef3-8b4f-45abe81b3fab" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_6ba05d3a-8cfe-40bc-811b-cedd7446a846" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_21712784-82fd-4ef3-8b4f-45abe81b3fab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_dd709aec-9388-4f83-a938-5de599a023b2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_6ba05d3a-8cfe-40bc-811b-cedd7446a846" xlink:to="loc_us-gaap_Goodwill_dd709aec-9388-4f83-a938-5de599a023b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_aa28175d-5dde-4e0c-9bfe-481c8f244e6e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_6ba05d3a-8cfe-40bc-811b-cedd7446a846" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_aa28175d-5dde-4e0c-9bfe-481c8f244e6e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsofIncomeLoss" xlink:type="simple" xlink:href="nx-20231031.xsd#ConsolidatedStatementsofIncomeLoss"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsofIncomeLoss" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_1e86cd86-e345-403e-84f0-3b8cf84cb5e4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_e0b5cd8e-c350-481a-ad3c-8e63c77a22d5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_1e86cd86-e345-403e-84f0-3b8cf84cb5e4" xlink:to="loc_us-gaap_OperatingIncomeLoss_e0b5cd8e-c350-481a-ad3c-8e63c77a22d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_4d4bbc6a-6af3-4ac5-8c5b-b882f66308cb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_1e86cd86-e345-403e-84f0-3b8cf84cb5e4" xlink:to="loc_us-gaap_InterestExpense_4d4bbc6a-6af3-4ac5-8c5b-b882f66308cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_ca87687a-9e49-4a23-86a3-15c137a9c293" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_1e86cd86-e345-403e-84f0-3b8cf84cb5e4" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_ca87687a-9e49-4a23-86a3-15c137a9c293" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_e5049722-21e8-429d-8494-be90f3ec062d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_6648bba7-9e8f-4732-87c8-30ec20b32fc6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_e5049722-21e8-429d-8494-be90f3ec062d" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_6648bba7-9e8f-4732-87c8-30ec20b32fc6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_bb709079-c489-4ec3-8c1f-996e6c440be7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringCharges"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_e5049722-21e8-429d-8494-be90f3ec062d" xlink:to="loc_us-gaap_RestructuringCharges_bb709079-c489-4ec3-8c1f-996e6c440be7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_511b5a59-c892-4a0c-b77b-9ad68a5b38f3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_e5049722-21e8-429d-8494-be90f3ec062d" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_511b5a59-c892-4a0c-b77b-9ad68a5b38f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_16489d64-b921-4175-b08c-c40d4bb95f9b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Revenues"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_e5049722-21e8-429d-8494-be90f3ec062d" xlink:to="loc_us-gaap_Revenues_16489d64-b921-4175-b08c-c40d4bb95f9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_91230c40-3238-48d7-8e2c-2dc75229ea3a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_e5049722-21e8-429d-8494-be90f3ec062d" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_91230c40-3238-48d7-8e2c-2dc75229ea3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_2e1ac55b-6c48-40dc-9743-87e98684437e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_0e95ff76-41ae-4c2a-beab-14b5c219dd80" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_2e1ac55b-6c48-40dc-9743-87e98684437e" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_0e95ff76-41ae-4c2a-beab-14b5c219dd80" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_37953991-0a77-4923-bb68-b60f00de5586" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_2e1ac55b-6c48-40dc-9743-87e98684437e" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_37953991-0a77-4923-bb68-b60f00de5586" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss" xlink:type="simple" xlink:href="nx-20231031.xsd#ConsolidatedStatementsofComprehensiveIncomeLoss"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_df05a7bc-8a69-4d6b-91fd-f4e9da03f8d0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_a686da86-619a-4cd0-84dc-2b611e1b54dd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_df05a7bc-8a69-4d6b-91fd-f4e9da03f8d0" xlink:to="loc_us-gaap_NetIncomeLoss_a686da86-619a-4cd0-84dc-2b611e1b54dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_4c66b10b-d675-4a49-98f7-a20c4a706bab" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_df05a7bc-8a69-4d6b-91fd-f4e9da03f8d0" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_4c66b10b-d675-4a49-98f7-a20c4a706bab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_132be44f-16c5-4a3c-a03b-4dd8fddd743c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_617fcef3-c86b-4a2a-aa2b-033ab0d061b9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_132be44f-16c5-4a3c-a03b-4dd8fddd743c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentBeforeTax_617fcef3-c86b-4a2a-aa2b-033ab0d061b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_4c0b3edb-5e81-474b-8fef-ebeaf044a653" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_132be44f-16c5-4a3c-a03b-4dd8fddd743c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_4c0b3edb-5e81-474b-8fef-ebeaf044a653" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansTax_60cff2d3-0d52-4faf-b324-e4ed145c4dc1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_132be44f-16c5-4a3c-a03b-4dd8fddd743c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansTax_60cff2d3-0d52-4faf-b324-e4ed145c4dc1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsofCashFlow" xlink:type="simple" xlink:href="nx-20231031.xsd#ConsolidatedStatementsofCashFlow"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/ConsolidatedStatementsofCashFlow" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_411810ce-ed63-48f4-a2b0-ac2e647269f3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f07155c6-2b4f-47c4-97e9-0dccc5320084" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_411810ce-ed63-48f4-a2b0-ac2e647269f3" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f07155c6-2b4f-47c4-97e9-0dccc5320084" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_b4ce11ae-407a-46ee-8d72-86ce4d57b8ad" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_411810ce-ed63-48f4-a2b0-ac2e647269f3" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_b4ce11ae-407a-46ee-8d72-86ce4d57b8ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_fbbdfe8e-fb88-4281-b020-5a1426e4c611" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_411810ce-ed63-48f4-a2b0-ac2e647269f3" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_fbbdfe8e-fb88-4281-b020-5a1426e4c611" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_49404557-1b0f-4848-b850-a0fd6b148050" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_411810ce-ed63-48f4-a2b0-ac2e647269f3" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_49404557-1b0f-4848-b850-a0fd6b148050" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ecc41e79-ceec-48dc-912f-bac0af65f1d3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_23cb850f-0899-4d92-b7ed-da0da9773b86" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_ecc41e79-ceec-48dc-912f-bac0af65f1d3" xlink:to="loc_us-gaap_ProfitLoss_23cb850f-0899-4d92-b7ed-da0da9773b86" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAmortizationAndAccretionNet_c0069822-b87e-47a3-8393-0f5fa7a4820c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DepreciationAmortizationAndAccretionNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ecc41e79-ceec-48dc-912f-bac0af65f1d3" xlink:to="loc_us-gaap_DepreciationAmortizationAndAccretionNet_c0069822-b87e-47a3-8393-0f5fa7a4820c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_0f34d354-afbc-47b2-b314-6484a95a6007" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ecc41e79-ceec-48dc-912f-bac0af65f1d3" xlink:to="loc_us-gaap_GainLossOnSaleOfPropertyPlantEquipment_0f34d354-afbc-47b2-b314-6484a95a6007" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_a705b47f-f3cd-4ab9-8aad-ee897b5dca12" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ecc41e79-ceec-48dc-912f-bac0af65f1d3" xlink:to="loc_us-gaap_ShareBasedCompensation_a705b47f-f3cd-4ab9-8aad-ee897b5dca12" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_bad8bada-8732-4d54-b463-e92759a4f2cf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ecc41e79-ceec-48dc-912f-bac0af65f1d3" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_bad8bada-8732-4d54-b463-e92759a4f2cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingIncomeExpenseNet_5799654b-b67a-4544-a215-f6e13210a21a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherOperatingIncomeExpenseNet"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ecc41e79-ceec-48dc-912f-bac0af65f1d3" xlink:to="loc_us-gaap_OtherOperatingIncomeExpenseNet_5799654b-b67a-4544-a215-f6e13210a21a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable_dcb0735f-cffc-4e22-81aa-84abfd054687" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ecc41e79-ceec-48dc-912f-bac0af65f1d3" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsAndNotesReceivable_dcb0735f-cffc-4e22-81aa-84abfd054687" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_bce835c6-20ef-4fd5-aba4-6afe457cf945" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ecc41e79-ceec-48dc-912f-bac0af65f1d3" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_bce835c6-20ef-4fd5-aba4-6afe457cf945" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_fc0c15cc-58b9-4294-b950-56807ed01229" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ecc41e79-ceec-48dc-912f-bac0af65f1d3" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_fc0c15cc-58b9-4294-b950-56807ed01229" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_4588918e-fdac-465c-99a1-c2a0217bca92" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ecc41e79-ceec-48dc-912f-bac0af65f1d3" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_4588918e-fdac-465c-99a1-c2a0217bca92" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_dafac6b9-fa1f-4f60-82e7-ec1e27dc3a1d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ecc41e79-ceec-48dc-912f-bac0af65f1d3" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_dafac6b9-fa1f-4f60-82e7-ec1e27dc3a1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_c2948cf1-e6a1-42bf-81ee-130b02980b61" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ecc41e79-ceec-48dc-912f-bac0af65f1d3" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_c2948cf1-e6a1-42bf-81ee-130b02980b61" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPensionAndPostretirementObligations_74722985-4b61-4765-9a60-e7eeeed6252f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInPensionAndPostretirementObligations"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ecc41e79-ceec-48dc-912f-bac0af65f1d3" xlink:to="loc_us-gaap_IncreaseDecreaseInPensionAndPostretirementObligations_74722985-4b61-4765-9a60-e7eeeed6252f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_0c76e720-db52-451f-8358-f91d44790a8d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ecc41e79-ceec-48dc-912f-bac0af65f1d3" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_0c76e720-db52-451f-8358-f91d44790a8d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_7505a90c-ca89-406c-bc8c-4baa89bb867f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ecc41e79-ceec-48dc-912f-bac0af65f1d3" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_7505a90c-ca89-406c-bc8c-4baa89bb867f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_c8000629-2332-49b7-9252-301122c30078" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_37e0df9f-3b61-4c3a-af5c-e19a582a86f8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_c8000629-2332-49b7-9252-301122c30078" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_37e0df9f-3b61-4c3a-af5c-e19a582a86f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_6913013c-b775-4d48-aca8-5c0575225893" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_c8000629-2332-49b7-9252-301122c30078" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_6913013c-b775-4d48-aca8-5c0575225893" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_423c3466-238f-41ad-ae6d-d137a3e7bd8d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_c8000629-2332-49b7-9252-301122c30078" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_423c3466-238f-41ad-ae6d-d137a3e7bd8d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6529ec79-a817-4f06-9711-be92c5135930" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_d06e305d-fd12-499f-8187-0087d0d9fa0b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_6529ec79-a817-4f06-9711-be92c5135930" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_d06e305d-fd12-499f-8187-0087d0d9fa0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_edc5e586-5c2d-43b6-b272-2d40b1551cce" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_6529ec79-a817-4f06-9711-be92c5135930" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_edc5e586-5c2d-43b6-b272-2d40b1551cce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_8d1e9ca4-c627-4b08-bdbc-d55940acf003" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6529ec79-a817-4f06-9711-be92c5135930" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_8d1e9ca4-c627-4b08-bdbc-d55940acf003" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_8c613aac-64aa-4815-b319-518bb5dccb3e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6529ec79-a817-4f06-9711-be92c5135930" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_8c613aac-64aa-4815-b319-518bb5dccb3e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_40773d90-f3d2-4492-bb3c-ec5dadd63d1a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6529ec79-a817-4f06-9711-be92c5135930" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_40773d90-f3d2-4492-bb3c-ec5dadd63d1a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_be52eac0-9d53-4aab-b61c-d8722896ac36" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6529ec79-a817-4f06-9711-be92c5135930" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_be52eac0-9d53-4aab-b61c-d8722896ac36" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_1646a1fd-2824-4a94-9277-ff2e15b56c9b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6529ec79-a817-4f06-9711-be92c5135930" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_1646a1fd-2824-4a94-9277-ff2e15b56c9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_3650b362-363e-4b2b-8dfb-0fc8fe78406a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_6529ec79-a817-4f06-9711-be92c5135930" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_3650b362-363e-4b2b-8dfb-0fc8fe78406a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/ReceivablesAllowanceDetails" xlink:type="simple" xlink:href="nx-20231031.xsd#ReceivablesAllowanceDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/ReceivablesAllowanceDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableGrossCurrent_469ba92c-2e30-47a6-94d2-bf4ad36db925" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsReceivableGrossCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherReceivablesGrossCurrent_39b95d3c-da08-40a6-85ad-b4e0c6cfe663" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherReceivablesGrossCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableGrossCurrent_469ba92c-2e30-47a6-94d2-bf4ad36db925" xlink:to="loc_us-gaap_OtherReceivablesGrossCurrent_39b95d3c-da08-40a6-85ad-b4e0c6cfe663" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherReceivables_cd3be5f8-e839-45d7-bec7-417fcd8fd729" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherReceivables"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableGrossCurrent_469ba92c-2e30-47a6-94d2-bf4ad36db925" xlink:to="loc_us-gaap_OtherReceivables_cd3be5f8-e839-45d7-bec7-417fcd8fd729" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_5d597e8f-f7ea-4dc9-9505-96dae9ac8887" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableGrossCurrent_49b6df9b-519e-455e-a8dd-1a1972fbf241" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsReceivableGrossCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableNetCurrent_5d597e8f-f7ea-4dc9-9505-96dae9ac8887" xlink:to="loc_us-gaap_AccountsReceivableGrossCurrent_49b6df9b-519e-455e-a8dd-1a1972fbf241" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_c4f5c634-b9a3-4194-8fba-2d6113624c63" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableNetCurrent_5d597e8f-f7ea-4dc9-9505-96dae9ac8887" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_c4f5c634-b9a3-4194-8fba-2d6113624c63" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/InventoriesDetail" xlink:type="simple" xlink:href="nx-20231031.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_89c716be-f265-42dc-983c-80223383703c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryGross_ea001bf0-2f62-476a-9a6e-6d19109bc690" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_89c716be-f265-42dc-983c-80223383703c" xlink:to="loc_us-gaap_InventoryGross_ea001bf0-2f62-476a-9a6e-6d19109bc690" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryValuationReserves_c3d1ad34-bd7d-47a1-b818-105bc8141da5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_89c716be-f265-42dc-983c-80223383703c" xlink:to="loc_us-gaap_InventoryValuationReserves_c3d1ad34-bd7d-47a1-b818-105bc8141da5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryGross_6cbeb5e1-1259-4877-b74d-85390cb019de" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InventoryGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterials_919fcf26-9456-47cf-b9ef-d7a0a9620e25" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_6cbeb5e1-1259-4877-b74d-85390cb019de" xlink:to="loc_us-gaap_InventoryRawMaterials_919fcf26-9456-47cf-b9ef-d7a0a9620e25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsAndWorkInProcess_4e644d3c-9bb2-404e-b0a7-758c4ec91dd0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_6cbeb5e1-1259-4877-b74d-85390cb019de" xlink:to="loc_us-gaap_InventoryFinishedGoodsAndWorkInProcess_4e644d3c-9bb2-404e-b0a7-758c4ec91dd0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInventorySupplies_1f83ebef-bba6-423f-9e4e-107d3ec4716b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_6cbeb5e1-1259-4877-b74d-85390cb019de" xlink:to="loc_us-gaap_OtherInventorySupplies_1f83ebef-bba6-423f-9e4e-107d3ec4716b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/PropertyPlantandEquipmentDetails" xlink:type="simple" xlink:href="nx-20231031.xsd#PropertyPlantandEquipmentDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/PropertyPlantandEquipmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_005c869e-7e1b-44eb-9fd7-b4a771f846a3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LandAndLandImprovements_3d601963-4188-42d1-a553-093c386e8b67" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LandAndLandImprovements"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_005c869e-7e1b-44eb-9fd7-b4a771f846a3" xlink:to="loc_us-gaap_LandAndLandImprovements_3d601963-4188-42d1-a553-093c386e8b67" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BuildingsAndImprovementsGross_9410d71e-327a-4add-8708-da18a01574de" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BuildingsAndImprovementsGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_005c869e-7e1b-44eb-9fd7-b4a771f846a3" xlink:to="loc_us-gaap_BuildingsAndImprovementsGross_9410d71e-327a-4add-8708-da18a01574de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MachineryAndEquipmentGross_cfc020a1-32a6-4e33-9c6f-4dae59ff77d0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MachineryAndEquipmentGross"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_005c869e-7e1b-44eb-9fd7-b4a771f846a3" xlink:to="loc_us-gaap_MachineryAndEquipmentGross_cfc020a1-32a6-4e33-9c6f-4dae59ff77d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConstructionInProgressGross_34e2f4b1-3e18-48a6-956a-3ed4934e5f06" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConstructionInProgressGross"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentGross_005c869e-7e1b-44eb-9fd7-b4a771f846a3" xlink:to="loc_us-gaap_ConstructionInProgressGross_34e2f4b1-3e18-48a6-956a-3ed4934e5f06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_f7adf412-eb38-4b27-8318-597a46d019f3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_7e5441dc-0372-4be4-8d40-2f87f7dcfe05" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_f7adf412-eb38-4b27-8318-597a46d019f3" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_7e5441dc-0372-4be4-8d40-2f87f7dcfe05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_d50ad234-ac27-4dfa-b04d-bc57d39b883f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_f7adf412-eb38-4b27-8318-597a46d019f3" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_d50ad234-ac27-4dfa-b04d-bc57d39b883f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/LeasesDetails" xlink:type="simple" xlink:href="nx-20231031.xsd#LeasesDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/LeasesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_97c880b4-5b6a-4522-b29c-42c9830c68a2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_7de12f96-9102-4a2d-9ec3-77c1b2aed1d0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_97c880b4-5b6a-4522-b29c-42c9830c68a2" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_7de12f96-9102-4a2d-9ec3-77c1b2aed1d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_fc37643e-79f7-4469-88cb-f1435a0171b9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_97c880b4-5b6a-4522-b29c-42c9830c68a2" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_fc37643e-79f7-4469-88cb-f1435a0171b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_9a60a514-ff46-4ffd-b81c-0aa665c8ee84" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_97c880b4-5b6a-4522-b29c-42c9830c68a2" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_9a60a514-ff46-4ffd-b81c-0aa665c8ee84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_fd2a0f24-606e-4e54-af8f-469f5e3da8a1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_97c880b4-5b6a-4522-b29c-42c9830c68a2" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_fd2a0f24-606e-4e54-af8f-469f5e3da8a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_f506ed70-0fe5-4cce-a472-ded3abe02897" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_97c880b4-5b6a-4522-b29c-42c9830c68a2" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_f506ed70-0fe5-4cce-a472-ded3abe02897" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_909daa68-66d0-40ab-ad2e-84a6780c11cd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_97c880b4-5b6a-4522-b29c-42c9830c68a2" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_909daa68-66d0-40ab-ad2e-84a6780c11cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_d449e1b1-a21e-4c57-b275-97546366b5a2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_73bc44b9-a8ff-4425-914f-5d7a88bffb68" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_d449e1b1-a21e-4c57-b275-97546366b5a2" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_73bc44b9-a8ff-4425-914f-5d7a88bffb68" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_9403620d-7a9e-470c-94d2-4bdaee78d513" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_d449e1b1-a21e-4c57-b275-97546366b5a2" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_9403620d-7a9e-470c-94d2-4bdaee78d513" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_5f4864f5-0d42-4640-921f-f0414c5942e8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_d449e1b1-a21e-4c57-b275-97546366b5a2" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_5f4864f5-0d42-4640-921f-f0414c5942e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_17d132ef-dc6c-4a47-b9d0-0623e5ed8269" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_d449e1b1-a21e-4c57-b275-97546366b5a2" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_17d132ef-dc6c-4a47-b9d0-0623e5ed8269" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_4772cd09-3bc9-4add-a8b5-62f0e9f13046" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_d449e1b1-a21e-4c57-b275-97546366b5a2" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_4772cd09-3bc9-4add-a8b5-62f0e9f13046" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_fdbb080c-405c-4ad7-a79a-dbc006cb3766" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_d449e1b1-a21e-4c57-b275-97546366b5a2" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_fdbb080c-405c-4ad7-a79a-dbc006cb3766" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/LeasesDetails_1" xlink:type="simple" xlink:href="nx-20231031.xsd#LeasesDetails_1"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/LeasesDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_2361a8cc-d977-4f12-9e2f-e66489b04250" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_573238be-4066-4279-9923-d800fbfd9d19" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_2361a8cc-d977-4f12-9e2f-e66489b04250" xlink:to="loc_us-gaap_FinanceLeaseLiability_573238be-4066-4279-9923-d800fbfd9d19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_373cd6e4-d943-447f-b580-89e093e8be63" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_2361a8cc-d977-4f12-9e2f-e66489b04250" xlink:to="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_373cd6e4-d943-447f-b580-89e093e8be63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_5a5c48b9-4cfd-4860-acde-3788a6b3cba3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_0bbdd4be-b504-4503-9c32-eb0333d5264d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_5a5c48b9-4cfd-4860-acde-3788a6b3cba3" xlink:to="loc_us-gaap_OperatingLeaseLiability_0bbdd4be-b504-4503-9c32-eb0333d5264d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_c9236737-1983-4867-b02f-3d488e766a51" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_5a5c48b9-4cfd-4860-acde-3788a6b3cba3" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_c9236737-1983-4867-b02f-3d488e766a51" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/GoodwillandIntangibleAssetsDetail" xlink:type="simple" xlink:href="nx-20231031.xsd#GoodwillandIntangibleAssetsDetail"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/GoodwillandIntangibleAssetsDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_54631e87-e762-405d-bb39-879d537865c9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_951ea93b-ab20-4319-8ebe-eee734535a3f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_54631e87-e762-405d-bb39-879d537865c9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_951ea93b-ab20-4319-8ebe-eee734535a3f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_30c60f6e-e995-4eea-907e-f8319f40e770" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_54631e87-e762-405d-bb39-879d537865c9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_30c60f6e-e995-4eea-907e-f8319f40e770" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_2bd646db-8d1a-4773-8222-2b1ab9c6d966" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_54631e87-e762-405d-bb39-879d537865c9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_2bd646db-8d1a-4773-8222-2b1ab9c6d966" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_20ed642b-5713-408b-8742-1d363f32dba9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_54631e87-e762-405d-bb39-879d537865c9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_20ed642b-5713-408b-8742-1d363f32dba9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_dee001f2-765c-4493-8d68-fd42370f6e2c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_54631e87-e762-405d-bb39-879d537865c9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_dee001f2-765c-4493-8d68-fd42370f6e2c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_ebc1fec9-6aa1-4154-8992-e2b21319c335" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_54631e87-e762-405d-bb39-879d537865c9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_ebc1fec9-6aa1-4154-8992-e2b21319c335" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/AccruedLiabilitiesDetails" xlink:type="simple" xlink:href="nx-20231031.xsd#AccruedLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/AccruedLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_186873a9-b4ff-4dda-b7ee-441ee244ae99" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedLiabilitiesCurrentAndNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_Accruedotherbusinesstaxes_9ab78ca5-4fcb-4962-bd7d-6dbede2dd314" xlink:href="nx-20231031.xsd#nx_Accruedotherbusinesstaxes"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_186873a9-b4ff-4dda-b7ee-441ee244ae99" xlink:to="loc_nx_Accruedotherbusinesstaxes_9ab78ca5-4fcb-4962-bd7d-6dbede2dd314" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductWarrantyAccrualClassifiedCurrent_c72c3bb6-a335-4819-868b-a6ce6ccce6bc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProductWarrantyAccrualClassifiedCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_186873a9-b4ff-4dda-b7ee-441ee244ae99" xlink:to="loc_us-gaap_ProductWarrantyAccrualClassifiedCurrent_c72c3bb6-a335-4819-868b-a6ce6ccce6bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherEmployeeRelatedLiabilitiesCurrent_f3603f5f-ee40-424b-84c8-4ce339cdbc9a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherEmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_186873a9-b4ff-4dda-b7ee-441ee244ae99" xlink:to="loc_us-gaap_OtherEmployeeRelatedLiabilitiesCurrent_f3603f5f-ee40-424b-84c8-4ce339cdbc9a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_0dc3b588-15cf-417c-9b75-841a3100af04" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_186873a9-b4ff-4dda-b7ee-441ee244ae99" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_0dc3b588-15cf-417c-9b75-841a3100af04" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredRevenueCurrent_5ec4467e-7396-4fea-a6a8-29408e1e8b7d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredRevenueCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_186873a9-b4ff-4dda-b7ee-441ee244ae99" xlink:to="loc_us-gaap_DeferredRevenueCurrent_5ec4467e-7396-4fea-a6a8-29408e1e8b7d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerRefundLiabilityCurrent_03f5c882-1f53-48e4-8c67-47833328c01f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CustomerRefundLiabilityCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_186873a9-b4ff-4dda-b7ee-441ee244ae99" xlink:to="loc_us-gaap_CustomerRefundLiabilityCurrent_03f5c882-1f53-48e4-8c67-47833328c01f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedProfessionalFeesCurrent_ae687693-3b92-4ca2-9504-8cb4177a5f39" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedProfessionalFeesCurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_186873a9-b4ff-4dda-b7ee-441ee244ae99" xlink:to="loc_us-gaap_AccruedProfessionalFeesCurrent_ae687693-3b92-4ca2-9504-8cb4177a5f39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationLiabilityCurrent_9356c5b5-383f-4d2d-92e0-99e02bfaa2be" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredCompensationLiabilityCurrent"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_186873a9-b4ff-4dda-b7ee-441ee244ae99" xlink:to="loc_us-gaap_DeferredCompensationLiabilityCurrent_9356c5b5-383f-4d2d-92e0-99e02bfaa2be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_4236d08e-fa6b-437a-bec0-e8022a4f9807" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_186873a9-b4ff-4dda-b7ee-441ee244ae99" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_4236d08e-fa6b-437a-bec0-e8022a4f9807" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtandCapitalLeaseObligationsScheduleofDebtObligationsDetails" xlink:type="simple" xlink:href="nx-20231031.xsd#DebtandCapitalLeaseObligationsScheduleofDebtObligationsDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/DebtandCapitalLeaseObligationsScheduleofDebtObligationsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndCapitalLeaseObligations_9dd24191-6625-488d-8507-bb475db499a1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtAndCapitalLeaseObligations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_9389b755-5496-46c2-9a30-012da60da699" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_9dd24191-6625-488d-8507-bb475db499a1" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_9389b755-5496-46c2-9a30-012da60da699" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_240eb165-ce2b-45d2-99e7-cdbeffd67833" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_9dd24191-6625-488d-8507-bb475db499a1" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_240eb165-ce2b-45d2-99e7-cdbeffd67833" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtandCapitalLeaseObligationsScheduleofDebtMaturitiesDetails" xlink:type="simple" xlink:href="nx-20231031.xsd#DebtandCapitalLeaseObligationsScheduleofDebtMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/DebtandCapitalLeaseObligationsScheduleofDebtMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo_5d31032a-9bb7-4d7f-aebc-1073c613e481" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearTwo_a9d9bccf-d544-4377-b477-7b917094b25d" xlink:href="nx-20231031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearTwo"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo_5d31032a-9bb7-4d7f-aebc-1073c613e481" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearTwo_a9d9bccf-d544-4377-b477-7b917094b25d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_2f74df19-8bac-4f97-beb0-b87322ffc1a4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo_5d31032a-9bb7-4d7f-aebc-1073c613e481" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_2f74df19-8bac-4f97-beb0-b87322ffc1a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive_569d892c-4ecb-427c-8a35-628f51ccc939" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFive_b2cd1e44-6c91-44ad-b353-939e4f3326ec" xlink:href="nx-20231031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFive"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive_569d892c-4ecb-427c-8a35-628f51ccc939" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFive_b2cd1e44-6c91-44ad-b353-939e4f3326ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_ab97182b-8981-4e20-abcc-5e4fbe61eb6e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive_569d892c-4ecb-427c-8a35-628f51ccc939" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_ab97182b-8981-4e20-abcc-5e4fbe61eb6e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour_a05edc67-1ec4-495d-9205-204cddeac35b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_fd0c89e5-50fc-4180-8a10-9a2588716f76" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour_a05edc67-1ec4-495d-9205-204cddeac35b" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_fd0c89e5-50fc-4180-8a10-9a2588716f76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFour_23d66a25-83ac-406b-8444-0ce9fd847ccb" xlink:href="nx-20231031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFour"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour_a05edc67-1ec4-495d-9205-204cddeac35b" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFour_23d66a25-83ac-406b-8444-0ce9fd847ccb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndCapitalLeaseObligations_cbc84226-06d7-40ad-aaca-17f185412059" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtAndCapitalLeaseObligations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_bfb05de0-a347-41b5-915c-132d417bab04" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_cbc84226-06d7-40ad-aaca-17f185412059" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_bfb05de0-a347-41b5-915c-132d417bab04" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_d5e529c8-531b-49c7-a173-cd4f95628c1e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_cbc84226-06d7-40ad-aaca-17f185412059" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_d5e529c8-531b-49c7-a173-cd4f95628c1e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_ae93fcc3-0466-49da-b8dc-de83ab981fd4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_cbc84226-06d7-40ad-aaca-17f185412059" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_ae93fcc3-0466-49da-b8dc-de83ab981fd4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_97b407f6-fec5-428a-be57-38eeb20404dc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_cbc84226-06d7-40ad-aaca-17f185412059" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_97b407f6-fec5-428a-be57-38eeb20404dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_1c8f20ff-372a-403b-8181-3134ab893a53" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_cbc84226-06d7-40ad-aaca-17f185412059" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_1c8f20ff-372a-403b-8181-3134ab893a53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_b495de9a-91f4-4488-897a-ce0b1a6684b4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtAndCapitalLeaseObligations_cbc84226-06d7-40ad-aaca-17f185412059" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_b495de9a-91f4-4488-897a-ce0b1a6684b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_ccfb8557-602a-43aa-9c54-1d5f3843c8ce" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtLongtermAndShorttermCombinedAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree_4a8bc568-372c-48b2-85df-f50d9f6cb1ba" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_ccfb8557-602a-43aa-9c54-1d5f3843c8ce" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree_4a8bc568-372c-48b2-85df-f50d9f6cb1ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive_d2544cf5-ffa3-47d7-9e70-bf02cb3667c3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_ccfb8557-602a-43aa-9c54-1d5f3843c8ce" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive_d2544cf5-ffa3-47d7-9e70-bf02cb3667c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo_59783773-cf7a-4087-b837-01740fdb5fb6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_ccfb8557-602a-43aa-9c54-1d5f3843c8ce" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo_59783773-cf7a-4087-b837-01740fdb5fb6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive_d0bb9215-da83-4084-9a18-2564da26d650" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_ccfb8557-602a-43aa-9c54-1d5f3843c8ce" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive_d0bb9215-da83-4084-9a18-2564da26d650" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour_7d156886-3ab3-4c6c-86df-d8d9889b77b7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_ccfb8557-602a-43aa-9c54-1d5f3843c8ce" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour_7d156886-3ab3-4c6c-86df-d8d9889b77b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths_7494f8bc-17fa-487e-84ce-f49b46897230" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_ccfb8557-602a-43aa-9c54-1d5f3843c8ce" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths_7494f8bc-17fa-487e-84ce-f49b46897230" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid_7980122c-4f2d-4430-8c98-e1a40e165f85" xlink:href="nx-20231031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligations_ee2b9bc1-e204-4917-bf24-f784c13b365b" xlink:href="nx-20231031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligations"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid_7980122c-4f2d-4430-8c98-e1a40e165f85" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligations_ee2b9bc1-e204-4917-bf24-f784c13b365b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive_f448cb7a-a842-4d6d-9c51-b211d15eedbb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_dae4f6ab-e69d-491d-980e-ce83cf8f7216" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive_f448cb7a-a842-4d6d-9c51-b211d15eedbb" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_dae4f6ab-e69d-491d-980e-ce83cf8f7216" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidAfterYearFive_3542dad8-6961-485a-9861-a147ee3f8ce3" xlink:href="nx-20231031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidAfterYearFive"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive_f448cb7a-a842-4d6d-9c51-b211d15eedbb" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidAfterYearFive_3542dad8-6961-485a-9861-a147ee3f8ce3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_LongTermDebtAndCapitalLeaseObligationsGross_6810b1b2-11ca-4e76-984b-d1366ad26a4c" xlink:href="nx-20231031.xsd#nx_LongTermDebtAndCapitalLeaseObligationsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree_f1df6e3e-fb2c-462a-b7a8-5a8bab58364d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_LongTermDebtAndCapitalLeaseObligationsGross_6810b1b2-11ca-4e76-984b-d1366ad26a4c" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree_f1df6e3e-fb2c-462a-b7a8-5a8bab58364d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive_0c6858bf-2f52-46a2-92c9-d3899c8e3d89" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_LongTermDebtAndCapitalLeaseObligationsGross_6810b1b2-11ca-4e76-984b-d1366ad26a4c" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive_0c6858bf-2f52-46a2-92c9-d3899c8e3d89" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo_b05ba5b1-aaa7-4bd6-a725-b2b2c85f5f98" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_LongTermDebtAndCapitalLeaseObligationsGross_6810b1b2-11ca-4e76-984b-d1366ad26a4c" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo_b05ba5b1-aaa7-4bd6-a725-b2b2c85f5f98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive_cf256560-e74e-4cce-890b-953a88b6ff41" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_LongTermDebtAndCapitalLeaseObligationsGross_6810b1b2-11ca-4e76-984b-d1366ad26a4c" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalAfterYearFive_cf256560-e74e-4cce-890b-953a88b6ff41" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour_e4f194c3-71c4-4f3f-ad7e-5429323bbae3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_LongTermDebtAndCapitalLeaseObligationsGross_6810b1b2-11ca-4e76-984b-d1366ad26a4c" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour_e4f194c3-71c4-4f3f-ad7e-5429323bbae3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths_d5714a75-1e44-4ab8-aa9c-b7ad1f2d2d85" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_LongTermDebtAndCapitalLeaseObligationsGross_6810b1b2-11ca-4e76-984b-d1366ad26a4c" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths_d5714a75-1e44-4ab8-aa9c-b7ad1f2d2d85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths_297cccf4-03a5-4f20-a8e9-3f9866d21b5e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearOne_ddf664e0-d68a-402e-a07f-eb1a3e29e448" xlink:href="nx-20231031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearOne"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths_297cccf4-03a5-4f20-a8e9-3f9866d21b5e" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearOne_ddf664e0-d68a-402e-a07f-eb1a3e29e448" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_ab0f27ac-d516-4b4e-b585-fd3b13d6ee8b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsRepaymentsOfPrincipalInNextTwelveMonths_297cccf4-03a5-4f20-a8e9-3f9866d21b5e" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_ab0f27ac-d516-4b4e-b585-fd3b13d6ee8b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree_ec28b9bc-6050-4458-855b-f6c372228867" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearThree_0cba2b8b-7485-4d88-a96f-a15c5a92c547" xlink:href="nx-20231031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearThree"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree_ec28b9bc-6050-4458-855b-f6c372228867" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearThree_0cba2b8b-7485-4d88-a96f-a15c5a92c547" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_694b106c-2182-4f0e-8fc7-9cd13defdbac" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree_ec28b9bc-6050-4458-855b-f6c372228867" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_694b106c-2182-4f0e-8fc7-9cd13defdbac" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/DebtandCapitalLeaseObligationsScheduleofDebtMaturitiesDetails_1" xlink:type="simple" xlink:href="nx-20231031.xsd#DebtandCapitalLeaseObligationsScheduleofDebtMaturitiesDetails_1"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/DebtandCapitalLeaseObligationsScheduleofDebtMaturitiesDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid_8c98dfd4-1bb6-4401-80bc-58f858ede9e8" xlink:href="nx-20231031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearThree_beb0d43b-4bb0-42bd-bc67-aededc3ce5b5" xlink:href="nx-20231031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearThree"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid_8c98dfd4-1bb6-4401-80bc-58f858ede9e8" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearThree_beb0d43b-4bb0-42bd-bc67-aededc3ce5b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFive_1a11bd2f-bc4e-479e-8716-80359b9b24b1" xlink:href="nx-20231031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFive"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid_8c98dfd4-1bb6-4401-80bc-58f858ede9e8" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFive_1a11bd2f-bc4e-479e-8716-80359b9b24b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearOne_688c3b5c-ac56-4353-b23f-9c54ab43e820" xlink:href="nx-20231031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearOne"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid_8c98dfd4-1bb6-4401-80bc-58f858ede9e8" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearOne_688c3b5c-ac56-4353-b23f-9c54ab43e820" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearTwo_6d95cad9-7115-49a9-b5d8-b4dc489c6c4b" xlink:href="nx-20231031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearTwo"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid_8c98dfd4-1bb6-4401-80bc-58f858ede9e8" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearTwo_6d95cad9-7115-49a9-b5d8-b4dc489c6c4b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidAfterYearFive_f848992c-f2b9-4339-9231-ea66631baf66" xlink:href="nx-20231031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidAfterYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid_8c98dfd4-1bb6-4401-80bc-58f858ede9e8" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidAfterYearFive_f848992c-f2b9-4339-9231-ea66631baf66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFour_76c15dde-d27f-46f2-aef9-b59d4a6f2743" xlink:href="nx-20231031.xsd#nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFour"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaid_8c98dfd4-1bb6-4401-80bc-58f858ede9e8" xlink:to="loc_nx_FinanceLeaseLiabilityAndOtherFinancingObligationsToBePaidYearFour_76c15dde-d27f-46f2-aef9-b59d4a6f2743" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/RetirementPlansDetail" xlink:type="simple" xlink:href="nx-20231031.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_d0fba653-16f9-48f2-a262-c6d9c6884732" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_7f3b06ef-4c58-46db-9c8f-26bc8141362f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_d0fba653-16f9-48f2-a262-c6d9c6884732" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_7f3b06ef-4c58-46db-9c8f-26bc8141362f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_8e4e5f44-542e-4d33-8fa2-a1f308a3637e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_d0fba653-16f9-48f2-a262-c6d9c6884732" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_8e4e5f44-542e-4d33-8fa2-a1f308a3637e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_e92fdaf0-6b6d-4610-8047-0c68a2fd0c79" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_d0fba653-16f9-48f2-a262-c6d9c6884732" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_e92fdaf0-6b6d-4610-8047-0c68a2fd0c79" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_809dcefb-1ed5-49be-9188-0854dd94c908" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_d0fba653-16f9-48f2-a262-c6d9c6884732" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_809dcefb-1ed5-49be-9188-0854dd94c908" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_836d77fa-bae9-49af-bc57-8c935ab07d3e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_d0fba653-16f9-48f2-a262-c6d9c6884732" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_836d77fa-bae9-49af-bc57-8c935ab07d3e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent_1c14241a-be9d-4a80-b0de-2a8b5e073b42" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_f430531a-9790-46d5-868a-58ce855de001" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_DefinedBenefitPlanAmortizationofGainslossesNet_238c064f-193a-4f23-b9f5-f9b642e70bad" xlink:href="nx-20231031.xsd#nx_DefinedBenefitPlanAmortizationofGainslossesNet"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_f430531a-9790-46d5-868a-58ce855de001" xlink:to="loc_nx_DefinedBenefitPlanAmortizationofGainslossesNet_238c064f-193a-4f23-b9f5-f9b642e70bad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_65072e1a-50a9-42db-95c5-505be94095bd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_f430531a-9790-46d5-868a-58ce855de001" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_65072e1a-50a9-42db-95c5-505be94095bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeLossNetGainLossBeforeTax_b5f20646-9ead-4cfa-ba60-36232cfb3c33" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeLossNetGainLossBeforeTax"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_f430531a-9790-46d5-868a-58ce855de001" xlink:to="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeLossNetGainLossBeforeTax_b5f20646-9ead-4cfa-ba60-36232cfb3c33" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/IncomeTaxesDetails" xlink:type="simple" xlink:href="nx-20231031.xsd#IncomeTaxesDetails"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/IncomeTaxesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_3c4cd85d-0f4c-434e-8326-ace42cdf8b63" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_df6fec70-1db6-4ac8-a622-e7a8c5301088" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CurrentFederalTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_3c4cd85d-0f4c-434e-8326-ace42cdf8b63" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_df6fec70-1db6-4ac8-a622-e7a8c5301088" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_c2884738-2839-4fc0-bc86-fa91a6ac437c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CurrentStateAndLocalTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_3c4cd85d-0f4c-434e-8326-ace42cdf8b63" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_c2884738-2839-4fc0-bc86-fa91a6ac437c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentForeignTaxExpenseBenefit_a998672f-1f1b-489d-b204-315002449c84" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CurrentForeignTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_3c4cd85d-0f4c-434e-8326-ace42cdf8b63" xlink:to="loc_us-gaap_CurrentForeignTaxExpenseBenefit_a998672f-1f1b-489d-b204-315002449c84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_260b9207-ae4a-4bd8-a5f1-d4cd76ca558d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_12c6acff-4733-4794-bbf9-b0d92c572051" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_260b9207-ae4a-4bd8-a5f1-d4cd76ca558d" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_12c6acff-4733-4794-bbf9-b0d92c572051" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_10bf9842-4589-422d-8ec3-9ebef58c025b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_260b9207-ae4a-4bd8-a5f1-d4cd76ca558d" xlink:to="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_10bf9842-4589-422d-8ec3-9ebef58c025b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_075aba19-219d-40fd-8476-4ebfcdf072f0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredForeignIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_260b9207-ae4a-4bd8-a5f1-d4cd76ca558d" xlink:to="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_075aba19-219d-40fd-8476-4ebfcdf072f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilities_b40ba687-9cf7-44fb-9981-36890f3e8df5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_a842c460-a8c3-4e3a-95c7-c7d95d991f6d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsNet"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_b40ba687-9cf7-44fb-9981-36890f3e8df5" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_a842c460-a8c3-4e3a-95c7-c7d95d991f6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_25ce245a-3235-49a5-9774-ba8a20f205ca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_b40ba687-9cf7-44fb-9981-36890f3e8df5" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_25ce245a-3235-49a5-9774-ba8a20f205ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_4e79f7d9-2ce0-4daa-9b2e-c7ba35da4464" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation_3a040fac-5563-410d-989e-7938930c89f5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_4e79f7d9-2ce0-4daa-9b2e-c7ba35da4464" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation_3a040fac-5563-410d-989e-7938930c89f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_0270ec92-f20a-4dfd-a019-7ef0dcf18123" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_4e79f7d9-2ce0-4daa-9b2e-c7ba35da4464" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_0270ec92-f20a-4dfd-a019-7ef0dcf18123" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions_3d5aa0dc-5c5a-41c8-be6e-d81f5cf2b951" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_4e79f7d9-2ce0-4daa-9b2e-c7ba35da4464" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions_3d5aa0dc-5c5a-41c8-be6e-d81f5cf2b951" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsInventory_6d35d47e-834f-4195-b3b7-41cb4badb972" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsInventory"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_4e79f7d9-2ce0-4daa-9b2e-c7ba35da4464" xlink:to="loc_us-gaap_DeferredTaxAssetsInventory_6d35d47e-834f-4195-b3b7-41cb4badb972" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_314373c9-8532-474d-bcfe-3dc00d986372" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_4e79f7d9-2ce0-4daa-9b2e-c7ba35da4464" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_314373c9-8532-474d-bcfe-3dc00d986372" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseOther_a4c3bf5e-ddbb-4548-a9e9-35e4d730293b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseOther"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_4e79f7d9-2ce0-4daa-9b2e-c7ba35da4464" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseOther_a4c3bf5e-ddbb-4548-a9e9-35e4d730293b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_e3d99c27-2e6c-4a89-8a4e-b0d0abd4a6ad" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_53ec7022-40df-4307-ae3a-7a0a78bb6e90" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_e3d99c27-2e6c-4a89-8a4e-b0d0abd4a6ad" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_53ec7022-40df-4307-ae3a-7a0a78bb6e90" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_2877164d-6684-4a2f-a69f-a39d28c585cc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_e3d99c27-2e6c-4a89-8a4e-b0d0abd4a6ad" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_2877164d-6684-4a2f-a69f-a39d28c585cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_f5faaba0-6847-4383-97f1-1373d288278a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_1870613e-15ef-4b5c-b85e-af4a08ab3d39" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_f5faaba0-6847-4383-97f1-1373d288278a" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_1870613e-15ef-4b5c-b85e-af4a08ab3d39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_a23871db-5241-4ba8-8576-eeb730005cfb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_f5faaba0-6847-4383-97f1-1373d288278a" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_a23871db-5241-4ba8-8576-eeb730005cfb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_15d93f2c-5cca-48fa-9df7-bd8d62d7b646" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_1072242c-09e6-4725-8b02-5a8103690398" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_15d93f2c-5cca-48fa-9df7-bd8d62d7b646" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_1072242c-09e6-4725-8b02-5a8103690398" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssets_9ff02b42-6157-4b78-8270-774cf0cb4953" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_15d93f2c-5cca-48fa-9df7-bd8d62d7b646" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssets_9ff02b42-6157-4b78-8270-774cf0cb4953" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/StockBasedCompensationDetail" xlink:type="simple" xlink:href="nx-20231031.xsd#StockBasedCompensationDetail"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/StockBasedCompensationDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_50f599f4-02e3-4a67-bf35-d705833b3517" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_94e4d787-d781-4e99-b42f-12af60d659fa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_50f599f4-02e3-4a67-bf35-d705833b3517" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_94e4d787-d781-4e99-b42f-12af60d659fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_Incometaxeffect_5b2a9560-560e-4309-8513-c887163642a9" xlink:href="nx-20231031.xsd#nx_Incometaxeffect"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_50f599f4-02e3-4a67-bf35-d705833b3517" xlink:to="loc_nx_Incometaxeffect_5b2a9560-560e-4309-8513-c887163642a9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.quanexbuildingproducts.com/role/OtherIncomeExpenseDetail" xlink:type="simple" xlink:href="nx-20231031.xsd#OtherIncomeExpenseDetail"/>
  <link:calculationLink xlink:role="http://www.quanexbuildingproducts.com/role/OtherIncomeExpenseDetail" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingGainsLosses_407ffe8c-8e11-4e51-a70e-78d5542294e2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNonoperatingGainsLosses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_09603122-8593-45dc-b536-9017fa422212" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_407ffe8c-8e11-4e51-a70e-78d5542294e2" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_09603122-8593-45dc-b536-9017fa422212" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_238babc1-2078-4352-b26b-22d960e87a8e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingGainsLosses_407ffe8c-8e11-4e51-a70e-78d5542294e2" xlink:to="loc_us-gaap_InvestmentIncomeInterest_238babc1-2078-4352-b26b-22d960e87a8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_34e99308-25da-4bde-aecf-4404a1139513" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherNonoperatingGainsLosses_407ffe8c-8e11-4e51-a70e-78d5542294e2" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_34e99308-25da-4bde-aecf-4404a1139513" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstruments_cc3d47de-9694-4dba-860b-9eee5e140a50" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_407ffe8c-8e11-4e51-a70e-78d5542294e2" xlink:to="loc_us-gaap_GainLossOnForeignCurrencyDerivativeInstrumentsNotDesignatedAsHedgingInstruments_cc3d47de-9694-4dba-860b-9eee5e140a50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_nx_PensionServiceBenefit_fbb71bb5-3392-4e65-9b46-cfc0f199ea72" xlink:href="nx-20231031.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_407ffe8c-8e11-4e51-a70e-78d5542294e2" xlink:to="loc_nx_PensionServiceBenefit_fbb71bb5-3392-4e65-9b46-cfc0f199ea72" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
