If you have $5,000 ready to invest and want to generate returns that beat the market over the long run, putting that money into tech stocks would be a great idea. They tend to outpace the broader market's gains by handsome margins.

For example, Applied Materials (NASDAQ:AMAT) and Apple(NASDAQ:AAPL) have delivered fantastic gains for investors in recent years. A $5,000 investment in either of those companies five years ago would now be worth more than $25,000 -- and that's without factoring in their dividend payouts. And Apple and Applied Materials could replicate those outstanding performances over the next five years. What's more, both stocks are ripe for picking right now, as they are trading at attractive valuations.

Applied Materials stock has been a strong performer over the years despite slow growth for the company on the financial front. The company's 10-year revenue compound annual growth rate (CAGR) is just over 6%, while earnings have increased at an annual rate of just over 12.5% over the past decade.

More in category

2 Popular Stocks to Avoid in the Second Half of 2021
July 31, 2021The Motley Fool
2 Popular Stocks to Avoid in the Second Half of 2021
3 EV Stocks That Can Survive the Next Market Crash
July 31, 2021The Motley Fool
3 EV Stocks That Can Survive the Next Market Crash
Chick-fil-A's first Hawaii location opening next year
July 31, 2021FOX Business
Chick-fil-A's first Hawaii location opening next year
Stock market faces elusive pullback as coronavirus, economic headwinds swirl
July 30, 2021FOX Business
Stock market faces elusive pullback as coronavirus, economic headwinds swirl
U.S. evacuates over 200 Afghans who helped the U.S. as fear of Taliban retaliation grows
July 30, 2021MarketWatch
U.S. evacuates over 200 Afghans who helped the U.S. as fear of Taliban retaliation grows
2-year and 10-year Treasurys in July book largest monthly yield drop since March of 2020
July 30, 2021MarketWatch
2-year and 10-year Treasurys in July book largest monthly yield drop since March of 2020
S&P 500 notches 6th straight monthly gain even as Amazon disappointment fuels Friday selling
July 30, 2021MarketWatch
S&P 500 notches 6th straight monthly gain even as Amazon disappointment fuels Friday selling
Bipartisan infrastructure deal still faces long, uncertain road
July 29, 2021MarketWatch
Bipartisan infrastructure deal still faces long, uncertain road
Pinterest stock in danger of sharpest drop on record as pandemic recovery weighs on user growth
July 30, 2021MarketWatch
Pinterest stock in danger of sharpest drop on record as pandemic recovery weighs on user growth
‘A great time to buy,’ says one Wall Street analyst as Amazon shares tumble on disappointment
July 30, 2021MarketWatch
‘A great time to buy,’ says one Wall Street analyst as Amazon shares tumble on disappointment
Opinion: Here’s how the 6 Big Tech stocks now rank, from worst to first
July 30, 2021MarketWatch
Opinion: Here’s how the 6 Big Tech stocks now rank, from worst to first
One government program cut poverty more than any other this year — and it’s ‘extremely unlikely’ to return any time soon
July 29, 2021MarketWatch
One government program cut poverty more than any other this year — and it’s ‘extremely unlikely’ to return any time soon
Americans aren’t cutting back on spending — even with rising inflation
July 29, 2021MarketWatch
Americans aren’t cutting back on spending — even with rising inflation
Inflation surges again in June, PCE shows, as shortages plague the U.S. economy
July 30, 2021MarketWatch
Inflation surges again in June, PCE shows, as shortages plague the U.S. economy
Interest rates haven’t been this low in 5,000 years
July 30, 2021MarketWatch
Interest rates haven’t been this low in 5,000 years
Opinion: Big Tech is headed for its biggest year yet, and it isn’t even close
July 29, 2021MarketWatch
Opinion: Big Tech is headed for its biggest year yet, and it isn’t even close
Opinion: Microsoft’s quarterly results show that growth is nowhere near slowing down
July 28, 2021MarketWatch
Opinion: Microsoft’s quarterly results show that growth is nowhere near slowing down
3 Growing Tech Value Stocks to Buy After Q2 Earnings
July 31, 2021The Motley Fool
3 Growing Tech Value Stocks to Buy After Q2 Earnings
Investing in This ETF Right Now Could Make You a Millionaire Retiree
July 31, 2021The Motley Fool
Investing in This ETF Right Now Could Make You a Millionaire Retiree
3 E-Commerce Stocks You May Be Underestimating
July 31, 2021The Motley Fool
3 E-Commerce Stocks You May Be Underestimating
A Stock Market Crash Is on the Way: 3 Stocks to Buy When It Happens
July 31, 2021The Motley Fool
A Stock Market Crash Is on the Way: 3 Stocks to Buy When It Happens