<?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/ownership" xmlns:ns2="http://www.sec.gov/edgar/common">
    <headerData>
        <submissionType>144</submissionType>
        <filerInfo>
            <filer>
                <filerCredentials>
                    <cik>0001793319</cik>
                    <ccc>XXXXXXXX</ccc>
                </filerCredentials>
            </filer>
            <liveTestFlag>LIVE</liveTestFlag>



        </filerInfo>
    </headerData>
    <formData>
        <issuerInfo>
            <issuerCik>0001423221</issuerCik>
            <issuerName>QUANEX BUILDING PRODUCTS CORP</issuerName>
            <secFileNumber>001-33913</secFileNumber>
            <issuerAddress>
                <ns2:street1>945 Bunker Hill Road, Suite 900</ns2:street1>
                <ns2:city>Houston</ns2:city>
                <ns2:stateOrCountry>TX</ns2:stateOrCountry>
                <ns2:zipCode>77024</ns2:zipCode>
            </issuerAddress>
            <issuerContactPhone>7138775349</issuerContactPhone>
            <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>PAUL CORNETT </nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
            <relationshipsToIssuer>
                <relationshipToIssuer>Officer</relationshipToIssuer>
            </relationshipsToIssuer>
        </issuerInfo>
        <securitiesInformation>
            <securitiesClassTitle>COMMON</securitiesClassTitle>
            <brokerOrMarketmakerDetails>
                <name>Morgan Stanley Smith Barney LLC Executive Financial Services</name>
                <address>
                    <ns2:street1>1 New York Plaza</ns2:street1>
                    <ns2:street2>8th Floor</ns2:street2>
                    <ns2:city>New York</ns2:city>
                    <ns2:stateOrCountry>NY</ns2:stateOrCountry>
                    <ns2:zipCode>10004</ns2:zipCode>
                </address>
            </brokerOrMarketmakerDetails>
            <noOfUnitsSold>5500</noOfUnitsSold>
            <aggregateMarketValue>205590.00</aggregateMarketValue>
            <noOfUnitsOutstanding>33103593</noOfUnitsOutstanding>
            <approxSaleDate>03/20/2024</approxSaleDate>
            <securitiesExchangeName>NYSE</securitiesExchangeName>
        </securitiesInformation>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>03/20/2024</acquiredDate>
            <natureOfAcquisitionTransaction>Exercise of Stock Options</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>5500</amountOfSecuritiesAcquired>
            <paymentDate>03/20/2024</paymentDate>
            <natureOfPayment>Cash</natureOfPayment>
        </securitiesToBeSold>
        <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
        <noticeSignature>
            <noticeDate>03/20/2024</noticeDate>
            <planAdoptionDates>
                <planAdoptionDate>07/01/2021</planAdoptionDate>
            </planAdoptionDates>
            <signature>/s/ Paul Cornett</signature>
        </noticeSignature>
    </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 3316}]
144
0001793319
XXXXXXXX
LIVE
0001423221
QUANEX BUILDING PRODUCTS CORP
001-33913
945 Bunker Hill Road, Suite 900
Houston
TX
77024
7138775349
PAUL CORNETT
Officer
COMMON
Morgan Stanley Smith Barney LLC Executive Financial Services
1 New York Plaza
8th Floor
New York
NY
10004
5500
205590.00
33103593
03/20/2024
NYSE
Common
03/20/2024
Exercise of Stock Options
Issuer
N
5500
03/20/2024
Cash
Y
03/20/2024
07/01/2021
/s/ Paul Cornett