What Is the Magic Formula (Joel Greenblatt)?
The Magic Formula is a stock-ranking system created by Joel Greenblatt that looks for companies with two traits at the same time: high earnings yield and high return on capital.
Instead of asking only whether a stock is cheap or only whether a business is strong, the Magic Formula tries to find companies that are both. That is why it remains one of the most widely cited frameworks in systematic value investing.
TL;DR: The Magic Formula ranks stocks by combining a valuation measure and a business-quality measure. In practice, investors usually want companies with high earnings yield, high return on capital, and enough size and stability to avoid obvious junk. On ScreenerHub, the closest practical version is a screen that combines ROIC with a low EV/EBITDA multiple.
Why the Magic Formula Matters
Many stock screens break down because they optimize for only one thing.
If you screen only for cheap stocks, you often get troubled businesses, cyclical peaks, or companies with weak balance sheets. If you screen only for high-quality businesses, you often end up with great companies at expensive prices.
The Magic Formula matters because it tries to solve both problems at once:
- It adds discipline to value investing. You do not just buy what looks statistically cheap.
- It adds valuation discipline to quality investing. You do not automatically overpay for good businesses.
- It is systematic. The framework ranks companies by the same rules instead of relying on intuition.
- It fits stock screening well. Both core ingredients can be approximated with filters already familiar to most investors.
Magic Formula vs. one-factor screening
| If you screen only for... | You may get... | The Magic Formula tries to add... |
|---|---|---|
| Low valuation multiples | Cheap but weak businesses | A quality backstop |
| High profitability | Great businesses at any price | A valuation check |
| Momentum alone | Expensive winners | A more valuation-aware shortlist |
That balance is the reason the formula still shows up in conversations about value investing, quality investing, and rules-based screening.
How the Magic Formula Is Calculated
The original Magic Formula has two building blocks.
1. Earnings yield
This asks how much operating profit you get for the total price of the business. Higher earnings yield is better because it usually means the business is cheaper relative to its operating earnings.
2. Return on capital
This asks how efficiently the business turns operating assets into operating profit. Higher return on capital is better because it points to a stronger underlying business.
3. Combined rank
Each company is ranked separately on both measures:
- higher earnings yield gets a better rank
- higher return on capital gets a better rank
- the two ranks are added together
- the lowest combined score is the most attractive candidate
In plain English, the formula looks for businesses that are both cheap and efficient.
Worked example
Imagine a small universe of four companies:
| Company | Earnings Yield Rank | Return on Capital Rank | Combined Rank |
|---|---|---|---|
| Atlas | 2 | 1 | 3 |
| Beacon | 1 | 4 | 5 |
| Cedar | 4 | 2 | 6 |
| Delta | 3 | 3 | 6 |
Atlas ranks best overall because it is strong on both dimensions, not just one. Beacon is the cheapest stock in the group, but its business quality is weaker. Cedar is very efficient, but not cheap enough. The Magic Formula prefers the balance of cheapness and quality rather than the extreme of either one.
Important: Different data providers use slightly different definitions for return on capital. Many modern screeners use ROIC as the practical quality proxy because it is more widely available and easier to compare across datasets.
How to Interpret the Magic Formula
The Magic Formula is not one standalone ratio with a universal good or bad number. It is a ranking system.
That means the key question is not "Is 8 good?" but rather "Where does this stock rank against the rest of my investable universe?"
General interpretation guide
| Rank Bucket | What It Usually Means |
|---|---|
| Top 10% | Strong mix of valuation and business quality |
| Top 10-25% | Still attractive, but usually with one weaker dimension |
| Middle 50% | Mixed set of average businesses or fair valuations |
| Bottom 25% | Usually too expensive, too weak, or both |
What the framework is really rewarding
When a stock ranks well on the Magic Formula, it usually means:
- operating earnings look strong relative to enterprise value
- the business earns solid returns on the capital it uses
- valuation is not doing all the work
- business quality is not doing all the work either
That combination is why the formula is often described as a rules-based quality-value strategy rather than a pure deep-value system.
Sector context still matters
| Sector | Why interpretation changes |
|---|---|
| Software | High returns on capital are common, so valuation discipline matters more |
| Industrials | Moderate returns can still be attractive if valuation is low |
| Energy and Materials | Cyclical EBIT can make stocks look cheaper than they really are |
| Banks and Insurers | The original framework is less reliable because enterprise value and operating capital work differently |
Context matters: A stock can rank well simply because EBIT is temporarily inflated near the top of a cycle. The formula works best when you add balance-sheet checks and review several years of operating performance.
When the Magic Formula Misleads
The Magic Formula is useful, but it is not actually magic. There are several cases where investors misuse it.
1. Treating it like a complete investment thesis
The formula gives you a shortlist, not a final answer. You still need to check the business model, industry risk, balance sheet, and earnings quality.
2. Ignoring cyclical earnings
A steel producer or shipping company can look extremely cheap when EBIT is near a cycle peak. That does not mean the stock is structurally undervalued.
3. Applying it blindly to financial stocks
Banks and insurers do not fit the original enterprise value plus EBIT logic as neatly as operating businesses in other sectors.
4. Forgetting liquidity and market-cap constraints
Very small companies can rank well on paper while still being too illiquid, too volatile, or too fragile for a practical screen.
5. Expecting short-term outperformance
The Magic Formula is a systematic framework that historically required patience. Even a strong implementation can lag the market for long stretches.
Magic Formula in a Stock Screener
ScreenerHub does not need a dedicated "Magic Formula" button for you to use the idea. The practical way to approximate the framework is to combine a quality filter with a valuation filter.
Screener 1: Classic Magic Formula approximation
| Filter | Setting |
|---|---|
| ROIC | > 12% |
| EV/EBITDA | < 12x |
| Market cap | > $500M |
| Revenue | Positive |
This is the closest simple approximation for most investors: strong capital efficiency plus a reasonable enterprise-value multiple.
Screener 2: Quality value shortlist
| Filter | Setting |
|---|---|
| ROIC | > 10% |
| P/E ratio | < 20 |
| Debt-to-equity | < 1.5 |
| Revenue growth | > 0% |
This version is slightly less faithful to the original formula, but it is often easier to explain and works well if you want a broader value screen.
Screener 3: Higher-quality tilt
| Filter | Setting |
|---|---|
| ROIC | > 15% |
| EV/EBITDA | 6x - 14x |
| Gross margin | > 20% |
| Debt-to-equity | < 1.0 |
This pushes the framework toward higher business quality so you avoid buying statistically cheap companies with weak economics.
<!-- [SCREENSHOT: ScreenerHub Studio - ROIC > 12%, EV/EBITDA < 12x, Market Cap > $500M, and positive Revenue applied to approximate the Magic Formula] -->
-> Try this screen in ScreenerHub: Start with ROIC > 12% ->
Once the screen opens, add EV/EBITDA as the second filter to bring the shortlist closer to the original Greenblatt logic.
Magic Formula vs. Related Metrics
The Magic Formula is best understood as a framework built from simpler components.
| Metric | What It Measures | Best Use Case |
|---|---|---|
| Magic Formula | Combined ranking of cheapness and quality | Building a systematic value shortlist |
| ROIC | Capital efficiency | Measuring how productively a business uses capital |
| EV/EBITDA | Enterprise-value-based valuation | Comparing valuation across capital structures |
| P/E Ratio | Equity valuation based on net earnings | Simple valuation checks for profitable companies |
| Piotroski F-Score | Balance-sheet and operating quality improvement | Filtering weak value traps out of cheap stocks |
If you already understand ROIC and EV/EBITDA, the Magic Formula is easier to see for what it is: a ranking layer that combines both ideas into one repeatable process.
Common Mistakes When Using the Magic Formula
- Assuming the formula replaces business analysis. It creates a shortlist; it does not eliminate the need for judgment.
- Using only the cheapest stocks. Cheapness without quality is exactly what the formula is trying to avoid.
- Ignoring debt and accounting quality. A stock can rank well while still carrying real balance-sheet risk.
- Comparing incompatible sectors directly. Rankings work better inside a reasonably similar universe.
- Expecting the strategy to work every quarter. Rules-based value approaches often require a multi-year mindset.
Frequently Asked Questions
What is the Magic Formula in investing?
The Magic Formula is Joel Greenblatt's method for ranking stocks by combining a cheapness measure and a business-quality measure. In its original form, it uses earnings yield and return on capital, then favors the stocks with the best combined ranks.
Is the Magic Formula the same as value investing?
It is a form of systematic value investing, but it is narrower than value investing as a whole. Traditional value investing can include qualitative judgment, asset-based analysis, and special situations. The Magic Formula is a rules-based shortcut that emphasizes cheap, efficient businesses.
What is a good Magic Formula stock?
In practice, a good candidate ranks near the top of a reasonable stock universe and still passes common-sense checks like market cap, balance-sheet health, and earnings stability. The formula works best as a shortlist generator, not as a blind buy list.
How does the Magic Formula differ from ROIC?
ROIC is one quality metric. The Magic Formula is a broader ranking system that combines a quality metric with a valuation metric. ROIC tells you whether the business is efficient. The Magic Formula asks whether the business is efficient and cheap enough.
Does the Magic Formula still work today?
The idea still matters because the logic is timeless: investors want strong businesses at reasonable prices. But no formula works automatically in every market. The best modern use is as a disciplined screening framework followed by deeper company analysis.
Keep Learning
- What Is Return on Invested Capital (ROIC)? - understand the quality side of the formula
- What Is EV/EBITDA? - understand the valuation side of the formula
- What Is the Piotroski F-Score? - add a financial-strength overlay to value screens
- What Is P/E Ratio? - compare simple valuation with enterprise-value-based valuation
- Systematically Find Value Stocks - see how valuation and quality fit into a repeatable screening workflow