Module 6 · 10 min read
How to compare two stocks, step by step
Match the numbers, explain the gaps and build a comparison you can check, using Coca-Cola and PepsiCo’s 2025 results.
Written by the StockEducation Editorial Team · Reviewed by Associate Professor Charles Lo, CPA, PhD · Updated · How we check lessons
How do you compare two stocks?
Pick two companies in the same industry, use the same fiscal year and apply the same formulas to both. Compare growth, margins, return on equity next to debt, free cash flow, dividends and the P/E ratio. Then explain each gap from the business itself. The result is a list of questions to research, not a verdict on which stock to own.
Key takeaways
- Compare companies in the same industry, for the same year, with the same formulas.
- Coca-Cola’s 2025 operating margin was 28.7% against PepsiCo’s 12.2%, largely because their business models differ.
- Read return on equity next to debt to equity: PepsiCo’s ROE of 42.9% rests on twice Coca-Cola’s debt per dollar of equity.
- PepsiCo paid 92.7% of its 2025 net income as dividends, nearly all of its free cash flow.
- One off items move the picture: excluding fairlife, Coca-Cola’s free cash flow was $11.4 billion, not $5.3 billion.
- 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
Part 1 of 5 · 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, use the same fiscal year, and apply one formula to both. Then a gap between them tells you something about the businesses, not about your method.
Start with each company’s annual report, the 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. The notes matter as much as the headline numbers.1
Our example is Coca-Cola and PepsiCo. Both sell drinks, but Coca-Cola sells mostly concentrates and finished drinks, while PepsiCo pairs drinks with a large food business. A shared market doesn’t give them the same costs.2,3
Two drinks companies that are not twins, fiscal 2025
- Year end
- December 31
- Revenue
- $47.9B
- Mix
- Concentrates and finished drinks
- Food
- None
- Year end
- December 27
- Revenue
- $93.9B
- Mix
- Drinks plus snacks and food
- Food
- Large
Each fiscal year end, currency and unit belongs in your notes. Coca-Cola’s 2025 year ended December 31 and PepsiCo’s ended December 27. Those dates are close enough to compare, but a full year never compares with a quarter.
A comparison only means something between similar businesses, for the same period, with the same formulas and units.
Part 2 of 5 · Margins
Who keeps more of each sales dollar?
Margin is profit divided by revenue. It tells you how many 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 fiscal 2025 PepsiCo sold almost twice as much as Coca-Cola, $93,925 million against $47,941 million, yet Coca-Cola kept far more of each dollar as operating profit: $13,762 million, or 28.7%, against PepsiCo’s $11,498 million, or 12.2%.2,3
Operating margin, fiscal 2025
The gap starts with gross margin. 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 chart alone can’t prove its full cause.2
Margin is the share of each sales dollar a company keeps, and a bigger company does not always keep more.
Part 3 of 5 · Returns and cash
Do returns, debt and dividends tell the same story?
Return on equity, or ROE, is net income divided by the average shareholders’ equity over the year. It shows how much profit the company earns on the owners’ money. Anything that shrinks equity, such as buybacks or borrowing to pay shareholders, lifts ROE without the business getting any better.
That is why you read ROE next to debt to equity, which is total debt divided by equity. PepsiCo’s margin is less than half of Coca-Cola’s, yet its ROE is close behind. The table shows why: PepsiCo carries much more debt for each dollar of equity.4,5
Returns, debt and dividends, fiscal 2025
| Measure | Coca-Cola | PepsiCo |
|---|---|---|
| Net income | $13,107M | $8,240M |
| Return on equity | 46.0% | 42.9% |
| Total debt | $45,492M | $49,182M |
| Debt to equity | 1.41 | 2.41 |
| Dividends paid | $8,779M | $7,638M |
| Payout ratio | 67.0% | 92.7% |
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. That was roughly 93% of the $8.2 billion of free cash flow it reported, leaving little cash to spare.5 Coca-Cola paid $8.8 billion of dividends, more than its reported free cash flow of $5.3 billion that year, for the reason in the next part.
Dividends against free cash flow, fiscal 2025
Dividends paid Free cash flow
Return on equity rises when equity shrinks, so it reads together with debt to equity and the cash that pays the dividend.
Part 4 of 5 · Reported versus adjusted
Are you comparing reported or adjusted numbers?
One event or a changed definition can flip the picture. Coca-Cola reported $5.3 billion of free cash flow for 2025. Excluding a $6.1 billion payment for fairlife, a milk company it bought, the figure was $11.4 billion. Both numbers need their labels, and leaving the payment out doesn’t mean the cash was never spent.4
Coca-Cola’s two free cash flow figures, 2025
Earnings work the same way. Reported figures follow standard U.S. accounting rules, called GAAP. Adjusted, or core, figures leave out items management calls unusual. PepsiCo reported 2025 diluted earnings per share (EPS) of $6.00 and core EPS of $8.14. The reconciliation table that links the two shows what was left out and whether an excluded cost could come back.5
Worked example
Take one fixed share price of $155.29, an exercise price rather than a market quote. On reported EPS of $6.00 the price to earnings ratio is 25.9. On core EPS of $8.14 it is 19.1. The stock didn’t get cheaper; only the earnings figure changed.
Same price, two P/E ratios: PepsiCo 2025
So a lower multiple isn’t automatically the better buy. It can reflect higher risk, slower growth or simply a friendlier earnings definition.
A reported figure and an adjusted one describe the same year, and the gap between them is where the questions are.
Part 5 of 5 · Your routine
How do you build your own comparison?
Rebuild one ratio before you add more. The practice model below starts with the 2025 operating profit and revenue figures above. Change an input to see the arithmetic, then explain what the calculation leaves out.
Once the arithmetic feels natural, work through the full routine.
- Pick peers. Choose two businesses with similar products and customers.
- Label the reports. Save each annual report and note the period, currency and units.
- Measure the same way. Growth is this year’s revenue divided by last year’s, minus 1. Margin is profit divided by revenue. ROE is net income divided by average equity, read with debt divided by equity.
- Check the cash. Free cash flow is operating cash minus capital spending, using each company’s stated definition. Payout is dividends paid divided by net income.
- Price it. P/E is share price divided by diluted EPS, with the price date and the earnings period written beside it.
- Explain the biggest gap. Use the business description, the notes and the risk factors.
Definitions vary between companies, so one company’s adjusted measure never sits against another’s reported one without a label saying so. Our Compare Stocks Side by Side tool carries its own timestamp and formulas, and newer prices and periods will differ from this dated example.
Every gap in a comparison table is a question to answer, never a verdict on which stock to own.
Quick check
Quick quiz: test what you just read
Pick an answer to see why it is right. 5 questions, no account needed.
1. Coca-Cola’s 2025 gross profit was $29,544 million on revenue of $47,941 million. What was its gross margin?
2. Why did Coca-Cola report 2025 free cash flow of $5.3 billion, but $11.4 billion excluding the fairlife payment?
3. At a fixed price of $155.29, what happens to PepsiCo’s P/E if you use 2025 core EPS of $8.14 instead of reported EPS of $6.00?
4. PepsiCo’s 2025 operating margin was 12.2% against Coca-Cola’s 28.7%, yet its return on equity was close behind. What explains most of that?
5. Which pair of figures is a fair comparison?
Questions people ask
How to compare two stocks, step by step FAQ
Where do I find the numbers to compare two companies?
Start with each company’s annual report on Form 10-K. Item 8 holds the financial statements and Item 7 explains management’s view. Note each company’s fiscal year end, currency and units so you compare like with like.
Is a lower P/E ratio always better?
No. A lower multiple can reflect higher risk, slower growth or a different earnings definition. At the same $155.29 price, PepsiCo’s P/E is 25.9 on reported EPS and 19.1 on core EPS, so always say which EPS you used.
What is the difference between reported and adjusted earnings?
Reported figures follow GAAP, the standard U.S. accounting rules. Adjusted or core figures leave out items management considers unusual. Read the reconciliation and ask whether an excluded cost might recur.
Why can return on equity be misleading?
ROE divides net income by average equity, so anything that shrinks equity lifts it. Buybacks and borrowing to pay shareholders both do that. Read ROE with debt to equity and the cash flow statement before you decide one company uses capital better.
Why should I compare companies in the same industry?
Ratios only mean something against similar businesses. Even companies in a shared market can differ, as Coca-Cola’s concentrates and PepsiCo’s snacks show. Similar peers and identical formulas make the gaps reflect the businesses, not the method.
You finished this lesson.
You now have the main ideas from this lesson. Next, practice where mistakes cost nothing: a free account saves your progress and unlocks the practice simulator with virtual money.
Free, no card. Lessons stay free to read without an account.
Your notes on one card, and what comes next
- Step 1 · DoneHow to compare two stocks, step by step
See your notes on one card
- Compare companies in the same industry, for the same year, with the same formulas.
- Coca-Cola’s 2025 operating margin was 28.7% against PepsiCo’s 12.2%, largely because their business models differ.
- Read return on equity next to debt to equity: PepsiCo’s ROE of 42.9% rests on twice Coca-Cola’s debt per dollar of equity.
- PepsiCo paid 92.7% of its 2025 net income as dividends, nearly all of its free cash flow.
- One off items move the picture: excluding fairlife, Coca-Cola’s free cash flow was $11.4 billion, not $5.3 billion.
- A comparison table is a list of questions, not a verdict on which stock to own.
- 2Step 2 · NowSave your progress with a free account
Keep your course progress and practice on real U.S. stocks with virtual cash.
Create your free account No card needed. Lessons stay free to read. - 3Step 3Follow the learning pathThe 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, from market basics to company analysis and risk.
Start the learning path
Want the full sequence? See the course outline →
Sources and assumptions
- SEC, How to Read a 10-K. Guide to business, risk, management discussion and financial statements
- Coca-Cola, fiscal 2025 Form 10-K. Reported revenue, profit, gross margin and business model
- PepsiCo, fiscal 2025 Form 10-K. Reported revenue and operating profit; food and beverage segments
- Coca-Cola, full year 2025 results, February 10, 2026. Reported and fairlife adjusted free cash flow measures
- PepsiCo, full year 2025 results, February 3, 2026. Reported and core non GAAP EPS and reconciliation
Financial figures are historical, not forecasts. Ratios are calculated from the cited inputs and rounded. The $155.29 share price is a fixed exercise assumption, not a current market quote. Non GAAP definitions and adjustments require the company’s reconciliation.
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.
