Skip to main content

P/E Ratio Calculator

API reference

Calculate the price-to-earnings (P/E) ratio, earnings yield, premium or discount to a benchmark P/E, and PEG ratio from a share price and earnings per share.

Input

Trailing twelve-month or forward EPS.

Sector or index average, to measure premium/discount against.

Annual growth rate, in percent. Unlocks the PEG ratio.

Output

Results
MetricValue
No data yet
Was this helpful?

More ways to use this tool

REST API

curl -X POST https://api.iotools.cloud/v1/tool/p-e-ratio-calculator \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "price": "150",
    "eps": "6",
    "benchmark": "",
    "growth": ""
  }'

Swap in your own key from your account. The tool's fields are the body — no wrapper.

Ask an AI agent

Use the IOTools `p-e-ratio-calculator` tool (P/E Ratio Calculator) on this input:

YOUR_INPUT_HERE

Paste this at any agent connected to the IOTools MCP server, then add your input.

Embed widget

<iframe
  src="https://iotools.cloud/embed/p-e-ratio-calculator/"
  width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
  title="P/E Ratio Calculator — iotools.cloud"
  sandbox="allow-scripts allow-forms allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox"
  allow="clipboard-write"
  style="width:100%;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden"></iframe>
<script src="https://iotools.cloud/embed.js" async></script>

Drop this into your own page — free, no key required, just a link back.

Cost per API/MCP callFrom 5 credits
Need more credits?View pricing

Also available with

Guides

The price-to-earnings ratio tells you how many dollars investors pay for each dollar of a company's annual earnings. Enter a share price and earnings per share to get the P/E, the earnings yield, and — optionally — how it compares with a benchmark and with expected growth.

How to use it

  1. Enter the share price and earnings per share (EPS).
  2. Optionally enter a benchmark P/E (a sector or index average) to see the premium or discount.
  3. Optionally enter expected EPS growth (%) to get the PEG ratio.

The formulas

P/E Ratio        = Share Price ÷ EPS
Earnings Yield   = EPS ÷ Share Price × 100
Premium/Discount = (P/E − Benchmark P/E) ÷ Benchmark P/E × 100
PEG Ratio        = P/E ÷ EPS Growth Rate (%)

Reading the result

A low P/E can signal a bargain or falling earnings; a high P/E means investors expect strong growth. A PEG near 1 is often read as fairly valued. P/E is not meaningful when EPS is zero or negative. This is an educational calculator, not investment advice.

pe ratioprice to earningsearnings yieldpeg ratiostock valuationepsinvesting

Love the tools? Lose the ads.

One payment clears every ad from your account, for good. No subscription, no tracking.