Should You Be Buying Stocks if the S&P 500 Hits a New All-Time High in July?

Source The Motley Fool

The S&P 500 hit a new all-time high last Friday, surpassing its previous record from February. The index is now up 5% year to date -- a truly remarkable recovery given that the index was down over 17% year to date at its intraday low on April 7.

Here's why investors should continue buying stocks even though the major indexes are hitting new highs, but why investing in quality companies is especially important when valuations are elevated.

Where to invest $1,000 right now? Our analyst team just revealed what they believe are the 10 best stocks to buy right now. Continue »

A person sitting at a table in an office looking at a laptop computer.

Image source: Getty Images.

Get comfortable buying high

Buying a higher price goes against every instinct ingrained in us as consumers. Buyers benefit when clothing goes on sale, cars can be purchased below sticker price, or when housing prices or land values fall.

Most goods are stagnant assets. There's very little chance that a pair of jeans you buy today will be worth more a few years from now. And cars fall in value the second they are driven off the lot.

House prices and land values in growing urban areas have historically increased over time, but it's not because the land is magically better than it used to be. Rather, it's all about supply and demand.

Stocks are different. They represent partial ownership of a company. No matter how small, a slice of a big pie can be powerful if the company compounds in value. And yet, investors still often make the mistake of assuming a stock is a good buy because the price is lower, or that a stock is not a good buy or is worth selling because the price has gone up.

A good stock to buy near an all-time high

Visa (NYSE: V) is a good example of a well-known company that has continued to go up in value for all the right reasons. Its business model has remained essentially the same for decades. However, what has changed is a massive shift away from cash payments toward debit and credit cards and digital payments.

The company makes money when its cards are tapped, swiped, or entered digitally. It earns revenue based on the volume and frequency of transactions with its cards. And yet it doesn't bear the credit risk of its customers. Instead, it partners with financial institutions to bear that risk.

The larger and more secure Visa's network becomes, the more merchants may be willing to absorb Visa's fees so they don't hurt their sales. At the same time, consumers are incentivized to use their cards for as many purchases as possible, given the purchase protection offered by many financial institutions and credit card rewards programs.

It's a simple and relatively easy-to-understand business model that has made patient investors rich.

V Chart

V data by YCharts

As you can see in the above chart, Visa has extremely high margins because it converts over half of its revenue into pure profit -- which has helped the stock price increase over 400% in the last decade. And because Visa's expenses are manageable, it can afford to pass along profits to shareholders by repurchasing stock and paying a growing dividend.

Just because Visa's stock price has compounded several-fold over the long term doesn't mean the stock is a bad buy now. Visa commands a premium valuation with a price-to-earnings (P/E) ratio of 35 compared to its 10-year median P/E of 33.2. But its forward P/E is 30.7, suggesting analysts believe that Visa has the qualities necessary to grow into that valuation over time.

Be selective

Visa is just one of many companies hovering within striking distance of all-time highs that could still be worth buying now. The stock isn't as good a deal as it was a couple of months ago, but it could still be a solid long-term investment.

When the broader market is undergoing a rapid sell-off, many phenomenal companies can fall to bargain-bin valuations. But when the major indexes are making new highs, it is even more important for investors to be selective and only put their hard-earned savings into companies they are highly committed to.

In sum, folks shouldn't stop investing just because stocks have gone up, but rather, understand the effect of valuation changes on their existing holdings and how price increases could impact the risk and potential reward of stocks on their watch lists.

Should you invest $1,000 in Visa right now?

Before you buy stock in Visa, consider this:

The Motley Fool Stock Advisor analyst team just identified what they believe are the 10 best stocks for investors to buy now… and Visa wasn’t one of them. The 10 stocks that made the cut could produce monster returns in the coming years.

Consider when Netflix made this list on December 17, 2004... if you invested $1,000 at the time of our recommendation, you’d have $697,627!* Or when Nvidia made this list on April 15, 2005... if you invested $1,000 at the time of our recommendation, you’d have $939,655!*

Now, it’s worth noting Stock Advisor’s total average return is 1,045% — a market-crushing outperformance compared to 178% for the S&P 500. Don’t miss out on the latest top 10 list, available when you join Stock Advisor.

See the 10 stocks »

*Stock Advisor returns as of June 30, 2025

Daniel Foelber has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Visa. The Motley Fool has a disclosure policy.

Disclaimer: For information purposes only. Past performance is not indicative of future results.
placeholder
USD/JPY trades cautiously positive around 144.00 ahead of key US dataThe USD/JPY pair edges higher to near 143.90 during European trading hours on Thursday. The pair trades cautiously higher as the US Dollar (USD) ticks up ahead of the United States (US) Nonfarm Payrolls (NFP) data for June, which will be published at 12:30 GMT.
Author  FXStreet
6 hours ago
The USD/JPY pair edges higher to near 143.90 during European trading hours on Thursday. The pair trades cautiously higher as the US Dollar (USD) ticks up ahead of the United States (US) Nonfarm Payrolls (NFP) data for June, which will be published at 12:30 GMT.
placeholder
USD/CHF upside attempts remain limited below 0.7945 ahead of the US NFP reportThe US Dollar is trading with marginal gains for the second consecutive day on Thursday.
Author  FXStreet
6 hours ago
The US Dollar is trading with marginal gains for the second consecutive day on Thursday.
placeholder
Eurozone June Inflation Commentary: Mid-Term Bearish Outlook for the EuroOn 1 July 2025, the Eurozone published its June inflation figures, which met market consensus.
Author  TradingKey
7 hours ago
On 1 July 2025, the Eurozone published its June inflation figures, which met market consensus.
placeholder
BYD delays expansion in the Americas due to trade uncertaintyBYD said it still plans to grow in North and South America, but it doesn’t know when.
Author  Cryptopolitan
7 hours ago
BYD said it still plans to grow in North and South America, but it doesn’t know when.
placeholder
USD/CAD Price Forecast: Remains below 1.3600 due to persistent bearish biasThe USD/CAD pair extends its losses after registering nearly 0.50% losses in the previous session, trading around 1.3590 during the European hours on Thursday.
Author  FXStreet
7 hours ago
The USD/CAD pair extends its losses after registering nearly 0.50% losses in the previous session, trading around 1.3590 during the European hours on Thursday.
goTop
quote