Stock Calculator

Analyze any stock with P/E, P/S, P/B ratios, dividend yield, Graham Number, position P/L, and price scenario analysis. Compare valuation vs S&P 500 benchmarks.

Position Value
$19,000.00
Cost basis: $14,500.00
Unrealized P/L
$4,500.00
31.0% gain
P/E Ratio
29.2×
Growth premium (> 25×)
Dividend Yield
0.53%
$100.00/yr income
Target Upside
15.8%
Target: $220.00, Gain: $7,500.00
Graham Number
$24.93
Overvalued vs Graham

Position Performance

−50%Break-even+50%

Valuation Summary

MetricValueS&P 500 Avgvs Benchmark
P/E Ratio29.23×22×+7.23×
P/S Ratio7.60×2.5×+5.10×
P/B Ratio44.71×3×+41.71×
Dividend Yield0.53%1.5%-0.97%
Earnings Yield3.42%4.5%-1.08%
Payout Ratio15.38%40%-24.62%

Price Scenarios

ChangePricePosition ValueP/L
-30%$133.00$13,300.00-$1,200.00
-20%$152.00$15,200.00$700.00
-10%$171.00$17,100.00$2,600.00
0%$190.00$19,000.00$4,500.00
+10%$209.00$20,900.00$6,400.00
+20%$228.00$22,800.00$8,300.00
+30%$247.00$24,700.00$10,200.00
+50%$285.00$28,500.00$14,000.00
Planning notes, formulas, and examples

About the Stock Calculator

A single stock analysis requires checking multiple valuation ratios, understanding your position's profit/loss, and evaluating price targets - all context that's scattered across different tools. This calculator consolidates everything into one view so you can see the valuation, the income stream, and the position risk together instead of piecing them together from separate screens.

Enter a stock's current price, EPS, dividends, and book value to compute P/E, P/S, P/B ratios, earnings yield, payout ratio, and the Graham Number (Ben Graham's intrinsic value formula). Add your shares owned and cost basis to see unrealized gains, annual dividend income, and target price upside. That means the page works both as a valuation tool and as a position tracker for an existing holding.

The valuation summary benchmarks every ratio against S&P 500 averages, color-coded to show whether the stock trades at a premium or discount. The price scenario table maps out your position value across +/-50% price moves, helping you translate abstract multiples into actual dollars at risk before you buy, trim, or hold. It is most useful when you want a quick check of whether the stock looks cheap, expensive, or simply different from the benchmark set you are comparing it against.

When This Page Helps

Instead of checking valuation ratios in one place and position performance in another, this calculator keeps the key stock metrics in a single workflow. You can compare valuation, dividend income, cost basis, and target-price scenarios together, which makes it easier to discuss the trade, size the position, and avoid mixing inconsistent numbers from multiple sources. It is especially helpful when you need to decide whether a stock is attractive on fundamentals and whether your current position is already carrying too much risk.

How to Use the Inputs

  1. Enter the current share price and earnings per share (EPS).
  2. Add dividends per share and book value per share for full ratio analysis.
  3. Enter shares owned and your average cost basis for position tracking.
  4. Set a target price to calculate upside potential.
  5. Review valuation ratios against S&P 500 benchmarks.
  6. Scan price scenarios to understand your risk/reward profile.
Formula used
P/E = Price / EPS P/S = Price / Revenue per Share P/B = Price / Book Value per Share Dividend Yield = Annual Dividend / Price × 100 Earnings Yield = EPS / Price × 100 Graham Number = √(22.5 × EPS × Book Value)

Example Calculation

Result: Position: $19,000 (+31%), P/E: 29.2×, Yield: 0.53%

100 shares bought at $145 = $14,500 cost basis. At $190, position is worth $19,000 — a $4,500 (31%) unrealized gain. P/E of 29.2× is above the S&P 500 average, indicating a growth premium.

Tips & Best Practices

  • Compare multiple valuation metrics together — no single ratio tells the full story.
  • The Graham Number assumes modest growth; fast-growing companies will often exceed it.
  • Track cost basis carefully for tax purposes — it determines your capital gains liability.
  • High earnings yield + high dividend payout = most of earnings are returned to shareholders.
  • Use price scenarios to pre-commit to exit points: at what loss do you sell? At what gain do you take profits?

Use More Than One Ratio

A low P/E can mean the market is undervaluing the business, but it can also signal declining earnings, weak balance-sheet quality, or a cyclical peak. Pair earnings multiples with book value, dividend yield, and your own thesis about growth and risk. The point of the calculator is to keep those views in one screen so a single ratio does not drive the whole decision.

Separate Company Analysis From Position Size

A good business can still be a poor position if it is too large in your portfolio or if your cost basis has created more downside than you realize. Use the scenario analysis to see how a 10%, 20%, or 30% move changes your dollar gain or loss. That makes risk management more concrete than talking about percentages alone.

Keep Inputs From The Same Reporting Frame

EPS, dividends per share, revenue per share, and book value per share should come from the same reporting period whenever possible. Mixing trailing numbers with stale balance-sheet figures or forward-looking estimates can distort the multiples. If you switch from trailing to forward assumptions, update the whole set so the output stays internally consistent.

Sources & Methodology

Last updated:

Methodology

This worksheet turns the user-entered price, EPS, dividend, book value, revenue per share, cost basis, and share count into a combined stock-analysis snapshot. It calculates valuation ratios, dividend yield, earnings yield, Graham Number, unrealized profit or loss, annual dividend income, and a simple price-scenario table from the same set of per-share inputs.

The benchmark labels on the page are reference markers rather than live market feeds. They are meant to provide quick context for the input ratios, so the page should be treated as a compact screening worksheet and position tracker rather than a substitute for a full research note.

Sources

Frequently Asked Questions

  • Benjamin Graham's conservative intrinsic value estimate: √(22.5 × EPS × Book Value). If the stock trades below this number, it may be undervalued by Graham's standards, though the formula is intentionally conservative.