Main Page > Articles > Joel Greenblatt > Joel Greenblatt: The Magic Formula in Practice: A Quantitative Approach to Value Investing

Joel Greenblatt: The Magic Formula in Practice: A Quantitative Approach to Value Investing

From TradingHabits, the trading encyclopedia · 10 min read · March 1, 2026
The Black Book of Day Trading Strategies
Free Book

The Black Book of Day Trading Strategies

1,000 complete strategies · 31 chapters · Full trade plans

Value investing has long been the cornerstone of many successful traders' portfolios. Among the pantheon of quantitative strategies, Joel Greenblatt’s Magic Formula stands out for its elegant simplicity and robust empirical track record. However, beyond the textbook definitions, applying the Magic Formula effectively requires precise implementation, rigorous risk controls, and disciplined psychology. This article dissects the Magic Formula through an expert lens, detailing its core components, exact trading rules, risk management techniques, and psychological underpinnings necessary to sustain an edge over multiple market cycles.


Introduction to the Magic Formula

Joel Greenblatt introduced the Magic Formula in his seminal work, The Little Book That Still Beats the Market (2005). The strategy ranks stocks by combining two key metrics: Earnings Yield and Return on Capital, aiming to systematically identify undervalued companies with high-quality earnings. The formula’s appeal lies in its quantitative rigor and mechanical application—providing a straightforward means to screen for stocks that are both cheap and profitable.

The Magic Formula is typically deployed as a long-only portfolio of approximately 20-30 stocks, equal-weighted, rebalanced annually. Greenblatt’s backtests demonstrate annualized returns substantially beating the S&P 500 over multi-decade periods, with a Sharpe ratio that appeals to systematic traders.

Yet, Greenblatt’s original presentation is a starting point rather than a turnkey system. Experienced traders must adapt the formula to specific market conditions, define precise entry and exit triggers, and integrate robust risk management frameworks. This article breaks down each component, emphasizing practical application for traders with at least two years of active experience.


Deep explore Earnings Yield (EBIT/Enterprise Value)

Earnings Yield is the Magic Formula’s measure of cheapness, but it is not the conventional earnings yield (Net Income / Market Cap). Instead, the formula uses:

[ \text{Earnings Yield} = \frac{\text{EBIT}}{\text{Enterprise Value}} ]

Why EBIT / EV?

  • EBIT (Earnings Before Interest and Taxes) isolates operating profitability, stripping out capital structure effects, taxes, and non-operating income, thus providing a cleaner signal of operating earnings.
  • Enterprise Value (EV) incorporates market capitalization plus net debt (total debt minus cash), reflecting the total cost to acquire the company, not just equity value.

This ratio therefore adjusts for leverage and provides a more apples-to-apples valuation metric across different capital structures.


Calculating EBIT

EBIT is typically sourced directly from the income statement or calculated as:

[ \text{EBIT} = \text{Operating Income} + \text{Non-Operating Income (if any)} ]

In practice, traders often adjust EBIT for one-time charges or non-recurring items to avoid distortions. For example, if a company reports a $50 million impairment charge, removing this from EBIT helps isolate operating profitability.


Calculating Enterprise Value

Enterprise Value is computed as:

[ \text{EV} = \text{Market Cap} + \text{Total Debt} - \text{Cash and Cash Equivalents} ]

Traders should ensure consistent and recent balance sheet data, ideally on a trailing twelve months (TTM) basis to align with EBIT figures.

Example:

Consider a stock trading at $50/share with 10 million shares outstanding:

  • Market Cap = $50 × 10,000,000 = $500 million
  • Total Debt = $100 million
  • Cash = $30 million

EV = $500 million + $100 million - $30 million = $570 million

If EBIT = $85 million, then:

[ \text{Earnings Yield} = \frac{85}{570} \approx 14.9% ]

This 14.9% earnings yield signals a relatively cheap stock compared to an equity earnings yield of EBIT/Market Cap = 85/500 = 17%. The EV denominator adjusts for leverage impact, providing a more conservative measure.


Deep explore Return on Capital (EBIT / (Net Fixed Assets + Working Capital))

The Magic Formula’s second metric, Return on Capital (ROC), gauges the quality and efficiency of the business. It is defined as:

[ \text{ROC} = \frac{\text{EBIT}}{\text{Net Fixed Assets} + \text{Net Working Capital}} ]

Where:

  • Net Fixed Assets (NFA) = Gross fixed assets (property, plant, equipment) minus accumulated depreciation.
  • Net Working Capital (NWC) = Current assets (excluding cash) minus current liabilities (excluding debt).

Rationale for This ROC Definition

This ROC metric measures how effectively a company uses its tangible capital to generate operating profits. The exclusion of cash and debt from working capital focuses on operating assets deployed in the business, filtering out financial engineering effects.

A high ROC indicates capital efficiency and quality earnings, reducing risk of value traps where cheap valuations mask poor business fundamentals.


Practical Considerations for ROC Calculation

  • Adjusting Working Capital: It is essential to exclude cash and short-term debt to isolate operating working capital.
  • Capital Expenditures: Some traders adjust NFA to net of capital expenditures over recent periods to better reflect ongoing capital intensity.
  • Negative or Low Capital: Companies with negative working capital or negative net fixed assets should generally be excluded, as ROC becomes meaningless or misleading.

Example:

Suppose a company reports:

  • EBIT = $85 million
  • Net Fixed Assets = $200 million
  • Current Assets (ex cash) = $120 million
  • Current Liabilities (ex short-term debt) = $80 million

Then:

[ \text{NWC} = 120 - 80 = 40 \text{ million} ]

[ \text{Capital Employed} = 200 + 40 = 240 \text{ million} ]

[ \text{ROC} = \frac{85}{240} = 35.4% ]

A 35% ROC signals excellent capital efficiency, a hallmark of a durable business model.


Step-by-Step Guide to Building a Magic Formula Portfolio

Building the portfolio requires meticulous data gathering, ranking, and screening.


Step 1: Universe Selection

  • Start with a broad universe such as the Russell 1000 or S&P 1500.
  • Exclude financials and utilities due to their atypical capital structures.
  • Apply liquidity filters: minimum average daily volume (e.g., > $1 million) and minimum market cap (e.g., > $200 million) to avoid illiquidity risks.

Step 2: Calculate Earnings Yield and ROC for Each Stock

  • Pull trailing twelve months EBIT, market cap, debt, cash, fixed assets, and working capital data.
  • Adjust for non-recurring items.
  • Calculate EBIT/EV and EBIT / (NFA + NWC).

Step 3: Rank Stocks by Each Metric

  • Rank all stocks from highest to lowest by Earnings Yield.
  • Separately rank stocks by ROC, highest to lowest.

Step 4: Combine Ranks to Generate Magic Formula Score

  • For each stock, add Earnings Yield rank + ROC rank.
  • Sort stocks ascending by combined score (lowest combined rank is best).

Step 5: Screen and Select Portfolio

  • Select top 20-30 stocks by combined rank.
  • Screen out stocks with negative EBIT, negative capital employed, or excessive leverage.
  • Apply sector diversification limits (e.g., no more than 4 stocks per sector).

Step 6: Equal Weight Portfolio Construction

  • Allocate equal capital to each position.
  • Rebalance annually (or semi-annually in more active variants).

Entry and Exit Rules

While Greenblatt’s original approach focuses on annual rebalancing, active traders can enhance returns by integrating more precise entry and exit triggers.


Entry Criteria

  • After generating the Magic Formula rank list, wait for a technical confluence on a weekly chart.
  • Use a minimum 10% pullback from the 12-month high to avoid chasing momentum.
  • Confirm entry with a rising 50-week moving average (MA) to ensure medium-term trend alignment.
  • Entry trigger: Buy when price closes above the 10-day moving average on increased volume (>20% above average daily volume).

Example:

  • Stock XYZ ranks in the top 30 Magic Formula stocks.
  • Its 12-month high is $50.
  • Current price retraced to $44 (12% pullback).
  • 50-week MA is at $42 and rising.
  • Price closes above 10-day MA at $45 with volume 30% above average.

Enter a long position at $45.


Exit Rules

  • Profit Target: Set a trailing stop at 20% above entry price to lock in substantial gains.
  • Stop Loss: Place an initial stop loss at 10% below entry price.
  • Fundamental Exit: Remove the stock from portfolio if it drops below the top 100 Magic Formula rank at annual rebalance.
  • Technical Exit: If price closes below the 50-week MA on weekly timeframe, consider exiting to protect capital.

Position Holding Period

  • Minimum holding period: 6 months to capture value realization.
  • Maximum holding period: 12 months, aligned with annual rebalancing to refresh rankings.

Risk Management and Position Sizing

Risk controls are paramount in quantitative value strategies prone to value traps and cyclical drawdowns.


Position Sizing

  • Equal weight sizing across portfolio positions (e.g., 3.3% each in a 30-stock portfolio).
  • Avoid concentration risk by capping position size at 5% if fewer stocks are held.
  • Adjust position sizes dynamically based on volatility targeting (e.g., reduce size if stock’s 30-day ATR volatility exceeds 5%).

Stop Loss Placement

  • Initial stop loss at 10% below entry price limits downside on mispriced or deteriorating companies.
  • Use trailing stops of 15-20% to capture upside while protecting gains.
  • Stops executed as market orders to ensure timely exits, avoiding illiquidity risks.

Portfolio-Level Risk Controls

  • Maximum portfolio drawdown limit (e.g., 15% from peak equity) triggers review and possible cash raise.
  • Sector exposure limits to avoid over-concentration in cyclical sectors.
  • Regular monitoring of financial health metrics (debt levels, EBIT trends) to avoid value traps.

The Psychology of Sticking to a Quantitative Strategy

The Magic Formula’s edge depends on strict adherence to rules despite inevitable periods of underperformance and volatility.


Cognitive Biases to Overcome

  • Recency Bias: Avoid chasing recent winners or abandoning the strategy after short-term losses.
  • Confirmation Bias: Resist the urge to override mechanical signals with subjective analysis.
  • Loss Aversion: Accept initial losses as part of the strategy’s risk profile; the formula’s long-term edge compensates.

Building Psychological Resilience

  • Maintain a trading journal documenting rationale for each trade and emotion checkpoints.
  • Set realistic expectations: the Magic Formula does not deliver smooth returns; expect volatility and drawdowns.
  • Utilize automation where possible to execute entries, exits, and rebalancing mechanically.
  • Engage in periodic performance reviews, focusing on process adherence rather than short-term P&L.

The Edge from Discipline

Greenblatt’s empirical results underscore that the Magic Formula’s outperformance emerges from disciplined, unemotional execution. Experienced traders who integrate precise risk controls and respect the formula’s quantitative signals can capture alpha while managing downside.


Conclusion

The Magic Formula provides a robust quantitative framework for value investing that can be tailored and enhanced by experienced traders. By rigorously calculating Earnings Yield and Return on Capital, meticulously constructing portfolios, employing precise entry and exit rules, and enforcing disciplined risk management, traders can exploit market inefficiencies systematically. Crucially, the psychology of unwavering adherence to the strategy—amid inevitable drawdowns—is the linchpin of sustained success.

This article reframes the Magic Formula not just as a theoretical model but as a practical, actionable trading system, articulating explicit rules, examples, and risk frameworks essential for traders intent on leveraging quantitative value investing in real-world markets.