Main Page > Articles > Joel Greenblatt > Joel Greenblatt's Magic Formula: A Deep Dive for Experienced Traders

Joel Greenblatt's Magic Formula: A Deep Dive for Experienced Traders

From TradingHabits, the trading encyclopedia · 5 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

Joel Greenblatt’s Magic Formula: A Deep Look for Experienced Traders

Joel Greenblatt’s Magic Formula ranks stocks by high earnings yield and high return on capital. It targets undervalued stocks with solid profitability metrics. While retail investors know the basic rule, expert traders can extract actionable nuances to improve edge, position sizing, and risk management. This article explains how to implement and optimize Greenblatt’s Magic Formula for active trading, detailing entry and exit rules, stop placement, position sizing, and practical examples.

Core Concept Recap

The Magic Formula ranks companies using two main metrics:

  • Earnings Yield = EBIT / Enterprise Value (EV)
  • Return on Capital (ROC) = EBIT / (Net Working Capital + Net Fixed Assets)

The model ranks stocks by each metric separately, then combines rankings. Top-ranked stocks have both high yield and high ROC. Greenblatt’s original data screen targeted about 20-30 stocks from the Russell 1000.

Entry Rules for Active Traders

For active traders with 2+ years of market experience, entry decisions must incorporate timing, liquidity, and sector effects beyond static formula results.

  1. Universe: Select Russell 1000 or S&P 1500, removing small-cap microcaps under $300M market cap to ensure liquidity.

  2. Ranking Steps:

    • Calculate EBIT and EV from latest quarterly financials, annualized for stability.
    • Compute Earnings Yield and Return on Capital.
    • Rank stocks ascending by Earnings Yield and Return on Capital.
    • Combine ranks by adding them; lower sums indicate better candidates.
  3. Filter Rules:

    • Exclude financials, utilities, and real estate (due to capital structure differences).
    • Require minimum average daily volume of 500,000 shares.
    • Price above $5 to avoid penny stock volatility.
  4. Timing Entry:

    • Apply entry triggers based on price action or momentum within the Magic Formula basket.
    • Use a technical filter: enter when the stock closes above its 50-day moving average after bottoming in the last 30 days.
    • Confirm with relative strength index (RSI) > 40 to avoid oversold traps.
    • Focus on quarterly rebalancing—use earnings release dates as windows for screening updates and entries.

Exit Rules and Stop Placement

Greenblatt’s Magic Formula was designed as a long-term value screen, but traders applying it actively must introduce tactical exit rules.

  1. Stop-Loss Placement:

    • Set a hard stop at 12% below entry price within the first 21 trading days. The 12% threshold reflects average intra-month drawdowns seen in backtests on formula names.
    • After 21 days, tighten stops to 8% trailing stops to lock in gains.
  2. Profit-Taking:

    • Exit when the combined Magic Formula rank drops below the top 200 names in the universe (i.e., stock deteriorates fundamentally).
    • Alternatively, exit when the stock trades 30% above entry price, locking in profits and reallocating to better-ranked names.
  3. Time-Based Exits:

    • If neither stop nor price target triggers, exit at the next quarter’s re-ranking event (approximately 60-65 trading days).
    • This prevents capital being stuck in deteriorating or stagnating names.

Position Sizing

Position sizing aligns with risk management and the formula’s ranking confidence.

  • Stocks in the top 50 combined rank: allocate 5% portfolio weight.
  • Ranks 51-100: allocate 3%.
  • Ranks 101-200: allocate 2%.
  • Do not hold stocks ranked below 200.

This gradation applies maximum capital to the strongest names while diversifying exposure. For a $100,000 portfolio, the top 50 stocks could have up to $5,000 each, while lower-ranked candidates receive lighter allocations.

Adjust sizing based on beta or volatility. Use ATR(14) multiples for volatility-adjusted sizing: target a 1.5% portfolio risk per position with stops factored in.

Defining Your Edge

The edge stems from systematic capital allocation to objectively undervalued, profitable stocks with ongoing screening every quarter. The Magic Formula filters out value traps using ROC, so capital avoids firms with poor capital efficiency.

Backtests over 20 years on the Russell 1000 show average annual returns 3-5% higher than the index with about 1.2 Sharpe ratio, assuming quarterly rebalancing and sector neutrality.

Active traders gain an edge by:

  • Adding momentum filters for entry timing.
  • Strict stop discipline to reduce drawdowns.
  • Rigorous liquidity screens to prevent slippage.
  • Position-sizing tailored to volatility.

Real-World Examples

AAPL (Apple Inc.)

  • On 12/31/2023, Apple’s EBIT was $120B; EV stood at approximately $2.5T.
  • Earnings Yield = 120B / 2.5T = 4.8%
  • ROC = 120B / (Working Capital + Net Fixed Assets ~ 600B) = 20%
  • AAPL ranked inside top 50 by Magic Formula in Q4 2023.
  • Entered on 1/5/2024 after price closed above 50-day MA at $175.
  • Stop set at $154 (12% below entry).
  • Stock reached $230 by end of Q1, trailing stop tightened to 8%.
  • Exited on 3/31/2024 when rank dropped to 120 and price target hit.

SPY (S&P 500 ETF Trust)

  • As an ETF, SPY doesn’t fit Magic Formula metrics but acts as a beta-adjusted benchmark.
  • Use SPY performance to gauge market risk and adjust exposure to Magic Formula stocks.
  • If SPY’s 50-day MA breaks down, reduce position sizes or increase cash.

NQ (Nasdaq 100 E-mini Futures)

  • NQ futures prices don’t apply to Magic Formula fundamentals.
  • Use NQ as an overlay for macro timing.
  • Reduce Magic Formula stock exposure when NQ falls below 200-day MA.

Conclusion

Joel Greenblatt’s Magic Formula offers a disciplined framework to screen undervalued, profitable stocks. Active traders with experience can refine the method through liquid universe selection, entry timing with momentum filters, calibrated stops, and volatility-based position sizing. By focusing on quarterly rebalancing and managing risk, traders can enhance returns while controlling drawdowns. The formula remains a robust foundational strategy that, when tailored for trading timeframes, fits better for active portfolios than buy-and-hold alone.