Compare Stocks

4 / 10
Try these comparisons:

Stock Comparison

NWPX vs TREX vs UFPI vs AMWD

Revenue, margins, valuation, and 5-year total return — side by side.

Live fundamentals10-year financials5-year price chart
NWPX
NWPX Infrastructure, Inc.

Manufacturing - Metal Fabrication

IndustrialsNASDAQ • US
Market Cap$1.06B
5Y Perf.+336.3%
TREX
Trex Company, Inc.

Construction

IndustrialsNYSE • US
Market Cap$4.12B
5Y Perf.-34.8%
UFPI
UFP Industries, Inc.

Paper, Lumber & Forest Products

Basic MaterialsNASDAQ • US
Market Cap$4.76B
5Y Perf.+83.4%
AMWD
American Woodmark Corporation

Furnishings, Fixtures & Appliances

Consumer CyclicalNASDAQ • US
Market Cap$576M
5Y Perf.-37.0%

NWPX vs TREX vs UFPI vs AMWD — Key Financials

Market cap, revenue, margins, and valuation side-by-side.

Company Snapshot
NWPX logoNWPX
TREX logoTREX
UFPI logoUFPI
AMWD logoAMWD
IndustryManufacturing - Metal FabricationConstructionPaper, Lumber & Forest ProductsFurnishings, Fixtures & Appliances
Market Cap$1.06B$4.12B$4.76B$576M
Revenue (TTM)$548M$1.18B$6.19B$1.52B
Net Income (TTM)$42M$191M$264M$18M
Gross Margin20.2%39.2%16.6%15.3%
Operating Margin10.6%22.1%5.4%1.9%
Forward P/E25.9x24.0x15.9x16.1x
Total Debt$103M$229M$230M$510M
Cash & Equiv.$2M$4M$925M$48M

NWPX vs TREX vs UFPI vs AMWDLong-Term Stock Performance

Price return indexed to 100 at period start. Dividends excluded.

NWPX
TREX
UFPI
AMWD
StockMay 20May 26Return
NWPX Infrastructure… (NWPX)100436.3+336.3%
Trex Company, Inc. (TREX)10065.2-34.8%
UFP Industries, Inc. (UFPI)100183.4+83.4%
American Woodmark C… (AMWD)10063.0-37.0%

Price return only. Dividends and distributions are not included.

Quick Verdict: NWPX vs TREX vs UFPI vs AMWD

Each card shows where this stock fits in a portfolio — not just who wins on paper.

Bottom line: NWPX leads in 3 of 7 categories, making it the strongest pick for growth and revenue expansion and valuation and capital efficiency. Trex Company, Inc. is the stronger pick specifically for profitability and margin quality and operational efficiency and capital deployment. UFPI also leads in specific categories worth noting. This set spans 3 sectors — these stocks serve different portfolio roles, not just different price points.
NWPX
NWPX Infrastructure, Inc.
The Growth Play

NWPX carries the broadest edge in this set and is the clearest fit for growth exposure and long-term compounding.

  • Rev growth 6.8%, EPS growth 4.7%, 3Y rev CAGR 4.8%
  • 10.4% 10Y total return vs UFPI's 230.6%
  • PEG 1.98 vs TREX's 7.16
  • 6.8% revenue growth vs AMWD's -7.5%
Best for: growth exposure and long-term compounding
TREX
Trex Company, Inc.
The Quality Compounder

TREX is the #2 pick in this set and the best alternative if quality and efficiency is your priority.

  • 16.3% margin vs AMWD's 1.2%
  • 12.3% ROA vs AMWD's 1.2%, ROIC 16.4% vs 7.8%
Best for: quality and efficiency
UFPI
UFP Industries, Inc.
The Income Pick

UFPI is the clearest fit if your priority is income & stability and sleep-well-at-night.

  • Dividend streak 13 yrs, beta 0.92, yield 1.7%
  • Lower volatility, beta 0.92, Low D/E 7.4%, current ratio 4.59x
  • Beta 0.92, yield 1.7%, current ratio 4.59x
  • Beta 0.92 vs AMWD's 1.49, lower leverage
Best for: income & stability and sleep-well-at-night
AMWD
American Woodmark Corporation
The Secondary Option

AMWD lags the leaders in this set but could rank higher in a more targeted comparison.

Best for: consumer cyclical exposure
See the full category breakdown
CategoryWinnerWhy
GrowthNWPX logoNWPX6.8% revenue growth vs AMWD's -7.5%
ValueNWPX logoNWPXPEG 1.98 vs 7.16
Quality / MarginsTREX logoTREX16.3% margin vs AMWD's 1.2%
Stability / SafetyUFPI logoUFPIBeta 0.92 vs AMWD's 1.49, lower leverage
DividendsUFPI logoUFPI1.7% yield; 13-year raise streak; the other 3 pay no meaningful dividend
Momentum (1Y)NWPX logoNWPX+194.1% vs TREX's -30.8%
Efficiency (ROA)TREX logoTREX12.3% ROA vs AMWD's 1.2%, ROIC 16.4% vs 7.8%

NWPX vs TREX vs UFPI vs AMWD — Revenue Breakdown by Segment

How each company's revenue is distributed across its business units

NWPXNWPX Infrastructure, Inc.
FY 2014
Water Transmission
59.1%$239M
Tubular Goods
40.9%$165M
TREXTrex Company, Inc.

Segment breakdown not available.

UFPIUFP Industries, Inc.
FY 2025
Retail
40.3%$2.4B
Site Built
33.2%$2.0B
Industrial
26.5%$1.6B
AMWDAmerican Woodmark Corporation

Segment breakdown not available.

NWPX vs TREX vs UFPI vs AMWD — Financial Metrics

Side-by-side numbers across 4 stocks — who leads on profitability, valuation, growth, and risk.

BEST OVERALLTREXLAGGINGAMWD

Income & Cash Flow (Last 12 Months)

TREX leads this category, winning 4 of 6 comparable metrics.

UFPI is the larger business by revenue, generating $6.2B annually — 11.3x NWPX's $548M. TREX is the more profitable business, keeping 16.3% of every revenue dollar as net income compared to AMWD's 1.2%. On growth, NWPX holds the edge at +19.1% YoY revenue growth, suggesting stronger near-term business momentum.

MetricNWPX logoNWPXNWPX Infrastructu…TREX logoTREXTrex Company, Inc.UFPI logoUFPIUFP Industries, I…AMWD logoAMWDAmerican Woodmark…
RevenueTrailing 12 months$548M$1.2B$6.2B$1.5B
EBITDAEarnings before interest/tax$78M$309M$498M$92M
Net IncomeAfter-tax profit$42M$191M$264M$18M
Free Cash FlowCash after capex$72M$263M$298M$64M
Gross MarginGross profit ÷ Revenue+20.2%+39.2%+16.6%+15.3%
Operating MarginEBIT ÷ Revenue+10.6%+22.1%+5.4%+1.9%
Net MarginNet income ÷ Revenue+7.7%+16.3%+4.3%+1.2%
FCF MarginFCF ÷ Revenue+13.1%+22.3%+4.8%+4.2%
Rev. Growth (YoY)Latest quarter vs prior year+19.1%+1.0%-8.4%-18.4%
EPS Growth (YoY)Latest quarter vs prior year+176.9%+3.6%-31.5%-2.3%
TREX leads this category, winning 4 of 6 comparable metrics.

Valuation Metrics

AMWD leads this category, winning 6 of 7 comparable metrics.

At 6.1x trailing earnings, AMWD trades at a 80% valuation discount to NWPX's 30.8x P/E. Adjusting for growth (PEG ratio), AMWD offers better value at 0.76x vs TREX's 6.58x — a lower PEG means you pay less per unit of expected earnings growth.

MetricNWPX logoNWPXNWPX Infrastructu…TREX logoTREXTrex Company, Inc.UFPI logoUFPIUFP Industries, I…AMWD logoAMWDAmerican Woodmark…
Market CapShares × price$1.1B$4.1B$4.8B$576M
Enterprise ValueMkt cap + debt − cash$1.2B$4.3B$4.1B$1.0B
Trailing P/EPrice ÷ TTM EPS30.75x22.00x16.77x6.08x
Forward P/EPrice ÷ next-FY EPS est.25.85x23.95x15.92x16.13x
PEG RatioP/E ÷ EPS growth rate2.36x6.58x3.67x0.76x
EV / EBITDAEnterprise value multiple16.40x13.53x7.70x5.31x
Price / SalesMarket cap ÷ Revenue2.01x3.51x0.75x0.34x
Price / BookPrice ÷ Book value/share2.76x4.05x1.60x0.66x
Price / FCFMarket cap ÷ FCF22.40x30.60x17.24x8.77x
AMWD leads this category, winning 6 of 7 comparable metrics.

Profitability & Efficiency

TREX leads this category, winning 4 of 9 comparable metrics.

TREX delivers a 18.8% return on equity — every $100 of shareholder capital generates $19 in annual profit, vs $2 for AMWD. UFPI carries lower financial leverage with a 0.07x debt-to-equity ratio, signaling a more conservative balance sheet compared to AMWD's 0.56x. On the Piotroski fundamental quality scale (0–9), NWPX scores 9/9 vs AMWD's 4/9, reflecting strong financial health.

MetricNWPX logoNWPXNWPX Infrastructu…TREX logoTREXTrex Company, Inc.UFPI logoUFPIUFP Industries, I…AMWD logoAMWDAmerican Woodmark…
ROE (TTM)Return on equity+10.7%+18.8%+8.4%+1.9%
ROA (TTM)Return on assets+7.0%+12.3%+6.5%+1.2%
ROICReturn on invested capital+7.6%+16.4%+11.4%+7.8%
ROCEReturn on capital employed+9.9%+23.2%+10.2%+10.1%
Piotroski ScoreFundamental quality 0–99644
Debt / EquityFinancial leverage0.26x0.22x0.07x0.56x
Net DebtTotal debt minus cash$101M$225M-$695M$462M
Cash & Equiv.Liquid assets$2M$4M$925M$48M
Total DebtShort + long-term debt$103M$229M$230M$510M
Interest CoverageEBIT ÷ Interest expense24.96x43.92x4.75x
TREX leads this category, winning 4 of 9 comparable metrics.

Total Returns (Dividends Reinvested)

NWPX leads this category, winning 6 of 6 comparable metrics.

A $10,000 investment in NWPX five years ago would be worth $33,801 today (with dividends reinvested), compared to $3,599 for TREX. Over the past 12 months, NWPX leads with a +194.1% total return vs TREX's -30.8%. The 3-year compound annual growth rate (CAGR) favors NWPX at 60.3% vs TREX's -11.4% — a key indicator of consistent wealth creation.

MetricNWPX logoNWPXNWPX Infrastructu…TREX logoTREXTrex Company, Inc.UFPI logoUFPIUFP Industries, I…AMWD logoAMWDAmerican Woodmark…
YTD ReturnYear-to-date+73.7%+9.3%-8.6%-28.1%
1-Year ReturnPast 12 months+194.1%-30.8%-12.0%-30.3%
3-Year ReturnCumulative with dividends+312.2%-30.4%+6.3%-22.1%
5-Year ReturnCumulative with dividends+238.0%-64.0%+1.5%-62.1%
10-Year ReturnCumulative with dividends+1040.4%+239.9%+230.6%-47.1%
CAGR (3Y)Annualised 3-year return+60.3%-11.4%+2.1%-8.0%
NWPX leads this category, winning 6 of 6 comparable metrics.

Risk & Volatility

Evenly matched — NWPX and UFPI each lead in 1 of 2 comparable metrics.

UFPI is the less volatile stock with a 0.92 beta — it tends to amplify market swings less than AMWD's 1.49 beta. A beta below 1.0 means the stock typically moves less than the S&P 500. NWPX currently trades 95.8% from its 52-week high vs AMWD's 54.8% drawdown — a narrower gap to the peak suggests stronger recent price momentum.

MetricNWPX logoNWPXNWPX Infrastructu…TREX logoTREXTrex Company, Inc.UFPI logoUFPIUFP Industries, I…AMWD logoAMWDAmerican Woodmark…
Beta (5Y)Sensitivity to S&P 5001.29x1.47x0.92x1.49x
52-Week HighHighest price in past year$114.27$68.78$118.00$72.16
52-Week LowLowest price in past year$36.97$29.77$80.06$35.53
% of 52W HighCurrent price vs 52-week peak+95.8%+56.9%+71.1%+54.8%
RSI (14)Momentum oscillator 0–10082.151.335.636.6
Avg Volume (50D)Average daily shares traded135K1.7M379K231K
Evenly matched — NWPX and UFPI each lead in 1 of 2 comparable metrics.

Analyst Outlook

UFPI leads this category, winning 1 of 1 comparable metric.

Analyst consensus: NWPX as "Hold", TREX as "Hold", UFPI as "Buy", AMWD as "Hold". Consensus price targets imply 22.8% upside for UFPI (target: $103) vs -45.2% for NWPX (target: $60). UFPI is the only dividend payer here at 1.67% yield — a key consideration for income-focused portfolios.

MetricNWPX logoNWPXNWPX Infrastructu…TREX logoTREXTrex Company, Inc.UFPI logoUFPIUFP Industries, I…AMWD logoAMWDAmerican Woodmark…
Analyst RatingConsensus buy/hold/sellHoldHoldBuyHold
Price TargetConsensus 12-month target$60.00$44.50$103.00$47.00
# AnalystsCovering analysts631810
Dividend YieldAnnual dividend ÷ price+1.7%
Dividend StreakConsecutive years of raises2130
Dividend / ShareAnnual DPS$1.40
Buyback YieldShare repurchases ÷ mkt cap+1.7%+1.3%+9.1%+4.8%
UFPI leads this category, winning 1 of 1 comparable metric.
Key Takeaway

TREX leads in 2 of 6 categories (Income & Cash Flow, Profitability & Efficiency). AMWD leads in 1 (Valuation Metrics). 1 tied.

Best OverallTrex Company, Inc. (TREX)Leads 2 of 6 categories
Loading custom metrics...

NWPX vs TREX vs UFPI vs AMWD: Key Questions Answered

10 questions · data-driven answers · updated daily

01

Is NWPX or TREX or UFPI or AMWD a better buy right now?

For growth investors, NWPX Infrastructure, Inc.

(NWPX) is the stronger pick with 6. 8% revenue growth year-over-year, versus -7. 5% for American Woodmark Corporation (AMWD). American Woodmark Corporation (AMWD) offers the better valuation at 6. 1x trailing P/E (16. 1x forward), making it the more compelling value choice. Analysts rate UFP Industries, Inc. (UFPI) a "Buy" — based on 8 analyst ratings — the highest consensus in this comparison. The "better buy" depends entirely on your goals: growth investors should weight revenue trajectory, value investors should weight P/E and PEG, and income investors should weight dividend yield and streak.

02

Which has the better valuation — NWPX or TREX or UFPI or AMWD?

On trailing P/E, American Woodmark Corporation (AMWD) is the cheapest at 6.

1x versus NWPX Infrastructure, Inc. at 30. 8x. On forward P/E, UFP Industries, Inc. is actually cheaper at 15. 9x — notably different from the trailing picture, reflecting expected earnings growth. The PEG ratio (P/E divided by earnings growth rate) is the most growth-adjusted single valuation metric: NWPX Infrastructure, Inc. wins at 1. 98x versus Trex Company, Inc. 's 7. 16x — a reasonable growth-adjusted valuation.

03

Which is the better long-term investment — NWPX or TREX or UFPI or AMWD?

Over the past 5 years, NWPX Infrastructure, Inc.

(NWPX) delivered a total return of +238. 0%, compared to -64. 0% for Trex Company, Inc. (TREX). Over 10 years, the gap is even starker: NWPX returned +1040% versus AMWD's -47. 1%. Past returns do not guarantee future results, and the stock with the higher historical return may already have its best growth priced in.

04

Which is safer — NWPX or TREX or UFPI or AMWD?

By beta (market sensitivity over 5 years), UFP Industries, Inc.

(UFPI) is the lower-risk stock at 0. 92β versus American Woodmark Corporation's 1. 49β — meaning AMWD is approximately 61% more volatile than UFPI relative to the S&P 500. On balance sheet safety, UFP Industries, Inc. (UFPI) carries a lower debt/equity ratio of 7% versus 56% for American Woodmark Corporation — giving it more financial flexibility in a downturn.

05

Which is growing faster — NWPX or TREX or UFPI or AMWD?

By revenue growth (latest reported year), NWPX Infrastructure, Inc.

(NWPX) is pulling ahead at 6. 8% versus -7. 5% for American Woodmark Corporation (AMWD). On earnings-per-share growth, the picture is similar: NWPX Infrastructure, Inc. grew EPS 4. 7% year-over-year, compared to -26. 1% for UFP Industries, Inc.. Over a 3-year CAGR, NWPX leads at 4. 8% annualised revenue growth. Higher growth typically commands a higher valuation multiple — check whether the premium P/E or P/S is justified by the growth rate using the PEG ratio.

06

Which has better profit margins — NWPX or TREX or UFPI or AMWD?

Trex Company, Inc.

(TREX) is the more profitable company, earning 16. 2% net margin versus 4. 7% for UFP Industries, Inc. — meaning it keeps 16. 2% of every revenue dollar as bottom-line profit. Operating margin tells a similar story: TREX leads at 22. 0% versus 5. 8% for UFPI. At the gross margin level — before operating expenses — TREX leads at 39. 2%, reflecting greater pricing power or product mix advantage. Stronger margins indicate durable pricing power, lower cost of revenue, or higher mix of software/services. They are one of the clearest signs of business quality.

07

Is NWPX or TREX or UFPI or AMWD more undervalued right now?

The PEG ratio (forward P/E divided by expected earnings growth rate) is the most precise measure of undervaluation relative to growth potential.

By this metric, NWPX Infrastructure, Inc. (NWPX) is the more undervalued stock at a PEG of 1. 98x versus Trex Company, Inc. 's 7. 16x. Both stocks trade at elevated growth-adjusted valuations, so expected growth needs to materialise. On forward earnings alone, UFP Industries, Inc. (UFPI) trades at 15. 9x forward P/E versus 25. 9x for NWPX Infrastructure, Inc. — 9. 9x cheaper on a one-year earnings basis. Analyst consensus price targets imply the most upside for UFPI: 22. 8% to $103. 00.

08

Which pays a better dividend — NWPX or TREX or UFPI or AMWD?

In this comparison, UFPI (1.

7% yield) pays a dividend. NWPX, TREX, AMWD do not pay a meaningful dividend and should not be held primarily for income.

09

Is NWPX or TREX or UFPI or AMWD better for a retirement portfolio?

For long-horizon retirement investors, UFP Industries, Inc.

(UFPI) is the stronger choice — it scores higher on the combination of lower volatility, dividend reliability, and long-term compounding (low volatility (β 0. 92), 1. 7% yield, +230. 6% 10Y return). Both have compounded well over 10 years (UFPI: +230. 6%, AMWD: -47. 1%), confirming both are viable long-term holds — but the lower-volatility option typically results in less emotional selling during corrections. Retirement portfolios generally favour predictability over maximum returns. Consult a financial advisor before making allocation decisions.

10

What are the main differences between NWPX and TREX and UFPI and AMWD?

These companies operate in different sectors (NWPX (Industrials) and TREX (Industrials) and UFPI (Basic Materials) and AMWD (Consumer Cyclical)), which means they face different economic cycles, regulatory environments, and macro sensitivities — making direct comparison nuanced.

In terms of investment character: NWPX is a small-cap quality compounder stock; TREX is a small-cap quality compounder stock; UFPI is a small-cap deep-value stock; AMWD is a small-cap deep-value stock. UFPI pays a dividend while NWPX, TREX, AMWD do not, making them suitable for different income and tax situations. These fundamental differences mean investors should not choose between them on a single metric — the "better stock" depends entirely on which of these characteristics aligns with your investment strategy.

Find Stocks Like These

Explore pre-built screens for each stock's profile, or build a custom screen to find stocks that outperform all of them.

Stocks Like

NWPX

High-Growth Disruptor

  • Sector: Industrials
  • Market Cap > $100B
  • Revenue Growth > 9%
  • Net Margin > 5%
Run This Screen
Stocks Like

TREX

Quality Business

  • Sector: Industrials
  • Market Cap > $100B
  • Net Margin > 9%
Run This Screen
Stocks Like

UFPI

Income & Dividend Stock

  • Sector: Basic Materials
  • Market Cap > $100B
  • Dividend Yield > 0.6%
Run This Screen
Stocks Like

AMWD

Quality Business

  • Sector: Consumer Cyclical
  • Market Cap > $100B
Run This Screen
Custom Screen

Beat Both

Find stocks that outperform NWPX and TREX and UFPI and AMWD on the metrics below

Revenue Growth>
%
(NWPX: 19.1% · TREX: 1.0%)
Net Margin>
%
(NWPX: 7.7% · TREX: 16.3%)
P/E Ratio<
x
(NWPX: 30.8x · TREX: 22.0x)

You Might Also Compare

Based on how these companies actually compete and overlap — not just which sector they're filed under.