Compare Stocks

5 / 10
Try these comparisons:

Stock Comparison

XP vs NU vs MELI vs SOFI vs AFRM

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

Live fundamentals10-year financials5-year price chart
XP
XP Inc.

Financial - Capital Markets

Financial ServicesNASDAQ • BR
Market Cap$7.96B
5Y Perf.-33.3%
NU
Nu Holdings Ltd.

Banks - Diversified

Financial ServicesNYSE • BR
Market Cap$52.76B
5Y Perf.+47.1%
MELI
MercadoLibre, Inc.

Specialty Retail

Consumer CyclicalNASDAQ • UY
Market Cap$82.76B
5Y Perf.+21.1%
SOFI
SoFi Technologies, Inc.

Financial - Credit Services

Financial ServicesNASDAQ • US
Market Cap$20.09B
5Y Perf.-0.4%
AFRM
Affirm Holdings, Inc.

Software - Infrastructure

TechnologyNASDAQ • US
Market Cap$21.32B
5Y Perf.-36.3%

XP vs NU vs MELI vs SOFI vs AFRM — Key Financials

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

Company Snapshot
XP logoXP
NU logoNU
MELI logoMELI
SOFI logoSOFI
AFRM logoAFRM
IndustryFinancial - Capital MarketsBanks - DiversifiedSpecialty RetailFinancial - Credit ServicesSoftware - Infrastructure
Market Cap$7.96B$52.76B$82.76B$20.09B$21.32B
Revenue (TTM)$19.87B$11.10B$30.67B$4.77B$3.20B
Net Income (TTM)$5.05B$2.53B$1.92B$481M$382M
Gross Margin9.5%45.9%45.5%75.1%62.6%
Operating Margin-19.7%25.2%9.9%11.0%10.2%
Forward P/E1.7x15.9x34.5x26.2x56.4x
Total Debt$115.13B$887M$11.39B$1.82B$7.85B
Cash & Equiv.$5.61B$13.64B$3.67B$4.93B$1.35B

XP vs NU vs MELI vs SOFI vs AFRMLong-Term Stock Performance

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

XP
NU
MELI
SOFI
AFRM
StockDec 21May 26Return
XP Inc. (XP)10066.7-33.3%
Nu Holdings Ltd. (NU)100147.1+47.1%
MercadoLibre, Inc. (MELI)100121.1+21.1%
SoFi Technologies, … (SOFI)10099.6-0.4%
Affirm Holdings, In… (AFRM)10063.7-36.3%

Price return only. Dividends and distributions are not included.

Quick Verdict: XP vs NU vs MELI vs SOFI vs AFRM

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

Bottom line: XP leads in 3 of 7 categories (5-stock set), making it the strongest pick for valuation and capital efficiency and profitability and margin quality. MercadoLibre, Inc. is the stronger pick specifically for capital preservation and lower volatility and operational efficiency and capital deployment. NU and SOFI also each lead in at least one category. This set spans 3 sectors — these stocks serve different portfolio roles, not just different price points.
XP
XP Inc.
The Banking Pick

XP carries the broadest edge in this set and is the clearest fit for value and quality.

  • Lower P/E (1.7x vs 56.4x)
  • 22.7% margin vs MELI's 6.3%
  • 3.9% yield; the other 4 pay no meaningful dividend
Best for: value and quality
NU
Nu Holdings Ltd.
The Banking Pick

NU ranks third and is worth considering specifically for growth exposure and bank quality.

  • Rev growth 44.8%, EPS growth 90.5%
  • NIM 13.6% vs SOFI's 4.4%
  • 44.8% NII/revenue growth vs SOFI's 28.8%
Best for: growth exposure and bank quality
MELI
MercadoLibre, Inc.
The Income Pick

MELI is the #2 pick in this set and the best alternative if income & stability and long-term compounding is your priority.

  • Dividend streak 0 yrs, beta 1.13
  • 11.8% 10Y total return vs NU's 33.6%
  • Lower volatility, beta 1.13, current ratio 1.17x
  • Beta 1.13, current ratio 1.17x
Best for: income & stability and long-term compounding
SOFI
SoFi Technologies, Inc.
The Banking Pick

SOFI is the clearest fit if your priority is momentum.

  • +18.8% vs MELI's -32.3%
Best for: momentum
AFRM
Affirm Holdings, Inc.
The Growth Angle

Among these 5 stocks, AFRM doesn't own a clear edge in any measured category.

Best for: technology exposure
See the full category breakdown
CategoryWinnerWhy
GrowthNU logoNU44.8% NII/revenue growth vs SOFI's 28.8%
ValueXP logoXPLower P/E (1.7x vs 56.4x)
Quality / MarginsXP logoXP22.7% margin vs MELI's 6.3%
Stability / SafetyMELI logoMELIBeta 1.13 vs AFRM's 2.61, lower leverage
DividendsXP logoXP3.9% yield; the other 4 pay no meaningful dividend
Momentum (1Y)SOFI logoSOFI+18.8% vs MELI's -32.3%
Efficiency (ROA)MELI logoMELI4.8% ROA vs SOFI's 1.1%, ROIC 20.8% vs 3.6%

XP vs NU vs MELI vs SOFI vs AFRM — Revenue Breakdown by Segment

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

XPXP Inc.

Segment breakdown not available.

NUNu Holdings Ltd.

Segment breakdown not available.

MELIMercadoLibre, Inc.
FY 2025
Service
87.5%$25.3B
Product
12.5%$3.6B
SOFISoFi Technologies, Inc.
FY 2025
Lending Segment
48.1%$1.8B
Financial Services Segment
40.1%$1.5B
Technology Platform Segment
11.7%$450M
AFRMAffirm Holdings, Inc.
FY 2025
Merchant Network
79.2%$883M
Virtual Card Network
20.8%$231M

XP vs NU vs MELI vs SOFI vs AFRM — Financial Metrics

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

BEST OVERALLXPLAGGINGSOFI

Income & Cash Flow (Last 12 Months)

Evenly matched — XP and NU each lead in 2 of 6 comparable metrics.

MELI is the larger business by revenue, generating $30.7B annually — 9.6x AFRM's $3.2B. XP is the more profitable business, keeping 22.7% of every revenue dollar as net income compared to MELI's 6.3%. On growth, MELI holds the edge at +30.0% YoY revenue growth, suggesting stronger near-term business momentum.

MetricXP logoXPXP Inc.NU logoNUNu Holdings Ltd.MELI logoMELIMercadoLibre, Inc.SOFI logoSOFISoFi Technologies…AFRM logoAFRMAffirm Holdings, …
RevenueTrailing 12 months$19.9B$11.1B$30.7B$4.8B$3.2B
EBITDAEarnings before interest/tax-$1.7B$3.6B$3.7B$760M$533M
Net IncomeAfter-tax profit$5.1B$2.5B$1.9B$481M$382M
Free Cash FlowCash after capex$17.9B$3.7B$11.5B-$2.6B$787M
Gross MarginGross profit ÷ Revenue+9.5%+45.9%+45.5%+75.1%+62.6%
Operating MarginEBIT ÷ Revenue-19.7%+25.2%+9.9%+11.0%+10.2%
Net MarginNet income ÷ Revenue+22.7%+17.8%+6.3%+10.1%+11.9%
FCF MarginFCF ÷ Revenue+54.6%+20.0%+37.5%-83.5%+24.6%
Rev. Growth (YoY)Latest quarter vs prior year+30.0%-65.8%
EPS Growth (YoY)Latest quarter vs prior year+13.8%+45.5%-15.5%-56.7%
Evenly matched — XP and NU each lead in 2 of 6 comparable metrics.

Valuation Metrics

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

At 11.5x trailing earnings, XP trades at a 97% valuation discount to AFRM's 426.7x P/E. On an enterprise value basis, NU's 13.9x EV/EBITDA is more attractive than AFRM's 201.9x.

MetricXP logoXPXP Inc.NU logoNUNu Holdings Ltd.MELI logoMELIMercadoLibre, Inc.SOFI logoSOFISoFi Technologies…AFRM logoAFRMAffirm Holdings, …
Market CapShares × price$8.0B$52.8B$82.8B$20.1B$21.3B
Enterprise ValueMkt cap + debt − cash$30.1B$40.0B$90.5B$17.0B$27.8B
Trailing P/EPrice ÷ TTM EPS11.54x34.50x41.45x40.38x426.73x
Forward P/EPrice ÷ next-FY EPS est.1.73x15.88x34.49x26.16x56.43x
PEG RatioP/E ÷ EPS growth rate0.37x
EV / EBITDAEnterprise value multiple13.93x23.99x22.33x201.89x
Price / SalesMarket cap ÷ Revenue1.99x4.75x2.86x4.21x6.61x
Price / BookPrice ÷ Book value/share2.60x8.82x12.26x1.88x7.11x
Price / FCFMarket cap ÷ FCF3.64x23.72x7.68x35.44x
XP leads this category, winning 4 of 6 comparable metrics.

Profitability & Efficiency

NU leads this category, winning 5 of 9 comparable metrics.

MELI delivers a 29.6% return on equity — every $100 of shareholder capital generates $30 in annual profit, vs $6 for SOFI. NU carries lower financial leverage with a 0.12x debt-to-equity ratio, signaling a more conservative balance sheet compared to XP's 5.74x. On the Piotroski fundamental quality scale (0–9), NU scores 7/9 vs SOFI's 3/9, reflecting strong financial health.

MetricXP logoXPXP Inc.NU logoNUNu Holdings Ltd.MELI logoMELIMercadoLibre, Inc.SOFI logoSOFISoFi Technologies…AFRM logoAFRMAffirm Holdings, …
ROE (TTM)Return on equity+21.4%+24.0%+29.6%+5.9%+11.2%
ROA (TTM)Return on assets+1.3%+3.7%+4.8%+1.1%+3.1%
ROICReturn on invested capital-2.6%+26.0%+20.8%+3.6%-0.7%
ROCEReturn on capital employed-2.8%+27.4%+28.3%+1.2%-0.9%
Piotroski ScoreFundamental quality 0–937536
Debt / EquityFinancial leverage5.74x0.12x1.69x0.17x2.56x
Net DebtTotal debt minus cash$109.5B-$12.8B$7.7B-$3.1B$6.5B
Cash & Equiv.Liquid assets$5.6B$13.6B$3.7B$4.9B$1.4B
Total DebtShort + long-term debt$115.1B$887M$11.4B$1.8B$7.9B
Interest CoverageEBIT ÷ Interest expense8.55x0.90x22.58x0.45x1.88x
NU leads this category, winning 5 of 9 comparable metrics.

Total Returns (Dividends Reinvested)

AFRM leads this category, winning 2 of 6 comparable metrics.

A $10,000 investment in NU five years ago would be worth $13,359 today (with dividends reinvested), compared to $5,000 for XP. Over the past 12 months, SOFI leads with a +18.8% total return vs MELI's -32.3%. The 3-year compound annual growth rate (CAGR) favors AFRM at 75.0% vs MELI's 8.3% — a key indicator of consistent wealth creation.

MetricXP logoXPXP Inc.NU logoNUNu Holdings Ltd.MELI logoMELIMercadoLibre, Inc.SOFI logoSOFISoFi Technologies…AFRM logoAFRMAffirm Holdings, …
YTD ReturnYear-to-date+18.5%-18.9%-17.3%-42.6%-13.5%
1-Year ReturnPast 12 months+10.0%+7.8%-32.3%+18.8%+18.0%
3-Year ReturnCumulative with dividends+43.3%+133.1%+27.1%+187.9%+436.1%
5-Year ReturnCumulative with dividends-50.0%+33.6%+17.9%-3.8%+12.3%
10-Year ReturnCumulative with dividends-38.1%+33.6%+1183.7%+50.3%-34.2%
CAGR (3Y)Annualised 3-year return+12.8%+32.6%+8.3%+42.3%+75.0%
AFRM leads this category, winning 2 of 6 comparable metrics.

Risk & Volatility

Evenly matched — XP and MELI each lead in 1 of 2 comparable metrics.

MELI is the less volatile stock with a 1.13 beta — it tends to amplify market swings less than AFRM's 2.61 beta. A beta below 1.0 means the stock typically moves less than the S&P 500. XP currently trades 83.0% from its 52-week high vs SOFI's 48.1% drawdown — a narrower gap to the peak suggests stronger recent price momentum.

MetricXP logoXPXP Inc.NU logoNUNu Holdings Ltd.MELI logoMELIMercadoLibre, Inc.SOFI logoSOFISoFi Technologies…AFRM logoAFRMAffirm Holdings, …
Beta (5Y)Sensitivity to S&P 5001.68x1.36x1.13x2.54x2.61x
52-Week HighHighest price in past year$23.11$18.98$2645.22$32.73$100.00
52-Week LowLowest price in past year$15.61$11.71$1593.21$12.74$42.09
% of 52W HighCurrent price vs 52-week peak+83.0%+72.7%+61.7%+48.1%+64.0%
RSI (14)Momentum oscillator 0–10044.844.258.140.065.9
Avg Volume (50D)Average daily shares traded5.1M46.5M497K65.4M5.3M
Evenly matched — XP and MELI each lead in 1 of 2 comparable metrics.

Analyst Outlook

Insufficient data to determine a leader in this category.

Analyst consensus: XP as "Buy", NU as "Buy", MELI as "Buy", SOFI as "Hold", AFRM as "Buy". Consensus price targets imply 48.4% upside for NU (target: $20) vs 22.6% for XP (target: $24). XP is the only dividend payer here at 3.91% yield — a key consideration for income-focused portfolios.

MetricXP logoXPXP Inc.NU logoNUNu Holdings Ltd.MELI logoMELIMercadoLibre, Inc.SOFI logoSOFISoFi Technologies…AFRM logoAFRMAffirm Holdings, …
Analyst RatingConsensus buy/hold/sellBuyBuyBuyHoldBuy
Price TargetConsensus 12-month target$23.50$20.48$2316.67$21.70$81.71
# AnalystsCovering analysts922332733
Dividend YieldAnnual dividend ÷ price+3.9%
Dividend StreakConsecutive years of raises000
Dividend / ShareAnnual DPS$3.72
Buyback YieldShare repurchases ÷ mkt cap+3.4%0.0%+0.0%+0.3%+1.2%
Insufficient data to determine a leader in this category.
Key Takeaway

XP leads in 1 of 6 categories (Valuation Metrics). NU leads in 1 (Profitability & Efficiency). 2 tied.

Best OverallXP Inc. (XP)Leads 1 of 6 categories
Loading custom metrics...

XP vs NU vs MELI vs SOFI vs AFRM: Key Questions Answered

10 questions · data-driven answers · updated daily

01

Is XP or NU or MELI or SOFI or AFRM a better buy right now?

For growth investors, Nu Holdings Ltd.

(NU) is the stronger pick with 44. 8% revenue growth year-over-year, versus 28. 8% for SoFi Technologies, Inc. (SOFI). XP Inc. (XP) offers the better valuation at 11. 5x trailing P/E (1. 7x forward), making it the more compelling value choice. Analysts rate XP Inc. (XP) a "Buy" — based on 9 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 — XP or NU or MELI or SOFI or AFRM?

On trailing P/E, XP Inc.

(XP) is the cheapest at 11. 5x versus Affirm Holdings, Inc. at 426. 7x. On forward P/E, XP Inc. is actually cheaper at 1. 7x.

03

Which is the better long-term investment — XP or NU or MELI or SOFI or AFRM?

Over the past 5 years, Nu Holdings Ltd.

(NU) delivered a total return of +33. 6%, compared to -50. 0% for XP Inc. (XP). Over 10 years, the gap is even starker: MELI returned +1184% versus XP's -38. 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 — XP or NU or MELI or SOFI or AFRM?

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

(MELI) is the lower-risk stock at 1. 13β versus Affirm Holdings, Inc. 's 2. 61β — meaning AFRM is approximately 131% more volatile than MELI relative to the S&P 500. On balance sheet safety, Nu Holdings Ltd. (NU) carries a lower debt/equity ratio of 12% versus 6% for XP Inc. — giving it more financial flexibility in a downturn.

05

Which is growing faster — XP or NU or MELI or SOFI or AFRM?

By revenue growth (latest reported year), Nu Holdings Ltd.

(NU) is pulling ahead at 44. 8% versus 28. 8% for SoFi Technologies, Inc. (SOFI). On earnings-per-share growth, the picture is similar: Affirm Holdings, Inc. grew EPS 109. 0% year-over-year, compared to 0. 0% for SoFi Technologies, Inc.. Over a 3-year CAGR, MELI leads at 38. 9% 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 — XP or NU or MELI or SOFI or AFRM?

XP Inc.

(XP) is the more profitable company, earning 22. 7% net margin versus 1. 6% for Affirm Holdings, Inc. — meaning it keeps 22. 7% of every revenue dollar as bottom-line profit. Operating margin tells a similar story: NU leads at 25. 2% versus -19. 7% for XP. At the gross margin level — before operating expenses — SOFI leads at 75. 1%, 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 XP or NU or MELI or SOFI or AFRM more undervalued right now?

On forward earnings alone, XP Inc.

(XP) trades at 1. 7x forward P/E versus 56. 4x for Affirm Holdings, Inc. — 54. 7x cheaper on a one-year earnings basis. Analyst consensus price targets imply the most upside for NU: 48. 4% to $20. 48.

08

Which pays a better dividend — XP or NU or MELI or SOFI or AFRM?

In this comparison, XP (3.

9% yield) pays a dividend. NU, MELI, SOFI, AFRM do not pay a meaningful dividend and should not be held primarily for income.

09

Is XP or NU or MELI or SOFI or AFRM better for a retirement portfolio?

For long-horizon retirement investors, MercadoLibre, Inc.

(MELI) is the stronger choice — it scores higher on the combination of lower volatility, dividend reliability, and long-term compounding (low volatility (β 1. 13), +1184% 10Y return). Affirm Holdings, Inc. (AFRM) carries a higher beta of 2. 61 — meaning larger drawdowns in market downturns, which matters significantly when you cannot wait years for a recovery. Both have compounded well over 10 years (MELI: +1184%, AFRM: -34. 2%), 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 XP and NU and MELI and SOFI and AFRM?

These companies operate in different sectors (XP (Financial Services) and NU (Financial Services) and MELI (Consumer Cyclical) and SOFI (Financial Services) and AFRM (Technology)), which means they face different economic cycles, regulatory environments, and macro sensitivities — making direct comparison nuanced.

XP pays a dividend while NU, MELI, SOFI, AFRM 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

XP

High-Growth Quality Leader

  • Sector: Financial Services
  • Market Cap > $100B
  • Revenue Growth > 17%
  • Net Margin > 13%
Run This Screen
Stocks Like

NU

High-Growth Compounder

  • Sector: Financial Services
  • Market Cap > $100B
  • Revenue Growth > 22%
  • Net Margin > 10%
Run This Screen
Stocks Like

MELI

High-Growth Disruptor

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

SOFI

High-Growth Compounder

  • Sector: Financial Services
  • Market Cap > $100B
  • Revenue Growth > 14%
  • Net Margin > 6%
Run This Screen
Stocks Like

AFRM

Quality Business

  • Sector: Technology
  • Market Cap > $100B
  • Net Margin > 7%
Run This Screen
Custom Screen

Beat Both

Find stocks that outperform XP and NU and MELI and SOFI and AFRM on the metrics below

Revenue Growth>
%
(XP: 34.1% · NU: 44.8%)
Net Margin>
%
(XP: 22.7% · NU: 17.8%)
P/E Ratio<
x
(XP: 11.5x · NU: 34.5x)

You Might Also Compare

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