Skip to content

How to Compare Two Stocks, Step by Step

Module 7 · Step 10 of 16 · 8 min read

How to compare two stocks, step by step

Comparing two companies works only when you use the same year and the same formulas, and understand how their businesses differ.

Written by the StockEducation Editorial Team · Reviewed by Associate Professor Charles Lo, CPA, PhD · Updated · How we check lessons

Quick answer

How do you compare two stocks?

Choose two companies in the same industry, take the same year from each 10-K, and apply the same formulas for growth, margins, return on equity, debt, free cash flow, dividends and valuation. Then explain the gaps, using each company’s business description and risks.

Key takeaways

  1. Compare companies in the same industry, for the same year, with the same formulas.
  2. Coca-Cola’s 2025 operating margin was 28.7% against PepsiCo’s 12.2%, largely because their business models differ.
  3. Read return on equity next to debt to equity, because borrowing and buybacks can lift ROE.
  4. PepsiCo paid 92.7% of its 2025 net income as dividends, nearly all of its free cash flow.
  5. One off items move the picture: excluding fairlife, Coca-Cola’s free cash flow was $11.4 billion, not $5.3 billion.
  6. A comparison table is a list of questions, not a verdict on which stock to own.

Start the lessonTake the quick checkRead the FAQSee the sources

All 4 parts of this lesson

Part 1 of 4 · Choosing peers

Which two companies can you fairly compare?

A comparison only works when the two companies are alike and the numbers are built the same way. Pick businesses with similar products and customers, take the same year from each annual report, and apply one formula to both. Then a gap tells you something about the businesses, not about your method.

Start with each company’s Form 10-K. Item 1 describes the business, Item 1A lists the risks, Item 7 gives management’s view of the year and Item 8 holds the financial statements.1

This lesson compares Coca-Cola and PepsiCo. Both sell drinks, but Coca-Cola sells mostly concentrates and finished drinks, while PepsiCo pairs drinks with a large snack and food business.2,3 Coca-Cola’s 2025 year ended December 31 and PepsiCo’s on December 27, close enough to compare, but worth noting.

Read the full lesson on how to compare two stocks for the margin calculator and the full checklist.

The rule

A gap between two companies only means something when both numbers come from the same year, the same formula and a similar business.

Marks Part 1 done

Part 2 of 4 · Margins

Who keeps more of each sales dollar?

Margin is profit divided by revenue: the cents of each sales dollar a company keeps. Gross margin subtracts only the cost of making the product; operating margin also subtracts running costs such as marketing and salaries.

In 2025 PepsiCo sold almost twice as much as Coca-Cola, yet Coca-Cola kept far more of each dollar as operating profit: 28.7% against 12.2%.2,3

Revenue against operating profit, fiscal 2025 ($ billions)

$0B$25B$50B$75B$100B$47.9B$93.9BRevenue$13.8B$11.5BOperatingprofit

Coca-Cola PepsiCo

PepsiCo’s revenue of $93.9 billion is almost twice Coca-Cola’s $47.9 billion, yet its operating profit of $11.5 billion is below Coca-Cola’s $13.8 billion. Size and profitability are different questions. Source: Coca-Cola and PepsiCo fiscal 2025 Form 10-K filings.

Coca-Cola and PepsiCo margins, fiscal 2025

MeasureCoca-ColaPepsiCo
Revenue$47,941M$93,925M
Operating profit$13,762M$11,498M
Operating margin28.7%12.2%
Operating margin = operating profit ÷ revenue × 100, rounded to one decimal. Notice that PepsiCo has nearly twice the revenue but less operating profit. U.S. dollars, millions. Source: Coca-Cola and PepsiCo fiscal 2025 Form 10-K filings.

The gap starts higher up. Coca-Cola’s gross profit was $29,544 million on $47,941 million of revenue, a gross margin of about 61.6%.4 Coca-Cola says finished drinks generally carry lower gross margins than concentrates, and PepsiCo’s mix includes snacks and food. Those facts help explain the gap, though the table alone cannot prove its full cause.2

The rule

In 2025 PepsiCo sold almost twice as much as Coca-Cola, yet Coca-Cola kept 28.7 cents of each sales dollar as operating profit against PepsiCo’s 12.2.

Marks Part 2 done

Part 3 of 4 · Returns and cash

Do returns, debt and dividends tell the same story?

Return on equity (ROE) is net income divided by average shareholders’ equity. Anything that shrinks equity, such as buybacks or borrowing, lifts ROE without the business getting better. So read it next to debt to equity, total debt divided by equity.

PepsiCo’s margin is less than half of Coca-Cola’s, yet its ROE of 42.9% is close to Coca-Cola’s 46.0%. The reason is leverage: PepsiCo carries 2.41 dollars of debt per dollar of equity, against 1.41 for Coca-Cola.4,5

Returns, debt and dividends, fiscal 2025

MeasureCoca-ColaPepsiCo
Net income$13,107M$8,240M
Return on equity46.0%42.9%
Total debt$45,492M$49,182M
Debt to equity1.412.41
Dividends paid$8,779M$7,638M
Payout ratio67.0%92.7%
Notice that PepsiCo’s ROE is close to Coca-Cola’s despite a much lower margin, because it uses more debt. ROE is net income ÷ average equity; debt to equity is total debt ÷ year end equity; payout is dividends paid ÷ net income. Source: Coca-Cola and PepsiCo full year 2025 results.

Margin, return on equity and payout, fiscal 2025

0%25%50%75%100%28.7%12.2%Op. margin46%42.9%ROE67%92.7%Payout

Coca-Cola PepsiCo

Operating margin 28.7% against 12.2%, yet ROE of 46.0% against 42.9%: leverage closes most of the gap. Payout ratio is dividends paid divided by net income, 67.0% against 92.7%. Computed from each company’s full year 2025 results. Source: Coca-Cola and PepsiCo full year 2025 results.

The payout ratio is dividends paid divided by net income. PepsiCo paid 92.7% of its 2025 net income as dividends, about $7.6 billion, roughly 93% of the $8.2 billion of free cash flow it reported.5 That leaves little cash to spare. Coca-Cola paid $8.8 billion, 67.0% of its net income, but more than its reported free cash flow, for the reason in the next part.

The rule

PepsiCo’s ROE nearly matches Coca-Cola’s on less than half the margin because it carries 2.41 dollars of debt per dollar of equity against 1.41.

Marks Part 3 done

Part 4 of 4 · One off items

Are you comparing reported or adjusted numbers?

One event can flip the picture. Coca-Cola reported $5.3 billion of free cash flow for 2025. Excluding a one time $6.1 billion payment for fairlife, a milk company it bought, the figure was $11.4 billion. Leaving the payment out does not mean the cash was never spent, so keep both numbers with their labels.4

Coca-Cola’s 2025 free cash flow, with and without the fairlife payment

Reported free cash flow of $5.3 billion rises to $11.4 billion when the one time $6.1 billion fairlife payment is excluded. Both are true; the label is what matters. Dividends paid were $8.8 billion. Source: Coca-Cola full year 2025 results.

Earnings work the same way. Reported figures follow GAAP, the standard U.S. accounting rules; adjusted, or core, figures leave out items management calls unusual. PepsiCo reported 2025 diluted EPS of $6.00 and core EPS of $8.14.5

Worked example

Take a fixed exercise price of $155.29 for PepsiCo, not a market quote. On reported EPS the P/E is 25.9; on core EPS it is 19.1. The stock did not get cheaper; only the earnings figure changed.

One price, two P/E ratios for PepsiCo

Fixed exercise price of $155.29 ÷ reported diluted EPS of $6.00, and ÷ core EPS of $8.14. Notice that only the earnings definition changed. Source: PepsiCo full year 2025 results.

Quick check

Open Compare Stocks Side by Side, enter KO and PEP and click Compare Stocks. Write the tool’s P/E, ROE, revenue growth and payout ratio next to this lesson’s figures: P/E of 25.0 and 25.9 at the lesson’s fixed exercise prices, ROE of 46.0% and 42.9%, revenue growth of 1.9% and 2.3%, and payout of 67.0% and 92.7%. The tool’s data refreshes daily, so explain each difference: a newer price, newer quarters or a different formula.

Open Compare Stocks Side by Side

The rule

At the same price PepsiCo’s P/E is 25.9 on reported earnings and 19.1 on core earnings, so the multiple depends on the earnings definition.

Marks Part 4 done

Quick check

Quick quiz: test what you just read

Pick an answer to see why it is right. 5 questions, no account needed.

0 of 5 answered

1. In 2025 PepsiCo’s revenue was almost twice Coca-Cola’s. Which company kept more of each sales dollar as operating profit?

Answer: A.Operating margin is operating profit divided by revenue. Coca-Cola earned $13.8 billion on $47.9 billion; PepsiCo earned $11.5 billion on $93.9 billion.

2. PepsiCo’s operating margin is less than half of Coca-Cola’s, yet its return on equity is close. What explains the gap closing?

Answer: A.ROE divides net income by shareholders’ equity. Borrowing more and keeping equity small lifts ROE without the business becoming more profitable.

3. PepsiCo paid 92.7% of its 2025 net income as dividends. Why does that deserve a closer look?

Answer: A.A payout near 100% of net income, and about 93% of free cash flow, leaves a thin cushion if profits fall.

4. Coca-Cola reported $5.3 billion of 2025 free cash flow, or $11.4 billion excluding the fairlife payment. What is the right way to use these figures?

Answer: A.Excluding a one time item helps you see the recurring business, but the $6.1 billion still left the company. Each figure answers a different question.

5. At a fixed price of $155.29, PepsiCo’s P/E is 25.9 on reported EPS of $6.00 and 19.1 on core EPS of $8.14. What changed between the two?

Answer: A.Core EPS leaves out items management calls unusual. The stock did not get cheaper; the denominator got bigger.

Questions people ask

How to compare two stocks, step by step FAQ

What metrics should I use to compare two stocks?

Start with growth, margins, return on equity, debt, free cash flow, dividends and valuation, taken from the same year’s 10-K for each company. Then read Item 1 and Item 1A for the business model and risks. Use the same formulas and dates for both.

Is a lower P/E always better?

No. A lower multiple can reflect higher risk, slower growth or a friendlier earnings definition. PepsiCo’s P/E is 25.9 or 19.1 at the same price, depending on which EPS you use.

What does the payout ratio tell you?

It shows how much of net income is paid out as dividends. A high ratio leaves less room for reinvestment or a weak year, and a payout that uses up nearly all free cash flow deserves a closer look.

Why do stock comparison tools show different numbers?

Tools refresh their data, so a ratio can change with a newer price, newer quarterly results or a different formula. Check the date, period and definition behind each figure before deciding which to use.

Next steps

You finished this step.

Mark this step complete to save your place in the course, then carry on with What Is the CAPE Ratio? Shiller PE and the Buffett Indicator.

Your progress saves to your account. You can come back to any step from the course map.

Your notes on one card, and what comes next
  1. Step 1 · DoneHow to compare two stocks, step by step
    See your notes on one card
    1. Compare companies in the same industry, for the same year, with the same formulas.
    2. Coca-Cola’s 2025 operating margin was 28.7% against PepsiCo’s 12.2%, largely because their business models differ.
    3. Read return on equity next to debt to equity, because borrowing and buybacks can lift ROE.
    4. PepsiCo paid 92.7% of its 2025 net income as dividends, nearly all of its free cash flow.
    5. One off items move the picture: excluding fairlife, Coca-Cola’s free cash flow was $11.4 billion, not $5.3 billion.
    6. A comparison table is a list of questions, not a verdict on which stock to own.
  2. 2
    Step 2 · NowMark this step complete

    Completing each step keeps your course map and progress up to date.

    Mark complete
  3. 3
    Step 3Continue with What Is the CAPE Ratio? Shiller PE and the Buffett Indicator
    The learning pathFree

    Learn the rest in the right order

    Ten modules of lessons, videos, tools and quizzes, ordered so each step builds on the last.

    Go to the next step

Want the full sequence? See the course outline →

Sources and assumptions

StockEducation provides general education, not personal financial, tax or legal advice. Companies and funds named here are teaching examples only. Nothing here recommends buying or selling any security. Investing involves risk, including the loss of money you invest.

Up nextPart 1 · Which two companies can you fairly compare?
Next ↓
AI Tutor Online
Ask Anything
AI
Hi! I’m your AI tutor for this lesson. Ask me anything about the content — I’m here to help you understand it deeply.

AI responses are for educational purposes. Always verify with official course materials.

This lesson teaches a concept. It is general education, not advice about your money. Before you act on anything you learn here, speak to someone licensed.

Sources and reference material

Primary sources and original reference material for the concepts discussed on this page.

References added 14 October 2026.

AI Tutor Online
Ask Anything
AI
Hi! I'm your AI tutor for this lesson. Ask me anything about the content — I'm here to help you understand it deeply.

AI responses are for educational purposes. Always verify with official course materials.

This lesson teaches a concept. It is general education, not advice about your money. Before you act on anything you learn here, speak to someone licensed.

This lesson teaches a concept. It is general education, not advice about your money. Before you act on anything you learn here, speak to someone licensed.

Free beginner guide

New to Investing? Start With Our Free Guide

20 pages on the basics, 6 safe ways to use AI, and a 10 question quiz. Free in your inbox.

Free PDF in your inbox. No spam. Unsubscribe any time.

Learning Path IncludedEvery lesson in the right order, freeGet the Free Guide

AI Robot

Ask the
Stock AI Assistant

Get instant educational answers about
stocks, investing, and StockEducation.com.

Instant Answers Built With Learners

Educational support only. Not personal financial advice. AI responses may contain errors.

Powered by AI ●

The Ultimate Investing Starter Guide

Free Stock Market
Investing Guide

A beginner friendly guide that covers the essential lessons and concepts every new investor should understand.

Beginner Investing Guide Form

Inside You'll Learn

Stocks & How They Work
Valuation Basics
Compound Interest
Index Funds & Diversification
Warren Buffett Principles
AI Stock Research & More
20+ Pages
of Value
Instant
Download
100% Free
No Strings