There's really no such thing as a recession-proof company. Different types of recessions can impact different sectors and businesses. However, if you're looking for good stocks to buy when the market inevitably goes south, you want companies that are likely to come through the next downturn looking even stronger.

Recessions generally have a bigger impact on companies that are overvalued. When a downturn hits, people scramble for safe-harbor investments, and that's why I recommend Louisiana-Pacific (LPX -0.49%), Johnson & Johnson (JNJ -1.15%) and Target (TGT -0.54%). They have the type of growth than can weather recessions, yet are not overpriced based on their price-to-earnings (P/E) ratios. Plus, all three reward patient investors with quarterly dividends.

An person checking out the performance of a stock on a laptop.

Image source: Getty Images

Stick with Louisiana-Pacific for stability and some growth

Louisiana-Pacific is a lumber company that makes various products for building such as OSB board, siding, trim, l-joists and engineered wood. The company has operations in the U.S., Canada, Chile, and Brazil.

Louisiana-Pacific has experienced consistent growth. Over the past three years, the stock's price has risen more than 124% while the company's revenue has climbed 79.78% and earnings per share (over the trailing 12 months) are up 235.9% over that period.

The company recently raised its dividend by 13% to $0.18 per share, which works out to a yield of 1.18%. The stock is up more than 71% this year, but it's still a bargain based on its P/E ratio of 5.4 and forward P/E of 4.8.

In the second quarter, the company reported record net sales and earnings before interest, taxes, depreciation, and amortization, or EBITDA. Net sales for the quarter were listed at $1.3 billion, up 142% year over year and adjusted EBITDA was $684 billion, up 16.5% over the same period in 2020.

Louisiana-Pacific also spent $465 million in the quarter to repurchase 7.3 million shares of stock, adding value for its investors. The company has increased earnings per share for five consecutive quarters. The housing shortage that has driven up home costs means that homebuilders have a long way to go to catch up with demand, and Louisiana-Pacific should benefit from increased home building.

Johnson & Johnson can't be stopped

The key to Johnson & Johnson's strength is its size and diverse income streams. The company's stock is up about 3% for the year and its P/E is 24, lower than the industry average of 27.

When the pandemic hit in 2020, the company's stock took a quick dive from $151.80 on Feb. 2 to $109.16 a share on March 23, but then quickly rose to the surface, reaching $152.30 by April 17, higher than it had before the pandemic began. This is a company built for the long run. Over the past five years, revenue is up 30.87% and earnings per share (diluted) is up 53.39%.

The company is a Dividend King that has raised its dividend for 59 consecutive years, including a 5% raise this year to $1.06 per share. As of this writing, that works out to a yield of 2.56%.

In the second quarter ended July 21, the company reported sales of $23.3 billion, up 27.1% year over year. Earnings per share were $2.35, up 72.8% compared to the same period in 2020.

The company has 136,000 employees and operates in three segments, all of which are seeing improved sales this year: medical device, consumer health, and pharmaceutical. The medical device segment saw the strongest surge in the quarter, year over year, because it was the most impacted by the pandemic. In the second quarter, the company reported medical device sales of $6.9 billion, up 62.7% year over year.

The company's highest-earning segment is pharmaceutical, which earned $12.6 billion in revenue in the quarter, up 17.2% over the same period in 2020. On top of that, the company had five approvals between the U.S. and Europe during the period, which would be considered a great year for most pharmaceutical companies.

Target keeps evolving

Target is one of the few retail stores that has figured out how to utilize online sales while retaining in-store business. The company has grown revenue and EPS for four consecutive years. Target's stock is up more than 35% this year, yet its P/E (TTM) and forward P/E ratios hover around 18.

The company became a Dividend King this year when it raised its dividend for the 50th consecutive year, upping its quarterly dividend by 32% to $0.90 a share, which works out to a yield of about 1.23%.

There are a few elements that make Target better structured for surviving an economic downturn. First of all, it actually saw sales rise during the pandemic. Its stores have grocery sections and people tend to eat more at home when they want to save money, or as in the case of the pandemic, when eating out becomes a risk. The company has also done a great job of providing trendy apparel at competitive prices.

In the second quarter, the company reported revenue of $25.2 billion, up 9% over what had been record growth in the same quarter last year. Digital sales grew 10% year over year, led by same-day services, and diluted EPS was $3.65, an improvement of 8.9% over the same quarter last year.

The choice is up to you

To me, it makes sense to buy all three of these stocks when their shares dip or if the general market looks to be going through a downturn. Louisiana-Pacific has had the most impressive run over the past three years in spite of the pandemic, and its low valuation makes it the easiest choice for me. Target would be my second choice, because it seems to thrive as other retailers struggle and it also has had strong share price growth. I also like Johnson & Johnson because it has the best dividend of the three, though its share growth is the slowest. The company's size makes it more capable of handling disruptions in the market that are bound to come over time.