Skip to main content

The Magic Formula for Investing by Joel Greenblatt: How to Find Quality Stocks

6 min readUpdated on 19th Aug, 2026by Team Angel One
In Joel Greenblatt's Magic Formula, investors evaluate both profitability and valuation to uncover compelling long-term opportunities.
Share

One of the greatest challenges for investors is identifying companies that can deliver sustainable long-term returns without overpaying. The secret lies in finding businesses that are both fundamentally sound and attractively priced.

The Magic Formula is a stock-picking system created by US investor, hedge fund manager, and founder of Gotham Capital, Joel Greenblatt.

Introduced in his bestseller The Little Book That Beats the Market, the approach relies on two primary metrics: Earnings Yield and Return on Capital (ROC).

Instead of trying to predict short-term price movements or chase market hype, the Magic Formula ranks companies based on operating efficiency and business valuation, offering a disciplined way to screen for investment candidates.

Key Takeaways

  • Joel Greenblatt developed The Magic Formula as a systematic way to select stocks.
  • It combines Earnings Yield and Return on Capital.
  • Earnings Yield can be used to identify companies that may be attractively valued.
  • Return on Capital measures how well a company uses its capital to generate operating profits.
  • The strategy sorts companies by valuation and profitability.
  • It is a long-term investment approach and does not promise multibagger returns.

The Two Numbers Behind the Magic Formula

The Magic Formula may appear complicated at first glance, but the idea behind it is really basic. It combines two important metrics.

1. Earnings Yield: How Cheap Is The Company?

The Earnings Yield is a measure of the operating earnings a company generates relative to its enterprise value.

The formula is:

Earnings Yield = Operating Earnings / Enterprise Value * 100

A higher Earnings Yield can suggest the company is producing more operating earnings in relation to what investors are paying for the business.

Rather than looking at price-earnings ratios, Greenblatt liked to look at Earnings Yield, which considers the enterprise value of a company (that is, what it would cost to buy the whole company, including debt).

2. Return on Capital: How Good Is the Business?

The second half of the Magic Formula is capital returns. It measures how well a company uses the capital invested in its business to generate operating profits.

A simpler formula is:

Return on Capital = (Operating Profit ÷ Invested Capital) × 100

The higher the Return on Capital, the more efficient the company typically is in using its capital.

This is an important part of Greenblatt’s approach, as cheap stock is not necessarily a good business. The strategy seeks to identify companies with attractive valuations and strong business economics.

Read More About: Best Long-Term Investment Stocks

How the Magic Formula Ranks Stocks

The Magic Formula does not consider a company's Earnings Yield or Return on Capital in isolation. Instead, it ranks a group of companies on both measures.

Companies with better Return on Capital get better profitability rankings, and companies with higher Earnings Yield get better valuation rankings. The rankings are then merged to form an overall ranking.

The higher a company scores on both, the higher it will climb the list. This is a more systematic way than just picking stocks based on a personal opinion.

Why Cheap is Not Always Enough

Buying stocks solely because they look cheap on valuation can lead to value traps, companies whose low prices reflect deteriorating business models or dropping profits. To avoid this, the Magic Formula uses return on capital as a quality screen:

Good Business (High Return on Capital) + Attractive Price (High Earnings Yield) = Potential Investment Opportunity

Screening 500 Companies in Practice

In the Indian market context, screening the top 500 listed companies by market capitalisation (as categorized under SEBI guidelines) is a common starting point.

It is important to remember that the Magic Formula excludes banks, non-banking financial companies (NBFCs), and insurance firms because their business models rely on leverage, making standard Enterprise Value and EBIT metrics unhelpful.

Step 

Action 

Description 

1. Quantitative Ranking 

Rank by Earnings Yield and Return on Capital 

Filter a universe of 500 stocks based on valuation and profitability metrics.  

2. Combine Scores 

Generate overall standings 

Isolate top-performing companies that score well on both counts. 

3. Fundamental Due Diligence 

Research financials and Management 

Examine balance sheets, debt, and industry outlook before investing. 

Note: The Magic Formula is a powerful stock-screening tool, not an automatic buy-and-sell system.

Understanding Multibagger and Magic Formula  

The Magic Formula does not explicitly predict which stocks will become multibaggers. It filters the fundamental characteristics that historically drive long-term wealth creation. 

Concept  Description & Application 
Multibagger  An investment that multiplies in value multiple times (e.g., a 5x increase from ₹10 to ₹50). 
Magic Formula Goal  Instead of guessing "winners," it seeks companies with Robust Return on Capital (high quality) and Attractive Prices (value). 
How Wealth is Built  If a company maintains high capital efficiency and reinvests profits effectively, the market eventually recognises its intrinsic value, often leading to substantial long-term gains. 
Key Takeaway  You do not need to chase speculative tech stocks. High-quality businesses bought at "cheap" prices are viable engines for long-term compounding. 

Does the Magic Formula Work in Every Market?

The Magic Formula is a framework for picking stocks, but performance can vary from market to market or time to time. Market conditions can influence valuation levels, industry performance, and investor sentiment.

Furthermore, some sectors may have accounting characteristics that make standard measures of profitability or valuation less meaningful. Investors should therefore understand the businesses they are analysing and consider whether the measures in the formula are appropriate for the industry in question.

Read More About: How to invest in growth stocks?

Who can use the Magic Formula?

Investors who favour a systematic, valuation-driven strategy and are willing to commit capital for the long term may find this approach appealing.

It may not be as suitable for traders who prefer short-term trading or reacting to market movements. The approach requires discipline, but investors should not give up on the process, even if some stocks that pass the test perform poorly in the short term.

The Magic Formula in Action

When implementing the strategy, an investor typically screens a large universe of stocks using the following steps:

  1. Calculate metrics: Compute the Earnings Yield and Return on Capital for all eligible companies.
  2. Rank companies: Rank the entire universe from best to worst based on Earnings Yield and separately based on Return on Capital.
  3. Combine rankings: Add the two rankings to create a combined score for each company.
  4. Select top candidates: Focus on the top-ranking companies (e.g., the top 20-30 stocks).
  5. Conduct final due diligence: Examine management quality, balance sheet health, and industry dynamics before deploying capital.

Magic Formula vs Speculative Stock Picking: Key Differences

Feature  The Magic Formula  Speculative Trading 
Primary Focus  Operating efficiency and valuation yield  Short-term momentum, news, and market hype 
Core Metrics  Return on Capital and Earnings Yield  Price action, volume spikes, and technical charts 
Objective  Systematic identification of quality compounders  Quick capital gains from price swings 
Time Horizon  Long-term (typically holding for 1+ years)  Short-term (days, weeks, or months) 

The Importance of Patience  

The Magic Formula is a long-term investment approach where patience is the ultimate requirement. Market sentiment, macroeconomic conditions, or temporary company headwinds can cause the market to ignore a fundamentally sound business for an extended period.  

Conclusion 

Joel Greenblatt’s Magic Formula provides a disciplined, systematic framework for identifying profitable, attractively priced companies through earnings yield and return on capital. While it does not guarantee multibagger returns or eliminate operational risks, its greatest value lies in fostering discipline. By replacing market hype and emotional trading with quantitative screening, investors can build a structured shortlist and perform rigorous fundamental research before deploying capital.

FAQs

Joel Greenblatt’s Magic Formula is an investing strategy that looks to find companies with high returns on capital and good earnings yields. 

The two primary measures are Earnings Yield and Return on Capital. Earnings Yield focuses on valuation, while Return on Capital assesses business efficiency and profitability. 

The Magic Formula does not promise multibagger returns. It is a stock-screening method to identify companies with good profitability and valuation features. 

Earnings Yield measures a company’s operating earnings relative to its enterprise value. A higher Earnings Yield may indicate a more attractive valuation. 

Return on Capital measures how efficiently a company uses its invested capital to generate operating profits. A higher return generally indicates more efficient use of capital. 

Yes. The strategy is designed as a long-term approach. Stocks identified by the formula may take time to deliver results, so patience is important. 

The formula relies on historical financial data, which may not reflect future performance. Additionally, it does not apply to financial sector stocks (banks/NBFCs) and cannot detect accounting irregularities or qualitative management risks without further manual due diligence.

Open Free Demat Account!

Join our 3.8 Cr+ happy customers

+91

Open Free Demat Account!

Join our 3.8 Cr+ happy customers
+91