By Joel Greenblatt
What it is
From Joel Greenblatt's "The Little Book That Beats the Market": rank companies on how cheap they are (earnings yield) and how good they are (return on capital), buy the best combined ranks and hold for a year.
In more depth
Joel Greenblatt's Magic Formula, from The Little Book That Beats the Market, ranks companies by earnings yield (cheapness) and return on capital (quality), then buys the top-ranked stocks and holds them for a year.
It combines value and quality in a simple, rules-based way. The strategy can underperform for long stretches, which is exactly why Greenblatt argues it keeps working: many investors give up.
Key takeaways
- A simple, rules-based mix of value and quality.
- Free screener on the official site (registration needed).
- Easy to replicate with most screeners and AI tools.
Who it is for
Investors who want a systematic stock-picking method.
Strategy at a glance
A rules-based way to buy good companies at low prices. It can work over long periods, but only if you can live through years of trailing the market.
What the Magic Formula looks for
InvestAITools.comWhat history and research say
- In "The Little Book That Beats the Market" (2005) Joel Greenblatt reported a backtest of about 30% a year from 1988 to 2004, versus about 12% for the S&P 500. Source: Greenblatt (2005)
- Independent tests found smaller, uneven excess returns, with long periods of underperformance, especially when value stocks lagged in the 2010s. Source: Alpha Architect research
How to build it: buying individual stocks
The Magic Formula is a stock-picking strategy: there is no fund that follows Greenblatt's exact rules for individual investors. You build it yourself with a screener and a simple, mechanical routine.
1. Screen for candidates
| Filter | Rule | Why |
|---|---|---|
| Earnings yield | EBIT ÷ enterprise value, ranked from highest to lowest | Measures how cheap the business is, including its debt |
| Return on capital | EBIT ÷ (net working capital + net fixed assets), ranked from highest to lowest | Measures how good the business is |
| Combined rank | Add both ranks and buy the lowest totals | Good businesses at cheap prices |
| Company size | Market cap above about 1 billion (the official screener lets you choose) | Liquidity and more reliable accounts |
| Exclusions | No financials or utilities | Their balance sheets distort both ratios |
2. Build the portfolio
3. When to sell
- Sell each position after about one year, whatever the price did (in the US, losers just before a year and winners just after, for tax reasons).
- Do not sell early because a stock fell: short-term falls are part of the strategy.
- Replace sold positions with the current top of the ranking, not with the stocks you like most.
Screeners that can apply these filters: GuruFocus, Stock Analysis, TIKR, Koyfin. See them below under “Tools and calculators that help”.
Step by step
- Get a list: use the free screener at magicformulainvesting.com (US stocks) or rebuild it in a screener with earnings yield (EBIT / enterprise value) and return on capital (EBIT / (net working capital + net fixed assets)).
- Exclude financials and utilities (their balance sheets distort the ratios) and set a minimum company size you are comfortable with.
- Buy 5–7 of the top-ranked stocks every 2–3 months until you hold 20–30.
- Hold each position for one year, then sell and replace it with the current top names.
- Check every pick for obvious traps (one-off profits, falling revenue, heavy debt): a quick AI-assisted read of the latest results helps.
- Commit to at least 5 years. The strategy only works if you keep following it through the bad years.
Advantages
- Clear, mechanical rules that limit emotional decisions
- Combines value and quality, two well-researched factors
- Easy to replicate with modern screeners
Drawbacks
- Concentrated: 20–30 stocks, often small and unloved
- Can trail the market for years
- More trading and taxes than an index fund
- The official screener covers US stocks only
Is it right for you?
A good fit if…
- You enjoy stock research but want rules to keep you disciplined
- You can treat it as a satellite next to an index core
Probably not for you if…
- You would abandon it after two bad years
- You want a hands-off portfolio
Common mistakes to avoid
- Cherry-picking only the names you like from the list (that breaks the rules)
- Holding fewer than 20 stocks
- Putting all your money in it instead of using it as a satellite (for example 10–30%)
Variations
European or global version. Rebuild the ranking in a screener that covers European stocks, using EBIT/EV and return on capital, and apply the same buy-and-hold-for-a-year rules.
Core + satellite. Keep 70–90% in a global index fund and run the Magic Formula with the rest. You get the experience of stock picking without betting everything on it.
Tools and calculators that help
Educational content about Magic Formula investing, not personal financial advice. Past results do not guarantee future returns.
Magic Formula investing: FAQ
Does the Magic Formula still work?
Results since publication have been mixed and it has had long weak periods. The value-plus-quality idea remains sound.
Who created the Magic Formula?
Joel Greenblatt, founder of Gotham Capital and a professor at Columbia Business School.
New free resources, in your inbox Limited-time deals, new tools and free resources by email. No spam.
Watch your inbox for the next deals and new tools.
Summary written by the InvestAITools team. We have no commercial relationship with this resource and the link above is not an affiliate link. Nothing here is financial advice.