Rising long-term Treasury yields ultimately might not pose much of a problem for most stocks. But the bout of indigestion that higher yields are already giving to some of the past year’s biggest winners—shares of companies including Amazon.com, AMZN 0.43% Apple, AAPL -0.11% Tesla TSLA -2.19% and Microsoft MSFT -0.53% —could prove more lasting.

Some of that is because these companies’ steep valuations make them vulnerable to rising yields. But it also stems from how, even as the Covid-19 pandemic wreaked havoc, those stocks did so well.

With the daily tally of new Covid-19 cases falling rapidly, millions of vaccine doses going into arms each week and another round of government support looking as if it is on its way, a return to something like normal in the months ahead is looking more and more likely. And with that prospect of recovery, bond investors have become less enamored with the safety of long-term Treasurys, pushing rates higher. The 10-year note’s yield is now 1.36%, compared with 0.88% just three months ago, marking its highest level in a year.

For most U.S. companies, the all-clear signal that the Treasury market has started sounding is a good thing. As Americans get back to doing things like eating out at restaurants, heading out on vacations and going to the mall, sales could flourish. Considering how much money has built up in a lot of people’s bank accounts during the pandemic and how much pent-up demand there is for all the things they did before the pandemic, there could be a bit of a boom.

For the shares of those companies, on the other hand, the rise in long-term rates provides a bit of a challenge: The higher that yields go, the more competitive bonds are with stocks. The challenge is hardly insurmountable, however, considering that the better economy that yields are heralding makes for better profits. That is why as often as not in recent years, periods of rising Treasury yields coincide with stocks rising, too.

Some stocks however, such as shares of consumer-staples companies including food processors and paper-towel makers, tend not to cope well with higher long-term interest rates. That is because these companies suffer less when the economy is in a downturn, but they also don’t benefit as much when the economy comes back.

Companies such as Amazon and Apple don’t usually get lumped in with consumer staples, but over the past year they were among a highflying group of big companies that generated strong sales growth not just in spite of the pandemic, but in some regards as a result of it. People holed up at home bought more stuff over the internet, spent money that might otherwise have gone toward nights out on streaming services, and devoted more of their spending to big-ticket items like computers and cars.

A return to a more normal economy doesn’t necessarily mean that growth at these pandemic winners will falter, but neither will it pick up all that much. So their shares don’t look as attractive relative to Treasurys if Treasury yields keep going up.

They may also look less attractive relative to the shares of many of those companies that suffered during the pandemic and that could see business boom as the pandemic eases. The best stocks to buy now might not be the stocks that have done best over the past year.

Write to Justin Lahart at [email protected]

Copyright ©2020 Dow Jones & Company, Inc. All Rights Reserved. 87990cbe856818d5eddac44c7b1cdeb8

This post first appeared on wsj.com

You May Also Like

The Mystery at the Heart of Physics—That Only Math Can Solve

“It’s totally boring, because you’ve described a lonely field with nothing to…

Elon Musk reinstates Kanye West’s Twitter account after ban

Social media platform rebranded as X lifts ban on rapper-producer imposed after…

Nintendo finally unveils its more expensive Switch – it’ll be available starting in October 

After failing to unveil a new console at the E3 video game…

Splunk Names New CEO

Software maker Splunk Inc. SPLK -1.39% named a new chief executive, 3½…