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

Source 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
Analyst Says Cycle Is Not Finished Amid 2 Years Of Bitcoin Sideways MovementBitcoin (BTC) is now 195 days into its latest sideways movement, which is part of a broader two-year stretch marked by sluggish price action and short-lived rallies. According to a crypto analyst,
Author  NewsBTC
14 hours ago
Bitcoin (BTC) is now 195 days into its latest sideways movement, which is part of a broader two-year stretch marked by sluggish price action and short-lived rallies. According to a crypto analyst,
placeholder
US Dollar Index edges lower below 97.00 on downbeat US job data, Fed rate cut betsThe US Dollar Index (DXY), an index of the value of the US Dollar (USD) measured against a basket of six world currencies, remains on the defensive near 96.70 during the early Asian session on Thursday.
Author  FXStreet
14 hours ago
The US Dollar Index (DXY), an index of the value of the US Dollar (USD) measured against a basket of six world currencies, remains on the defensive near 96.70 during the early Asian session on Thursday.
placeholder
Bitcoin Holds Steady Above $107K As US Senate Clears $4.5T Spending BillBitcoin held its ground as US President Donald Trump’s “One Big Beautiful Bill” passed the Senate late Monday narrowly by 51–50 votes. Related Reading: Insane Or Insightful? VC
Author  NewsBTC
14 hours ago
Bitcoin held its ground as US President Donald Trump’s “One Big Beautiful Bill” passed the Senate late Monday narrowly by 51–50 votes. Related Reading: Insane Or Insightful? VC
placeholder
This Altcoin Looks Like PEPE Before It Exploded, Analyst SaysA cryptocurrency analyst has pointed out how Pudgy Penguins (PENGU) is starting to look similar to Pepe (PEPE) did before its explosion. Pudgy Penguins May Be Following A Similar Path As PEPE In a
Author  NewsBTC
14 hours ago
A cryptocurrency analyst has pointed out how Pudgy Penguins (PENGU) is starting to look similar to Pepe (PEPE) did before its explosion. Pudgy Penguins May Be Following A Similar Path As PEPE In a
placeholder
Bitcoin Price Surges Toward $110K — Will It Finally Stick the Landing?Bitcoin price started a fresh increase from the $105,200 zone. BTC is now consolidating and might struggle to continue higher above the $110,000 resistance. Bitcoin started a fresh increase above the
Author  NewsBTC
14 hours ago
Bitcoin price started a fresh increase from the $105,200 zone. BTC is now consolidating and might struggle to continue higher above the $110,000 resistance. Bitcoin started a fresh increase above the
goTop
quote