Magic Formula Investing is a systematic, rules-based value investing strategy introduced in 2005 by Gotham Capital founder and Columbia Business School professor Joel Greenblatt in his classic book, The Little Book That Beats the Market. The formula synthesizes Benjamin Graham's search for cheap bargains with Warren Buffett's insistence on buying high-quality compounders into a clean mathematical principle: buy above-average companies, but only when they trade at below-average prices.
In historical backtests spanning from 1988 to 2004, Greenblatt demonstrated that a portfolio of the top 30 Magic Formula stocks generated a 30.8% annualized return, more than doubling the S&P 500's 12.3% return over the same period. Rather than relying on subjective forecasts or emotional market timing, the strategy ranks public equities by combining two quantitative metrics: Return on Capital (ROC) for business quality and Earnings Yield (EY) for valuation.
Traditional stock screeners rely on Price-to-Earnings (P/E) and Return on Equity (ROE). Greenblatt rejected both because they are heavily distorted by corporate debt levels and regional tax differences. Instead, Greenblatt reformulated both metrics around Earnings Before Interest and Taxes (EBIT) and Enterprise Value (EV).
THE TWO MAGIC FORMULA PILLARS
1. QUALITY PILLAR (Return on Capital) 2. VALUE PILLAR (Earnings Yield)
EBIT EBIT
───────────────────────────── ─────────────────────────────
Net Working Capital + Net PP&E Enterprise Value (EV)
| Factor | Metric Name | Mathematical Formula | Value Investor Significance |
|---|---|---|---|
| Quality | Return on Capital (ROC) | Measures operational pre-tax cash profitability generated per dollar of tangible operating capital deployed. Excludes goodwill and excess cash. | |
| Value | Earnings Yield (EY) | Measures operating earnings generated per dollar of total takeover price. Unlike P/E, it penalizes debt-heavy balance sheets and rewards cash reserves. |
Most retail investors measure business quality using Return on Equity ($\text{Net Income} / \text{Equity}$). But as Donaldson Brown proved in DuPont analysis, a company can inflate ROE simply by borrowing massive amounts of debt. Return on Assets ($\text{Net Income} / \text{Assets}$) suffers from the opposite problem: it penalizes companies holding large non-operating cash piles or carrying amortizing intangible assets.
Greenblatt’s Return on Capital solves both distortions:
The standard Price-to-Earnings ratio compares Market Capitalization to Net Income ($\text{P/E} = \text{Price} / \text{EPS}$). This creates dangerous blind spots:
To an unsophisticated investor, both companies appear equally cheap at 10x earnings. But an acquirer buying Company B must assume $15 billion in debt, making the true enterprise purchase price $25 billion, not $10 billion.
Greenblatt’s Earnings Yield rectifies this by comparing operating earnings directly to Enterprise Value:
A high Earnings Yield means you are paying a bargain price for every dollar of pre-interest, pre-tax operating earnings the business generates.
Ori: Welcome back to the Value Investor Dashboard podcast. I'm your host, Ori Souchami. In the world of quantitative value investing, Joel Greenblatt's The Little Book That Beats the Market remains an absolute classic. The concept seems almost deceptively simple: rank a universe of stocks by Return on Capital, rank them by Earnings Yield, add the ranks together, and buy the top 30. AI, why did Greenblatt design this specific combination?
AI: Hello Ori. Greenblatt was addressing the single greatest psychological pitfall in equity investing: emotional human bias. Most investors chase glamour stocks with high growth rates at peak valuations, or they buy deeply troubled companies simply because their P/E multiple is low. The Magic Formula acts as a systematic, unemotional algorithm. Return on Capital ensures you only purchase companies with high capital efficiency and economic moats, while Earnings Yield ensures you never overpay. It is quantitative Graham and Buffett distilled into two clean ratios.
Ori: Let's look at why Greenblatt specifically excluded financial institutions, banks, and utility companies from the formula universe. Why can't we run the Magic Formula on a bank like JPMorgan or a utility like NextEra Energy?
AI: That is a crucial distinction. In non-financial operating companies (like software, retail, healthcare, or industrial manufacturing), debt is a financing choice used to fund factories or inventory. But for banks and commercial lenders, money is the inventory. A bank takes in customer deposits (liabilities) and issues commercial loans (assets). Defining "Net Working Capital" or "Operating Capital" for a bank is mathematically meaningless. Similarly, utilities are regulated monopolies with mandated debt levels and capital expenditure requirements set by state utility commissions, which distorts both EBIT and enterprise value. Greenblatt strictly limited the formula to operating commercial businesses.
Ori: In his backtests, Greenblatt showed a 30.8% annualized return. Yet many retail investors who attempt this strategy abandon it after six months. Why does a formula that works so brilliantly over 10-year horizons fail for impatient investors?
AI: Greenblatt calls this the "secret sauce" of value investing: the formula works over the long run precisely because it does not work all the time. Over any rolling 3- to 5-year window, there are extended multi-year periods where value underperforms momentum or speculative tech. In 1999, during the dot-com bubble, or in 2020 during the zero-interest-rate regime, the Magic Formula lagged benchmark indices significantly. Retail investors panic, conclude the strategy is "broken," and sell at the exact cyclical bottom. The investors who compound wealth are those who possess the behavioral discipline to let the mathematical law of mean reversion do its work.
Let's walk through how two hypothetical commercial companies with identical market capitalizations of $2,000 million are evaluated under the Magic Formula:
+------------------------------------+--------------------------+--------------------------+
| Financial Metric | Apex Health (High Rank) | Titan Industrial (Low) |
+------------------------------------+--------------------------+--------------------------+
| Market Capitalization | $2,000 M | $2,000 M |
| Total Debt | $200 M | $1,200 M |
| Cash & Cash Equivalents | $400 M | $100 M |
| Enterprise Value (EV) | $1,800 M | $3,100 M |
| EBIT (Operating Income) | $270 M | $155 M |
| Current Assets | $500 M | $600 M |
| Current Liabilities | $200 M | $450 M |
| Net Working Capital | $300 M | $150 M |
| Net Fixed Assets (PP&E) | $300 M | $1,400 M |
| Tangible Capital Base | $600 M | $1,550 M |
+------------------------------------+--------------------------+--------------------------+
$$\begin{aligned} \text{Earnings Yield} &= \frac{\text{EBIT}}{\text{Enterprise Value}} = \frac{$270\text{M}}{$1,800\text{M}} = \mathbf{15.0%} \ \text{Return on Capital} &= \frac{\text{EBIT}}{\text{Working Capital} + \text{Net PP&E}} = \frac{$270\text{M}}{$300\text{M} + $300\text{M}} = \frac{$270\text{M}}{$600\text{M}} = \mathbf{45.0%} \end{aligned}$$
Ranking Outcome: Apex Health boasts an exceptional 45% Return on Capital (generating $0.45 of operating profit for every dollar of operating capital) and a high 15% Earnings Yield on EV. It ranks in the top 3% for both categories, achieving an elite combined rank.
$$\begin{aligned} \text{Earnings Yield} &= \frac{\text{EBIT}}{\text{Enterprise Value}} = \frac{$155\text{M}}{$3,100\text{M}} = \mathbf{5.0%} \ \text{Return on Capital} &= \frac{\text{EBIT}}{\text{Working Capital} + \text{Net PP&E}} = \frac{$155\text{M}}{$150\text{M} + $1,400\text{M}} = \frac{$155\text{M}}{$1,550\text{M}} = \mathbf{10.0%} \end{aligned}$$
Ranking Outcome: Titan Industrial requires $1,550 million in heavy physical plants to generate just $155 million in EBIT (10% ROC). Furthermore, its $1,200 million debt burden expands its Enterprise Value to $3,100 million, depressing its Earnings Yield to 5.0%. It ranks near the bottom of the screened universe.
Yes. Academic replications and quantitative funds continue to verify that combining high Return on Capital with high Earnings Yield outperforms the broader market over full economic cycles. However, investors must be prepared for multi-year periods of tracking error and underperformance during speculative bull markets.
Greenblatt's Return on Capital (ROC) isolates tangible operating capital in the denominator ($\text{Net Working Capital} + \text{Net Fixed Assets}$), explicitly excluding goodwill, intangibles, and cash. Return on Invested Capital (ROIC) typically uses Total Debt plus Total Equity minus Cash, which includes goodwill and acquired intangibles. ROC provides a cleaner test of the actual physical capital efficiency of the business model.
EBIT (Operating Income) eliminates the distortion caused by differences in debt interest and state/international tax rates. Two companies with identical factories and operational efficiencies could have vastly different Net Incomes if one is 80% debt-funded and the other is 100% equity-funded. EBIT allows for an apples-to-apples comparison of operational productivity.
Yes. A company experiencing cyclical peak earnings (e.g., commodity producers or semiconductor foundries at the top of a super-cycle) may temporarily show a 20% Earnings Yield and 40% ROC based on trailing numbers. As the cycle turns, earnings collapse. That is why combining Magic Formula screens with qualitative AI analysis of 10-K filings (to verify moat durability and customer concentration) is critical.
Stop manually calculating enterprise values, operating capital bases, and multi-year EBIT numbers in spreadsheets.
With Value Investor Dashboard, you can:
👉 Start Screening Fundamental Value Stocks Free on Value Investor Dashboard — No credit card required.