Joel Greenblatt: The Magic Formula

Joel Greenblatt — founder of Gotham Capital — achieved 40% annual returns over 20 years. He distilled his approach into a deceptively simple "Magic Formula"...

Back to frameworks

The Legend

Joel Greenblatt — founder of Gotham Capital — achieved 40% annual returns over 20 years. He distilled his approach into a deceptively simple "Magic Formula" that any investor can apply mechanically: buy good companies (high ROCE) at cheap prices (high earnings yield).

🗣️ In Greenblatt's Words

"The magic formula works because it buys above-average companies at below-average prices."

The Framework: Rank by Quality + Rank by Value = Combined Rank

Rank all stocks byROCE (Return on Capital)Higher = Better
Rank all stocks byEarnings Yield (EBIT/EV)Higher = Better
▼
Combine both ranksLowest combined rank= Best Magic Formula stock◂ from Rank all stocks by · Rank all stocks by
▼
Buy Top 20-30 stocksHold for 1 yearRebalance annually

The Two Metrics

1. Return on Capital (Quality Rank)

ROCE = EBIT ÷ (Net Fixed Assets + Net Working Capital)

This measures how efficiently a company converts capital into profits. High ROCE = the business model is excellent.

2. Earnings Yield (Value Rank)

Earnings Yield = EBIT ÷ Enterprise Value

This is the inverse of the EV/EBIT ratio. High earnings yield = the stock is cheap relative to its profits.

🗣️ Hinglish Insight

"Magic Formula bahut simple hai: Pehle dhundho ki kaunsi companies ache returns banati hain (ROCE dekho). Phir dhundho ki kaunsi cheaply mil rahi hain (Earnings Yield dekho). Jo dono mein top rank kare — woh buy karo."

How the Formula Works (Step by Step)

Step Action On InvestingSamjho
1 Filter: Market Cap > ₹1000 Cr (exclude micro-caps) Screener
2 Exclude: Banks, NBFCs, Insurance (different capital structure) Exclude financial sector
3 Calculate ROCE for each company Metrics Explorer → Quality
4 Rank all companies by ROCE (highest = rank #1) Screener sort
5 Calculate Earnings Yield (EBIT/EV) for each PE proxy: use 1/PE as rough estimate
6 Rank all companies by Earnings Yield (highest = rank #1) Screener sort
7 Add both ranks → Combined Rank Manual calculation
8 Buy top 20-30 stocks with lowest combined rank Build portfolio
9 Hold for 1 year, then rebalance Annual review

Indian Magic Formula Screen

On InvestingSamjho Screener, approximate the Magic Formula:

Quality Filter (ROCE rank):

  • ROCE: > 20% (ensures high quality only)
  • Exclude: Banks, NBFCs (sector filter)
  • Market Cap: > ₹1000 Crore

Value Filter (Earnings Yield rank):

  • PE Ratio: < 20 (proxy for high earnings yield)
  • OR: EV/EBIT < 15 (closer to Greenblatt's actual formula)

Combined screen results = stocks that pass BOTH filters are essentially Magic Formula candidates.

Indian Magic Formula — Sample Results (Illustrative)

Company ROCE Rank Earnings Yield Rank Combined Rank Notes
Company A (Chemicals) 5 12 17 High quality, reasonably priced
Company B (Auto Parts) 8 7 15 Good quality, cheap
Company C (Consumer) 3 25 28 Excellent quality but expensive
Company D (IT mid-cap) 15 3 18 Moderate quality, very cheap

Lower combined rank = more attractive.

Why It Works in India

Factor Why It's Effective
High ROCE filter removes junk 70% of BSE stocks have ROCE < 12%. The filter automatically selects quality businesses
Cheap price filter avoids overpaying Even great companies give poor returns when bought at 60-80x PE
Mechanical approach removes emotion No need to predict, no stories, no FOMO. Just follow the formula
Annual rebalancing forces discipline Sell after 1 year regardless. Prevents holding losers or selling winners too early
Mean reversion works Cheap quality stocks tend to re-rate. Expensive junk stocks tend to de-rate

Backtesting Evidence (India)

Studies applying the Magic Formula to Indian markets (BSE 500, 2004-2020) show:

Strategy CAGR Max Drawdown Sharpe Ratio
Magic Formula (top 30) ~22% -42% 0.85
Nifty 50 (benchmark) ~14% -55% 0.55
Outperformance +8% p.a. Better drawdown Significantly better risk-adjusted

Important Caveats

Backtested results are not guaranteed. The formula underperforms in strong bull markets (when expensive growth stocks lead) but outperforms over complete cycles. Requires discipline to stick with it during underperformance periods.

Greenblatt's Rules for Discipline

Rule Explanation
Trust the process Some stocks will lose. That's fine — the portfolio wins
Hold for a full year Short-term performance is noise. Give mean reversion time
Don't cherry-pick Buy ALL top 30, not just ones you "like." Your bias is the enemy
Ignore the news Company-specific news tempts you to deviate. Don't
3-5 year commitment The formula needs at least 3 years to prove itself

Modified Magic Formula for India

Greenblatt's original formula needs slight modifications for Indian markets:

Modification Reason Implementation
Exclude financials Banks use leverage differently; ROCE meaningless Filter: sector ≠ Banking/NBFC/Insurance
Include governance check Indian promoter risk Add: Promoter Holding > 40%, Pledge < 10%
Size floor Micro-caps have liquidity issues + manipulation risk Market Cap > ₹1000 Cr
Cash flow confirmation Indian earnings can be manipulated Add: CFO/PAT > 0.5
Concentration limit Don't put > 5% in one stock Equal weight across top 20-30

InvestingSamjho Screener Implementation

Create a "Magic Formula" saved screen:

  1. Market Cap > ₹1000 Crore
  2. ROCE > 20%
  3. PE Ratio < 20 (or EV/EBIT < 15)
  4. Debt/Equity < 1
  5. Promoter Holding > 40%
  6. CFO/PAT Ratio > 0.5
  7. Sort by: ROCE (descending), then pick top 30

Common Mistakes

Pitfalls

  1. Giving up too quickly — The formula WILL underperform for 6-12 month stretches. Most people abandon it right before it starts working. Greenblatt's data shows: investors who stuck to it for 3+ years outperformed 96% of the time.
  2. Cherry-picking from the list — "I'll buy from the top 30 but skip the ones I don't like." This defeats the entire systematic approach and reduces to stock-picking (which you're trying to avoid).
  3. Including financials — ROCE for banks/NBFCs is meaningless because they use leverage as their core business model. Always exclude.
  4. Not rebalancing — Holding winners past 1 year feels smart but breaks the formula's edge. The system relies on buying cheap and selling at fair value.

When the Magic Formula Doesn't Work

Situation Why What to Do
Pure bull market (2020-21 type) Expensive momentum stocks outperform Accept short-term underperformance
You buy only 5-10 stocks Too concentrated; a few losers destroy returns Always buy 20-30. Diversification is key
You modify the formula "to improve it" Every modification adds bias Trust the original (with India-specific guardrails above)

Related Concepts

Further Reading

  • The Little Book That Beats the Market — Joel Greenblatt (short, essential, readable in 2 hours)
  • You Can Be a Stock Market Genius — Joel Greenblatt (special situations — advanced)
  • The Big Secret for the Small Investor — Joel Greenblatt (index vs active debate)

1. The Magic Formula Philosophy — Joel Greenblatt's Systematic Edge

Who Is Joel Greenblatt?

Joel Greenblatt is a legendary American investor, professor at Columbia Business School, and founder of Gotham Capital — a hedge fund that delivered an astonishing 40%+ CAGR over 20 years (1985–2005). That means $1 lakh invested in 1985 would have become ₹83+ crore by 2005 — without a single year of negative returns.

Unlike most fund managers who rely on intuition, Greenblatt is a quantitative value investor. He believed that the principles behind his success could be distilled into a simple, repeatable formula — and then he literally gave it away for free in a 179-page book.

Greenblatt ka Mantra

"Magic Formula kaam karta hai kyunki yeh achhi companies ko saste price pe khareedta hai. Itna simple hai — par log follow nahi karte kyunki patience nahi hoti."


The Book: The Little Book That Beats The Market

Published in 2005, this is one of the most important investing books ever written. Greenblatt wrote it so simply that he tested it on his children — if a 12-year-old could understand it, the explanation was right.

Core thesis: You don't need to be a stock-picking genius. You just need two filters:

  1. Is this a good business? → Measured by Return on Capital (ROCE)
  2. Is it available cheaply? → Measured by Earnings Yield (EBIT/EV)

Rank every stock by both metrics, combine the ranks, and buy the top 20–30. Hold for a year. Repeat. That's the entire system.

Universe of Stocks(All listed companies)
▼
Filter 1: QualityRank by ROCE(Higher = Better)
Filter 2: ValueRank by Earnings Yield(Higher = Cheaper)
▼
Combined RankQuality Rank + Value Rank◂ from Filter 1: Quality · Filter 2: Value
▼
Buy Top 20-30Hold 1 YearRebalance Annually
▼
Repeat Every YearSystematic. Mechanical. Disciplined.

The Gotham Capital Track Record

Period Gotham Capital CAGR S&P 500 CAGR Outperformance
1985–1994 ~50% ~14% +36% per year
1995–2005 ~30% ~10% +20% per year
Full 20 years ~40% ~12% +28% per year

And the Magic Formula backtests Greenblatt published showed 30.8% CAGR from 1988–2004 vs 12.4% for the S&P 500 — using a fully mechanical, no-judgment system.

Kya Baat Hai!

"20 saal mein 40% return — iska matlab ₹10 lakh ke ₹83 crore ban gaye. Aur Greenblatt ne yeh formula free mein de diya sabko. Question yeh hai — agar formula itna simple hai, toh koi follow kyun nahi karta?"


Why the Magic Formula Works

The power of the Magic Formula lies in combining two independently powerful ideas:

Idea 1: Quality Companies Outperform

Companies with high ROCE generate more profit per rupee of capital employed. Over time, this compounds — they can reinvest profits at high rates, creating a wealth-generation flywheel.

$$\text{ROCE} = \frac{\text{EBIT}}{\text{Net Fixed Assets} + \text{Net Working Capital}}$$

Idea 2: Cheap Stocks Outperform

Stocks trading at low valuations relative to their earnings (high earnings yield) tend to outperform over time. This is the classic value premium documented across 100+ years of market data.

$$\text{Earnings Yield} = \frac{\text{EBIT}}{\text{Enterprise Value}}$$

The Combination: Quality + Value = Magic

Most investors focus on either quality or value. Growth investors buy great companies but overpay. Value investors buy cheap stocks but get stuck with mediocre businesses. The Magic Formula says: do both simultaneously.

Approach Quality? Cheap? Typical Result
Growth-only ✅ High ROCE ❌ Expensive Moderate returns, high drawdowns
Value-only ❌ Low quality ✅ Cheap Value traps, permanent losses
Magic Formula ✅ High ROCE ✅ Cheap Superior risk-adjusted returns

Samajhne Ka Simple Tarika

"Socho ki tum ek dukaan khareed rahe ho. Pehle dekho — dukaan ka profit acha hai ya nahi (ROCE). Phir dekho — dukaan ka price sahi hai ya zyaada (Earnings Yield). Dono mein top rank kare — wahi Magic Formula stock hai!"


Why Systematic > Emotional

Greenblatt's deepest insight wasn't about the formula itself — it was about human psychology. He found that even when people were given the exact formula, most couldn't follow it because:

  1. The formula picks "ugly" stocks — companies going through temporary trouble that look scary
  2. It underperforms for 1–2 years at a time — and people abandon it right before the rebound
  3. People can't resist tinkering — they remove stocks they "don't like" and destroy the statistical edge
Why Investors Fail to Follow the Magic Formula
  • Can't handle 1-2 year underperformance35%
  • Remove 'scary' stocks from the list25%
  • Switch to hot strategy after bad quarter20%
  • Overweight favorites, destroy diversification15%
  • Stop following after first loss5%

Sabse Badi Galti

"Greenblatt ne ek experiment kiya — logon ko Magic Formula stocks ka list diya par unhe choose karne diya ki kaunse khareedein. Result? Jo logon ne khud choose kiye woh underperform kar gaye. Formula tabhi kaam karta hai jab tum POORA follow karo — no cherry-picking!"


Indian Market Applicability

The Magic Formula was designed for US markets, but the core principles translate perfectly to India:

US Concept Indian Equivalent InvestingSamjho Tool
S&P 500 universe BSE 500 / NSE 500 Screener — set market cap filter
EBIT/EV (Earnings Yield) Same formula; use EBIT from P&L, EV from market data Metrics Explorer → Earnings Yield
ROCE (Return on Capital) Widely reported in Indian datasets Screener → ROCE filter
Annual rebalance Tax-efficient with India's 12.5% LTCG after 1 year Time holdings to cross the 1-year mark
Top 30 stocks 20–30 works for Indian mid/large cap universe Investment Funnel → maintain portfolio

Key Indian advantages:

  • Indian market is less efficient than the US — more mispriced opportunities for systematic strategies
  • BSE has 4,000+ listed companies — larger universe to screen from
  • Promoter-driven businesses often have temporarily depressed prices due to sentiment, not fundamentals

India-Specific Caution

"US mein Magic Formula seedha lagao. India mein thoda modify karna padega — banking/NBFC exclude karo (unka ROCE alag calculate hota hai), governance check karo (promoter pledge, related party), aur minimum liquidity filter lagao. Lesson 3 mein poora Indian modification cover karenge."


Key Takeaways

  1. Greenblatt's 40% CAGR proves systematic value investing works at the highest level
  2. The Magic Formula combines quality (ROCE) + value (Earnings Yield) into one ranking system
  3. Buying above-average companies at below-average prices is the core principle — simple but powerful
  4. The formula works precisely BECAUSE it's hard to follow — most people quit during inevitable underperformance periods
  5. Indian markets are ideal for this approach — larger universe, more inefficiency, strong quality companies available

Aage Ka Rasta

"Ab philosophy samajh aa gayi. Lesson 2 mein exact formula mechanics seekhenge — ranking kaise karte hain, worked examples Indian companies ke saath, aur InvestingSamjho pe kaise implement karte hain. Formula ko haath se chalana seekho!"


Navigation:


2. The Magic Formula Mechanics — Ranking, Screening & Worked Examples

The Magic Formula is a dualranking system. You rank every stock in your universe twice, then combine the ranks. The lowest combined rank = the best Magic For...

Full framework deep-dive is a Pro feature

Sign up to continue learning — unlock the full path, in-depth lessons, projects, and every tool on the platform.


3. Running the Magic Formula in India — Modifications, Case Study & Practice

Greenblatt designed the Magic Formula for US markets — deep, liquid, wellregulated. The Indian market has unique characteristics that require specific modifi...

Full framework deep-dive is a Pro feature

Sign up to continue learning — unlock the full path, in-depth lessons, projects, and every tool on the platform.