We're not even four months into the year. Yet already, Chevron (CVX 2.81%) stock is up 46% year to date (YTD) -- much higher than any of the other 29 components in the Dow Jones Industrial Average (DJIA 2.55%).

High oil and gas prices tell only part of the story behind Chevron's success. Here's what separates Chevron from other oil and gas stocks and why it's still a buy despite its stock price hovering right around an all-time high.

An operator working in an industrial setting wearing a hardhat writes on a clipboard.

Image source: Getty Images.

Performance of the Dow stocks in 2022

The DJIA has spent years underperforming the S&P 500 and the Nasdaq Composite. And although the index is down 4.9% YTD, that's better than both the S&P 500 and the Nasdaq Composite, which are down 6.7% and 12.8%, respectively. 

Fifteen of the DJIA components -- exactly half -- are outperforming the index so far this year while the other 15 are underperforming. Here's a breakdown by company.

Company

Ticker

YTD Performance (as of End of Day 4/13/2022)

Chevron

CVX

46.3%

Travelers Companies

(TRV 3.72%)

17.4%

Dow

(DOW 0.94%)

13.1%

Amgen

(AMGN 0.78%)

12.7%

Merck

(MRK -0.91%)

12.4%

American Express

(AXP 6.97%)

9.8%

Coca-Cola

(KO -2.56%)

9.3%

Walmart

(WMT -0.29%)

8.7%

United Health

(UNH 5.23%)

6.9%

Caterpillar

(CAT 8.74%)

5.6%

Johnson & Johnson

(JNJ -0.30%)

5.6%

Verizon Communications

(VZ -0.24%)

4.2%

Visa

(V 4.81%)

(1.6%)

Procter & Gamble

(PG -2.84%)

(2.5%)

Apple

(AAPL -0.33%)

(4%)

Dow Jones Industrial Average

DJIA

(4.9%)

International Business Machines

(IBM 2.90%)

(5.6%)

McDonald's

(MCD -1.12%)

(6.2%)

Honeywell International

(HON 3.65%)

(6.6%)

Intel

(INTC 7.42%)

(8.7%)

Boeing

(BA -2.54%)

(9.2%)

Walgreens Boots Alliance

(WBA -4.05%)

(14.5%)

Microsoft

(MSFT 2.12%)

(14.5%)

Walt Disney

(DIS 2.34%)

(14.6%)

Goldman Sachs

(GS 13.10%)

(15.8%)

3M

(MMM 5.85%)

(16.3%)

Cisco Systems

(CSCO 3.04%)

(17.7%)

JPMorgan Chase

(JPM 11.54%)

(19.6%)

Salesforce

(CRM 3.16%)

(23%)

Nike

(NKE -3.41%)

(23.5%)

Home Depot

(HD -2.93%)

(25.2%)

Data source: YCharts.

Investors will quickly notice that the stocks that have carried the broader market higher over recent years, such as Apple, Microsoft, Salesforce, Nike, and Home Depot, are all down YTD -- whereas companies in the energy, industrials, materials, and consumer staples sectors are doing quite well.

A well-rounded oil and gas giant

Chevron has a reputation for having the best balance sheet of the integrated oil majors, especially over the last five years or so as its capital expenditures have dramatically decreased.

CVX Financial Debt to Equity (Quarterly) Chart

CVX Financial Debt to Equity (Quarterly) data by YCharts

Chevron has lower financial-debt-to-equity and debt-to-capital ratios than ExxonMobil, BP, Shell, and TotalEnergies -- which is a sign that its capital structure is less dependent on debt than those of its peers.

The Chevron of today is a lean oil major focused on achieving a low cost of production so it can generate positive free cash flow even when oil is in the low $40s per barrel. That strategy was put to the test in 2020 when West Texas Intermediate crude oil averaged $39.17 per barrel for the year. Sure enough, Chevron lost billions. But it suffered less than its peers.

CVX Net Income (Annual) Chart

CVX Net Income (Annual) data by YCharts

A strong performer during good times and bad

Chevron stock is a few percentage points off its all-time high as oil and gas prices show no signs of going down anytime soon. Russia is one of the largest oil-and-gas-exporting nations in the world along with Saudi Arabia and the United States. But the war in Ukraine has led many European countries and the U.S. to either flat-out ban Russian energy imports or begin swiftly working toward solutions to wean themselves off Russian imports -- such as by constructing liquefied natural gas import terminals in Europe.

If oil and gas prices stay high, Chevron will continue to have outsize profits. But even if prices fall, Chevron has a wide margin of error where it can still do incredibly well. This efficient portfolio is one of the reasons Chevron is a Dividend Aristocrat and can support its growing dividend and stock repurchases. (A Dividend Aristocrat is an S&P 500 component that has paid and raised its dividend for at least 25 consecutive years.)

Chevron's upside potential and 3.4% dividend yield give it a one-two punch for long-term investors who like a financially strong company and are also interested in generating passive income.