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.
CL
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?
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
- 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, because borrowing and buybacks can lift ROE.
- 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 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.
A gap between two companies only means something when both numbers come from the same year, the same formula and a similar business.
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)
Coca-Cola PepsiCo
Coca-Cola and PepsiCo margins, fiscal 2025
| Measure | Coca-Cola | PepsiCo |
|---|---|---|
| Revenue | $47,941M | $93,925M |
| Operating profit | $13,762M | $11,498M |
| Operating margin | 28.7% | 12.2% |
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
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.
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
| 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% |
Margin, return on equity and payout, fiscal 2025
Coca-Cola PepsiCo
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.
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.
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
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
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.
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.
Quick check
Quick quiz: test what you just read
Pick an answer to see why it is right. 5 questions, no account needed.
1. In 2025 PepsiCo’s revenue was almost twice Coca-Cola’s. Which company kept more of each sales dollar as operating profit?
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?
3. PepsiCo paid 92.7% of its 2025 net income as dividends. Why does that deserve a closer look?
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?
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?
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.
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
- 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, because borrowing and buybacks can lift ROE.
- 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 · NowMark this step complete
Completing each step keeps your course map and progress up to date.
Mark complete → - 3Step 3Continue with What Is the CAPE Ratio? Shiller PE and the Buffett IndicatorThe 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
- SEC, Investor Bulletin: How to Read a 10-K (September 2011)
- The Coca-Cola Company, Form 10-K for the fiscal year ended December 31, 2025 (filed February 20, 2026, SEC EDGAR)
- PepsiCo, Inc., Form 10-K for 2025 (filed February 3, 2026)
- The Coca-Cola Company, fourth quarter and full year 2025 earnings release, exhibit to Form 8-K (February 10, 2026, SEC EDGAR)
- PepsiCo, fourth quarter and full year 2025 results, Exhibit 99.1 to Form 8-K (February 3, 2026)
- PepsiCo, first quarter 2026 results, Exhibit 99.1 to Form 8-K (April 16, 2026)
Primary sources and original reference material for the concepts discussed on this page.
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.
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.
- SEC, Investor Bulletin: How to Read a 10-K (September 2011)
- The Coca-Cola Company, Form 10-K for the fiscal year ended December 31, 2025 (filed February 20, 2026, SEC EDGAR)
- PepsiCo, Inc., Form 10-K for 2025 (filed February 3, 2026)
- The Coca-Cola Company, fourth quarter and full year 2025 earnings release, exhibit to Form 8-K (February 10, 2026, SEC EDGAR)
- PepsiCo, fourth quarter and full year 2025 results, Exhibit 99.1 to Form 8-K (February 3, 2026)
- PepsiCo, first quarter 2026 results, Exhibit 99.1 to Form 8-K (April 16, 2026)
References added 14 October 2026.
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.

