Features
Why VID
Pricing
About
Blog & Podcast
Roadmap
Careers
Log in
Get Started Free

AI can make mistakes. Please verify all financial data independently. The upcoming report does not constitute financial advice and does not imply any future gains or losses.

Magic Formula Investing Explained: Joel Greenblatt's 2-Factor Stock Strategy

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.

Combined Rank=Rank(Return on Capital)+Rank(Earnings Yield)\text{Combined Rank} = \text{Rank}(\text{Return on Capital}) + \text{Rank}(\text{Earnings Yield})


The Two Mathematical Pillars: Quality and Value

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) EBITNet Working Capital+Net Fixed Assets\frac{\text{EBIT}}{\text{Net Working Capital} + \text{Net Fixed Assets}} Measures operational pre-tax cash profitability generated per dollar of tangible operating capital deployed. Excludes goodwill and excess cash.
Value Earnings Yield (EY) EBITEnterprise Value=EBITMarket Cap+Total Debt−Excess Cash\frac{\text{EBIT}}{\text{Enterprise Value}} = \frac{\text{EBIT}}{\text{Market Cap} + \text{Total Debt} - \text{Excess Cash}} Measures operating earnings generated per dollar of total takeover price. Unlike P/E, it penalizes debt-heavy balance sheets and rewards cash reserves.

Pillar 1: Return on Capital (ROC) vs. Traditional ROE / ROA

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:

Return on Capital=EBIT(Current Assets−Current Liabilities)⏟Net Working Capital+(Property, Plant & Equipment−Accumulated Depreciation)⏟Net Fixed Assets\text{Return on Capital} = \frac{\text{EBIT}}{\underbrace{(\text{Current Assets} - \text{Current Liabilities})}_{\text{Net Working Capital}} + \underbrace{(\text{Property, Plant \& Equipment} - \text{Accumulated Depreciation})}_{\text{Net Fixed Assets}}}

  1. EBIT in the Numerator: Uses operating income before interest and taxes. This allows an analyst to evaluate the operational profitability of the assets, completely independent of how management finances the business (debt vs. equity).
  2. Tangible Operating Capital in the Denominator: Only counts the tangible capital actively required to generate sales. It excludes cash held in bank accounts, marketable securities, and goodwill from past M&A acquisitions.

Pillar 2: Earnings Yield (EY) vs. Traditional P/E

The standard Price-to-Earnings ratio compares Market Capitalization to Net Income ($\text{P/E} = \text{Price} / \text{EPS}$). This creates dangerous blind spots:

  • Company A has a $10 billion market cap, $0 debt, and earns $1 billion net income ($\text{P/E} = 10\text{x}$).
  • Company B has a $10 billion market cap, $15 billion in debt, and earns $1 billion net income ($\text{P/E} = 10\text{x}$).

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:

Earnings Yield=EBITMarket Capitalization+Total Debt+Preferred Stock−Total Cash\text{Earnings Yield} = \frac{\text{EBIT}}{\text{Market Capitalization} + \text{Total Debt} + \text{Preferred Stock} - \text{Total Cash}}

A high Earnings Yield means you are paying a bargain price for every dollar of pre-interest, pre-tax operating earnings the business generates.


The Magic Formula Masterclass: Host Ori Souchami & VID AI

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.


Real-World Worked Comparison: High Rank vs. Low Rank

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                 |
+------------------------------------+--------------------------+--------------------------+

Calculation for Apex Health

$$\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.

Calculation for Titan Industrial

$$\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.


4 Rules for Implementing Magic Formula Investing

  1. Establish a Minimum Market Cap: Filter for companies with a market cap greater than $100 million (or $500 million for institutional liquidity) to avoid illiquid micro-caps prone to bid-ask slippage.
  2. Exclude Financials and Utilities: Always remove banks, insurance brokers, REITs, and electric/gas utilities from the ranking pool.
  3. Diversify Across 20 to 30 Stocks: Never bet everything on the #1 ranked stock. Hold 20 to 30 equally-weighted positions across diverse industries to insulate against individual accounting fraud or industry disruption.
  4. Hold for 1 Year and Rebalance: Hold each position for approximately 50 to 52 weeks. In taxable accounts, sell losing positions slightly before 1 year (to harvest short-term capital losses) and hold winners past 1 year (to capture long-term capital gains tax rates).

Frequently Asked Questions About Magic Formula Investing

Does Magic Formula Investing still work in 2026?

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.

What is the difference between Return on Capital (ROC) and ROIC?

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.

Why does Greenblatt use EBIT instead of Net Income?

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.

Can Magic Formula Investing buy value traps?

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.


Automate Fundamental Value Screening on VID

Stop manually calculating enterprise values, operating capital bases, and multi-year EBIT numbers in spreadsheets.

With Value Investor Dashboard, you can:

  • Instantly audit 10+ years of audited SEC financial statements.
  • Automatically compute Enterprise Value, EBIT, Return on Capital, and Earnings Yield for any US-listed ticker.
  • Cross-reference quantitative screens with our automated Fair Price AI Engine (blended DCF + Benjamin Graham Number).
  • Detect hidden debt risks, cyclical peaks, and economic moats with LangGraph AI report teardowns.

👉 Start Screening Fundamental Value Stocks Free on Value Investor Dashboard — No credit card required.