What is the P/E ratio of a stock and how do you tell if it's cheap or expensive?

The P/E ratio is a stock's price divided by the company's earnings per share for one year: how many times over you pay for those earnings. A P/E of 20 equals 20 years of today's earnings. To tell whether a stock is cheap or expensive, compare it with its own ten-year median, its growth and its sector.

This lesson includes a 6-minute guided class on the real Kaplio stock page for Coca-Cola, PepsiCo and Rivian.

Level Basic · 8 min · Updated · Kaplio editorial team · How we work

Level: Basic · Category: Valuation · Duration: 8 min · Points: 10

What the P/E ratio is, how to calculate it from Coca-Cola's share price and earnings per share, and how Kaplio's stock page uses it to say whether a stock is cheap or expensive.

In 30 seconds

  • The P/E divides the share price by earnings per share: how many times over you pay for annual earnings.
  • Coca-Cola traded at a fiscal-year 2025 P/E of 23.0 ($69.91 divided by $3.04 of earnings per share).
  • The stock page compares the TTM P/E with its ten-year median: cheap from 15% below, expensive from 25% above and "fairly priced" in between.
  • Every P/E carries a label (TTM, fiscal year, forward): only compare P/Es with the same one.
  • With losses there is no P/E, and for cyclicals the page measures price against average earnings over several years.

Introduction

On December 31, 2025, a Coca-Cola share closed at $69.91, and the company had earned $3.04 per share that year: buyers were paying 23.0 times annual earnings. The same day, PepsiCo closed at $143.52, with earnings per share of $6.00 for 2025: 23.9 times. Almost the same number. Equally expensive? Not necessarily: PepsiCo's earnings had just fallen from $6.95 in 2024. That number, how many times over you pay for earnings, is the P/E ratio, and what it tells you depends on what you compare it with.

Explanation

The P/E ratio (price-to-earnings) divides a stock's price by the earnings the company makes per share in a year. It tells you how many times over you are paying for those earnings.

Imagine you're offered the bakery on your block. It clears $10,000 a year and the owner wants $150,000: you're paying 15 times earnings, a P/E of 15. If earnings never changed, it would take you 15 years to earn back the price.

How to calculate it
Divide the share price by earnings per share (EPS), which the company reports in its income statement: net income divided by the number of shares.

Every P/E needs a label. The one on Kaplio's stock page is the TTM P/E: the share price over the last twelve months of earnings. The fiscal-year P/E uses the earnings of a closed year. The forward P/E uses analysts' forecast for the next fiscal year. Only compare P/Es that carry the same label.

A handy trick: 1 divided by the P/E is the earnings yield. At a P/E of 23, that's 4.3%, which you can set against what a bond or a savings account pays.

Formula

P/E = Share price / Earnings per share (EPS)
EPS = Net income / Number of shares
Also: P/E = Market capitalization / Net income
Earnings yield = 1 / P/E
Gap to its history = TTM P/E / median P/E of its last ten fiscal years − 1

Example

The table below compares the TTM P/E of four large consumer staples companies, using the figures on each company's stock page. Read it as: how many years of earnings you pay for each share.

Step by step: Coca-Cola at the end of 2025
1. Share price on December 31, 2025: $69.91.
2. Diluted earnings per share for 2025, from its 10-K annual report: $3.04.
3. Divide price by earnings per share: a P/E of 23.0.
4. Earnings yield = 1 / 23.0 = 4.3%.

The table shows a different figure because it's a different snapshot: the latest price on the stock page and the earnings of the previous twelve months. Always check the date and the label before comparing two P/Es.

Before you look at the stock page: do you think the most expensive stock in the table is also expensive against its own ten-year median?

Real-data example

P/E · trailing 12 months
CompanyTickerP/E
Coca-ColaKO27.8×
PepsiCoPEP17.8×
Procter & GamblePG26.3×
Colgate-PalmoliveCL38.6×

Figures from each company's page, which shows their date.

How to read it

How to read it
A P/E isn't high or low in the abstract. The Valuation card in the Overview of every Kaplio stock page compares it with the company's own history:

The page's ruleCheapFairly pricedExpensive
TTM P/E against its ten-year median (with less than ten years of history, against its sector's median)15% or more belowbetween 15% below and 25% above25% or more above
Cyclicals and one-off earnings: price over adjusted earnings (the average of seven to ten fiscal years, or twelve-month earnings excluding the one-off)10 times or lessbetween 10 and 25 timesmore than 25 times

Nuances on the same card. If over its decade EPS grew more than 12% a year and that pace is gone, "cheap" also requires trading below its sector. If twelve-month earnings are inflated or depressed against what analysts expect, the card sets that TTM P/E aside, switches to the P/E on expected earnings for the next fiscal year and says what it compares it with (the lesson on non-operating income and expenses explains it). For banks and insurers it uses price-to-book (P/B). On the chart, the green band marks the cheapest 30% of its years over the decade and the red band the most expensive 20%: that's context; the word comes from the rule in the table.

Benjamin Graham asked the defensive investor not to pay more than 15 times average earnings over three years (on the stock page, one of the “Seven tests of prudence”). Peter Lynch added growth with the PEG (on the stock page, “Growth without overpaying”).

Pitfalls and limitations
1. No earnings, no P/E. Intel lost $4.38 per share in 2024 and $0.06 in 2025. In a case like that the card says "no earnings" and the P/E shows as "not applicable".
2. Cyclicals mislead in reverse. A shipping company has its lowest P/E at the top of the cycle, when earnings are at a record and about to fall. That's why the page measures it against its average earnings.
3. One-off earnings. Selling a subsidiary inflates one year's earnings and crushes the P/E.
4. Data that doesn't add up. If the P/E Kaplio calculates differs by more than 30% from the data provider's, the page shows "Verdict under review".
5. The P/E ignores debt. That's what enterprise value is for.

Case in point: PepsiCo at the end of 2025
On its 2025 earnings, PepsiCo traded at 23.9 times; on its 2024 earnings, at the same price, it would have been 20.7. The price didn't change: the earnings did.

Guided class: The P/E with Coca-Cola

A guided class on Coca-Cola’s real stock page: what its P/E is, what to compare it with, and how to read it. We point out each figure as we go, and at the end you answer the questions yourself by finding the answers on the page.

Free. About 6 minutes. Basic level. It runs on the Kaplio stock page for Coca-Cola, PepsiCo and Rivian, using the figures the page shows that day. No figure in the class is typed in by hand.

What the class covers, step by step

  1. The P/E
  2. Average and median
  3. The P/E year by year
  4. Seeing it on a chart
  5. Compared with its peers
  6. Your questions

Questions you answer by finding the figure on the page

  • What is Coca-Cola’s P/E?
  • What is the ten-year median P/E that the verdict uses?
  • Is PepsiCo’s P/E below, in line with, or above the ten-year median the verdict uses?

Each answer is checked against the same figure the page shows at that moment, so the right answer can change from one day to the next.

Start the class · Coca-Cola

Practice on Kaplio

See Coca-Cola's P/E

Frequently asked questions

How do you interpret a stock's P/E ratio?

The P/E tells you how many times over you pay for the company's annual earnings. A P/E of 15 means that, at today's earnings, it would take 15 years to earn back the price. To interpret it, compare it with that same company's ten-year median, with its growth and with its sector, never with a universal magic number.

What is a good P/E ratio for a stock?

There is no universally good P/E. Benjamin Graham told the defensive investor not to pay more than 15 times three-year average earnings, and Peter Lynch wanted a P/E no higher than the annual earnings growth rate. A P/E below the company's own ten-year median is usually the best starting point.

What does a high or low P/E mean?

A high P/E means the market is paying a lot for current earnings because it expects them to grow, or that the stock is expensive. A low P/E can signal an opportunity or that the market expects earnings to fall, as with cyclicals in their best year. The number alone won't tell you: find the reason.

Related lessons

Sources

Educational content. Not investment advice.