Table of Contents

Magic Formula

The Magic Formula is a quantitative investment strategy popularized by hedge fund manager Joel Greenblatt in his best-selling book, “The Little Book That Beats the Market.” Don't let the whimsical name fool you; it's a disciplined approach rooted firmly in the principles of value investing. The core idea is brilliantly simple: buy good companies at cheap prices. To achieve this, the formula uses a systematic stock screening process to identify companies that score highly on two specific metrics: Return on Capital, which measures how “good” a company is at generating profits from its assets, and Earnings Yield, which measures how “cheap” a company's stock is relative to its earnings. By ranking and combining these two factors, the formula aims to create a portfolio of high-quality, undervalued businesses poised for long-term growth, providing a structured method for investors to bypass emotional decision-making and focus on fundamental value.

How the Magic Happens

At its heart, the Magic Formula is a two-part recipe for finding investment treasures. It mechanizes the process of looking for the two things every value investor wants: a great business and a bargain price.

The "Good Company" Metric: Return on Capital

How do you tell if a business is a high-quality operation? You look at how effectively it makes money. That's what Return on Capital (ROC) does. It measures how much profit a company generates for every dollar of capital it employs. A high ROC suggests the company has a strong competitive advantage, or what Warren Buffett would call a “moat“—something that protects it from competitors and allows it to earn consistently high profits. Greenblatt uses a specific formula to calculate this:

Where:

A company that can consistently generate a high ROC is like a star student who always gets top grades with minimal effort—it's just really good at what it does.

The "Cheap Price" Metric: Earnings Yield

Finding a great company is only half the battle; you don't want to overpay for it. This is where Earnings Yield comes in. It's a simple way to gauge if a stock is a bargain. Think of it as the inverse of the famous P/E ratio. A higher yield means you're getting more earnings for your money. Greenblatt's formula for this is:

Where:

By using EBIT/EV, the formula compares a company's operating earnings to its total price tag, allowing for a fair comparison between companies with different debt levels and tax rates. A high earnings yield is a strong signal that the company might be on sale in the stock market.

Putting the Formula to Work

The “magic” isn't just in the metrics themselves, but in how they are systematically combined and applied. It’s a disciplined, multi-step process.

The Ranking System

The process is straightforward and mechanical, designed to remove human bias:

  1. Step 1: Start with a list of stocks, typically excluding financial and utility companies, and focusing on those above a certain minimum market capitalization (e.g., $50 million) to ensure you're dealing with reasonably established businesses.
  2. Step 2: Calculate the Return on Capital for every company on the list. Rank them from best (highest ROC) to worst (lowest ROC).
  3. Step 3: Calculate the Earnings Yield for every company. Rank them from best (highest yield) to worst (lowest yield).
  4. Step 4: Add the two ranks together for each company. For example, a company that is 10th in ROC and 25th in Earnings Yield gets a combined score of 35.
  5. Step 5: The companies with the lowest combined scores are your “Magic Formula” stocks. These are the ones that, according to the system, offer the best combination of quality and value.

Building Your Portfolio

Greenblatt provides clear instructions for building a portfolio based on these rankings:

The Fine Print: Caveats and Criticisms

While the formula's historical performance has been impressive, it's essential to understand its limitations.