Magic Formula Investing
Intermediateالاستثمار بالمعادلة السحرية
Also known as: Magic Formula, Greenblatt Magic Formula, Greenblatt Formula
Last updated
Definition reviewed before publishing
Our content team writes and reviews every definition before it is published, and revisits it when the way a term is used in the markets changes. The date shows the latest change to this term.
Last updated on 25 November 2026
Magic formula investing is a rules-based stock selection method introduced by American investor Joel Greenblatt in his 2005 book The Little Book That Beats the Market. It ranks companies on just two measures: how cheap the stock is relative to its earnings, and how efficiently the business earns a return on its capital.
Quick summary
• A quantitative stock selection method by Joel Greenblatt. • Ranks companies by earnings yield and return on capital. • Needs a diversified portfolio and years of patience.
How it works
The investor starts with a broad list of listed companies and usually removes utilities, banks and insurers, whose financial statements do not suit the measures. Each remaining company's earnings yield is then calculated as operating profit divided by enterprise value, and the companies are ranked from highest to lowest. Next comes return on capital, defined as operating profit divided by the sum of net working capital and net fixed assets, and the companies are ranked a second time. The two ranks are added together, and the stocks with the lowest combined score are selected, since they combine a low price with high quality. Greenblatt suggested building a portfolio of 20 to 30 stocks in several batches over the year, holding each stock for about a year and then replacing it based on the new ranking.
Example
Take two hypothetical companies. The first has operating profit of 50 million riyals and an enterprise value of 500 million, giving an earnings yield of 10% (50 ÷ 500); its capital employed is 200 million, giving a return on capital of 25% (50 ÷ 200). The second has an earnings yield of 6% and a return on capital of 12%. If the first ranks 15th and 40th, for a total of 55, and the second ranks 300th and 450th, for a total of 750, the first sits higher on the list.
Where you will see it
In value investing books, in stock screening tools on some platforms, and in research on quantitative factor strategies.
Why it matters
The formula is a clear example of turning an investment idea into written rules that reduce the influence of emotion on decisions. It also reminds investors that a cheap stock alone can be a trap if the business earns poor returns, so the method combines price and quality in a single ranking.
How it is calculated
Earnings yield = operating profit ÷ enterprise value. Return on capital = operating profit ÷ (net working capital + net fixed assets). Final score = earnings yield rank + return on capital rank; the lower the score, the better.
How it differs from similar terms
• Value investing: a broad philosophy of buying assets below their worth, while the magic formula is one specific quantitative version of it. • Price-to-earnings ratio: a single valuation measure, while the formula uses an enterprise value based earnings yield together with a quality measure. • Return on invested capital: a close quality measure, but the formula defines capital more narrowly, focusing on operating assets.
Common mistakes
Abandoning the strategy after one or two weak years, or cherry-picking a few stocks from the list based on personal preference. Any quantitative method should be judged over long periods and with a diversified portfolio, and the past results shown in the book do not guarantee that they will be repeated.