Astute investors focused on the long term always analyze potential investments to see how they'd perform in a hypothetical recession. To build sustainable wealth in the stock market, it is prudent and beneficial to seek out stocks that are resilient during adverse economic scenarios. This is of the utmost importance in today's economic climate, where owning these companies not only provides growth potential, but delivers peace of mind in tough times.

Three stocks that can recession-proof your portfolio are Chipotle Mexican Grill (CMG 1.07%), Costco Wholesale (COST 1.01%), and Planet Fitness (PLNT 1.82%).

Chipotle Mexican Grill

Chipotle is a household name in fast-casual dining. The company's giant burritos and burrito bowls have become a favorite over the years for consumers seeking high-quality food at a value.

Some investors might view Chipotle as a mere consumer discretionary business, but I'd urge them to look at the company's performance during the Great Recession. From 2006 through 2010, Chipotle's sales and profits grew every single year, demonstrating the appeal it has when budgets are tight. A family that usually dines at a higher-end restaurant once a week will gladly substitute that meal with Chipotle, especially when saving money is the priority.

dice spelling out the word risk

Image source: Getty Images.

The company's second-quarter 2020 results were a disappointment compared to the prior-year period -- not surprising, given the onslaught of the coronavirus pandemic and sharp recession that followed. Chipotle's digital orders, however, more than tripled and represented 61% of overall sales in the quarter. In the midst of a global pandemic that resulted in all locations offering to-go only and an operating loss during the second quarter, Chipotle management still believes the company is well positioned to come out stronger than before. Specifically, the company's focus on bolstering its digital and rewards offerings will increase customer stickiness in the future.

The stock has had quite the run this year, up 37% through Monday's close. A P/E ratio of 127 does not exactly bring out the bargain hunters, but investors looking for downside protection should monitor the stock for a better entry point.

Costco Wholesale

Costco's stock has risen 12% so far this year, driven by the company's impressive e-commerce growth during the pandemic. Customers flocked to Costco's warehouses to load up on essential items during shelter-in-place orders. Same-store sales in the U.S. in the third quarter ended May 10 rose 5.9%, while e-commerce sales soared 64.5%. This is all the proof investors need to show how recession-proof this business is.

Costco's relentless focus on delivering low prices is what keeps members coming back for more. As consumers see just how beneficial shopping here is, membership growth should continue trending upward. In Q3, membership fees generated $815 million, and there were 55.8 million member households.

Although Costco sells its products at low prices, its stock doesn't look cheap when compared to peers like Walmart and BJ's Wholesale Club. However, I think it's worth paying up for this best-in-class company.

Planet Fitness

This low-cost fitness center chain has all the makings of a recession-proof business. At first glance, just like Chipotle, investors might not consider this a consumer staple. Even though the stock is down 32% this year, it's crucial to understand in the context of the last few months.

In a typical recession, businesses aren't forced to close like we've seen during the pandemic. They are able to stay open and serve their customers. In this scenario, Planet Fitness' $10-a-month gym membership, its lowest-priced option, would be extremely attractive compared to the industry median of $71 a month.

Furthermore, even in situations where locations are forced to shut down temporarily, Planet Fitness' capital-light franchise business model puts the financial burden on the company's franchisees. At the end of the first quarter of 2020, Planet Fitness had more cash on its balance sheet than total operating expenses in all of 2019. Being able to preserve cash during difficult times is necessary to survive recessionary periods.

With the stock currently off 42% from its all-time high reached in February, investors should get in and buy shares in this resilient high-growth fitness company.

What doesn't kill you makes you stronger

These three companies are the definition of recession-proof. Not only are they the first choice for consumers during robust economic times, in bad times they are the go-to option for those looking to save money. Recessions are often the end of many successful businesses. Adding these three stocks to your portfolio ensures that you own companies that will not only survive, but thrive, when economic activity picks back up.