Home › Templates › Stock valuation spreadsheet

Stock Valuation Spreadsheet

A free stock valuation template for Excel and Google Sheets. Type a share price and a few figures from the company's reports; the sheet works out P/E, forward P/E, PEG, P/B, P/S, EV/EBITDA, EV/Sales and three yields, the Graham number and Graham's growth formula, the growth the price implies, the price implied by a peer group's median multiples, a margin of safety and a sensitivity grid.

Download Excel template (.xlsx) 49 KB · 11 multiples and yields · 10-company peer table · no macros · Excel 2016+ and Google Sheets · v1.0, 11 Nov 2026

Use it in Google Sheets: choose File → Import → Upload in Sheets and pick the .xlsx, or upload it to Google Drive and open it with Google Sheets. No sign-up, no email gate, no add-in.

Preview: the Example tab. Example Tools Co. (XTLS), its eight peers and the AAA bond yield are fictional. The numbers show how the formulas work and are not market data.
15.0xP/E, against a peer median of 16.9x
11.7xEV/EBITDA, peer median 15.0x
$39.80Graham number √(22.5 × EPS × BVPS)
3.99%FCF growth the $48 price implies (vs 8% expected)
$51.12median of 8 values; margin of safety 6.1%
MethodValue per shareMargin of safetyPrice at 25% targetReading
Graham number$39.80−20.6%$29.85Price above value
Graham growth formula (1974)$66.4027.7%$49.80Price below value by at least the target
Peer median P/E (TTM)$53.9811.1%$40.49Price below value, short of the target
Peer median forward P/E$54.2511.5%$40.69Price below value, short of the target
Peer median P/B$48.270.5%$36.20Price below value, short of the target
Peer median P/S$42.00−14.3%$31.50Price above value
Peer median EV/EBITDA$62.4723.2%$46.85Price below value, short of the target
Peer median EV/Sales$43.53−10.3%$32.65Price above value
Median of the values above$51.126.1%$38.34Price below value, short of the target
$0$10$20$30$40$50$60$70$80Share price$48.00Graham number$39.80Graham growth formula (1974)$66.40Peer median P/E (TTM)$53.98Peer median forward P/E$54.25Peer median P/B$48.27Peer median P/S$42.00Peer median EV/EBITDA$62.47Peer median EV/Sales$43.53Median of methods$51.12

What a quick stock valuation answers

This template is a relative valuation: it compares the price with what a share buys. The CFA Institute's 2026 curriculum reading puts it this way: "Price multiples are ratios of a stock’s market price to some measure of fundamental value per share" (CFA Institute). The same reading says the benchmark can be "the median or average value of the multiple for a peer group of companies, an industry, an economic sector, an equity index, or the company’s own median or average past values of the multiple." The sheet answers three questions:

  1. How expensive is the price against earnings, book value, sales, EBITDA and cash flow? (sections 2 and 3)
  2. How does that compare with similar companies, and what price would the peer median multiple give? (Peers tab and section 6)
  3. What does the price assume? The Graham formulas and the reverse DCF turn the price into the growth it needs. (sections 4 and 5)

It is not a discounted cash flow model. For a year-by-year forecast of free cash flow, use the DCF valuation spreadsheet; for a dividend payer, the dividend discount model spreadsheet.

What's inside the spreadsheet

TabWhat you typeWhat it calculates
Start hereNothingSteps, the rules the formulas follow, colour key, sources, disclaimer
ValuationPrice, shares, EPS (trailing and forward), book value per share, sales, EBITDA, net debt, preferred and minority interest, free cash flow, dividends, your growth estimate, the AAA bond yield, a target margin of safety, a discount rate and years for the reverse DCFMarket cap and EV; P/E, forward P/E, PEG, P/B, P/S, EV/EBITDA, EV/Sales; earnings, FCF and dividend yield; payout ratio; Graham number and growth formula (1962 and 1974 forms); implied growth; price implied by each peer median; margin of safety per method and on the median; 7 × 7 EPS × P/E grid; a Check cell per block
PeersUp to 10 comparable companies: price, shares, EPS, forward EPS, book value, sales, EBITDA, net debt, growth, Include Yes/NoMarket cap, EV and seven multiples per peer; median, average, low, high and count; your company's multiples next to the median
Example, Example peersAlready filled with fictional companiesThe same tabs with every result visible
SummaryNothingYour valuation next to the Example, plus two charts of value per share vs price

Where the inputs come from

U.S. public companies report these figures in their annual report on Form 10-K and quarterly reports on Form 10-Q. Investor.gov explains that Item 8 "Financial Statements and Supplementary Data" "requires the company’s audited financial statements", including the income statement, balance sheets and statement of cash flows, and that Item 7, the MD&A, "gives the company’s perspective on the business results of the past financial year" (Investor.gov, How to Read a 10-K/10-Q). The filings are free on the SEC's EDGAR system.

InputWhere to find it
EPS (trailing 12 months)Income statement: diluted EPS of the last four quarters, added up (10-K plus the latest 10-Qs)
Shares outstandingCover page of the 10-K/10-Q, or the diluted share count in the EPS note
Book value per shareBalance sheet: total shareholders' equity ÷ shares outstanding
Sales, EBITDAIncome statement; EBITDA = operating income + depreciation and amortization (from the cash flow statement)
Net debtBalance sheet: short- and long-term debt minus cash and equivalents
Free cash flowCash flow statement: cash from operations − capital expenditure
AAA bond yieldMoody's Seasoned Aaa Corporate Bond Yield, published on FRED (monthly, in percent)

Forward EPS and the growth rate are estimates, yours or a consensus. Treat them as the weakest inputs.

How to use it

  1. Valuation, section 1: type the price and the company's figures. Money amounts go in millions, the same unit as the share count, so the sheet can divide one by the other.
  2. Your assumptions: the growth estimate g (used by PEG and the Graham formulas), the current AAA yield and a target margin of safety.
  3. Section 5: a discount rate (your required return), years of growth and a growth rate after that. The sheet finds the growth the price implies.
  4. Peers tab: type up to 10 companies with a similar business, growth and risk. Set Include to No to drop one without deleting it.
  5. Read sections 6 to 8 and Summary. Each block has a Check cell that says what is missing, for example "Graham formulas need positive EPS (TTM)".

The formulas

P/E = price ÷ EPS  ·  Forward P/E = price ÷ next 12 months EPS  ·  PEG = P/E ÷ (g × 100)

P/B = price ÷ book value per share  ·  P/S = market cap ÷ sales

EV = market cap + net debt + preferred + minority  ·  EV/EBITDA, EV/Sales

Earnings yield = EPS ÷ price  ·  FCF yield = FCF ÷ market cap  ·  Dividend yield = DPS ÷ price

Implied price = peer median P/E × EPS  ·  (peer median EV/EBITDA × EBITDA − net debt) ÷ shares

Margin of safety = (value − price) ÷ value

The CFA reading notes that "Earnings yield (E/P) is the reciprocal of the P/E" and that "When stocks have zero or negative EPS, a ranking by earnings yield is meaningful whereas a ranking by P/E is not." That is why the sheet leaves P/E blank for a loss but still shows the earnings yield. For PEG, Damodaran defines it as "the price earnings ratio divided by the expected growth rate in earnings per share" and warns that "The forward PE ratio should never be used in this computation, since it may result in a double counting of growth" (Investment Valuation, ch. 18). The sheet uses the trailing P/E.

Exact formulas from the Example tab (the Valuation tab uses the same cells):

FieldFormula in the file
Market cap (C22)=IF(AND(AND(ISNUMBER($C$6),$C$6>0),AND(ISNUMBER($C$7),$C$7>0)),$C$6*$C$7,"")
Enterprise value (C23)=IF(AND(ISNUMBER($C$22),ISNUMBER($C$13)),$C$22+$C$13+N($C$14),"")
P/E, trailing (C29)=IF(AND(AND(ISNUMBER($C$6),$C$6>0),AND(ISNUMBER($C$8),$C$8>0)),$C$6/$C$8,"")
PEG (C31)=IF(AND(ISNUMBER($C$29),AND(ISNUMBER($C$17),$C$17>0)),$C$29/($C$17*100),"")
EV/EBITDA (C34)=IF(AND(ISNUMBER($C$23),AND(ISNUMBER($C$12),$C$12>0)),$C$23/$C$12,"")
Graham number (C42)=IF(AND(AND(ISNUMBER($C$8),$C$8>0),AND(ISNUMBER($C$10),$C$10>0)),SQRT(22.5*$C$8*$C$10),"")
Graham 1974 (C44)=IF(AND(AND(AND(ISNUMBER($C$8),$C$8>0),ISNUMBER($C$17),(8.5+2*$C$17*100)>0),AND(ISNUMBER($C$18),$C$18>0)),$C$8*(37.5+8.8*$C$17*100)/($C$18*100),"")
Peer P/E on the peers tab (O5)=IF(AND(ISNUMBER(M5),ISNUMBER(F5),F5>0),D5/F5,"")
Peer median P/E (O16)=IF(COUNT(O5:O14)>0,MEDIAN(O5:O14),"")
Implied price from peer P/E (E58)=IF(AND(ISNUMBER(C58),AND(ISNUMBER($C$8),$C$8>0)),C58*$C$8,"")
Implied price from peer EV/EBITDA (E62)=IF(AND(ISNUMBER(C62),ISNUMBER($C$12),$C$12>0,AND(ISNUMBER($C$7),$C$7>0),ISNUMBER($C$13)),(C62*$C$12-$C$13-N($C$14))/$C$7,"")
Margin of safety (D68)=IF(AND(ISNUMBER(C68),AND(ISNUMBER($C$6),$C$6>0)),(C68-$C$6)/C68,"")
Bisection: next low g (C95)=IF(ISNUMBER(F94),IF(F94<$C$6,E94,C94),"")
Sensitivity cell (C83)=IF(AND(ISNUMBER($B83),ISNUMBER(C$82),N(C$82)>0),$B83*C$82,"")

Functions used: IF, AND, OR, NOT, ISNUMBER, N, INT, ABS, SQRT, COUNT, MEDIAN, AVERAGE, MIN, MAX. No macros, no array formulas, nothing that Google Sheets lacks.

The Graham formulas, in Graham's words

Graham number. In The Intelligent Investor (chapter 14, on stock selection for the defensive investor) Benjamin Graham set price limits for the defensive investor in terms of earnings and book value, and allowed a trade-off between them: "the product of the multiplier times the ratio of price to book value should not exceed 22.5", which he noted "corresponds to 15 times earnings and 1½ times book value". Solving price ÷ EPS × price ÷ BVPS = 22.5 for the price gives the Graham number, √(22.5 × EPS × BVPS). Graham did not write it as a formula; the name came later.

Growth formula. In a 1974 talk, "The Decade 1965–1974: Its Significance for Financial Analysts" (published in The Renaissance of Value), Graham recalled the formula from Security Analysis, which is also in the 1973 Intelligent Investor:

"Value = current normal earnings times the sum of 8.5 plus 2G."G is "the expected growth rate over the next seven to ten years".

He then said it "had the great defect of failing to allow for changes in the basic rate of interest", noted that AAA bonds had averaged 4.4% in the three years before that edition, and restated it:

"Value = Earnings time[s] the sum of 37.5 plus 8.8G, divided by the AAA rate."B. Graham, 1974. A 1976 Financial Analysts Journal article by V. F. Morris dates this formula to September 1974.

37.5 and 8.8 are 8.5 and 2 multiplied by about 4.4. The version quoted on most websites, EPS × (8.5 + 2G) × 4.4 ÷ Y, gives 37.4 instead of 37.5, so it lands slightly lower: $66.34 vs $66.40 in the Example. The sheet shows both and uses Graham's wording in the margin of safety table. G and Y are percent numbers: 8% growth is 8 and a 5.2% yield is 5.2. Graham himself presented the results "for what they are worth".

Reverse DCF: the growth the price implies

Instead of forecasting cash flow to get a value, a reverse DCF starts from the price and asks what growth it needs. The sheet assumes free cash flow per share grows at a constant rate g for n years and at gT forever after, discounted at your required return r:

Price = Σ FCF₀(1 + g)t ÷ (1 + r)t, t = 1…n  +  FCFn(1 + gT) ÷ (r − gT) ÷ (1 + r)n

There is no closed-form answer for g, so the workings at the bottom of the tab run 60 steps of bisection between −50% and +100% a year in ordinary formulas: no Goal Seek, no macros and no circular references. If the gap between implied growth and your own estimate is large, the price is assuming something very different from you.

Peer comparison: use the median

Multiples have a floor near zero and no ceiling, so one company with tiny earnings can produce a P/E of several hundred. Damodaran: "the average values for these multiples will be higher than median values, and the latter are much more representative of the typical firm in the group" (Investment Valuation, ch. 17). The sheet uses the median. Peers with negative earnings drop out of the P/E column, which Damodaran also flags: removing money-losing firms biases an average P/E upwards.

Peer (fictional)IncludeP/EFwd P/EPEGP/BP/SEV/ EBITDAEV/ Sales
Peer Co. A (fictional)Yes15.0013.852.142.402.4013.622.62
Peer Co. B (fictional)Yes16.7615.502.792.073.0515.923.39
Peer Co. C (fictional)Yes16.5414.831.842.192.3213.882.28
Peer Co. D (fictional)Yes17.2515.712.162.152.8815.023.16
Peer Co. E (fictional, loss-making)Yesn/m35.50n/m1.672.5837.382.95
Peer Co. F (fictional)Yes16.9815.252.262.312.6214.142.75
Peer Co. G (fictional)Yes17.3916.222.682.503.2715.623.41
Peer Co. H (fictional, other business)No———————
Median16.8715.502.212.192.6215.022.95
Average16.6518.122.312.182.7317.942.94
Example Tools Co.15.0013.711.882.183.0011.733.23

In the Example, Peer Co. E has barely positive forward earnings, so its forward P/E is 35.5x. It pulls the average forward P/E to 18.1x while the median stays at 15.5x. Its EPS is negative, so it has no trailing P/E or PEG. Peer Co. H is set to Include = No and counts nowhere.

Choose peers with care. Damodaran defines a comparable firm as "one with cash flows, growth potential, and risk similar to the firm being valued" and warns that an analyst who picks both the multiple and the peers "can essentially ensure that almost any value can be justified." Industry-wide multiples are on his P/E by sector page (the page states "Data used is as of January 2026") and his data page for P/B, P/S and EV/EBITDA.

Worked example from the sample data

Example Tools Co. is fictional: price $48.00, 250 million shares, trailing EPS $3.20, forward EPS $3.50, book value $22.00 a share, sales $4,000m, EBITDA $1,100m, net debt $900m and free cash flow $680m.

  1. Size. Market cap = $48.00 × 250m = $12,000m. EV = $12,000m + $900m = $12,900m.
  2. Multiples. P/E = $48.00 ÷ $3.20 = 15.0x; forward P/E 13.71x; PEG = 15 ÷ 8 = 1.875; P/B 2.18x; P/S 3.00x; EV/EBITDA = $12,900m ÷ $1,100m = 11.73x; EV/Sales 3.225x.
  3. Yields. Earnings yield 6.67%, FCF yield 5.67%, dividend yield 2.29% on a $1.10 dividend (payout 34.4%).
  4. Graham. √(22.5 × 3.20 × 22.00) = $39.80, below the price. Growth formula with G = 8 and a made-up AAA yield of 5.2%: 3.20 × (37.5 + 8.8 × 8) ÷ 5.2 = $66.40. Without the interest-rate term, 3.20 × (8.5 + 16) = $78.40.
  5. Reverse DCF. FCF per share $2.72; r 9%, n 10 years, gT 2.5%. The $48.00 price implies 3.99% a year, 4.01% below the 8% estimate. At 8% growth the same model would give $64.98.
  6. Peers. Seven peers are included. The median P/E of 16.87x × $3.20 = $53.98; the median EV/EBITDA of 15.02x gives (15.02x × $1,100m − $900m) ÷ 250m = $62.47.
MultiplePeer medianExample ToolsImplied pricevs median
P/E (TTM)16.87x15.00x$53.98−11.1%
Forward P/E15.50x13.71x$54.25−11.5%
P/B2.19x2.18x$48.27−0.5%
P/S2.62x3.00x$42.0014.3%
EV/EBITDA15.02x11.73x$62.47−21.9%
EV/Sales2.95x3.23x$43.539.5%

The eight values run from $39.80 to $66.40. Their median is $51.12; the price sits 6.1% below it, short of the 25% target margin typed in the Example. The EV/EBITDA value is the highest because Example Tools trades at 11.7x EBITDA against a peer median of 15.0x, while its P/S is above the peers'. A spread like this is the normal output of relative valuation; read it as a range, not a single answer.

Sensitivity: EPS × P/E

A value from a multiple is only as good as the earnings and the multiple behind it. The grid moves EPS by 10% a row and the P/E by 2.0 a column around the peer median. Green cells are at or above the $48.00 price.

Value per shareP/E 10.9xP/E 12.9xP/E 14.9xP/E 16.9xP/E 18.9xP/E 20.9xP/E 22.9x
EPS $2.24$24.35$28.83$33.31$37.79$42.27$46.75$51.23
EPS $2.56$27.82$32.94$38.06$43.18$48.30$53.42$58.54
EPS $2.88$31.30$37.06$42.82$48.58$54.34$60.10$65.86
EPS $3.20$34.78$41.18$47.58$53.98$60.38$66.78$73.18
EPS $3.52$38.26$45.30$52.34$59.38$66.42$73.46$80.50
EPS $3.84$41.74$49.42$57.10$64.78$72.46$80.14$87.82
EPS $4.16$45.21$53.53$61.85$70.17$78.49$86.81$95.13

Check against published examples

Typed into the empty Valuation tab and recalculated in LibreOffice by check.py:

ExampleInputsPublishedSheet
Graham number (worked example on Wikipedia's Graham number page)EPS $5.00, book value $30.00$58.09$58.09
PEG (Damodaran ch. 18)P/E 20, growth 10%22.00
Graham 1974, Dow Jones Industrial AverageG 4.5, AAA rate 7.5%multiplier 10.210.28
Graham 1974, Dow on recent figuresEarnings about $93, AAA 9.5%"the same 750"755

Graham's text gives the Dow multiplier as 10.2; the formula as he wrote it gives (37.5 + 8.8 × 4.5) ÷ 7.5 = 10.28. His 750 is a rounded central value.

Which multiple fits which company

MultipleUseful whenWatch out for
P/E, forward P/E, PEGSteady, profitable companiesNegative or one-off earnings; the CFA reading says EPS "is frequently subject to distortion, often volatile, and sometimes negative"
P/B, Graham numberBanks, insurers and asset-heavy firms"Inflation, technological change, and accounting distortions, however, may impair the use of book value" (CFA)
P/S, EV/SalesCompanies with low or negative profitsSales "are also more stable than earnings and are never negative", but P/S "fails to take into account differences in cost structure" (CFA)
EV/EBITDAComparing firms with different debt levels; capital-intensive businessesEBITDA ignores capital spending and working capital; the CFA reading notes it "may be more appropriate than P/E for comparing companies with different amounts of financial leverage (debt)"
FCF yield, reverse DCFFirms with positive, fairly stable free cash flowOne year's FCF can swing with capital spending

Common mistakes

Limits

FAQ

How do you value a stock in Excel?

Put the share price and the company's figures in cells: EPS, book value per share, sales, EBITDA, net debt, free cash flow and shares outstanding. Then compute multiples such as P/E (=price/EPS), P/B (=price/book value per share) and EV/EBITDA (=(market cap + net debt)/EBITDA). Compare them with similar companies: the peer median multiple times the company's own EPS, book value or EBITDA gives an implied price. The template does all of this, adds two Graham formulas and a reverse DCF, and shows every formula.

What is a good P/E ratio?

There is no single good number. A P/E only means something next to a benchmark: similar companies, the company's own history or its expected growth. The CFA Institute reading names the peer group, industry, sector, an index or the company's own past values as benchmarks. Damodaran publishes P/E ratios by U.S. industry on his NYU data page. A P/E is not meaningful when earnings are negative.

What is the Graham number formula?

Graham number = square root of (22.5 × EPS × book value per share). It comes from Benjamin Graham's rule in The Intelligent Investor that a defensive investor should pay no more than about 15 times earnings and 1.5 times book value; 15 × 1.5 = 22.5. With EPS of $5 and book value of $30 a share it gives about $58.09. It needs positive earnings and book value and ignores growth.

What is Benjamin Graham's formula for intrinsic value?

The original formula is Value = current normal earnings × (8.5 + 2G), where G is the expected yearly growth rate over the next seven to ten years, written as a percent number (8% growth = 8). In 1974 Graham restated it to allow for interest rates: Value = earnings × (37.5 + 8.8G) ÷ the AAA bond rate. The popular version, EPS × (8.5 + 2G) × 4.4 ÷ Y, is almost the same (37.4 instead of 37.5).

How do you calculate enterprise value?

Enterprise value = market cap + debt − cash, plus preferred stock and minority interest if the company has them. Market cap is the share price times shares outstanding. EV is the value of the whole business, so it is paired with figures that belong to all investors, such as EBITDA or sales. Net debt can be negative when a company holds more cash than debt.

How is the PEG ratio calculated?

PEG = P/E ÷ expected yearly EPS growth in percent. A P/E of 20 with 10% growth gives a PEG of 2. Damodaran advises using the trailing or current P/E with growth from current earnings, and never the forward P/E, because that can count growth twice. A lower PEG is cheaper per unit of growth, all else equal, but the growth figure is an estimate.

Related tools and templates

Educational template only, not investment advice. Example data is fictional: the companies, prices, financial figures and the AAA bond yield are made up to show the formulas. A value from a multiple or formula is not a price target, and no return is promised or implied. Graham quotations are from "The Decade 1965–1974: Its Significance for Financial Analysts" in The Renaissance of Value (1974) and The Intelligent Investor, ch. 14. Sources: CFA Institute, Market-Based Valuation: Price and Enterprise Value Multiples (2026 refresher reading) (cfainstitute.org); A. Damodaran, Investment Valuation, ch. 17 Fundamental Principles of Relative Valuation (NYU Stern PDF); A. Damodaran, Investment Valuation, ch. 18 Earnings Multiples (NYU Stern PDF); Damodaran Online, PE ratio by sector (US) (nyu.edu); Damodaran Online, current data (nyu.edu); Investor.gov, How to Read a 10-K/10-Q (investor.gov); FRED, Moody's Seasoned Aaa Corporate Bond Yield (stlouisfed.org); V. F. Morris, A Proposed Revision of Benjamin Graham's 1974 Valuation Formula, Financial Analysts Journal 32(6), 1976 (cfainstitute.org). Retrieved 11 November 2026.