Magic Formula investing

Ranks companies by earnings yield and return on capital to buy good businesses at cheap prices. The official site includes a free screener.

StrategyIntermediateFree

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.

StyleActive
Risk
EffortMedium
Time needed2–4 hours a quarter
MinimumEnough to hold 20–30 stocks without commissions eating returns
Horizon5–10 years at least
Hardest momentLong stretches (2–3 years or more) of underperforming the index

What the Magic Formula looks for

Magic Formula buys heregood business, cheap priceGreat business,expensiveCheap, oftenfor a reasonAvoidEarnings yield (EBIT / enterprise value) → cheaperReturn on capital → better businessInvestAITools.com
The formula ranks every company on both axes and buys the best combined rank: high quality at a low price.

What 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

FilterRuleWhy
Earnings yieldEBIT ÷ enterprise value, ranked from highest to lowestMeasures how cheap the business is, including its debt
Return on capitalEBIT ÷ (net working capital + net fixed assets), ranked from highest to lowestMeasures how good the business is
Combined rankAdd both ranks and buy the lowest totalsGood businesses at cheap prices
Company sizeMarket cap above about 1 billion (the official screener lets you choose)Liquidity and more reliable accounts
ExclusionsNo financials or utilitiesTheir balance sheets distort both ratios

2. Build the portfolio

Number of stocks20–30, equal weight
Building it5–7 new stocks every 2–3 months during the first year
Holding periodAbout one year per stock
After a yearSell and replace with the current top-ranked names
Time neededOne session every 2–3 months

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

  1. 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)).
  2. Exclude financials and utilities (their balance sheets distort the ratios) and set a minimum company size you are comfortable with.
  3. Buy 5–7 of the top-ranked stocks every 2–3 months until you hold 20–30.
  4. Hold each position for one year, then sell and replace it with the current top names.
  5. Check every pick for obvious traps (one-off profits, falling revenue, heavy debt): a quick AI-assisted read of the latest results helps.
  6. 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

Free calculatorPosition Size CalculatorSize each of your 20–30 positions consistently.
GuruFocusGuru and value screeners, plus the financial history to check each pick for traps.ReviewTry GuruFocus ↗
Stock AnalysisFree screener with EV/EBIT and return-on-capital filters, US and global.ReviewTry Stock Analysis ↗
TIKRGlobal coverage to rebuild the formula for European stocks.ReviewTry TIKR ↗
KoyfinCustom screens and fundamental charts to monitor the 20–30 holdings.ReviewTry Koyfin ↗

Educational content about Magic Formula investing, not personal financial advice. Past results do not guarantee future returns.

Keep in mind: It can underperform for years, which makes it hard to stick with.

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.

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.