If you had invested $5,000 in Commonwealth Bank of Australia (ASX: CBA) shares two years ago, you'd be sitting on a seriously impressive gain today.
Among today's S&P/ASX 20 Index (ASX: XTL) heavyweights, CBA shares are one of the standout performers over the past 24 months. And no, this isn't a speculative tech rocket or a turnaround story. This is a bank.
Let's dive in.

Image source: Getty Images
Stellar growth, generous payouts
Back in April 2024, CBA shares were trading around $114.54. Fast forward to today, and they're changing hands near $183.38 at the time of writing. That's a gain of almost 60% in share price alone. By comparison the ASX 20 has risen roughly 23% over the same period.
Do the maths, and it gets even more interesting. A $5,000 investment at $114.54 would have bought you roughly 43.7 shares. At today's price, those shares would now be worth about $8,010. That's more than $3,000 in capital gains.
But that's only half the story. CBA shares have continued to deliver generous, fully-franked dividends over that period. CBA's yield has generally been between 3% and 4%.
If you'd reinvested those payouts along the way, your total investment would likely be worth north of $8,600 today. That brings the total earnings gain over 2 years to 72%. Not bad for a "boring" blue chip.
Strong, consistent profits
So what's been driving this performance? Plenty.
First, earnings resilience. Despite a challenging economic backdrop, CBA has continued to deliver strong and consistent profits. Its dominant position in the Australian banking sector — particularly in home lending — has helped it maintain steady revenue streams.
Then there's pricing power. Higher interest rates have boosted net interest margins, allowing the bank to earn more on its lending book. At the same time, its massive customer base and sticky relationships have helped protect those margins from competition.
And don't underestimate demand. CBA shares have become a cornerstone holding for ETFs, super funds, and income-focused investors. In uncertain markets, money tends to flow into large, reliable companies and CBA has been one of the biggest beneficiaries of that trend.
Consistent investor demand
There's also the dividend appeal. With consistent, fully-franked payouts, CBA remains a favourite among income investors. That demand helps support the share price, even when broader market conditions are volatile.
Put it all together, and you get a powerful combination: steady earnings, strong margins, reliable dividends, and constant investor demand. The result? A blue-chip stock that has quietly delivered market-beating returns.
Foolish Takeaway
The performance of CBA shares over the past two years is a reminder that you don't always need to chase high-risk growth stocks to build wealth.
Sometimes, the biggest winners are the ones hiding in plain sight. And for long-term investors, that's the real takeaway.
Quality businesses don't just protect capital, they can grow it faster than you think.